Magellan Linux

Contents of /branches/branch-xorg18/core/acl/acl-2.2.47-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5192 - (show annotations) (download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 1 month ago) by niro
File size: 2309 byte(s)
created branch 'branch-xorg18'
1 # $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 local abi
45 for abi in ${MULTILIB_ABIS}
46 do
47 cd ${SRCDIR}-${abi}
48 sed -i \
49 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
50 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
51 include/builddefs.in \
52 || die
53
54 # libtool fixes
55 sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die
56 sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die
57
58 # libtool will clobber install-sh which is really a custom file
59 mv install-sh attr.install-sh || die
60 libtoolize --install --force || die
61 mv attr.install-sh install-sh || die
62 aclocal -I m4 || die
63 autoconf || die
64 done
65 }
66
67 src_compile()
68 {
69 # enable CFLAGS
70 export OPTIMIZER="${CFLAGS}"
71
72 # disable debug code
73 export DEBUG="-DNDEBUG"
74
75 mconfigure \
76 --bindir=/bin \
77 --libdir=/'$(mlibdir)' \
78 --libexecdir=/usr/'$(mlibdir)' \
79 --enable-gettext \
80 || die
81
82 mmake LIBTOOL=$PWD/libtool || die
83 }
84
85 src_install()
86 {
87 mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die
88 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
89 }

Properties

Name Value
svn:keywords Id