Magellan Linux

Contents of /branches/R11-unstable/core/acl/acl-2.2.52-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24894 - (show annotations) (download)
Tue Nov 25 02:25:22 2014 UTC (9 years, 5 months ago) by niro
File size: 1548 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="acl"
4 PVER="2.2.52"
5 PBUILD="r1"
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 --libexecdir=/usr/'$(mlibdir)' \
61 --enable-gettext \
62 --disable-static \
63 || die
64
65 mmake || die
66 }
67
68 src_install()
69 {
70 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
71 # symlinks are not honored by features !libool & prune
72 #all-abis rm ${BINDIR}/usr/'$(mlibdir)'/libacl.a || die
73 all-abis rm ${BINDIR}/usr/'$(mlibdir)'/libacl.la || die
74 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
75 }