Magellan Linux

Contents of /trunk/core/acl/acl-2.2.51-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11342 - (show annotations) (download)
Sat Mar 3 14:25:34 2012 UTC (12 years, 2 months ago) by niro
File size: 1584 byte(s)
-remove spurious .la and .a symlinks
1 # $Id$
2
3 PNAME="acl"
4 PVER="2.2.51"
5 PBUILD="r3"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="acl: POSIX Access Control Lists."
10 HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
11
12 DEPEND=">= sys-apps/attr-2.4"
13
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}/${SRCFILE}
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
36 # fix missing includes
37 mpatch ${PNAME}-${PVER}-fix-includes.patch || die
38
39 local abi
40 for abi in ${MULTILIB_ABIS}
41 do
42 cd ${SRCDIR}-${abi}
43 sed -i \
44 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
45 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
46 include/builddefs.in \
47 || die
48 done
49 }
50
51 src_compile()
52 {
53 # enable CFLAGS
54 export OPTIMIZER="${CFLAGS}"
55
56 # disable debug code
57 export DEBUG="-DNDEBUG"
58
59 mconfigure \
60 --bindir=/bin \
61 --libdir=/'$(mlibdir)' \
62 --libexecdir=/usr/'$(mlibdir)' \
63 --enable-gettext \
64 --disable-static \
65 || die
66
67 mmake || die
68 }
69
70 src_install()
71 {
72 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
73 # symlinks are not honored by features !libool & prune
74 all-abis rm ${BINDIR}/'$(mlibdir)'/libacl.a || die
75 all-abis rm ${BINDIR}/'$(mlibdir)'/libacl.la || die
76 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
77 }