1 |
commit: c99d1b1bbc03a6520bc954e3ba263d510ce81c94 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 15:53:58 2016 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 15:53:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=c99d1b1b |
7 |
|
8 |
app-portage/g-cpan: sync, bug #585758 |
9 |
|
10 |
Package-Manager: portage-2.2.28-prefix |
11 |
|
12 |
app-portage/g-cpan/Manifest | 2 +- |
13 |
...6.5-prefix.patch => g-cpan-0.16.7-prefix.patch} | 45 ++++++++-------- |
14 |
app-portage/g-cpan/g-cpan-0.16.5.ebuild | 44 --------------- |
15 |
app-portage/g-cpan/g-cpan-0.16.7.ebuild | 63 ++++++++++++++++++++++ |
16 |
app-portage/g-cpan/metadata.xml | 11 +++- |
17 |
5 files changed, 96 insertions(+), 69 deletions(-) |
18 |
|
19 |
diff --git a/app-portage/g-cpan/Manifest b/app-portage/g-cpan/Manifest |
20 |
index 6cdf69b..1facc3b 100644 |
21 |
--- a/app-portage/g-cpan/Manifest |
22 |
+++ b/app-portage/g-cpan/Manifest |
23 |
@@ -1 +1 @@ |
24 |
-DIST g-cpan-0.16.5.tar.gz 33894 SHA256 929c06ee2cdd3361121b6f359ea7fc9201bc42caff96ef1df45b4cb93ccfd988 SHA512 f2eab23281abe567ee2df42895e3f0783228c6ab5e3a8230089e900fd2700367d736299da20fb228f2d4542491a24da05fd035a81aff7d79ce5132e35c48ad0b WHIRLPOOL 01e0b9fc59264455d57fc64c432e683ae941c74d6efa6e2b3430dea6caac019cfad3e893a4b39de4386a3dadadecf95d828a9fbaa8e8b1260303081e2cc6ce65 |
25 |
+DIST g-cpan-0.16.7.tar.gz 33621 SHA256 35ead4120bee1b4158413eb1f5933baf1ce75500495d590163fbfef95c9c171f SHA512 2412b30fa4c3432882db0f31da6ace841e353a363e15a3b536ea1febcf601a7f9c4e14968e3abcf848e3557098088012472179688caf36cd97ae9b528a3db7fb WHIRLPOOL 646f76745023ae815ebecf57856b50dcd568657df68aee89099dd64904a4d43e9cef82f4f16518bd0b8db50e3ddd57aa200bf8fcffbd6539305f59be798bece1 |
26 |
|
27 |
diff --git a/app-portage/g-cpan/files/g-cpan-0.16.5-prefix.patch b/app-portage/g-cpan/files/g-cpan-0.16.7-prefix.patch |
28 |
similarity index 84% |
29 |
rename from app-portage/g-cpan/files/g-cpan-0.16.5-prefix.patch |
30 |
rename to app-portage/g-cpan/files/g-cpan-0.16.7-prefix.patch |
31 |
index 7887972..04f9d6d 100644 |
32 |
--- a/app-portage/g-cpan/files/g-cpan-0.16.5-prefix.patch |
33 |
+++ b/app-portage/g-cpan/files/g-cpan-0.16.7-prefix.patch |
34 |
@@ -1,12 +1,12 @@ |
35 |
-diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
36 |
---- g-cpan-0.16.4.orig/bin/g-cpan 2011-01-25 00:10:13.000000000 +0100 |
37 |
-+++ g-cpan-0.16.4/bin/g-cpan 2012-09-29 16:59:48.000000000 +0200 |
38 |
+diff -ur g-cpan-0.16.7.orig/bin/g-cpan g-cpan-0.16.7/bin/g-cpan |
39 |
+--- g-cpan-0.16.7.orig/bin/g-cpan 2016-05-06 16:09:41.000000000 +0200 |
40 |
++++ g-cpan-0.16.7/bin/g-cpan 2016-06-27 17:48:29.000000000 +0200 |
41 |
@@ -1,4 +1,4 @@ |
42 |
-#!/usr/bin/perl -w |
43 |
+#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -w |
44 |
package main; |
45 |
|
46 |
- # Copyright 1999-2011 Gentoo Foundation |
47 |
+ # Copyright 1999-2016 Gentoo Foundation |
48 |
@@ -32,7 +32,7 @@ |
49 |
my $prog = basename($0); |
50 |
|
51 |
@@ -15,7 +15,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
52 |
+unless ($ENV{TMPDIR}) { $ENV{TMPDIR} = '@GENTOO_PORTAGE_EPREFIX@/var/tmp/g-cpan' } |
53 |
|
54 |
my %dep_list = (); |
55 |
- my @perl_dirs = ("perl-gcpan", "dev-perl", "perl-core", "perl-text", "perl-tools", "perl-xml", "perl-dev", "dev-lang",); |
56 |
+ my @perl_dirs = (qw( dev-perl perl-core perl-gcpan dev-lang )); |
57 |
@@ -80,8 +80,8 @@ |
58 |
|
59 |
if ($log) |
60 |
@@ -75,7 +75,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
61 |
print_err("Please run $prog as a user with sufficient permissions"); |
62 |
exit; |
63 |
} |
64 |
-@@ -268,7 +268,7 @@ |
65 |
+@@ -269,7 +269,7 @@ |
66 |
} |
67 |
else |
68 |
{ |
69 |
@@ -84,7 +84,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
70 |
print_err("Please run $prog as a user with sufficient permissions"); |
71 |
exit; |
72 |
} |
73 |
-@@ -518,7 +518,7 @@ |
74 |
+@@ -519,7 +519,7 @@ |
75 |
{ |
76 |
|
77 |
# First, check to see if this came with the core perl install |
78 |
@@ -93,7 +93,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
79 |
my $s_perl = new DirHandle($pkgdbdir); |
80 |
my $eb = $ebuild_wanted; |
81 |
$eb =~ s{::}{/}gxs; |
82 |
-@@ -660,8 +660,8 @@ |
83 |
+@@ -666,8 +666,8 @@ |
84 |
} |
85 |
else |
86 |
{ |
87 |
@@ -104,7 +104,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
88 |
} |
89 |
foreach my $target_dir (@overlays) |
90 |
{ |
91 |
-@@ -802,7 +802,7 @@ |
92 |
+@@ -810,7 +810,7 @@ |
93 |
if (defined($buildpkg) or defined($buildpkgonly)) { |
94 |
print $EBUILD "\npkg_postinst() {\n"; |
95 |
print $EBUILD "elog \"If you redistribute this package, please remember to\"\n"; |
96 |
@@ -113,7 +113,7 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
97 |
|
98 |
print $EBUILD "}\n"; |
99 |
} |
100 |
-@@ -1131,7 +1131,7 @@ |
101 |
+@@ -1139,7 +1139,7 @@ |
102 |
|
103 |
=item B<-L,--log> |
104 |
|
105 |
@@ -122,11 +122,11 @@ diff -ur g-cpan-0.16.4.orig/bin/g-cpan g-cpan-0.16.4/bin/g-cpan |
106 |
|
107 |
=item B<-s,--search> |
108 |
|
109 |
-Only in g-cpan-0.16.4/bin: g-cpan.orig |
110 |
-diff -ur g-cpan-0.16.4.orig/lib/Gentoo/CPAN.pm g-cpan-0.16.4/lib/Gentoo/CPAN.pm |
111 |
---- g-cpan-0.16.4.orig/lib/Gentoo/CPAN.pm 2012-09-29 16:30:49.000000000 +0200 |
112 |
-+++ g-cpan-0.16.4/lib/Gentoo/CPAN.pm 2012-09-29 16:59:48.000000000 +0200 |
113 |
-@@ -33,19 +33,19 @@ |
114 |
+Only in g-cpan-0.16.7/bin: g-cpan.orig |
115 |
+diff -ur g-cpan-0.16.7.orig/lib/Gentoo/CPAN.pm g-cpan-0.16.7/lib/Gentoo/CPAN.pm |
116 |
+--- g-cpan-0.16.7.orig/lib/Gentoo/CPAN.pm 2016-05-06 12:11:50.000000000 +0200 |
117 |
++++ g-cpan-0.16.7/lib/Gentoo/CPAN.pm 2016-06-27 17:48:29.000000000 +0200 |
118 |
+@@ -32,19 +32,19 @@ |
119 |
use constant CPAN_CFG_NAME => 'MyConfig.pm'; |
120 |
|
121 |
# defaults tools for CPAN Config |
122 |
@@ -158,7 +158,7 @@ diff -ur g-cpan-0.16.4.orig/lib/Gentoo/CPAN.pm g-cpan-0.16.4/lib/Gentoo/CPAN.pm |
123 |
|
124 |
sub new { |
125 |
my $proto = shift; |
126 |
-@@ -553,7 +553,7 @@ |
127 |
+@@ -546,7 +546,7 @@ |
128 |
'make' => q[$make_prog], |
129 |
'make_arg' => q[], |
130 |
'make_install_arg' => q[], |
131 |
@@ -167,16 +167,17 @@ diff -ur g-cpan-0.16.4.orig/lib/Gentoo/CPAN.pm g-cpan-0.16.4/lib/Gentoo/CPAN.pm |
132 |
'makepl_arg' => q[], |
133 |
'mbuild_arg' => q[], |
134 |
'mbuild_install_arg' => q[], |
135 |
-diff -ur g-cpan-0.16.4.orig/lib/Gentoo/Portage.pm g-cpan-0.16.4/lib/Gentoo/Portage.pm |
136 |
---- g-cpan-0.16.4.orig/lib/Gentoo/Portage.pm 2012-09-29 16:30:49.000000000 +0200 |
137 |
-+++ g-cpan-0.16.4/lib/Gentoo/Portage.pm 2012-09-29 17:01:00.000000000 +0200 |
138 |
+Only in g-cpan-0.16.7/lib/Gentoo: CPAN.pm.orig |
139 |
+diff -ur g-cpan-0.16.7.orig/lib/Gentoo/Portage.pm g-cpan-0.16.7/lib/Gentoo/Portage.pm |
140 |
+--- g-cpan-0.16.7.orig/lib/Gentoo/Portage.pm 2016-05-06 12:11:50.000000000 +0200 |
141 |
++++ g-cpan-0.16.7/lib/Gentoo/Portage.pm 2016-06-27 17:49:44.000000000 +0200 |
142 |
@@ -47,7 +47,7 @@ |
143 |
return($var =~ /^$envvar$/ ); |
144 |
}; |
145 |
|
146 |
--foreach my $file ( "$ENV{HOME}/.gcpanrc", '/etc/portage/make.conf', '/etc/make.conf', '/etc/make.globals' ) { |
147 |
-+foreach my $file ( "$ENV{HOME}/.gcpanrc", "@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf", "@GENTOO_PORTAGE_EPREFIX@/etc/make.conf", "@GENTOO_PORTAGE_EPREFIX@/etc/make.globals" ) { |
148 |
+-foreach my $file ( "$ENV{HOME}/.gcpanrc", '/etc/portage/make.conf', '/etc/make.conf', '/usr/share/portage/config/make.globals' ) { |
149 |
++foreach my $file ( "$ENV{HOME}/.gcpanrc", '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf', '@GENTOO_PORTAGE_EPREFIX@/etc/make.conf', '@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals' ) { |
150 |
if ( -f $file) { |
151 |
my $importer = Shell::EnvImporter->new( |
152 |
file => $file, |
153 |
-Only in g-cpan-0.16.4: prefix.patch |
154 |
+Only in g-cpan-0.16.7: prefix.patch |
155 |
|
156 |
diff --git a/app-portage/g-cpan/g-cpan-0.16.5.ebuild b/app-portage/g-cpan/g-cpan-0.16.5.ebuild |
157 |
deleted file mode 100644 |
158 |
index 355da6f..0000000 |
159 |
--- a/app-portage/g-cpan/g-cpan-0.16.5.ebuild |
160 |
+++ /dev/null |
161 |
@@ -1,44 +0,0 @@ |
162 |
-# Copyright 1999-2014 Gentoo Foundation |
163 |
-# Distributed under the terms of the GNU General Public License v2 |
164 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.16.5.ebuild,v 1.9 2014/09/11 12:17:27 zlogene Exp $ |
165 |
- |
166 |
-EAPI=5 |
167 |
- |
168 |
-inherit perl-module prefix |
169 |
- |
170 |
-DESCRIPTION="g-cpan: generate and install CPAN modules using portage" |
171 |
-HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml" |
172 |
-SRC_URI="mirror://gentoo/${P}.tar.gz |
173 |
- http://dev.gentoo.org/~chainsaw/distfiles/${P}.tar.gz" |
174 |
- |
175 |
-LICENSE="|| ( Artistic GPL-2 )" |
176 |
-SLOT="0" |
177 |
-KEYWORDS="~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
178 |
-IUSE="" |
179 |
- |
180 |
-DEPEND="dev-lang/perl |
181 |
- >=dev-perl/yaml-0.60 |
182 |
- dev-perl/Shell-EnvImporter |
183 |
- dev-perl/Log-Agent" |
184 |
-RDEPEND="${DEPEND}" |
185 |
- |
186 |
-src_prepare() { |
187 |
- epatch "${FILESDIR}"/${P}-prefix.patch |
188 |
- eprefixify bin/g-cpan lib/Gentoo/Portage.pm lib/Gentoo/CPAN.pm |
189 |
-} |
190 |
- |
191 |
-src_install() { |
192 |
- perl-module_src_install |
193 |
- diropts "-m0755" |
194 |
- dodir "/var/tmp/g-cpan" |
195 |
- keepdir "/var/tmp/g-cpan" |
196 |
- dodir "/var/log/g-cpan" |
197 |
- keepdir "/var/log/g-cpan" |
198 |
-} |
199 |
- |
200 |
-pkg_postinst() { |
201 |
- elog "You may wish to adjust the permissions on /var/tmp/g-cpan" |
202 |
- elog "if you have users besides root expecting to use g-cpan." |
203 |
- elog "Please note that some CPAN packages need additional manual" |
204 |
- elog "parameters or tweaking, due to bugs in their build systems." |
205 |
-} |
206 |
|
207 |
diff --git a/app-portage/g-cpan/g-cpan-0.16.7.ebuild b/app-portage/g-cpan/g-cpan-0.16.7.ebuild |
208 |
new file mode 100644 |
209 |
index 0000000..0b9cb2d |
210 |
--- /dev/null |
211 |
+++ b/app-portage/g-cpan/g-cpan-0.16.7.ebuild |
212 |
@@ -0,0 +1,63 @@ |
213 |
+# Copyright 1999-2016 Gentoo Foundation |
214 |
+# Distributed under the terms of the GNU General Public License v2 |
215 |
+# $Id$ |
216 |
+ |
217 |
+EAPI=6 |
218 |
+ |
219 |
+inherit perl-module prefix eutils |
220 |
+if [[ ${PV} == "9999" ]] ; then |
221 |
+ EGIT_REPO_URI="git://github.com/gentoo-perl/g-cpan.git" |
222 |
+ inherit git-r3 |
223 |
+ SRC_URI="" |
224 |
+else |
225 |
+ SRC_URI="https://github.com/gentoo-perl/g-cpan/releases/download/v${PV}/${P}.tar.gz" |
226 |
+ KEYWORDS="~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
227 |
+fi |
228 |
+ |
229 |
+DESCRIPTION="Autogenerate and install ebuilds for CPAN modules" |
230 |
+HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml" |
231 |
+ |
232 |
+LICENSE="|| ( Artistic GPL-2 )" |
233 |
+SLOT="0" |
234 |
+IUSE="test" |
235 |
+ |
236 |
+COMMONDEPEND=" |
237 |
+ virtual/perl-File-Path |
238 |
+ virtual/perl-File-Spec |
239 |
+ dev-perl/Log-Agent |
240 |
+ virtual/perl-Memoize |
241 |
+ virtual/perl-IO |
242 |
+ dev-perl/Shell-EnvImporter |
243 |
+ virtual/perl-Term-ANSIColor |
244 |
+ >=dev-perl/YAML-0.60 |
245 |
+" |
246 |
+RDEPEND="${COMMONDEPEND} |
247 |
+ >=sys-apps/portage-2.0.0 |
248 |
+" |
249 |
+DEPEND="${COMMONDEPEND} |
250 |
+ virtual/perl-ExtUtils-MakeMaker |
251 |
+ test? ( >=virtual/perl-Test-Simple-0.940.0 ) |
252 |
+" |
253 |
+ |
254 |
+src_prepare() { |
255 |
+ epatch "${FILESDIR}"/${P}-prefix.patch |
256 |
+ eprefixify bin/g-cpan lib/Gentoo/Portage.pm lib/Gentoo/CPAN.pm |
257 |
+ eapply_user |
258 |
+} |
259 |
+ |
260 |
+src_install() { |
261 |
+ perl-module_src_install |
262 |
+ use prefix \ |
263 |
+ && diropts "-m0755" \ |
264 |
+ || diropts -m0775 -o portage -g portage |
265 |
+ dodir "/var/tmp/g-cpan" |
266 |
+ dodir "/var/log/g-cpan" |
267 |
+ keepdir "/var/log/g-cpan" |
268 |
+} |
269 |
+ |
270 |
+pkg_postinst() { |
271 |
+ elog "If you want to use g-cpan as non root user you may wish to adjust" |
272 |
+ elog "the permissions on /var/tmp/g-cpan or add users to the portage group." |
273 |
+ elog "Please note that some CPAN packages need additional manual" |
274 |
+ elog "parameters or tweaking, due to bugs in their build systems." |
275 |
+} |
276 |
|
277 |
diff --git a/app-portage/g-cpan/metadata.xml b/app-portage/g-cpan/metadata.xml |
278 |
index 056ad38..fa5a8f4 100644 |
279 |
--- a/app-portage/g-cpan/metadata.xml |
280 |
+++ b/app-portage/g-cpan/metadata.xml |
281 |
@@ -1,8 +1,15 @@ |
282 |
<?xml version="1.0" encoding="UTF-8"?> |
283 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
284 |
<pkgmetadata> |
285 |
- <herd>perl</herd> |
286 |
- <maintainer> |
287 |
+ <maintainer type="person"> |
288 |
<email>robbat2@g.o</email> |
289 |
</maintainer> |
290 |
+ <maintainer type="project"> |
291 |
+ <email>perl@g.o</email> |
292 |
+ <name>Gentoo Perl Project</name> |
293 |
+ </maintainer> |
294 |
+ <upstream> |
295 |
+ <remote-id type="github">gentoo-perl/g-cpan</remote-id> |
296 |
+ <bugs-to>https://github.com/gentoo-perl/g-cpan/issues</bugs-to> |
297 |
+ </upstream> |
298 |
</pkgmetadata> |