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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Feb 21 05:12:17 2013 UTC (2 months, 4 weeks ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Add ~arm-linux keywords.

(Portage version: 2.2.0_alpha163_p9/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild,v 1.7 2013/01/04 13:50:16 ssuominen Exp $
4
5 EAPI=5
6
7 inherit flag-o-matic libtool multilib
8
9 MY_P=pkg-config-${PV}
10
11 if [[ ${PV} == *9999* ]]; then
12 EGIT_REPO_URI="git://anongit.freedesktop.org/pkg-config"
13 inherit autotools git-2
14 else
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 SRC_URI="http://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
17 fi
18
19 DESCRIPTION="Package config system that manages compile/link flags"
20 HOMEPAGE="http://pkgconfig.freedesktop.org/wiki/"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 IUSE="elibc_FreeBSD hardened internal-glib"
25
26 RDEPEND="!internal-glib? ( >=dev-libs/glib-2.30 )
27 !dev-util/pkgconf[pkg-config]
28 !dev-util/pkg-config-lite
29 !dev-util/pkgconfig-openbsd[pkg-config]"
30 DEPEND="${RDEPEND}"
31
32 S=${WORKDIR}/${MY_P}
33
34 DOCS=( AUTHORS NEWS README )
35
36 src_prepare() {
37 sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
38
39 if [[ ${PV} == *9999* ]]; then
40 eautoreconf
41 else
42 elibtoolize # Required for FreeMiNT wrt #333429
43 fi
44 }
45
46 src_configure() {
47 local myconf
48
49 if use internal-glib; then
50 myconf+=' --with-internal-glib'
51 else
52 if ! has_version dev-util/pkgconfig; then
53 export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
54 export GLIB_LIBS="-lglib-2.0"
55 fi
56 fi
57
58 use ppc64 && use hardened && replace-flags -O[2-3] -O1
59
60 # Force using all the requirements when linking, so that needed -pthread
61 # lines are inherited between libraries
62 use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
63
64 [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
65
66 econf \
67 --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
68 --with-system-include-path="${EPREFIX}"/usr/include \
69 --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
70 ${myconf}
71 }
72
73 src_install() {
74 default
75
76 if use prefix; then
77 # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
78 # simplify cross-prefix builds
79 echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
80 doenvd "${T}"/99${PN}
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.13