Magellan Linux

Contents of /trunk/core/attr/attr-2.4.46-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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