1 |
mgorny 14/03/30 11:11:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pkgconfig-openbsd-20130507-r1.ebuild |
5 |
Log: |
6 |
Enable multilib support. Install to proper perl libdir. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 dev-util/pkgconfig-openbsd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -u -r1.14 -r1.15 |
23 |
--- ChangeLog 7 May 2013 14:01:46 -0000 1.14 |
24 |
+++ ChangeLog 30 Mar 2014 11:11:13 -0000 1.15 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-util/pkgconfig-openbsd |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog,v 1.14 2013/05/07 14:01:46 ssuominen Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog,v 1.15 2014/03/30 11:11:13 mgorny Exp $ |
31 |
+ |
32 |
+*pkgconfig-openbsd-20130507-r1 (30 Mar 2014) |
33 |
+ |
34 |
+ 30 Mar 2014; Michał Górny <mgorny@g.o> |
35 |
+ +pkgconfig-openbsd-20130507-r1.ebuild: |
36 |
+ Enable multilib support. Install to proper perl libdir. |
37 |
|
38 |
07 May 2013; Samuli Suominen <ssuominen@g.o> |
39 |
-pkgconfig-openbsd-20130225.ebuild: |
40 |
@@ -70,4 +76,3 @@ |
41 |
16 Jan 2012; Samuli Suominen <ssuominen@g.o> |
42 |
+pkgconfig-openbsd-20120116.ebuild: |
43 |
Initial commit. |
44 |
- |
45 |
|
46 |
|
47 |
|
48 |
1.1 dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: pkgconfig-openbsd-20130507-r1.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2014 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild,v 1.1 2014/03/30 11:11:13 mgorny Exp $ |
58 |
|
59 |
EAPI=5 |
60 |
|
61 |
inherit eutils multilib multilib-minimal |
62 |
|
63 |
# cvs -d anoncvs@×××××××××××××××.org:/cvs get src/usr.bin/pkg-config |
64 |
|
65 |
PKG_M4_VERSION=0.28 |
66 |
|
67 |
DESCRIPTION="A perl based version of pkg-config from OpenBSD" |
68 |
HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/" |
69 |
SRC_URI="http://dev.gentoo.org/~ssuominen/${P}.tar.xz |
70 |
pkg-config? ( http://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_M4_VERSION}.tar.gz )" |
71 |
|
72 |
LICENSE="ISC" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~x86" |
75 |
IUSE="+pkg-config" |
76 |
|
77 |
DEPEND="dev-lang/perl:=" |
78 |
RDEPEND="${DEPEND} |
79 |
virtual/perl-Getopt-Long |
80 |
pkg-config? ( |
81 |
!dev-util/pkgconfig |
82 |
!dev-util/pkgconf[pkg-config] |
83 |
)" |
84 |
|
85 |
S=${WORKDIR}/src |
86 |
|
87 |
src_prepare() { |
88 |
epatch_user |
89 |
ecvs_clean |
90 |
|
91 |
# Config.pm from dev-lang/perl doesn't set ARCH, only archname |
92 |
sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die |
93 |
|
94 |
if use pkg-config; then |
95 |
MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config ) |
96 |
else |
97 |
MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config-openbsd ) |
98 |
fi |
99 |
} |
100 |
|
101 |
multilib_src_install() { |
102 |
local pc_bin=pkg-config |
103 |
use pkg-config || pc_bin+=-openbsd |
104 |
|
105 |
newbin "${S}"/usr.bin/pkg-config/pkg-config ${pc_bin} |
106 |
newman "${S}"/usr.bin/pkg-config/pkg-config.1 ${pc_bin}.1 |
107 |
|
108 |
# insert proper paths |
109 |
local pc_paths=( |
110 |
/usr/$(get_libdir)/pkgconfig |
111 |
/usr/share/pkgconfig |
112 |
) |
113 |
sed -i -e "/my @PKGPATH/,/;/{s@(.*@( ${pc_paths[*]} );@p;d}" \ |
114 |
"${ED%/}/usr/bin/${pc_bin}" || die |
115 |
} |
116 |
|
117 |
multilib_src_install_all() { |
118 |
if use pkg-config; then |
119 |
insinto /usr/share/aclocal |
120 |
doins "${WORKDIR}"/pkg-config-*/pkg.m4 |
121 |
fi |
122 |
|
123 |
local perl_version=$(perl -e 'printf "%vd", $^V') |
124 |
|
125 |
insinto /usr/$(get_libdir)/perl5/vendor_perl/${perl_version} |
126 |
doins -r "${S}"/usr.bin/pkg-config/OpenBSD |
127 |
} |