/[gentoo-x86]/dev-util/pkgconf/pkgconf-9999.ebuild
Gentoo

Contents of /dev-util/pkgconf/pkgconf-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Mar 30 09:16:07 2014 UTC (3 years, 10 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +18 -7 lines
Enable multilib support, bug #506062.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconf/pkgconf-9999.ebuild,v 1.12 2012/10/17 15:51:49 ryao Exp $
4
5 EAPI=5
6
7 if [[ ${PV} == "9999" ]] ; then
8 EGIT_REPO_URI="git://github.com/pkgconf/pkgconf.git"
9 inherit autotools git-2 multilib-minimal
10 else
11 inherit autotools multilib-minimal vcs-snapshot
12 SRC_URI="https://github.com/pkgconf/pkgconf/tarball/${P} -> ${P}.tar.gz"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
14 fi
15
16 DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
17 HOMEPAGE="https://github.com/pkgconf/pkgconf"
18
19 LICENSE="BSD-1"
20 SLOT="0"
21 IUSE="+pkg-config strict"
22
23 DEPEND=""
24 RDEPEND="${DEPEND}
25 pkg-config? (
26 !dev-util/pkgconfig
27 !dev-util/pkg-config-lite
28 !dev-util/pkgconfig-openbsd[pkg-config]
29 )"
30
31 MULTILIB_CHOST_TOOLS=(
32 /usr/bin/pkgconf
33 )
34
35 src_prepare() {
36 [[ -e configure ]] || eautoreconf
37
38 if use pkg-config; then
39 MULTILIB_CHOST_TOOLS+=(
40 /usr/bin/pkg-config
41 )
42 fi
43 }
44
45 multilib_src_configure() {
46 ECONF_SOURCE=${S} \
47 econf $(use_enable strict)
48 }
49
50 multilib_src_install() {
51 default
52 use pkg-config \
53 && dosym pkgconf /usr/bin/pkg-config \
54 || rm "${ED}"/usr/share/aclocal/pkg.m4 \
55 || die
56 }

  ViewVC Help
Powered by ViewVC 1.1.20