| OLD | NEW |
| (Empty) | |
| 1 # Copyright 1999-2010 Gentoo Foundation |
| 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 # $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-0.25-r2.ebuild,v
1.5 2010/08/10 16:01:02 jer Exp $ |
| 4 |
| 5 EAPI=2 |
| 6 inherit eutils flag-o-matic |
| 7 |
| 8 MY_P=pkg-config-${PV} |
| 9 |
| 10 DESCRIPTION="Package config system that manages compile/link flags" |
| 11 HOMEPAGE="http://pkgconfig.freedesktop.org/wiki/" |
| 12 SRC_URI="http://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz" |
| 13 |
| 14 LICENSE="GPL-2" |
| 15 SLOT="0" |
| 16 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc
x86 ~sparc-fbsd ~x86-fbsd" |
| 17 IUSE="elibc_FreeBSD hardened" |
| 18 |
| 19 DEPEND=">=dev-libs/popt-1.15" |
| 20 |
| 21 S=${WORKDIR}/${MY_P} |
| 22 |
| 23 src_prepare() { |
| 24 epatch "${FILESDIR}"/${P}-dnl.patch |
| 25 } |
| 26 |
| 27 src_configure() { |
| 28 use ppc64 && use hardened && replace-flags -O[2-3] -O1 |
| 29 |
| 30 # Force using all the requirements when linking, so that needed -pthread |
| 31 # lines are inherited between libraries |
| 32 local myconf |
| 33 use elibc_FreeBSD && myconf="--enable-indirect-deps" |
| 34 |
| 35 econf \ |
| 36 --docdir=/usr/share/doc/${PF}/html \ |
| 37 --with-installed-popt \ |
| 38 ${myconf} |
| 39 } |
| 40 |
| 41 src_install() { |
| 42 emake DESTDIR="${D}" install || die |
| 43 dodoc AUTHORS ChangeLog NEWS README |
| 44 } |
| OLD | NEW |