| 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-util/pkgconf/pkgconf-0.8.4.ebuild,v 1.4 2012/07/31 03:07:45 blueness Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
|
| 7 |
if [[ ${PV} == "9999" ]] ; then |
| 8 |
EGIT_REPO_URI="git://github.com/nenolod/pkgconf.git" |
| 9 |
inherit autotools git-2 |
| 10 |
else |
| 11 |
#inherit autotools vcs-snapshot |
| 12 |
inherit eutils |
| 13 |
#SRC_URI="https://github.com/nenolod/pkgconf/tarball/${P} -> ${P}.tar.gz" |
| 14 |
SRC_URI="http://nenolod.net/~nenolod/distfiles/${P}.tar.bz2" |
| 15 |
KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd" |
| 16 |
fi |
| 17 |
|
| 18 |
DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89" |
| 19 |
HOMEPAGE="https://github.com/nenolod/pkgconf" |
| 20 |
|
| 21 |
LICENSE="BSD-1" |
| 22 |
SLOT="0" |
| 23 |
IUSE="+pkg-config strict" |
| 24 |
|
| 25 |
DEPEND="" |
| 26 |
RDEPEND="${DEPEND} |
| 27 |
pkg-config? ( |
| 28 |
!dev-util/pkgconfig |
| 29 |
!dev-util/pkg-config-lite |
| 30 |
!dev-util/pkgconfig-openbsd[pkg-config] |
| 31 |
)" |
| 32 |
|
| 33 |
src_prepare() { |
| 34 |
[[ -e configure ]] || AT_M4DIR="m4" eautoreconf |
| 35 |
} |
| 36 |
|
| 37 |
src_configure() { |
| 38 |
econf $(use_enable strict) |
| 39 |
} |
| 40 |
|
| 41 |
src_compile() { |
| 42 |
emake V=1 |
| 43 |
} |
| 44 |
|
| 45 |
src_install() { |
| 46 |
default |
| 47 |
use pkg-config \ |
| 48 |
&& dosym pkgconf /usr/bin/pkg-config \ |
| 49 |
|| rm "${ED}"/usr/share/aclocal/pkg.m4 \ |
| 50 |
|| die |
| 51 |
} |