Magellan Linux

Annotation of /branches/magellan-next/core/acl/acl-2.2.51-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7551 - (hide annotations) (download)
Thu May 26 20:56:41 2011 UTC (12 years, 11 months ago) by niro
File size: 1404 byte(s)
auto added: ver bump to 2.2.51-r1
1 niro 7551 # $Id$
2    
3     PNAME="acl"
4     PVER="2.2.51"
5     PBUILD="r1"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="acl: POSIX Access Control Lists."
11     HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
12    
13     DEPEND=">= sys-apps/attr-2.4"
14    
15     SDEPEND=">= sys-dev/autoconf-5
16     >= sys-dev/gettext-0.18"
17    
18     SRCFILE="${PNAME}-${PVER}.src.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mtools multilib
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     || die
65    
66     mmake || die
67     }
68    
69     src_install()
70     {
71     mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
72     minstalldocs README VERSION doc/{CHANGES,COPYING} || die
73     }