Magellan Linux

Contents of /smage/branches/alx07x-stable/core/attr/attr-2.4.47-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11465 - (show annotations) (download)
Tue Dec 19 12:38:20 2017 UTC (6 years, 4 months ago) by niro
File size: 1518 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="attr"
4 PVER="2.4.47"
5 PBUILD="r4"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="attr: Extended Attributes Of Filesystem Objects."
10 HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
11
12 DEPEND=">= virtual/glibc"
13 SDEPEND=">= sys-dev/autoconf-5
14 >= sys-dev/gettext-0.18"
15
16 SRCFILE="${PNAME}-${PVER}.src.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
20 sminclude mtools multilib alx-split
21 msetfeature "!check"
22
23 SRC_URI=(
24 http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
25 )
26
27 UP2SUBSTITUTE=".src"
28 UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball gz"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33
34 local abi
35 for abi in ${MULTILIB_ABIS}
36 do
37 cd ${SRCDIR}-${abi}
38 sed -i \
39 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
40 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
41 include/builddefs.in \
42 || die
43 done
44 }
45
46 src_compile()
47 {
48 # enable CFLAGS
49 export OPTIMIZER="${CFLAGS}"
50
51 # disable debug code
52 export DEBUG="-DNDEBUG"
53
54 mconfigure \
55 --libexecdir=/usr/'$(mlibdir)' \
56 --disable-gettext \
57 --disable-static \
58 || die
59
60 mmake || die
61 }
62
63 alx_generic_src_install()
64 {
65 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
66 # symlinks are not honored by features !libool & prune
67 #all-abis mdelete /usr/'$(mlibdir)'/libattr.a || die
68 all-abis mdelete /usr/'$(mlibdir)'/libattr.la || die
69 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
70
71 # provided by man-pages
72 mdelete -r /usr/share/man/man2 || die
73 }