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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Apr 2 12:15:58 2010 UTC (4 years, 8 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #298067
(Portage version: 2.1.7.17/cvs/Linux ia64)

1 # Copyright 1999-2010 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.49.ebuild,v 1.6 2010/04/01 13:13:22 jer Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="access control list utilities, libraries and headers"
8 HOMEPAGE="http://savannah.nongnu.org/projects/acl"
9 SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz
10 nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
15 IUSE="nfs nls"
16
17 RDEPEND=">=sys-apps/attr-2.4
18 nfs? ( net-libs/libnfsidmap )"
19 DEPEND="${RDEPEND}
20 nls? ( sys-devel/gettext )"
21
22 src_unpack() {
23 unpack ${P}.src.tar.gz
24 cd "${S}"
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}"/${P}-quote-strchr.patch
33 sed -i \
34 -e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
35 configure # hack PATH with AC_PATH_PROG
36 sed -i \
37 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
38 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
39 include/builddefs.in \
40 || die "failed to update builddefs"
41 strip-linguas po
42 }
43
44 src_compile() {
45 use prefix || EPREFIX=
46 unset PLATFORM #184564
47 export OPTIMIZER=${CFLAGS}
48 export DEBUG=-DNDEBUG
49
50 econf \
51 $(use_enable nls gettext) \
52 --libexecdir="${EPREFIX}"/usr/$(get_libdir) \
53 --bindir="${EPREFIX}"/bin
54
55 emake || die
56 }
57
58 src_install() {
59 emake DIST_ROOT="${D}" install install-dev install-lib || die
60 prepalldocs
61
62 # move shared libs to /
63 gen_usr_ldscript -a acl
64 }

  ViewVC Help
Powered by ViewVC 1.1.20