# $Id$ PNAME="acl" PVER="2.2.47" PBUILD="r2" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="acl: POSIX Access Control Lists." HOMEPAGE="http://xfs.org/" DEPEND=">= sys-apps/attr-2.4" SDEPEND=">= sys-dev/autoconf-5 >= sys-dev/gettext-0.17" SRCFILE="${PNAME}_${PVER}-1.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools multilib SRC_URI=( ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE} ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch mirror://${PNAME}/${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch mirror://${PNAME}/${PNAME}-${PVER}-libtool.patch mirror://${PNAME}/${PNAME}-${PVER}-only-symlink-when-needed.patch ) UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'" src_prepare() { munpack ${SRCFILE} || die mpatch ${PNAME}-${PVER}-introduce-new-WALK_TREE_DEREFERENCE_TOPLEVEL-flag.patch || die mpatch ${PNAME}-${PVER}-make-sure-that-getfacl-R-only-calls-stat-2-on-symlin.patch || die mpatch ${PNAME}-${PVER}-libtool.patch || die mpatch ${PNAME}-${PVER}-only-symlink-when-needed.patch || die local abi for abi in ${MULTILIB_ABIS} do cd ${SRCDIR}-${abi} sed -i \ -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \ -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ include/builddefs.in \ || die # libtool fixes sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die # libtool will clobber install-sh which is really a custom file mv install-sh attr.install-sh || die libtoolize --install --force || die mv attr.install-sh install-sh || die aclocal -I m4 || die autoconf || die done } src_compile() { # enable CFLAGS export OPTIMIZER="${CFLAGS}" # disable debug code export DEBUG="-DNDEBUG" mconfigure \ --bindir=/bin \ --libdir=/'$(mlibdir)' \ --libexecdir=/usr/'$(mlibdir)' \ --enable-gettext \ || die mmake LIBTOOL=$PWD/libtool || die } src_install() { mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die minstalldocs README VERSION doc/{CHANGES,COPYING} || die }