/[gentoo-x86]/dev-libs/apr/apr-1.4.5.ebuild
Gentoo

Diff of /dev-libs/apr/apr-1.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/Attic/apr-1.4.5.ebuild,v 1.7 2011/10/29 18:36:35 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/Attic/apr-1.4.5.ebuild,v 1.8 2011/11/11 19:17:50 hwoarang Exp $
4 4
5EAPI="3" 5EAPI="4"
6 6
7inherit autotools eutils libtool multilib 7inherit autotools eutils libtool multilib
8 8
9DESCRIPTION="Apache Portable Runtime Library" 9DESCRIPTION="Apache Portable Runtime Library"
10HOMEPAGE="http://apr.apache.org/" 10HOMEPAGE="http://apr.apache.org/"
11SRC_URI="mirror://apache/apr/${P}.tar.bz2" 11SRC_URI="mirror://apache/apr/${P}.tar.bz2"
12 12
13LICENSE="Apache-2.0" 13LICENSE="Apache-2.0"
14SLOT="1" 14SLOT="1"
15KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" 15KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16IUSE="doc elibc_FreeBSD older-kernels-compatibility +urandom +uuid" 16IUSE="doc elibc_FreeBSD older-kernels-compatibility static-libs +urandom +uuid"
17RESTRICT="test" 17RESTRICT="test"
18 18
19RDEPEND="uuid? ( !elibc_FreeBSD? ( >=sys-apps/util-linux-2.16 ) )" 19RDEPEND="uuid? ( !elibc_FreeBSD? ( >=sys-apps/util-linux-2.16 ) )"
20DEPEND="${RDEPEND} 20DEPEND="${RDEPEND}
21 doc? ( app-doc/doxygen )" 21 doc? ( app-doc/doxygen )"
22
23DOCS=(CHANGES NOTICE README)
22 24
23src_prepare() { 25src_prepare() {
24 # Ensure that system libtool is used. 26 # Ensure that system libtool is used.
25 sed -e 's:${installbuilddir}/libtool:/usr/bin/libtool:' -i apr-config.in || die "sed failed" 27 sed -e 's:${installbuilddir}/libtool:/usr/bin/libtool:' -i apr-config.in || die "sed failed"
26 sed -e 's:@LIBTOOL@:$(SHELL) /usr/bin/libtool:' -i build/apr_rules.mk.in || die "sed failed" 28 sed -e 's:@LIBTOOL@:$(SHELL) /usr/bin/libtool:' -i build/apr_rules.mk.in || die "sed failed"
61 63
62 rm -f libtool 64 rm -f libtool
63} 65}
64 66
65src_compile() { 67src_compile() {
66 emake || die "emake failed" 68 emake
67 69
68 if use doc; then 70 if use doc; then
69 emake dox || die "emake dox failed" 71 emake dox
70 fi 72 fi
71} 73}
72 74
73src_install() { 75src_install() {
74 emake DESTDIR="${D}" install || die "emake install failed" 76 default
75 77
76 find "${ED}" -name "*.la" -print0 | xargs -0 rm -f 78 find "${ED}" -name "*.la" -exec rm -f {} +
77
78 dodoc CHANGES NOTICE README
79 79
80 if use doc; then 80 if use doc; then
81 dohtml -r docs/dox/html/* || die "dohtml failed" 81 dohtml -r docs/dox/html/*
82 fi
83
84 if ! use static-libs; then
85 find "${ED}" -name "*.a" -exec rm -f {} +
82 fi 86 fi
83 87
84 # This file is only used on AIX systems, which Gentoo is not, 88 # This file is only used on AIX systems, which Gentoo is not,
85 # and causes collisions between the SLOTs, so remove it. 89 # and causes collisions between the SLOTs, so remove it.
86 rm -f "${D}usr/$(get_libdir)/apr.exp" 90 rm -f "${ED}usr/$(get_libdir)/apr.exp"
87} 91}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20