Magellan Linux

Annotation of /trunk/core/acl/acl-2.2.47-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3104 - (hide annotations) (download)
Tue Oct 13 13:47:54 2009 UTC (14 years, 8 months ago) by niro
File size: 2292 byte(s)
-multilib support
1 niro 3104 # $Id$
2    
3     PNAME="acl"
4     PVER="2.2.47"
5     PBUILD="r2"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="acl: POSIX Access Control Lists."
11     HOMEPAGE="http://xfs.org/"
12    
13     DEPEND=">= sys-apps/attr-2.4"
14    
15     SDEPEND=">= sys-dev/autoconf-5
16     >= sys-dev/gettext-0.17"
17    
18     SRCFILE="${PNAME}_${PVER}-1.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mtools multilib
22    
23     SRC_URI=(
24     ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
25     ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch
29     mirror://${PNAME}/${PNAME}-${PVER}-libtool.patch
30     mirror://${PNAME}/${PNAME}-${PVER}-only-symlink-when-needed.patch
31     )
32    
33     UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
34    
35     src_prepare()
36     {
37     munpack ${SRCFILE} || die
38    
39     mpatch ${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch || die
40     mpatch ${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch || die
41     mpatch ${PNAME}-${PVER}-libtool.patch || die
42     mpatch ${PNAME}-${PVER}-only-symlink-when-needed.patch || die
43    
44     all-abis 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    
50     # libtool fixes
51     all-abis sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die
52     all-abis sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die
53    
54     # libtool will clobber install-sh which is really a custom file
55     all-abis mv install-sh attr.install-sh || die
56     all-abis mlibtoolize --install --force || die
57     all-abis mv attr.install-sh install-sh || die
58     all-abis aclocal -I m4 || die
59     all-abis autoconf || die
60     }
61    
62     src_compile()
63     {
64     # enable CFLAGS
65     export OPTIMIZER="${CFLAGS}"
66    
67     # disable debug code
68     export DEBUG="-DNDEBUG"
69    
70     mconfigure \
71     --bindir=/bin \
72     --libdir=/$(mlibdir) \
73     --libexecdir=/usr/$(mlibdir) \
74     --enable-gettext \
75     || die
76    
77     mmake LIBTOOL=$PWD/libtool || die
78     }
79    
80     src_install()
81     {
82     mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die
83     minstalldocs README VERSION doc/{CHANGES,COPYING} || die
84     }

Properties

Name Value
svn:keywords Id