/[gentoo-x86]/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.41.3-r1.ebuild
Gentoo

Contents of /sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.41.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 29 23:26:18 2009 UTC (3 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.1: +3 -2 lines
someone screwed up EAPI setting

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.41.3-r1.ebuild,v 1.1 2008/12/30 20:45:31 pchrist Exp $
4
5 EAPI="2"
6
7 inherit flag-o-matic toolchain-funcs
8
9 DESCRIPTION="e2fsprogs libraries (common error, subsystem, uuid, block id)"
10 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
16 IUSE="nls"
17
18 RDEPEND="!sys-libs/com_err
19 !sys-libs/ss
20 !<sys-fs/e2fsprogs-1.41"
21 DEPEND="nls? ( sys-devel/gettext )
22 sys-devel/bc"
23
24 src_configure() {
25 export LDCONFIG=/bin/true
26 export CC=$(tc-getCC)
27
28 # We want to use the "bsd" libraries while building on Darwin, but while
29 # building on other Gentoo/*BSD we prefer elf-naming scheme.
30 local libtype
31 case ${CHOST} in
32 *-darwin*) libtype=bsd;;
33 *) libtype=elf;;
34 esac
35
36 econf \
37 --enable-${libtype}-shlibs \
38 $(use_enable !elibc_uclibc tls) \
39 $(use_enable nls) \
40 || die
41
42 }
43
44 src_compile() {
45 export LDCONFIG=/bin/true
46 export CC=$(tc-getCC)
47 emake STRIP=/bin/true || die
48 }
49
50 src_install() {
51 export LDCONFIG=/bin/true
52 export CC=$(tc-getCC)
53
54 emake STRIP=/bin/true DESTDIR="${D}" install || die
55
56 dodir /$(get_libdir)
57 local lib slib
58 for lib in "${D}"/usr/$(get_libdir)/*.a ; do
59 slib=${lib##*/}
60 mv "${lib%.a}"$(get_libname)* "${D}"/$(get_libdir)/ || die "moving lib ${slib}"
61 gen_usr_ldscript ${slib%.a}$(get_libname)
62 done
63 }

  ViewVC Help
Powered by ViewVC 1.1.13