/[gentoo-x86]/sys-apps/acl/acl-2.2.51.ebuild
Gentoo

Contents of /sys-apps/acl/acl-2.2.51.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Dec 29 20:49:04 2011 UTC (2 years, 11 months ago) by halcy0n
Branch: MAIN
Changes since 1.8: +2 -2 lines
Stable for ppc64; bug #379057

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/acl/acl-2.2.51.ebuild,v 1.8 2011/09/03 16:54:10 armin76 Exp $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="access control list utilities, libraries and headers"
10 HOMEPAGE="http://savannah.nongnu.org/projects/acl"
11 SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz
12 nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
17 IUSE="nfs nls static-libs"
18
19 RDEPEND=">=sys-apps/attr-2.4
20 nfs? ( net-libs/libnfsidmap )"
21 DEPEND="${RDEPEND}
22 nls? ( sys-devel/gettext )"
23
24 src_prepare() {
25 if use nfs ; then
26 cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die
27 sed -i \
28 -e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \
29 acl-2.2.42-CITI_NFS4_ALL-2.dif || die
30 epatch acl-2.2.42-CITI_NFS4_ALL-2.dif
31 fi
32 epatch "${FILESDIR}"/${PN}-2.2.49-quote-strchr.patch
33 epatch "${FILESDIR}"/${PN}-2.2.51-config-shell.patch #365397
34 sed -i \
35 -e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
36 configure # hack PATH with AC_PATH_PROG
37 sed -i \
38 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
39 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
40 include/builddefs.in \
41 || die "failed to update builddefs"
42 strip-linguas po
43 }
44
45 src_configure() {
46 unset PLATFORM #184564
47 export OPTIMIZER=${CFLAGS}
48 export DEBUG=-DNDEBUG
49
50 econf \
51 $(use_enable nls gettext) \
52 --enable-shared $(use_enable static-libs static) \
53 --libexecdir="${EPREFIX}"/usr/$(get_libdir) \
54 --bindir="${EPREFIX}"/bin
55 }
56
57 src_install() {
58 emake DIST_ROOT="${D}" install install-dev install-lib || die
59 use static-libs || find "${D}" -name '*.la' -delete
60
61 # move shared libs to /
62 gen_usr_ldscript -a acl
63 }

  ViewVC Help
Powered by ViewVC 1.1.20