/[gentoo-x86]/dev-libs/libowfat/libowfat-0.28-r1.ebuild
Gentoo

Contents of /dev-libs/libowfat/libowfat-0.28-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Mar 22 05:52:13 2012 UTC (2 years, 5 months ago) by patrick
Branch: MAIN
Changes since 1.7: +5 -4 lines
Compile fix for #409139 #383031

(Portage version: 2.2.0_alpha93/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libowfat/libowfat-0.28-r1.ebuild,v 1.7 2012/01/31 22:10:07 jer Exp $
4
5 EAPI=2
6 inherit flag-o-matic toolchain-funcs eutils
7
8 DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein."
9 SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
10 HOMEPAGE="http://www.fefe.de/libowfat/"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
15 IUSE="diet"
16
17 RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )"
18 DEPEND="${RDEPEND}
19 >=sys-apps/sed-4"
20
21 pkg_setup() {
22 # Required for mult/umult64.c to be usable
23 append-flags -fomit-frame-pointer
24 }
25
26 src_prepare() {
27 sed -e "s:^CFLAGS.*:CFLAGS=-I. ${CFLAGS}:" \
28 -e "s:^DIET.*:DIET?=/usr/bin/diet -Os:" \
29 -e "s:^prefix.*:prefix=/usr:" \
30 -e "s:^INCLUDEDIR.*:INCLUDEDIR=\${prefix}/include/libowfat:" \
31 -i GNUmakefile || die "sed failed"
32 epatch "${FILESDIR}/libowfat-0.28-GNUmakefile.patch"
33 }
34
35 src_compile() {
36 emake -j1 \
37 CC=$(tc-getCC) \
38 $( use diet || echo 'DIET=' )
39 }
40
41 src_install () {
42 emake -j1 \
43 LIBDIR="${D}/usr/lib" \
44 MAN3DIR="${D}/usr/share/man/man3" \
45 INCLUDEDIR="${D}/usr/include/libowfat" \
46 install || die "emake install failed"
47
48 cd "${D}"/usr/share/man
49 mv man3/buffer.3 man3/owfat-buffer.3
50 }

  ViewVC Help
Powered by ViewVC 1.1.20