Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/pkgconfig: pkgconfig-0.28-r1.ebuild pkgconfig-9999.ebuild ChangeLog
Date: Thu, 27 Mar 2014 06:58:06
Message-Id: 20140327065757.76E432004F@flycatcher.gentoo.org
1 ssuominen 14/03/27 06:57:57
2
3 Modified: pkgconfig-9999.ebuild ChangeLog
4 Added: pkgconfig-0.28-r1.ebuild
5 Log:
6 Build eg. i686-pc-linux-gnu-pkg-config with ABI_X86="32" to support searching from /usr/lib32 without passing anything to the environment wrt #494748 by "kramlat"
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.11 dev-util/pkgconfig/pkgconfig-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild?r1=1.10&r2=1.11
16
17 Index: pkgconfig-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- pkgconfig-9999.ebuild 1 Feb 2014 16:18:05 -0000 1.10
24 +++ pkgconfig-9999.ebuild 27 Mar 2014 06:57:57 -0000 1.11
25 @@ -1,10 +1,10 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild,v 1.10 2014/02/01 16:18:05 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-9999.ebuild,v 1.11 2014/03/27 06:57:57 ssuominen Exp $
30
31 EAPI=5
32
33 -inherit flag-o-matic libtool multilib
34 +inherit flag-o-matic libtool multilib multilib-minimal
35
36 MY_P=pkg-config-${PV}
37
38 @@ -23,7 +23,7 @@
39 SLOT="0"
40 IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
41
42 -RDEPEND="!internal-glib? ( >=dev-libs/glib-2.30 )
43 +RDEPEND="!internal-glib? ( >=dev-libs/glib-2.30[${MULTILIB_USEDEP}] )
44 !dev-util/pkgconf[pkg-config]
45 !dev-util/pkg-config-lite
46 !dev-util/pkgconfig-openbsd[pkg-config]"
47 @@ -43,7 +43,7 @@
48 fi
49 }
50
51 -src_configure() {
52 +multilib_src_configure() {
53 local myconf
54
55 if use internal-glib; then
56 @@ -72,6 +72,7 @@
57
58 [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
59
60 + ECONF_SOURCE=${S} \
61 econf \
62 --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
63 --with-system-include-path="${EPREFIX}"/usr/include \
64 @@ -79,8 +80,8 @@
65 ${myconf}
66 }
67
68 -src_install() {
69 - default
70 +multilib_src_install() {
71 + emake DESTDIR="${D}" install
72
73 if use prefix; then
74 # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
75
76
77
78 1.143 dev-util/pkgconfig/ChangeLog
79
80 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/ChangeLog?rev=1.143&view=markup
81 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/ChangeLog?rev=1.143&content-type=text/plain
82 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/ChangeLog?r1=1.142&r2=1.143
83
84 Index: ChangeLog
85 ===================================================================
86 RCS file: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/ChangeLog,v
87 retrieving revision 1.142
88 retrieving revision 1.143
89 diff -u -r1.142 -r1.143
90 --- ChangeLog 1 Feb 2014 16:18:05 -0000 1.142
91 +++ ChangeLog 27 Mar 2014 06:57:57 -0000 1.143
92 @@ -1,6 +1,14 @@
93 # ChangeLog for dev-util/pkgconfig
94 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
95 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/ChangeLog,v 1.142 2014/02/01 16:18:05 grobian Exp $
96 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/ChangeLog,v 1.143 2014/03/27 06:57:57 ssuominen Exp $
97 +
98 +*pkgconfig-0.28-r1 (27 Mar 2014)
99 +
100 + 27 Mar 2014; Samuli Suominen <ssuominen@g.o> +pkgconfig-0.28-r1.ebuild,
101 + pkgconfig-9999.ebuild:
102 + Build eg. i686-pc-linux-gnu-pkg-config with ABI_X86="32" to support searching
103 + from /usr/lib32 without passing anything to the environment wrt #494748 by
104 + "kramlat"
105
106 01 Feb 2014; Fabian Groffen <grobian@g.o> pkgconfig-0.28.ebuild,
107 pkgconfig-9999.ebuild:
108
109
110
111 1.1 dev-util/pkgconfig/pkgconfig-0.28-r1.ebuild
112
113 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/pkgconfig-0.28-r1.ebuild?rev=1.1&view=markup
114 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig/pkgconfig-0.28-r1.ebuild?rev=1.1&content-type=text/plain
115
116 Index: pkgconfig-0.28-r1.ebuild
117 ===================================================================
118 # Copyright 1999-2014 Gentoo Foundation
119 # Distributed under the terms of the GNU General Public License v2
120 # $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-0.28-r1.ebuild,v 1.1 2014/03/27 06:57:57 ssuominen Exp $
121
122 EAPI=5
123
124 inherit flag-o-matic libtool multilib multilib-minimal
125
126 MY_P=pkg-config-${PV}
127
128 if [[ ${PV} == *9999* ]]; then
129 EGIT_REPO_URI="git://anongit.freedesktop.org/pkg-config"
130 inherit autotools git-2
131 else
132 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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"
133 SRC_URI="http://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
134 fi
135
136 DESCRIPTION="Package config system that manages compile/link flags"
137 HOMEPAGE="http://pkgconfig.freedesktop.org/wiki/"
138
139 LICENSE="GPL-2"
140 SLOT="0"
141 IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
142
143 RDEPEND="!internal-glib? ( >=dev-libs/glib-2.30[${MULTILIB_USEDEP}] )
144 !dev-util/pkgconf[pkg-config]
145 !dev-util/pkg-config-lite
146 !dev-util/pkgconfig-openbsd[pkg-config]"
147 DEPEND="${RDEPEND}"
148
149 S=${WORKDIR}/${MY_P}
150
151 DOCS=( AUTHORS NEWS README )
152
153 src_prepare() {
154 sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
155
156 if [[ ${PV} == *9999* ]]; then
157 eautoreconf
158 else
159 elibtoolize # Required for FreeMiNT wrt #333429
160 fi
161 }
162
163 multilib_src_configure() {
164 local myconf
165
166 if use internal-glib; then
167 myconf+=' --with-internal-glib'
168 # non-glibc platforms use GNU libiconv, but configure needs to
169 # know about that not to get confused when it finds something
170 # outside the prefix too
171 if use prefix && use !elibc_glibc ; then
172 myconf+=" --with-libiconv=gnu"
173 # add the libdir for libtool, otherwise it'll make love with system
174 # installed libiconv
175 append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
176 fi
177 else
178 if ! has_version dev-util/pkgconfig; then
179 export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
180 export GLIB_LIBS="-lglib-2.0"
181 fi
182 fi
183
184 use ppc64 && use hardened && replace-flags -O[2-3] -O1
185
186 # Force using all the requirements when linking, so that needed -pthread
187 # lines are inherited between libraries
188 use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
189
190 [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
191
192 ECONF_SOURCE=${S} \
193 econf \
194 --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
195 --with-system-include-path="${EPREFIX}"/usr/include \
196 --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
197 ${myconf}
198 }
199
200 multilib_src_install() {
201 emake DESTDIR="${D}" install
202
203 if use prefix; then
204 # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
205 # simplify cross-prefix builds
206 echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
207 doenvd "${T}"/99${PN}
208 fi
209 }