Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/axs:master commit in: dev-perl/Proc-ProcessTable/files/, media-video/gxine/, dev-perl/HTML-Form/, ...
Date: Thu, 28 Jun 2012 18:40:37
Message-Id: 1340908766.47a7a78ea9ac8093abda573eae03d0fbeb2bed4e.axs@gentoo
1 commit: 47a7a78ea9ac8093abda573eae03d0fbeb2bed4e
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 18:39:26 2012 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 18:39:26 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/axs.git;a=commit;h=47a7a78e
7
8 fixed the botched update from yesterday before trying to sync to todays tree
9
10 ---
11 app-accessibility/edbrowse/Manifest | 7 +
12 app-accessibility/edbrowse/edbrowse-3.4.7.ebuild | 61 ++
13 app-accessibility/edbrowse/edbrowse-3.4.8.ebuild | 58 ++
14 .../files/edbrowse-3.4.7-fix-makefile.patch | 13 +
15 app-portage/g-cpan/files/g-cpan-0.16.4-misc.patch | 40 ++
16 app-portage/g-cpan/g-cpan-0.13.02.ebuild | 29 +
17 app-portage/g-cpan/g-cpan-0.14.0.ebuild | 33 +
18 app-portage/g-cpan/g-cpan-0.15.0-r1.ebuild | 33 +
19 app-portage/g-cpan/g-cpan-0.16.2.ebuild | 38 ++
20 app-portage/g-cpan/g-cpan-0.16.3.ebuild | 38 ++
21 app-portage/g-cpan/g-cpan-0.16.4.ebuild | 38 ++
22 dev-lang/perl/files/eblits/common-v50160001.eblit | 71 ++
23 .../perl/files/eblits/pkg_postinst-v50160001.eblit | 67 ++
24 .../perl/files/eblits/pkg_postrm-v50160001.eblit | 12 +
25 .../perl/files/eblits/pkg_setup-v50160001.eblit | 69 ++
26 .../files/eblits/src_configure-v50160001.eblit | 141 ++++
27 .../perl/files/eblits/src_install-v50160001.eblit | 59 ++
28 .../perl/files/eblits/src_prepare-v50160001.eblit | 70 ++
29 .../perl/files/eblits/src_test-v50160001.eblit | 12 +
30 .../perl/files/perl-5.10.1-cleanup-paths.patch | 100 +++
31 dev-lang/perl/files/perl-5.10.1-hpux.patch | 40 ++
32 dev-lang/perl/files/perl-5.12.3-aix-soname.patch | 70 ++
33 dev-lang/perl/files/perl-5.12.3-interix.patch | 21 +
34 dev-lang/perl/files/perl-5.12.3-mint.patch | 321 +++++++++
35 .../perl/files/perl-5.14.1-cleanup-paths.patch | 100 +++
36 .../perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch | 21 +
37 .../files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch | 280 ++++++++
38 dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch | 256 +++++++
39 .../perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch | 111 +++
40 .../perl-5.8.8-asm-page-h-compile-failure.patch | 12 +
41 dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch | 33 +
42 dev-lang/perl/files/perl-5.8.8-cplusplus.patch | 22 +
43 dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch | 22 +
44 .../perl/files/perl-5.8.8-dragonfly-clean.patch | 170 +++++
45 dev-lang/perl/files/perl-5.8.8-fbsdhints.patch | 57 ++
46 .../files/perl-5.8.8-fix_file_path_chdir.patch | 72 ++
47 .../perl/files/perl-5.8.8-gcc42-command-line.patch | 11 +
48 dev-lang/perl/files/perl-5.8.8-lib32.patch | 76 +++
49 dev-lang/perl/files/perl-5.8.8-lib64.patch | 76 +++
50 .../perl/files/perl-5.8.8-libnet-hostname.patch | 25 +
51 dev-lang/perl/files/perl-5.8.8-links.patch | 86 +++
52 .../perl/files/perl-5.8.8-makedepend-syntax.patch | 11 +
53 dev-lang/perl/files/perl-5.8.8-perlcc.patch | 11 +
54 dev-lang/perl/files/perl-5.8.8-reorder-INC.patch | 93 +++
55 .../perl/files/perl-5.8.8-solaris-relocation.patch | 21 +
56 dev-lang/perl/files/perl-5.8.8-solaris11.patch | 14 +
57 dev-lang/perl/files/perl-5.8.8-usr-local.patch | 25 +
58 dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch | 57 ++
59 .../perl/files/perl-fix_h2ph_include_quote.patch | 61 ++
60 dev-lang/perl/files/perl-h2ph-ansi-header.patch | 11 +
61 .../perl/files/perl-hppa-pa7200-configure.patch | 11 +
62 dev-lang/perl/files/perl-noksh.patch | 16 +
63 dev-lang/perl/files/perl-perldoc-emptydirs.patch | 10 +
64 dev-lang/perl/files/perl-picdl.patch | 13 +
65 dev-lang/perl/files/perl-prelink-lpthread.patch | 11 +
66 dev-lang/perl/files/perl-regexp-nossp.patch | 11 +
67 dev-lang/perl/perl-5.10.1.ebuild | 610 +++++++++++++++++
68 dev-lang/perl/perl-5.12.3-r1.ebuild | 638 ++++++++++++++++++
69 dev-lang/perl/perl-5.8.8-r8.ebuild | 698 ++++++++++++++++++++
70 dev-lang/ruby/ruby-1.8.7_p352.ebuild | 195 ++++++
71 dev-lang/ruby/ruby-1.8.7_p357.ebuild | 193 ++++++
72 dev-lang/ruby/ruby-1.8.7_p358.ebuild | 193 ++++++
73 dev-lang/ruby/ruby-1.9.3_p0.ebuild | 223 +++++++
74 dev-lang/ruby/ruby-1.9.3_p125.ebuild | 223 +++++++
75 dev-lang/ruby/ruby-1.9.3_p194.ebuild | 223 +++++++
76 dev-lang/spidermonkey/Manifest | 4 +-
77 .../files/spidermonkey-1.5-build.patch | 138 ++++
78 .../files/spidermonkey-1.6-header.patch | 13 +
79 .../files/spidermonkey-1.7.0-ldflags.patch | 42 ++
80 .../files/spidermonkey-1.7.0-threadsafe.diff | 18 +
81 .../spidermonkey-1.8.5-arm_resprect_cflags-1.patch | 58 ++
82 .../spidermonkey-1.8.5-fix-install-symlinks.patch | 15 +
83 .../files/spidermonkey-1.8.5-fix-ppc64.patch | 61 ++
84 .../files/spidermonkey-1.8.7-filter_desc.patch | 18 +
85 .../files/spidermonkey-1.9.2.13-as-needed.patch | 22 +
86 dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild | 51 ++
87 dev-lang/spidermonkey/spidermonkey-1.7.0-r2.ebuild | 52 ++
88 dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild | 50 ++
89 .../spidermonkey/spidermonkey-1.8.2.15-r1.ebuild | 79 +++
90 dev-lang/spidermonkey/spidermonkey-1.8.2.15.ebuild | 78 +++
91 ...y-1.8.7.ebuild => spidermonkey-1.8.5-r1.ebuild} | 40 +-
92 dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild | 1 +
93 dev-libs/gjs/Manifest | 6 +
94 dev-libs/gjs/gjs-1.30.1.ebuild | 65 ++
95 dev-libs/gjs/gjs-1.32.0.ebuild | 67 ++
96 dev-libs/libyaml/libyaml-0.0.1.ebuild | 37 +
97 dev-libs/libyaml/libyaml-0.1.2.ebuild | 37 +
98 dev-libs/libyaml/libyaml-0.1.3.ebuild | 37 +
99 dev-perl/AnyEvent/AnyEvent-5.2.5.1.ebuild | 23 +
100 ...-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch | 25 +
101 dev-perl/AppConfig/files/blockdiffs.patch | 83 +++
102 dev-perl/Archive-Rar/Archive-Rar-1.9.3.ebuild | 24 +
103 dev-perl/B-OPCheck/files/0.29-Perl_check_t.patch | 15 +
104 dev-perl/BerkeleyDB/files/Gentoo-config-0.26.diff | 23 +
105 dev-perl/CPAN-Mini/CPAN-Mini-0.562.ebuild | 22 +
106 .../Cache-Memcached/Cache-Memcached-1.24.ebuild | 20 +
107 .../Cache-Memcached/Cache-Memcached-1.26.ebuild | 23 +
108 .../Cache-Memcached/Cache-Memcached-1.27.ebuild | 21 +
109 .../Cache-Memcached/Cache-Memcached-1.28.ebuild | 21 +
110 .../Cache-Memcached/Cache-Memcached-1.29.ebuild | 21 +
111 dev-perl/Chart/Chart-2.4.2.ebuild | 20 +
112 dev-perl/Class-Load/Class-Load-0.06.ebuild | 23 +
113 .../Class-MethodMaker-2.15.ebuild | 18 +
114 .../Class-Singleton/Class-Singleton-1.03.ebuild | 15 +
115 dev-perl/Convert-UUlib/Convert-UUlib-1.340.ebuild | 18 +
116 .../files/1.4-disable-reversed-test.patch | 17 +
117 .../Crypt-RIPEMD160/Crypt-RIPEMD160-0.04.ebuild | 17 +
118 dev-perl/Crypt-RIPEMD160/files/0.50.0-header.patch | 8 +
119 dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.57.ebuild | 27 +
120 dev-perl/Curses/files/Curses-1.08-p5.8-fixes.diff | 32 +
121 dev-perl/DBD-SQLite/DBD-SQLite-0.31-r1.ebuild | 17 +
122 dev-perl/DBD-SQLite/DBD-SQLite-1.31.ebuild | 34 +
123 dev-perl/DBD-mysql/DBD-mysql-4.01.7.ebuild | 22 +
124 dev-perl/DBI/DBI-1.615.ebuild | 24 +
125 dev-perl/Daemon-Generic/Daemon-Generic-0.71.ebuild | 22 +
126 dev-perl/Data-ShowTable/files/3.3.patch | 39 ++
127 dev-perl/Date-Pcalc/Date-Pcalc-1.2.ebuild | 16 +
128 ....100.0_identifier_before_numeric_constant.patch | 16 +
129 dev-perl/DateManip/DateManip-5.56.ebuild | 26 +
130 .../DateTime-Format-Strptime-1.500.0.ebuild | 25 +
131 .../DateTime-TimeZone-1.22.ebuild | 25 +
132 dev-perl/DateTime/DateTime-0.55.ebuild | 27 +
133 dev-perl/Devel-Profiler/files/perl510.patch | 39 ++
134 dev-perl/Devel-Symdump/Devel-Symdump-2.07.ebuild | 20 +
135 .../Device-SerialPort-1.002.001.ebuild | 25 +
136 dev-perl/Email-Address/Email-Address-1.88.9.ebuild | 24 +
137 dev-perl/Email-Sender/Email-Sender-0.110.0.ebuild | 45 ++
138 dev-perl/Email-Valid/Email-Valid-0.184.ebuild | 23 +
139 .../files/0.181-disable-online-test.patch | 11 +
140 .../files/0.185-disable-online-test.patch | 10 +
141 dev-perl/Encode-Locale/Encode-Locale-1.20.0.ebuild | 17 +
142 dev-perl/Error/Error-0.170.160.ebuild | 23 +
143 dev-perl/Event-RPC/Event-RPC-0.90.ebuild | 21 +
144 dev-perl/Event/Event-1.09.ebuild | 19 +
145 dev-perl/Event/Event-1.10.ebuild | 19 +
146 dev-perl/FCGI/FCGI-0.67.ebuild | 19 +
147 dev-perl/FCGI/FCGI-0.71.ebuild | 17 +
148 dev-perl/File-Flat/File-Flat-1.00.ebuild | 26 +
149 dev-perl/File-NCopy/File-NCopy-0.34.ebuild | 17 +
150 dev-perl/File-RsyncP/File-RsyncP-0.68.ebuild | 25 +
151 dev-perl/File-Slurp/File-Slurp-9999.13.ebuild | 20 +
152 dev-perl/Finance-Quote/Finance-Quote-1.17.ebuild | 24 +
153 dev-perl/Finance-Quote/files/VWD.pm.diff | 11 +
154 dev-perl/GSSAPI/files/0.26-libs-parse.patch | 11 +
155 .../Gearman-Client-Async-0.94.ebuild | 20 +
156 .../Gearman-Server/Gearman-Server-1.09-r1.ebuild | 27 +
157 dev-perl/Gearman-Server/Gearman-Server-1.10.ebuild | 27 +
158 dev-perl/Gearman-Server/Gearman-Server-1.11.ebuild | 27 +
159 ...er-1.09-Use-saner-name-in-process-listing.patch | 33 +
160 dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 | 4 +
161 dev-perl/Gearman-Server/files/gearmand-init.d-1.09 | 26 +
162 dev-perl/Gearman/Gearman-1.09.ebuild | 21 +
163 dev-perl/Gearman/Gearman-1.10.ebuild | 21 +
164 dev-perl/Gearman/Gearman-1.11.ebuild | 21 +
165 .../files/fix_implicit_pointer_declaration.patch | 14 +
166 dev-perl/GraphViz/GraphViz-2.02.ebuild | 20 +
167 .../files/Gtk2-Notify-0.05-libnotify.patch | 114 ++++
168 .../files/Gtk2-Unique-0.05-implicit-pointer.patch | 13 +
169 dev-perl/HTML-Form/HTML-Form-6.0.0.ebuild | 24 +
170 dev-perl/HTML-Mason/HTML-Mason-1.42.ebuild | 59 ++
171 .../HTML-TableContentParser/files/0.13-test.patch | 74 ++
172 dev-perl/HTTP-Daemon/HTTP-Daemon-6.0.0.ebuild | 26 +
173 dev-perl/HTTP-Date/HTTP-Date-6.0.0.ebuild | 23 +
174 dev-perl/HTTP-Message/HTTP-Message-6.20.0.ebuild | 31 +
175 dev-perl/IO-AIO/IO-AIO-2.33.ebuild | 18 +
176 dev-perl/IO-AIO/IO-AIO-3.3.1.ebuild | 24 +
177 dev-perl/IO-AIO/IO-AIO-3.3.ebuild | 21 +
178 dev-perl/IO-AIO/IO-AIO-3.6.5.ebuild | 24 +
179 dev-perl/IO-AIO/IO-AIO-3.6.ebuild | 24 +
180 dev-perl/IO-AIO/IO-AIO-3.650.ebuild | 20 +
181 dev-perl/IO-AIO/IO-AIO-3.710.ebuild | 20 +
182 dev-perl/IO-Multiplex/IO-Multiplex-1.09.ebuild | 18 +
183 dev-perl/IO-Socket-IP/IO-Socket-IP-0.160.0.ebuild | 32 +
184 dev-perl/IO-Tty/IO-Tty-1.08.ebuild | 16 +
185 dev-perl/IP-Country/IP-Country-2.23.ebuild | 20 +
186 dev-perl/IPC-Run/IPC-Run-0.89.ebuild | 21 +
187 dev-perl/IPC-Run3/IPC-Run3-0.043.ebuild | 22 +
188 .../IPC-Shareable/files/fix_perl_5.10_compat.patch | 17 +
189 .../files/0.80.0-disable_autodetect.patch | 44 ++
190 dev-perl/Image-Scale/files/libpng-1.5-memcpy.patch | 11 +
191 dev-perl/Inline/Inline-0.44-r1.ebuild | 37 +
192 dev-perl/Inline/files/gtk2-patch.diff | 32 +
193 .../LWP-MediaTypes/LWP-MediaTypes-6.10.0.ebuild | 22 +
194 .../files/compatibility-with-POSIX-module.diff | 16 +
195 dev-perl/Log-Log4perl/Log-Log4perl-1.28.ebuild | 21 +
196 .../Log-TraceMessages/Log-TraceMessages-1.4.ebuild | 16 +
197 dev-perl/MIME-Types/MIME-Types-1.29.ebuild | 20 +
198 dev-perl/MIME-tools/MIME-tools-5.427.ebuild | 28 +
199 dev-perl/MIME-tools/MIME-tools-5.502.0.ebuild | 32 +
200 dev-perl/MLDBM/MLDBM-2.01.ebuild | 14 +
201 dev-perl/MP3-Tag/files/MP3-Tag-makefile.patch | 17 +
202 .../files/1.16-escape-at-for-perl-5.8.patch | 14 +
203 .../Mail-IMAPClient/files/2.2.9-skiptest.patch | 11 +
204 .../files/24_google_safebrowsing.cf | 18 +
205 .../files/init_google_safebrowsing.pre | 3 +
206 .../files/update_google_safebrowsing.cron | 5 +
207 .../files/update_google_safebrowsing.sh | 21 +
208 dev-perl/MailTools/MailTools-2.06.ebuild | 21 +
209 .../Math-BigInt-GMP/Math-BigInt-GMP-1.24.ebuild | 19 +
210 .../Math-BigInt-GMP/Math-BigInt-GMP-1.360.0.ebuild | 21 +
211 dev-perl/Math-Derivative/files/0.01-pod-1.diff | 15 +
212 dev-perl/Math-Spline/files/0.01-pod.diff | 10 +
213 .../MogileFS-Client/MogileFS-Client-1.08.ebuild | 22 +
214 .../MogileFS-Client/MogileFS-Client-1.09.ebuild | 22 +
215 .../MogileFS-Client/MogileFS-Client-1.10.ebuild | 22 +
216 .../MogileFS-Client/MogileFS-Client-1.11.ebuild | 22 +
217 .../MogileFS-Client/MogileFS-Client-1.12.ebuild | 22 +
218 .../MogileFS-Client/MogileFS-Client-1.13.ebuild | 22 +
219 .../MogileFS-Client/MogileFS-Client-1.14.ebuild | 22 +
220 dev-perl/MogileFS-Utils/MogileFS-Utils-2.13.ebuild | 19 +
221 dev-perl/MogileFS-Utils/MogileFS-Utils-2.14.ebuild | 19 +
222 dev-perl/MogileFS-Utils/MogileFS-Utils-2.15.ebuild | 19 +
223 dev-perl/MogileFS-Utils/MogileFS-Utils-2.16.ebuild | 18 +
224 dev-perl/MogileFS-Utils/MogileFS-Utils-2.17.ebuild | 18 +
225 dev-perl/MogileFS-Utils/MogileFS-Utils-2.18.ebuild | 18 +
226 dev-perl/MogileFS-Utils/MogileFS-Utils-2.19.ebuild | 18 +
227 dev-perl/MogileFS-Utils/MogileFS-Utils-2.20.ebuild | 18 +
228 dev-perl/Moo/Moo-0.91.9.ebuild | 30 +
229 dev-perl/Moose/Moose-1.240.ebuild | 38 ++
230 dev-perl/Mouse/files/0.64-ppport.patch | 27 +
231 dev-perl/Net-CIDR-Lite/Net-CIDR-Lite-0.20.ebuild | 14 +
232 dev-perl/Net-DNS/files/Net-DNS-0.64-ar.patch | 13 +
233 dev-perl/Net-DNS/files/Net-DNS-0.68-ar.patch | 16 +
234 dev-perl/Net-IP/files/initip-0.patch | 12 +
235 .../files/0.120.0-multiple-attachments-fix.patch | 12 +
236 dev-perl/Net-Telnet-Cisco/files/1.10-warning.patch | 15 +
237 dev-perl/Net-XMPP/files/1.02-defined.patch | 14 +
238 dev-perl/NetAddr-IP/NetAddr-IP-4.028.ebuild | 18 +
239 dev-perl/Number-Format/Number-Format-1.52.ebuild | 18 +
240 dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch | 50 ++
241 dev-perl/PDL/PDL-2.4.3-r1.ebuild | 92 +++
242 dev-perl/PDL/PDL-2.4.7.ebuild | 92 +++
243 dev-perl/PDL/files/PDL-2.4.11-fortran.patch | 22 +
244 dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch | 36 +
245 dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch | 20 +
246 dev-perl/PDL/files/PDL-2.4.3-PIC.patch | 11 +
247 dev-perl/PDL/files/PDL-2.4.4-PIC.patch | 22 +
248 dev-perl/PDL/files/perldl.conf | 110 +++
249 .../POE-Test-Loops/POE-Test-Loops-1.035.ebuild | 16 +
250 dev-perl/POE/POE-1.289.ebuild | 44 ++
251 dev-perl/Package-Stash/Package-Stash-0.250.ebuild | 34 +
252 dev-perl/PadWalker/PadWalker-1.940.0.ebuild | 17 +
253 .../Parse-RecDescent-1.965.1.ebuild | 28 +
254 dev-perl/Parse-Syslog/Parse-Syslog-1.09.ebuild | 18 +
255 dev-perl/Path-Class/Path-Class-0.21.ebuild | 21 +
256 ...al-1.58-Use-saner-name-in-process-listing.patch | 34 +
257 dev-perl/Perlbal/files/perlbal_conf.d_1.58 | 5 +
258 dev-perl/Perlbal/files/perlbal_init.d_1.58 | 25 +
259 .../files/0.45-fix-format-errors.patch | 30 +
260 .../Proc-ProcessTable/files/0.45-pthread.patch | 15 +
261 .../amd64_canonicalize_file_name_definition.patch | 13 +
262 dev-perl/Role-Tiny/Role-Tiny-1.1.3.ebuild | 29 +
263 dev-perl/SOAP-Lite/files/SOAP-Lite-0.60.a.patch | 12 +
264 dev-perl/SOAP-Lite/files/SOAP-Lite-0.710.08.patch | 12 +
265 .../SOAP-Lite/files/SOAP-Lite-0.712_sysread.patch | 38 ++
266 dev-perl/SQL-Abstract/SQL-Abstract-1.63.ebuild | 24 +
267 dev-perl/SQL-Statement/SQL-Statement-1.31.ebuild | 34 +
268 dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild | 33 +
269 dev-perl/Socket6/Socket6-0.20.ebuild | 21 +
270 .../Spreadsheet-ParseExcel-0.57.ebuild | 29 +
271 .../Sys-Statistics-Linux-0.49.ebuild | 22 +
272 dev-perl/Template-Latex/files/Makefile.patch | 15 +
273 .../Template-Toolkit/Template-Toolkit-2.22.ebuild | 46 ++
274 .../files/bug-144689-branch-2.17.patch | 13 +
275 dev-perl/Test-Class/Test-Class-0.370.0.ebuild | 24 +
276 dev-perl/Test-Exception/Test-Exception-0.27.ebuild | 22 +
277 dev-perl/Test-Inline/Test-Inline-2.201.ebuild | 31 +
278 dev-perl/Test-Inline/Test-Inline-2.208.ebuild | 33 +
279 dev-perl/Test-Output/Test-Output-0.16.ebuild | 24 +
280 .../Test-WWW-Mechanize-1.28.ebuild | 25 +
281 dev-perl/Test-Warn/Test-Warn-0.21.ebuild | 25 +
282 dev-perl/Test-Warn/Test-Warn-0.230.0.ebuild | 24 +
283 .../Text-Kakasi/files/Text-Kakasi-1.05-gentoo.diff | 13 +
284 .../Text-Unaccent/files/text-unaccent_size_t.diff | 27 +
285 dev-perl/TimeDate/TimeDate-1.16.ebuild | 16 +
286 dev-perl/Tk-CursorControl/files/0.4-demo.patch | 12 +
287 dev-perl/Tk-TableMatrix/files/pTk-1.22.patch | 18 +
288 dev-perl/Tree-DAG_Node/Tree-DAG_Node-1.05.ebuild | 18 +
289 dev-perl/URI/URI-1.55.ebuild | 21 +
290 dev-perl/Unicode-Map/files/0.112-no-scripts.patch | 15 +
291 dev-perl/Unicode-Map8/Unicode-Map8-0.12.ebuild | 19 +
292 .../Variable-Magic/Variable-Magic-0.500.0.ebuild | 22 +
293 dev-perl/WWW-Dict-Leo-Org/files/1.34-umlaut.patch | 41 ++
294 dev-perl/XML-GDOME/files/0.86-includes.patch | 22 +
295 dev-perl/XML-Mini/XML-Mini-1.2.8.ebuild | 19 +
296 dev-perl/XML-SAX/files/encodings.patch | 11 +
297 dev-perl/XML-Stream/XML-Stream-1.22.ebuild | 22 +
298 dev-perl/YAML-Syck/YAML-Syck-1.05.ebuild | 18 +
299 dev-perl/cache-mmap/cache-mmap-0.09.ebuild | 21 +
300 dev-perl/cdk-perl/cdk-perl-20031210.ebuild | 25 +
301 dev-perl/crypt-dsa/crypt-dsa-1.16.ebuild | 30 +
302 .../crypt-dsa/files/crypt-dsa-1.16-dsaparam.patch | 14 +
303 dev-perl/gnome2-gconf/gnome2-gconf-1.043.ebuild | 27 +
304 dev-perl/gtk2-perl/gtk2-perl-1.222.ebuild | 31 +
305 dev-perl/gtk2-spell/gtk2-spell-1.30.0.ebuild | 40 ++
306 dev-perl/libwww-perl/files/ca-certs.patch | 30 +
307 dev-perl/log-dispatch/log-dispatch-2.290.0.ebuild | 24 +
308 dev-perl/math-pari/math-pari-2.01080604.ebuild | 60 ++
309 .../mogilefs-server/files/mogautomount-init.d-2.50 | 22 +
310 .../mogilefs-server/files/mogilefsd-conf.d-2.16 | 4 +
311 .../mogilefs-server/files/mogilefsd-init.d-2.16 | 28 +
312 dev-perl/mogilefs-server/files/mogilefsd.conf-2.30 | 36 +
313 .../mogilefs-server/files/mogstored-conf.d-2.30 | 4 +
314 .../mogilefs-server/files/mogstored-init.d-2.30 | 26 +
315 .../mogilefs-server/files/mogstored-init.d-2.50 | 27 +
316 dev-perl/mogilefs-server/files/mogstored.conf-2.16 | 23 +
317 .../mogilefs-server/mogilefs-server-2.37.ebuild | 98 +++
318 .../mogilefs-server/mogilefs-server-2.43.ebuild | 99 +++
319 .../mogilefs-server/mogilefs-server-2.46.ebuild | 99 +++
320 .../mogilefs-server/mogilefs-server-2.50.ebuild | 101 +++
321 .../mogilefs-server/mogilefs-server-2.51.ebuild | 101 +++
322 .../mogilefs-server/mogilefs-server-2.53.ebuild | 101 +++
323 dev-perl/net-server/net-server-0.97.ebuild | 23 +
324 dev-perl/perl-ldap/perl-ldap-0.400.100.ebuild | 26 +
325 dev-perl/perl-tk/files/804.028-path.patch | 24 +
326 dev-perl/perl-tk/files/804.029-X11_XLIB_H.patch | 19 +
327 dev-perl/perl-tk/files/xorg.patch | 50 ++
328 dev-perl/yaml/yaml-0.71.ebuild | 19 +
329 dev-vcs/git/files/50git-gentoo.el | 13 +
330 dev-vcs/git/files/git-1.6.6.1-interix6.patch | 17 +
331 dev-vcs/git/files/git-1.7.1-interix.patch | 100 +++
332 dev-vcs/git/files/git-1.7.10.2-optional-cvs.patch | 375 +++++++++++
333 dev-vcs/git/files/git-1.7.11-optional-cvs.patch | 400 +++++++++++
334 .../git/files/git-1.7.2-always-install-js.patch | 31 +
335 dev-vcs/git/files/git-1.7.3.2-interix.patch | 90 +++
336 .../git/files/git-1.7.3.4-avoid-shell-issues.patch | 26 +
337 .../files/git-1.7.3.4-fix-perl-test-prereq.patch | 37 +
338 dev-vcs/git/files/git-1.7.3.5-optional-cvs.patch | 366 ++++++++++
339 dev-vcs/git/files/git-1.7.5-interix.patch | 43 ++
340 dev-vcs/git/files/git-1.7.6-interix.patch | 29 +
341 .../git-1.7.8-git-svn-1.7-canonical-path.patch | 63 ++
342 dev-vcs/git/files/git-daemon.confd | 19 +
343 dev-vcs/git/files/git-daemon.initd | 30 +
344 dev-vcs/git/files/git-daemon.xinetd | 13 +
345 dev-vcs/git/git-1.6.4.5.ebuild | 381 +++++++++++
346 dev-vcs/git/git-1.7.2.5.ebuild | 470 +++++++++++++
347 dev-vcs/git/git-1.7.3.4-r1.ebuild | 490 ++++++++++++++
348 eclass/vdr-plugin-2.eclass.~1~ | 614 +++++++++++++++++
349 eclass/xorg-2.eclass | 14 +
350 media-gfx/freewrl/Manifest | 5 +
351 .../files/freewrl-1.22.13-mozjs187-config.patch | 10 +
352 media-gfx/freewrl/freewrl-1.22.13.ebuild | 135 ++++
353 .../files/graphite2-1.0.2-no_harfbuzz_tests.patch | 12 +
354 .../files/graphite2-1.0.3-no-test-binaries.patch | 9 +
355 .../files/graphite2-1.1.0-includes-libs-perl.patch | 13 +
356 .../files/graphite2-fix_wrong_linker_opts.patch | 11 +
357 media-libs/exiftool/exiftool-8.50.ebuild | 26 +
358 media-libs/exiftool/exiftool-8.60.ebuild | 26 +
359 media-libs/exiftool/exiftool-8.65.ebuild | 26 +
360 media-libs/exiftool/exiftool-8.75.ebuild | 26 +
361 media-tv/dvbstreamer/dvbstreamer-1.1-r1.ebuild | 40 ++
362 .../dvbstreamer/files/dvbstreamer-1.1-Werror.patch | 36 +
363 .../files/dvbstreamer-1.1-libtool.patch | 71 ++
364 .../dvbstreamer-2.0.0_rc1-evloop-configure.patch | 11 +
365 media-video/gxine/Manifest | 9 +
366 .../gxine/files/gxine-0.5.905-desktop.patch | 12 +
367 .../files/gxine-0.5.905-fix-nspr-useage.patch | 11 +
368 media-video/gxine/files/gxine-0.5.906-endif.patch | 14 +
369 .../gxine/files/gxine-0.5.907-glib-2.31.patch | 34 +
370 .../gxine/files/gxine-0.5.907-mozjs187.patch | 21 +
371 media-video/gxine/gxine-0.5.907.ebuild | 101 +++
372 net-print/cups/.#Manifest.1.577 | 36 +
373 net-print/cups/.#cups-1.5.2-r4.ebuild.1.13 | 302 +++++++++
374 net-print/cups/.#cups-1.5.3.ebuild.1.4 | 311 +++++++++
375 net-print/cups/cups-1.4.8-r1.ebuild | 268 ++++++++
376 net-print/cups/cups-1.4.8-r23.ebuild | 311 +++++++++
377 .../cups/files/cups-1.4.0-backend-https.patch | 11 +
378 net-print/cups/files/cups-1.4.2-str3200.patch | 43 ++
379 .../files/cups-1.4.4-dont-compress-manpages.patch | 20 +
380 .../cups/files/cups-1.4.4-fix-install-perms.patch | 22 +
381 net-print/cups/files/cups-1.4.4-nostrip.patch | 14 +
382 .../cups/files/cups-1.4.4-perl-includes.patch | 12 +
383 net-print/cups/files/cups-1.4.4-php-destdir.patch | 21 +
384 net-print/cups/files/cups-1.4.6-force-gnutls.patch | 93 +++
385 .../cups/files/cups-1.4.6-serialize-gnutls.patch | 113 ++++
386 .../cups/files/cups-1.4.8-CVE-2011-3170.patch | 37 +
387 net-print/cups/files/cups-1.4.8-largeimage.patch | 18 +
388 .../cups/files/cups-1.5.0-systemd-socket.patch | 396 +++++++++++
389 net-print/cups/files/cups-1.5.2-browsing.patch | 13 +
390 net-print/cups/files/cups-1.5.2-linkperl.patch | 12 +
391 net-print/cups/files/cups-1.5.2-threads.patch | 21 +
392 net-print/cups/files/cups-1.5.2-threads2.patch | 111 +++
393 .../cups/files/cups-1.5.3-fix-install-perms.patch | 24 +
394 .../files/cups-1.6.0-dont-compress-manpages.patch | 19 +
395 .../cups/files/cups-1.6.0-fix-install-perms.patch | 25 +
396 net-print/cups/files/cupsd.init.d | 22 +
397 net-print/cups/files/pdftops-1.20.gentoo | 340 ++++++++++
398 perl-core/Archive-Tar/Archive-Tar-1.54.ebuild | 22 +
399 perl-core/Archive-Tar/Archive-Tar-1.72.ebuild | 22 +
400 perl-core/Archive-Tar/Archive-Tar-1.760.0.ebuild | 23 +
401 .../Attribute-Handlers-0.88.ebuild | 16 +
402 perl-core/AutoLoader/AutoLoader-5.710.0.ebuild | 17 +
403 perl-core/CGI/CGI-3.510.ebuild | 21 +
404 perl-core/CGI/CGI-3.520.ebuild | 21 +
405 perl-core/CGI/files/3.47-fcgi.patch | 24 +
406 .../CPAN-Meta-YAML/CPAN-Meta-YAML-0.3.0.ebuild | 17 +
407 perl-core/CPAN-Meta/CPAN-Meta-2.110.440.ebuild | 31 +
408 perl-core/CPAN-Meta/CPAN-Meta-2.110.580.ebuild | 31 +
409 .../Compress-Raw-Bzip2-2.024.ebuild | 25 +
410 .../Compress-Raw-Bzip2-2.33.ebuild | 32 +
411 .../Compress-Raw-Zlib-2.024.ebuild | 34 +
412 .../Compress-Raw-Zlib-2.33.ebuild | 34 +
413 perl-core/DB_File/DB_File-1.820.ebuild | 26 +
414 perl-core/DB_File/DB_File-1.821.ebuild | 29 +
415 perl-core/DB_File/DB_File-1.822.0.ebuild | 27 +
416 perl-core/DB_File/files/DB_File-MakeMaker.patch | 11 +
417 perl-core/DB_File/files/config.in | 97 +++
418 perl-core/Digest-MD5/Digest-MD5-2.39.ebuild | 20 +
419 perl-core/Digest-MD5/Digest-MD5-2.510.0.ebuild | 21 +
420 perl-core/Digest-SHA/Digest-SHA-5.47.ebuild | 17 +
421 perl-core/Digest-SHA/Digest-SHA-5.48.ebuild | 17 +
422 perl-core/Digest-SHA/Digest-SHA-5.500.ebuild | 17 +
423 perl-core/Digest-SHA/Digest-SHA-5.600.0.ebuild | 17 +
424 perl-core/Digest-SHA/Digest-SHA-5.610.0.ebuild | 17 +
425 perl-core/Encode/Encode-2.40-r1.ebuild | 19 +
426 perl-core/Encode/Encode-2.420.0.ebuild | 20 +
427 perl-core/Encode/files/gentoo_enc2xs.diff | 36 +
428 .../ExtUtils-CBuilder-0.26.03.ebuild | 23 +
429 .../ExtUtils-CBuilder-0.27.03.ebuild | 19 +
430 .../ExtUtils-MakeMaker-6.56-r1.ebuild | 26 +
431 .../files/6.56-delete_packlist_podlocal.patch | 79 +++
432 .../ExtUtils-MakeMaker/files/6.58-RUNPATH.patch | 16 +
433 .../files/6.58-delete_packlist_podlocal.patch | 76 +++
434 .../files/6.62-delete_packlist_podlocal.patch | 76 +++
435 .../ExtUtils-MakeMaker/files/RUNPATH-6.54.patch | 17 +
436 .../ExtUtils-Manifest-1.580.0.ebuild | 18 +
437 .../ExtUtils-ParseXS-2.22.03.ebuild | 24 +
438 .../ExtUtils-ParseXS-2.22.05.ebuild | 23 +
439 .../ExtUtils-ParseXS-2.22.06.ebuild | 24 +
440 perl-core/Filter/Filter-1.37.ebuild | 16 +
441 perl-core/IO-Compress/IO-Compress-2.024.ebuild | 26 +
442 perl-core/IO-Compress/IO-Compress-2.33.ebuild | 27 +
443 perl-core/IPC-Cmd/IPC-Cmd-0.680.ebuild | 22 +
444 perl-core/IPC-Cmd/IPC-Cmd-0.700.0.ebuild | 22 +
445 perl-core/JSON-PP/JSON-PP-2.271.40.ebuild | 19 +
446 perl-core/JSON-PP/JSON-PP-2.271.50.ebuild | 19 +
447 .../Math-BigInt-FastCalc-0.19.ebuild | 19 +
448 .../Math-BigInt-FastCalc-0.24.ebuild | 20 +
449 .../Math-BigInt-FastCalc-0.251.ebuild | 21 +
450 .../Math-BigInt-FastCalc-0.260.ebuild | 21 +
451 .../Math-BigInt-FastCalc-0.270.0.ebuild | 21 +
452 .../Math-BigInt-FastCalc-0.280.0.ebuild | 21 +
453 perl-core/Math-BigInt/Math-BigInt-1.89.ebuild | 23 +
454 perl-core/Math-BigInt/Math-BigInt-1.99.ebuild | 23 +
455 perl-core/Math-BigInt/Math-BigInt-1.991.ebuild | 24 +
456 perl-core/Math-BigInt/Math-BigInt-1.992.ebuild | 24 +
457 perl-core/Math-BigInt/Math-BigInt-1.993.0.ebuild | 24 +
458 perl-core/Memoize/Memoize-1.01.ebuild | 19 +
459 perl-core/Memoize/Memoize-1.20.0.ebuild | 17 +
460 .../Module-Build/Module-Build-0.34.0201.ebuild | 28 +
461 perl-core/Module-Build/Module-Build-0.36.07.ebuild | 26 +
462 .../Module-Build/Module-Build-0.362.400.ebuild | 29 +
463 perl-core/Module-Build/Module-Build-0.380.0.ebuild | 30 +
464 .../Module-CoreList/Module-CoreList-2.38.ebuild | 19 +
465 .../Module-CoreList/Module-CoreList-2.41.ebuild | 19 +
466 .../Module-CoreList/Module-CoreList-2.430.ebuild | 20 +
467 .../Module-CoreList/Module-CoreList-2.440.ebuild | 20 +
468 .../Module-CoreList/Module-CoreList-2.450.ebuild | 20 +
469 .../Module-CoreList/Module-CoreList-2.460.0.ebuild | 20 +
470 .../Module-CoreList/Module-CoreList-2.490.0.ebuild | 20 +
471 .../Module-Load-Conditional-0.400.ebuild | 24 +
472 .../Module-Load-Conditional-0.440.0.ebuild | 24 +
473 perl-core/Module-Load/Module-Load-0.180.0.ebuild | 17 +
474 .../Module-Loaded/Module-Loaded-0.60.0.ebuild | 17 +
475 .../Module-Metadata/Module-Metadata-1.0.3.ebuild | 20 +
476 .../Module-Metadata/Module-Metadata-1.0.4.ebuild | 20 +
477 .../Module-Pluggable-3.900.0.ebuild | 20 +
478 perl-core/Params-Check/Params-Check-0.26.ebuild | 16 +
479 perl-core/Params-Check/Params-Check-0.280.0.ebuild | 20 +
480 .../Parse-CPAN-Meta/Parse-CPAN-Meta-1.40.ebuild | 16 +
481 .../Parse-CPAN-Meta/Parse-CPAN-Meta-1.420.ebuild | 24 +
482 .../Parse-CPAN-Meta-1.440.100.ebuild | 23 +
483 .../Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.ebuild | 24 +
484 perl-core/Pod-Simple/Pod-Simple-3.14.ebuild | 19 +
485 perl-core/Pod-Simple/Pod-Simple-3.15.ebuild | 19 +
486 perl-core/Pod-Simple/Pod-Simple-3.160.0.ebuild | 20 +
487 perl-core/PodParser/PodParser-1.380.0.ebuild | 21 +
488 perl-core/Safe/Safe-2.27.ebuild | 16 +
489 perl-core/Safe/Safe-2.290.0.ebuild | 17 +
490 .../Scalar-List-Utils-1.230.0.ebuild | 17 +
491 perl-core/Storable/Storable-2.20.ebuild | 16 +
492 perl-core/Storable/Storable-2.250.ebuild | 17 +
493 perl-core/Sys-Syslog/Sys-Syslog-0.270.0.ebuild | 19 +
494 .../Term-ANSIColor/Term-ANSIColor-3.0.0.ebuild | 22 +
495 perl-core/Test-Harness/Test-Harness-3.17.ebuild | 19 +
496 perl-core/Test-Harness/Test-Harness-3.22.ebuild | 18 +
497 perl-core/Test-Harness/Test-Harness-3.230.0.ebuild | 19 +
498 perl-core/Test-Harness/files/3.17-taint.patch | 19 +
499 perl-core/Test/Test-1.25.ebuild | 17 +
500 perl-core/Time-HiRes/Time-HiRes-1.97.19.ebuild | 22 +
501 perl-core/Time-HiRes/Time-HiRes-1.97.21.ebuild | 19 +
502 .../Version-Requirements-0.101.20.ebuild | 23 +
503 perl-core/XSLoader/XSLoader-0.10.ebuild | 17 +
504 .../files/91152fc1_rt54132_version081.patch | 27 +
505 perl-core/bignum/bignum-0.23.ebuild | 23 +
506 perl-core/bignum/bignum-0.24.ebuild | 22 +
507 perl-core/bignum/bignum-0.25.ebuild | 22 +
508 perl-core/digest-base/digest-base-1.160.0.ebuild | 22 +
509 perl-core/locale-maketext/files/1.13-defined.patch | 11 +
510 .../locale-maketext/locale-maketext-1.13-r1.ebuild | 23 +
511 .../locale-maketext/locale-maketext-1.17.ebuild | 23 +
512 perl-core/podlators/podlators-2.2.2.ebuild | 20 +
513 perl-core/podlators/podlators-2.3.0.ebuild | 20 +
514 perl-core/podlators/podlators-2.3.1.ebuild | 20 +
515 perl-core/podlators/podlators-2.4.0.ebuild | 20 +
516 .../threads-shared/threads-shared-1.32.ebuild | 20 +
517 .../threads-shared/threads-shared-1.33.ebuild | 20 +
518 .../threads-shared/threads-shared-1.34.ebuild | 20 +
519 .../threads-shared/threads-shared-1.360.ebuild | 21 +
520 perl-core/threads/threads-1.75.ebuild | 19 +
521 perl-core/threads/threads-1.76.ebuild | 19 +
522 perl-core/threads/threads-1.77.ebuild | 19 +
523 perl-core/threads/threads-1.79.ebuild | 19 +
524 perl-core/threads/threads-1.81.ebuild | 19 +
525 perl-core/threads/threads-1.820.ebuild | 20 +
526 perl-core/version/version-0.82.ebuild | 23 +
527 perl-core/version/version-0.880.0.ebuild | 17 +
528 profiles/base/package.keywords | 1 +
529 sys-auth/polkit/.#Manifest.1.91 | 8 +
530 sys-auth/polkit/.#Manifest.1.93 | 9 +
531 sys-auth/polkit/.#polkit-0.106-r2.ebuild.1.3 | 108 +++
532 sys-auth/polkit/Manifest | 8 +
533 sys-auth/polkit/polkit-0.104-r1.ebuild | 109 +++
534 sys-auth/polkit/polkit-0.105.ebuild | 80 +++
535 sys-auth/polkit/polkit-0.106-r5.ebuild | 108 +++
536 www-client/elinks/Manifest | 17 +
537 www-client/elinks/elinks-0.11.7.ebuild | 140 ++++
538 www-client/elinks/elinks-0.12_pre5-r2.ebuild | 156 +++++
539 .../files/elinks-0.10.1-utf_8_io-default.patch | 11 +
540 .../files/elinks-0.10.4.conf-syscharset.diff | 79 +++
541 .../elinks/files/elinks-0.11.2-lua-5.1.patch | 16 +
542 www-client/elinks/files/elinks-0.11.2-lua-5.patch | 60 ++
543 www-client/elinks/files/elinks-0.11.3-lua-5.patch | 45 ++
544 .../elinks/files/elinks-0.11.5-makefile.patch | 30 +
545 .../files/elinks-0.12_pre5-compilation-fix.patch | 12 +
546 .../files/elinks-0.12_pre5-sm185-jsval-fixes.patch | 124 ++++
547 .../elinks-0.12pre5-spidermonkey-callback.patch | 12 +
548 x11-base/xorg-server/Manifest | 28 +
549 x11-base/xorg-server/files/xdm-setup.initd-1 | 14 +
550 x11-base/xorg-server/files/xdm.confd-3 | 16 +
551 x11-base/xorg-server/files/xdm.confd-4 | 10 +
552 x11-base/xorg-server/files/xdm.initd-3 | 218 ++++++
553 x11-base/xorg-server/files/xdm.initd-5 | 219 ++++++
554 x11-base/xorg-server/files/xdm.initd-8 | 216 ++++++
555 .../files/xorg-cve-2011-4028+4029.patch | 22 +
556 ...org-server-1.11-disable-tests-without-ddx.patch | 64 ++
557 ...rver-1.11-dix-pointerrootwin-send-focusin.patch | 27 +
558 .../xorg-server-1.11-dix-send-focus-events.patch | 48 ++
559 .../files/xorg-server-1.11-log-format-fix.patch | 441 ++++++++++++
560 .../files/xorg-server-1.12-disable-acpi.patch | 11 +
561 ...rg-server-1.12-xf86edidmodes-array-bounds.patch | 35 +
562 .../files/xorg-server-1.9-nouveau-default.patch | 30 +
563 .../files/xorg-server-disable-acpi.patch | 31 +
564 .../xorg-server/files/xorg-server-glapi_c.patch | 78 +++
565 x11-base/xorg-server/files/xorg-sets.conf | 6 +
566 x11-base/xorg-server/xorg-server-1.10.6-r1.ebuild | 248 +++++++
567 x11-base/xorg-server/xorg-server-1.11.4-r1.ebuild | 251 +++++++
568 x11-base/xorg-server/xorg-server-1.12.2.ebuild | 243 +++++++
569 x11-base/xorg-server/xorg-server-1.9.5-r1.ebuild | 270 ++++++++
570 x11-libs/cairo/cairo-1.10.2-r1.ebuild | 158 +++++
571 x11-libs/cairo/cairo-1.10.2-r2.ebuild | 161 +++++
572 x11-libs/cairo/cairo-1.8.10.ebuild | 102 +++
573 x11-libs/cairo/cairo-9999.ebuild | 136 ++++
574 .../cairo/files/cairo-1.10.0-buggy_gradients.patch | 17 +
575 x11-libs/cairo/files/cairo-1.10.2-interix.patch | 36 +
576 x11-libs/cairo/files/cairo-1.10.2-qt-surface.patch | 55 ++
577 .../files/cairo-1.2.4-lcd-cleartype-like.diff | 275 ++++++++
578 x11-libs/cairo/files/cairo-1.8.10-libpng14.patch | 11 +
579 x11-libs/cairo/files/cairo-1.8.8-interix.patch | 16 +
580 x11-libs/libXmu/Manifest | 6 +
581 x11-libs/libXmu/libXmu-1.1.0.ebuild | 27 +
582 x11-libs/libXmu/libXmu-1.1.1.ebuild | 30 +
583 x11-libs/libxcb/files/libxcb-1.7-interix.patch | 103 +++
584 .../libxcb/files/libxcb-1.8-waitall-hang.patch | 54 ++
585 x11-libs/libxcb/files/xcb-rebuilder.sh | 68 ++
586 x11-libs/libxcb/libxcb-1.7.ebuild | 38 ++
587 x11-libs/libxcb/libxcb-1.8-r1.ebuild | 39 ++
588 x11-libs/libxcb/libxcb-1.8.ebuild | 35 +
589 .../files/startup-notification-0.10-tests.patch | 14 +
590 x11-libs/xcb-util/xcb-util-0.3.6.ebuild | 34 +
591 580 files changed, 28393 insertions(+), 29 deletions(-)
592
593 diff --git a/app-accessibility/edbrowse/Manifest b/app-accessibility/edbrowse/Manifest
594 new file mode 100644
595 index 0000000..6a67d0e
596 --- /dev/null
597 +++ b/app-accessibility/edbrowse/Manifest
598 @@ -0,0 +1,7 @@
599 +AUX edbrowse-3.4.7-fix-makefile.patch 406 RMD160 e35ee9777ddb988064bc34d7704457b3e092dddf SHA1 985528fdbb7d29469794f6871d1e45b07f40d5ed SHA256 0f3976650537658b81a8302346fa225fd6e5e13a126e5324fb6cc4062ffcd7e0
600 +DIST edbrowse-3.4.7.zip 719586 RMD160 baa0bf1c3cb4320aaee3c2c556bc910ca5502a71 SHA1 57f1dbfa2226e5fa8b715498dcd1f699794dc5b0 SHA256 488d8a02b4480f1474686dfa99058b7f2f36c1d4eb1942ee79471aa8327328fe
601 +DIST edbrowse-3.4.8.zip 725791 RMD160 9466b6e1946a55cc97bd8c7abc670191261b1a41 SHA1 571046b078a4ffbce5952a31e29fc66a8ad02dfc SHA256 b138381a134e8b00a183305ff227bb7fc97d55a2ee5a787499e191445f2d8977
602 +EBUILD edbrowse-3.4.7.ebuild 1419 RMD160 9a3c75c4a5357e4152f4602c1a0f6dfe4c118de4 SHA1 be41076c1f3462c9bb34e15ebbe3745fb179c443 SHA256 df2a96484aba871be62ed084f74dd87208811ea9e46b33ba91554cbc73db2107
603 +EBUILD edbrowse-3.4.8.ebuild 1555 RMD160 985f38b0782495a79ba82f445823fbe65152938b SHA1 e86c849657deacf98cf1167cbc56ba3128eab3f2 SHA256 d21ef2849db5d8a01837bef4e00c34ed31fc74341ac9c8b5e189c070997d5fc4
604 +MISC ChangeLog 2403 RMD160 b7473acdffef352d2f9e35966cca78aa6b5677a8 SHA1 c5409cb86e5113a01ad60b8ffe59e23af9560222 SHA256 13410f6da9226f0ff846770d8afb1efe539bbec981d7064e104b950643cbb51a
605 +MISC metadata.xml 295 RMD160 9aaf4f6029a98d7cb5b7856117556c722a9a92ef SHA1 a0d281df73f09163fd9e4e5714fe49b7a9e5c03f SHA256 20ab62eb1ca3b77142f2e3d833521693654f3bcc91eed756233c131afec727ab
606
607 diff --git a/app-accessibility/edbrowse/edbrowse-3.4.7.ebuild b/app-accessibility/edbrowse/edbrowse-3.4.7.ebuild
608 new file mode 100644
609 index 0000000..62e0d32
610 --- /dev/null
611 +++ b/app-accessibility/edbrowse/edbrowse-3.4.7.ebuild
612 @@ -0,0 +1,61 @@
613 +# Copyright 1999-2011 Gentoo Foundation
614 +# Distributed under the terms of the GNU General Public License v2
615 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/edbrowse/edbrowse-3.4.7.ebuild,v 1.3 2011/11/15 16:35:58 axs Exp $
616 +
617 +EAPI="4"
618 +inherit eutils
619 +
620 +DESCRIPTION="editor, browser, and mail client using the /bin/ed interface"
621 +HOMEPAGE="http://the-brannons.com/edbrowse/"
622 +SRC_URI="http://the-brannons.com/${PN}/${P}.zip"
623 +LICENSE="GPL-2"
624 +SLOT="0"
625 +KEYWORDS="~amd64 ~x86"
626 +IUSE="linguas_fr odbc"
627 +COMMON_DEPEND="<dev-lang/spidermonkey-1.8.5
628 + >=sys-libs/readline-6.0
629 + >=net-misc/curl-7.17.0
630 + >=dev-libs/libpcre-7.8
631 + >=dev-libs/openssl-0.9.8j
632 + odbc? ( dev-db/unixODBC )"
633 +DEPEND="${COMMON_DEPEND}
634 + app-arch/unzip"
635 +RDEPEND="${COMMON_DEPEND}"
636 +
637 +src_prepare() {
638 + epatch "${FILESDIR}"/${P}-fix-makefile.patch
639 +}
640 +
641 +src_compile() {
642 + local JSLIB=-ljs
643 +
644 + if has_version "=dev-lang/spidermonkey-1.8.2*"; then
645 + JSLIB=-lmozjs
646 + fi
647 +
648 + emake prefix=/usr JSLIB="${JSLIB}" STRIP=''
649 + if use odbc; then
650 + # Top-level makefile doesn't have this target.
651 + cd src
652 + emake prefix=/usr STRIP='' edbrowseodbc
653 + cd ..
654 + fi
655 +}
656 +
657 +src_install() {
658 + cd src
659 + emake prefix=/usr DESTDIR="${D}" install
660 + if use odbc; then
661 + dobin edbrowseodbc
662 + fi
663 + cd ..
664 + dodoc CHANGES README todo
665 + cd doc
666 + dobin setup.ebrc
667 + dohtml usersguide.html philosophy.html
668 + dodoc sample.ebrc
669 + if use linguas_fr; then
670 + dohtml usersguide_fr.html philosophy_fr.html
671 + dodoc sample_fr.ebrc
672 + fi
673 +}
674
675 diff --git a/app-accessibility/edbrowse/edbrowse-3.4.8.ebuild b/app-accessibility/edbrowse/edbrowse-3.4.8.ebuild
676 new file mode 100644
677 index 0000000..48c29ab
678 --- /dev/null
679 +++ b/app-accessibility/edbrowse/edbrowse-3.4.8.ebuild
680 @@ -0,0 +1,58 @@
681 +# Copyright 1999-2012 Gentoo Foundation
682 +# Distributed under the terms of the GNU General Public License v2
683 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/edbrowse/edbrowse-3.4.8.ebuild,v 1.2 2012/06/19 17:45:19 axs Exp $
684 +
685 +EAPI="4-slot-abi"
686 +inherit eutils
687 +
688 +DESCRIPTION="editor, browser, and mail client using the /bin/ed interface"
689 +HOMEPAGE="http://the-brannons.com/edbrowse/"
690 +SRC_URI="http://the-brannons.com/${PN}/${P}.zip"
691 +LICENSE="GPL-2"
692 +SLOT="0"
693 +KEYWORDS="~amd64 ~x86"
694 +IUSE="linguas_fr odbc"
695 +COMMON_DEPEND=">=dev-lang/spidermonkey-1.8.5:=
696 + >=sys-libs/readline-6.0
697 + >=net-misc/curl-7.17.0
698 + >=dev-libs/libpcre-7.8
699 + >=dev-libs/openssl-0.9.8j
700 + odbc? ( dev-db/unixODBC )"
701 +DEPEND="${COMMON_DEPEND}
702 + virtual/pkgconfig
703 + app-arch/unzip"
704 +RDEPEND="${COMMON_DEPEND}"
705 +
706 +src_compile() {
707 + local jslib="-lmozjs185"
708 + local jscppflags="-DXP_UNIX -DX86_LINUX -I/usr/include/js"
709 + if has_version dev-lang/spidermonkey:0/187 ; then
710 + jscppflags=$(pkg-config --cflags mozjs187)
711 + jslib=$(pkg-config --libs mozjs187)
712 + fi
713 + emake -j1 prefix=/usr JSLIB="${jslib}" JS_CPPFLAGS="${jscppflags}" STRIP=''
714 + if use odbc; then
715 + # Top-level makefile doesn't have this target.
716 + cd src
717 + emake -j1 prefix=/usr STRIP='' edbrowseodbc
718 + cd ..
719 + fi
720 +}
721 +
722 +src_install() {
723 + cd src
724 + emake -j1 prefix=/usr DESTDIR="${D}" install
725 + if use odbc; then
726 + dobin edbrowseodbc
727 + fi
728 + cd ..
729 + dodoc CHANGES README todo
730 + cd doc
731 + dobin setup.ebrc
732 + dohtml usersguide.html philosophy.html
733 + dodoc sample.ebrc
734 + if use linguas_fr; then
735 + dohtml usersguide_fr.html philosophy_fr.html
736 + dodoc sample_fr.ebrc
737 + fi
738 +}
739
740 diff --git a/app-accessibility/edbrowse/files/edbrowse-3.4.7-fix-makefile.patch b/app-accessibility/edbrowse/files/edbrowse-3.4.7-fix-makefile.patch
741 new file mode 100644
742 index 0000000..142c6ab
743 --- /dev/null
744 +++ b/app-accessibility/edbrowse/files/edbrowse-3.4.7-fix-makefile.patch
745 @@ -0,0 +1,13 @@
746 +diff --git a/src/makefile b/src/makefile
747 +index 900c425..af1250e 100644
748 +--- a/src/makefile
749 ++++ b/src/makefile
750 +@@ -59,7 +59,7 @@ edbrowse: $(EBOBJS) tcp.o dbstubs.o
751 +
752 + # You probably need to be root to do this.
753 + install:
754 +- install -Dm755 edbrowse $(bindir)/edbrowse
755 ++ install -Dm755 edbrowse $(DESTDIR)$(bindir)/edbrowse
756 +
757 + # If you had to build the javascript library yourself,
758 + # link it into /usr/lib.
759
760 diff --git a/app-portage/g-cpan/files/g-cpan-0.16.4-misc.patch b/app-portage/g-cpan/files/g-cpan-0.16.4-misc.patch
761 new file mode 100644
762 index 0000000..edbedd2
763 --- /dev/null
764 +++ b/app-portage/g-cpan/files/g-cpan-0.16.4-misc.patch
765 @@ -0,0 +1,40 @@
766 +Index: g-cpan-0.16.4/lib/Gentoo/CPAN.pm
767 +===================================================================
768 +--- g-cpan-0.16.4.orig/lib/Gentoo/CPAN.pm
769 ++++ g-cpan-0.16.4/lib/Gentoo/CPAN.pm
770 +@@ -11,7 +11,6 @@ use YAML::Node;
771 + use Memoize;
772 + use Cwd qw(getcwd abs_path cwd);
773 + use File::Basename;
774 +-use Shell qw(perl);
775 +
776 + memoize('transformCPAN');
777 + memoize('FindDeps');
778 +@@ -197,12 +196,12 @@ sub unpackModule {
779 +
780 + # If we have a Makefile.PL, run it to generate Makefile
781 + if ( -f "Makefile.PL" ) {
782 +- perl("Makefile.PL",'</dev/null');
783 ++ system("perl Makefile.PL </dev/null");
784 + }
785 +
786 + # If we have a Build.PL, run it to generate the Build script
787 + if ( -f "Build.PL" ) {
788 +- perl("Build.PL",'</dev/null');
789 ++ system("perl Build.PL </dev/null");
790 + }
791 +
792 + # Return whence we came
793 +Index: g-cpan-0.16.4/lib/Gentoo/Portage.pm
794 +===================================================================
795 +--- g-cpan-0.16.4.orig/lib/Gentoo/Portage.pm
796 ++++ g-cpan-0.16.4/lib/Gentoo/Portage.pm
797 +@@ -47,7 +47,7 @@ sub getEnv {
798 + return($var =~ /^$envvar$/ );
799 + };
800 +
801 +-foreach my $file ( "$ENV{HOME}/.gcpanrc", "/etc/make.conf", "/etc/make.globals" ) {
802 ++foreach my $file ( "$ENV{HOME}/.gcpanrc", "/etc/make.conf", "/etc/portage/make.conf", "/etc/make.globals" ) {
803 + if ( -f $file) {
804 + my $importer = Shell::EnvImporter->new(
805 + file => $file,
806
807 diff --git a/app-portage/g-cpan/g-cpan-0.13.02.ebuild b/app-portage/g-cpan/g-cpan-0.13.02.ebuild
808 new file mode 100644
809 index 0000000..f599ef9
810 --- /dev/null
811 +++ b/app-portage/g-cpan/g-cpan-0.13.02.ebuild
812 @@ -0,0 +1,29 @@
813 +# Copyright 1999-2010 Gentoo Foundation
814 +# Distributed under the terms of the GNU General Public License v2
815 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.13.02.ebuild,v 1.8 2010/10/23 09:02:23 ssuominen Exp $
816 +
817 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
818 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/"
819 +SRC_URI="mirror://gentoo/${P}.tar.gz"
820 +
821 +LICENSE="|| ( Artistic GPL-2 )"
822 +SLOT="0"
823 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
824 +IUSE=""
825 +
826 +DEPEND="dev-lang/perl"
827 +
828 +src_unpack() {
829 + unpack ${A}
830 + cd "${S}"
831 +}
832 +
833 +src_install() {
834 + dodir /usr/bin
835 + cp "${S}"/bin/g-cpan.pl "${D}"/usr/bin/
836 + dodir /usr/share/man/man1
837 + cp "${S}"/man/g-cpan.pl.1 "${S}"/man/g-cpan.1
838 + doman "${S}"/man/*
839 + dodoc Changes
840 + dosym /usr/bin/g-cpan.pl /usr/bin/g-cpan
841 +}
842
843 diff --git a/app-portage/g-cpan/g-cpan-0.14.0.ebuild b/app-portage/g-cpan/g-cpan-0.14.0.ebuild
844 new file mode 100644
845 index 0000000..3d0e40b
846 --- /dev/null
847 +++ b/app-portage/g-cpan/g-cpan-0.14.0.ebuild
848 @@ -0,0 +1,33 @@
849 +# Copyright 1999-2010 Gentoo Foundation
850 +# Distributed under the terms of the GNU General Public License v2
851 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.14.0.ebuild,v 1.12 2010/10/19 11:37:16 leio Exp $
852 +
853 +inherit perl-module
854 +
855 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
856 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml"
857 +SRC_URI="mirror://gentoo/${P}.tar.gz"
858 +
859 +LICENSE="|| ( Artistic GPL-2 )"
860 +SLOT="0"
861 +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
862 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
863 +IUSE=""
864 +
865 +DEPEND="dev-lang/perl
866 + dev-perl/yaml
867 + dev-perl/Log-Agent"
868 +
869 +src_install() {
870 + perl-module_src_install
871 + diropts "-m0755"
872 + dodir "/var/tmp/g-cpan"
873 + keepdir "/var/tmp/g-cpan"
874 + dodir "/var/log/g-cpan"
875 + keepdir "/var/log/g-cpan"
876 +}
877 +
878 +pkg_postinst() {
879 + elog "You may wish to adjust the permissions on /var/tmp/g-cpan"
880 + elog "if you have users besides root expecting to use g-cpan."
881 +}
882
883 diff --git a/app-portage/g-cpan/g-cpan-0.15.0-r1.ebuild b/app-portage/g-cpan/g-cpan-0.15.0-r1.ebuild
884 new file mode 100644
885 index 0000000..82c7748
886 --- /dev/null
887 +++ b/app-portage/g-cpan/g-cpan-0.15.0-r1.ebuild
888 @@ -0,0 +1,33 @@
889 +# Copyright 1999-2010 Gentoo Foundation
890 +# Distributed under the terms of the GNU General Public License v2
891 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.15.0-r1.ebuild,v 1.14 2010/10/19 11:37:16 leio Exp $
892 +
893 +inherit perl-module
894 +
895 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
896 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml"
897 +SRC_URI="mirror://gentoo/${P}.tar.gz"
898 +
899 +LICENSE="|| ( Artistic GPL-2 )"
900 +SLOT="0"
901 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
902 +IUSE=""
903 +
904 +DEPEND="dev-lang/perl
905 + >=dev-perl/yaml-0.60
906 + dev-perl/Shell-EnvImporter
907 + dev-perl/Log-Agent"
908 +
909 +src_install() {
910 + perl-module_src_install
911 + diropts "-m0755"
912 + dodir "/var/tmp/g-cpan"
913 + keepdir "/var/tmp/g-cpan"
914 + dodir "/var/log/g-cpan"
915 + keepdir "/var/log/g-cpan"
916 +}
917 +
918 +pkg_postinst() {
919 + elog "You may wish to adjust the permissions on /var/tmp/g-cpan"
920 + elog "if you have users besides root expecting to use g-cpan."
921 +}
922
923 diff --git a/app-portage/g-cpan/g-cpan-0.16.2.ebuild b/app-portage/g-cpan/g-cpan-0.16.2.ebuild
924 new file mode 100644
925 index 0000000..9bdb577
926 --- /dev/null
927 +++ b/app-portage/g-cpan/g-cpan-0.16.2.ebuild
928 @@ -0,0 +1,38 @@
929 +# Copyright 1999-2010 Gentoo Foundation
930 +# Distributed under the terms of the GNU General Public License v2
931 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.16.2.ebuild,v 1.9 2010/10/23 09:00:05 ssuominen Exp $
932 +
933 +EAPI=2
934 +
935 +inherit perl-module
936 +
937 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
938 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml"
939 +SRC_URI="mirror://gentoo/${P}.tar.bz2
940 + http://dev.gentoo.org/~robbat2/${P}.tar.bz2"
941 +
942 +LICENSE="|| ( Artistic GPL-2 )"
943 +SLOT="0"
944 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
945 +IUSE=""
946 +
947 +DEPEND="dev-lang/perl
948 + >=dev-perl/yaml-0.60
949 + dev-perl/Shell-EnvImporter
950 + dev-perl/Log-Agent"
951 +
952 +src_install() {
953 + perl-module_src_install
954 + diropts "-m0755"
955 + dodir "/var/tmp/g-cpan"
956 + keepdir "/var/tmp/g-cpan"
957 + dodir "/var/log/g-cpan"
958 + keepdir "/var/log/g-cpan"
959 +}
960 +
961 +pkg_postinst() {
962 + elog "You may wish to adjust the permissions on /var/tmp/g-cpan"
963 + elog "if you have users besides root expecting to use g-cpan."
964 + einfo "Please note that some CPAN packages need additional manual"
965 + einfo "parameters or tweaking, due to bugs in their build systems."
966 +}
967
968 diff --git a/app-portage/g-cpan/g-cpan-0.16.3.ebuild b/app-portage/g-cpan/g-cpan-0.16.3.ebuild
969 new file mode 100644
970 index 0000000..45db593
971 --- /dev/null
972 +++ b/app-portage/g-cpan/g-cpan-0.16.3.ebuild
973 @@ -0,0 +1,38 @@
974 +# Copyright 1999-2011 Gentoo Foundation
975 +# Distributed under the terms of the GNU General Public License v2
976 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.16.3.ebuild,v 1.1 2011/01/24 05:10:54 robbat2 Exp $
977 +
978 +EAPI=2
979 +
980 +inherit perl-module
981 +
982 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
983 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml"
984 +SRC_URI="mirror://gentoo/${P}.tar.gz
985 + http://dev.gentoo.org/~robbat2/distfiles/${P}.tar.gz"
986 +
987 +LICENSE="|| ( Artistic GPL-2 )"
988 +SLOT="0"
989 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
990 +IUSE=""
991 +
992 +DEPEND="dev-lang/perl
993 + >=dev-perl/yaml-0.60
994 + dev-perl/Shell-EnvImporter
995 + dev-perl/Log-Agent"
996 +
997 +src_install() {
998 + perl-module_src_install
999 + diropts "-m0755"
1000 + dodir "/var/tmp/g-cpan"
1001 + keepdir "/var/tmp/g-cpan"
1002 + dodir "/var/log/g-cpan"
1003 + keepdir "/var/log/g-cpan"
1004 +}
1005 +
1006 +pkg_postinst() {
1007 + elog "You may wish to adjust the permissions on /var/tmp/g-cpan"
1008 + elog "if you have users besides root expecting to use g-cpan."
1009 + einfo "Please note that some CPAN packages need additional manual"
1010 + einfo "parameters or tweaking, due to bugs in their build systems."
1011 +}
1012
1013 diff --git a/app-portage/g-cpan/g-cpan-0.16.4.ebuild b/app-portage/g-cpan/g-cpan-0.16.4.ebuild
1014 new file mode 100644
1015 index 0000000..b246689
1016 --- /dev/null
1017 +++ b/app-portage/g-cpan/g-cpan-0.16.4.ebuild
1018 @@ -0,0 +1,38 @@
1019 +# Copyright 1999-2011 Gentoo Foundation
1020 +# Distributed under the terms of the GNU General Public License v2
1021 +# $Header: /var/cvsroot/gentoo-x86/app-portage/g-cpan/g-cpan-0.16.4.ebuild,v 1.1 2011/01/24 23:36:12 robbat2 Exp $
1022 +
1023 +EAPI=2
1024 +
1025 +inherit perl-module
1026 +
1027 +DESCRIPTION="g-cpan: generate and install CPAN modules using portage"
1028 +HOMEPAGE="http://www.gentoo.org/proj/en/perl/g-cpan.xml"
1029 +SRC_URI="mirror://gentoo/${P}.tar.gz
1030 + http://dev.gentoo.org/~robbat2/distfiles/${P}.tar.gz"
1031 +
1032 +LICENSE="|| ( Artistic GPL-2 )"
1033 +SLOT="0"
1034 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
1035 +IUSE=""
1036 +
1037 +DEPEND="dev-lang/perl
1038 + >=dev-perl/yaml-0.60
1039 + dev-perl/Shell-EnvImporter
1040 + dev-perl/Log-Agent"
1041 +
1042 +src_install() {
1043 + perl-module_src_install
1044 + diropts "-m0755"
1045 + dodir "/var/tmp/g-cpan"
1046 + keepdir "/var/tmp/g-cpan"
1047 + dodir "/var/log/g-cpan"
1048 + keepdir "/var/log/g-cpan"
1049 +}
1050 +
1051 +pkg_postinst() {
1052 + elog "You may wish to adjust the permissions on /var/tmp/g-cpan"
1053 + elog "if you have users besides root expecting to use g-cpan."
1054 + einfo "Please note that some CPAN packages need additional manual"
1055 + einfo "parameters or tweaking, due to bugs in their build systems."
1056 +}
1057
1058 diff --git a/dev-lang/perl/files/eblits/common-v50160001.eblit b/dev-lang/perl/files/eblits/common-v50160001.eblit
1059 new file mode 100644
1060 index 0000000..e108d2a
1061 --- /dev/null
1062 +++ b/dev-lang/perl/files/eblits/common-v50160001.eblit
1063 @@ -0,0 +1,71 @@
1064 +# Copyright 1999-2012 Gentoo Foundation
1065 +# Distributed under the terms of the GNU General Public License v2
1066 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/common-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1067 +
1068 +src_remove_dual_file() {
1069 + local i pkg ver
1070 + pkg="$1"
1071 + ver="$2"
1072 + shift 2
1073 + case "${EBUILD_PHASE:-none}" in
1074 + postinst|postrm)
1075 + for i in "$@" ; do
1076 + alternatives_auto_makesym "${i}" "${i}-[0-9]*"
1077 + done
1078 + ;;
1079 + setup)
1080 + for i in "$@" ; do
1081 + if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
1082 + has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
1083 + break
1084 + fi
1085 + done
1086 + ;;
1087 + install)
1088 + for i in "$@" ; do
1089 + if ! [[ -f "${ED}"${i} ]] ; then
1090 + ewarn "${i} does not exist!"
1091 + continue
1092 + fi
1093 + mv "${ED}"${i}{,-${ver}-${P}} || die
1094 + done
1095 + ;;
1096 + esac
1097 +}
1098 +
1099 +src_remove_dual_man() {
1100 + local i pkg ver ff
1101 + pkg="$1"
1102 + ver="$2"
1103 + shift 2
1104 + case "${EBUILD_PHASE:-none}" in
1105 + postinst|postrm)
1106 + for i in "$@" ; do
1107 + ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
1108 + ff=${ff##*${i#${i%.[0-9]}}}
1109 + alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
1110 + done
1111 + ;;
1112 + install)
1113 + for i in "$@" ; do
1114 + if ! [[ -f "${ED}"${i} ]] ; then
1115 + ewarn "${i} does not exist!"
1116 + continue
1117 + fi
1118 + mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
1119 + done
1120 + ;;
1121 + esac
1122 +}
1123 +
1124 +src_remove_dual() {
1125 + local i pkg ver
1126 + pkg="$1"
1127 + ver="$2"
1128 + shift 2
1129 + for i in "$@" ; do
1130 + src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
1131 + src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
1132 + done
1133 +}
1134 +
1135
1136 diff --git a/dev-lang/perl/files/eblits/pkg_postinst-v50160001.eblit b/dev-lang/perl/files/eblits/pkg_postinst-v50160001.eblit
1137 new file mode 100644
1138 index 0000000..ad743bc
1139 --- /dev/null
1140 +++ b/dev-lang/perl/files/eblits/pkg_postinst-v50160001.eblit
1141 @@ -0,0 +1,67 @@
1142 +# Copyright 1999-2012 Gentoo Foundation
1143 +# Distributed under the terms of the GNU General Public License v2
1144 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/pkg_postinst-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1145 +
1146 +eblit-perl-pkg_postinst() {
1147 + dual_scripts
1148 +
1149 + if [[ "${ROOT}" = "/" ]] ; then
1150 + local INC DIR file
1151 + INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
1152 + einfo "Removing old .ph files"
1153 + for DIR in ${INC} ; do
1154 + if [[ -d "${DIR}" ]] ; then
1155 + for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
1156 + rm -f "${file}"
1157 + einfo "<< ${file}"
1158 + done
1159 + fi
1160 + done
1161 + # Silently remove the now empty dirs
1162 + for DIR in ${INC} ; do
1163 + if [[ -d "${DIR}" ]] ; then
1164 + find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
1165 + fi
1166 + done
1167 +
1168 +# ebegin "Generating ConfigLocal.pm (ignore any error)"
1169 +# enc2xs -C
1170 +
1171 + einfo "Converting C header files to the corresponding Perl format (ignore any error)"
1172 + # Prefix note: unprefixed as this is all kernel/libc stuff that we never provide
1173 + pushd /usr/include >/dev/null
1174 + h2ph -Q -a -d "${EPREFIX}"${ARCH_LIB} \
1175 + asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
1176 + sys/socket.h sys/time.h wait.h sysexits.h
1177 + popd >/dev/null
1178 +
1179 +# This has been moved into a function because rumor has it that a future release
1180 +# of portage will allow us to check what version was just removed - which means
1181 +# we will be able to invoke this only as needed :)
1182 + # Tried doing this via -z, but $INC is too big...
1183 + #if [[ "${INC}x" != "x" ]]; then
1184 + # cleaner_msg
1185 + #fi
1186 + fi
1187 +}
1188 +
1189 +cleaner_msg() {
1190 + eerror "You have had multiple versions of perl. It is recommended"
1191 + eerror "that you run perl-cleaner now. perl-cleaner will"
1192 + eerror "assist with this transition. This script is capable"
1193 + eerror "of cleaning out old .ph files, rebuilding modules for "
1194 + eerror "your new version of perl, as well as re-emerging"
1195 + eerror "applications that compiled against your old libperl$(get_libname)"
1196 + eerror
1197 + eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
1198 + eerror "Part of the rebuilding of applications compiled against "
1199 + eerror "your old libperl involves temporarily unmerging"
1200 + eerror "them - interruptions could leave you with unmerged"
1201 + eerror "packages before they can be remerged."
1202 + eerror ""
1203 + eerror "If you have run perl-cleaner and a package still gives"
1204 + eerror "you trouble, and re-emerging it fails to correct"
1205 + eerror "the problem, please check http://bugs.gentoo.org/"
1206 + eerror "for more information or to report a bug."
1207 + eerror ""
1208 +}
1209
1210 diff --git a/dev-lang/perl/files/eblits/pkg_postrm-v50160001.eblit b/dev-lang/perl/files/eblits/pkg_postrm-v50160001.eblit
1211 new file mode 100644
1212 index 0000000..a4d5ad6
1213 --- /dev/null
1214 +++ b/dev-lang/perl/files/eblits/pkg_postrm-v50160001.eblit
1215 @@ -0,0 +1,12 @@
1216 +# Copyright 1999-2012 Gentoo Foundation
1217 +# Distributed under the terms of the GNU General Public License v2
1218 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/pkg_postrm-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1219 +
1220 +eblit-perl-pkg_postrm(){
1221 + dual_scripts
1222 +
1223 +# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
1224 +# ebegin "Removing ConfigLocal.pm"
1225 +# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
1226 +# fi
1227 +}
1228
1229 diff --git a/dev-lang/perl/files/eblits/pkg_setup-v50160001.eblit b/dev-lang/perl/files/eblits/pkg_setup-v50160001.eblit
1230 new file mode 100644
1231 index 0000000..9931075
1232 --- /dev/null
1233 +++ b/dev-lang/perl/files/eblits/pkg_setup-v50160001.eblit
1234 @@ -0,0 +1,69 @@
1235 +# Copyright 1999-2012 Gentoo Foundation
1236 +# Distributed under the terms of the GNU General Public License v2
1237 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/pkg_setup-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1238 +
1239 +eblit-perl-pkg_setup() {
1240 + case ${CHOST} in
1241 + *-freebsd*) osname="freebsd" ;;
1242 + *-dragonfly*) osname="dragonfly" ;;
1243 + *-netbsd*) osname="netbsd" ;;
1244 + *-openbsd*) osname="openbsd" ;;
1245 + *-darwin*) osname="darwin" ;;
1246 + *-interix*) osname="interix" ;;
1247 + *) osname="linux" ;;
1248 + esac
1249 +
1250 + myarch="${CHOST%%-*}-${osname}"
1251 + if use debug ; then
1252 + myarch+="-debug"
1253 + fi
1254 + if use ithreads ; then
1255 + mythreading="-multi"
1256 + myarch+="-thread"
1257 + fi
1258 +
1259 + LIBPERL="libperl$(get_libname ${MY_PV} )"
1260 + PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
1261 + ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
1262 + SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
1263 + SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
1264 + VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
1265 + VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
1266 +
1267 + if use ithreads ; then
1268 + echo ""
1269 + ewarn "THREADS WARNING:"
1270 + ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
1271 + ewarn "interpreter-level threading enabled."
1272 + ewarn "Threading is not supported by all applications "
1273 + ewarn "that compile against perl. You use threading at "
1274 + ewarn "your own discretion. "
1275 + fi
1276 + check_rebuild
1277 + dual_scripts
1278 +}
1279 +
1280 +check_rebuild() {
1281 + if has_version "<dev-lang/perl-${SHORT_PV}" ; then
1282 + echo ""
1283 + ewarn "UPDATE THE PERL MODULES:"
1284 + ewarn "After updating dev-lang/perl you must reinstall"
1285 + ewarn "the installed perl modules."
1286 + ewarn "Use: perl-cleaner --all"
1287 + elif has_version dev-lang/perl ; then
1288 + # doesnot work
1289 + #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
1290 + #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
1291 + if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
1292 + ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
1293 + ( use debug && ! has_version dev-lang/perl[debug] ) || \
1294 + ( ! use debug && has_version dev-lang/perl[debug] ) ; then
1295 + echo ""
1296 + ewarn "TOGGLED USE-FLAGS WARNING:"
1297 + ewarn "You changed one of the use-flags ithreads or debug."
1298 + ewarn "You must rebuild all perl-modules installed."
1299 + ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
1300 + fi
1301 + fi
1302 +}
1303 +
1304
1305 diff --git a/dev-lang/perl/files/eblits/src_configure-v50160001.eblit b/dev-lang/perl/files/eblits/src_configure-v50160001.eblit
1306 new file mode 100644
1307 index 0000000..569312f
1308 --- /dev/null
1309 +++ b/dev-lang/perl/files/eblits/src_configure-v50160001.eblit
1310 @@ -0,0 +1,141 @@
1311 +# Copyright 1999-2012 Gentoo Foundation
1312 +# Distributed under the terms of the GNU General Public License v2
1313 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_configure-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1314 +
1315 +myconf() {
1316 + # the myconf array is declared in src_configure
1317 + myconf=( "${myconf[@]}" "$@" )
1318 +}
1319 +
1320 +eblit-perl-src_configure() {
1321 + declare -a myconf
1322 +
1323 + export LC_ALL="C"
1324 + [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
1325 +
1326 + # some arches and -O do not mix :)
1327 + use ppc && replace-flags -O? -O1
1328 + # Perl has problems compiling with -Os in your flags with glibc
1329 + use elibc_uclibc || replace-flags "-Os" "-O2"
1330 + # This flag makes compiling crash in interesting ways
1331 + filter-flags "-malign-double"
1332 + # Fixes bug #97645
1333 + use ppc && filter-flags "-mpowerpc-gpopt"
1334 + # Fixes bug #143895 on gcc-4.1.1
1335 + filter-flags "-fsched2-use-superblocks"
1336 +
1337 + use sparc && myconf -Ud_longdbl
1338 +
1339 + export BUILD_BZIP2=0
1340 + export BZIP2_INCLUDE=${EPREFIX}/usr/include
1341 + export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir)
1342 +
1343 + export BUILD_ZLIB=False
1344 + export ZLIB_INCLUDE=${EPREFIX}/usr/include
1345 + export ZLIB_LIB=${EPREFIX}/usr/$(get_libdir)
1346 +
1347 + # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
1348 +
1349 + myndbm='U'
1350 + mygdbm='U'
1351 + mydb='U'
1352 +
1353 + if use gdbm ; then
1354 + mygdbm='D'
1355 + myndbm='D'
1356 + fi
1357 + if use berkdb ; then
1358 + mydb='D'
1359 + has_version '=sys-libs/db-1*' && myndbm='D'
1360 + fi
1361 +
1362 + myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
1363 +
1364 + if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
1365 + ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
1366 + myconf -Ui_db -Ui_ndbm
1367 + fi
1368 +
1369 + use ithreads && myconf -Dusethreads
1370 +
1371 + if use debug ; then
1372 + append-cflags "-g"
1373 + myconf -DDEBUGGING
1374 + elif [[ ${CFLAGS} == *-g* ]] ; then
1375 + myconf -DDEBUGGING=-g
1376 + else
1377 + myconf -DDEBUGGING=none
1378 + fi
1379 +
1380 + if [[ -n ${PERL_OLDVERSEN} ]] ; then
1381 + local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
1382 + myconf -Dinc_version_list="${inclist}"
1383 + fi
1384 +
1385 + [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
1386 +
1387 + # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
1388 + # Prefix itself we don't do multilib either, so make sure perl can find
1389 + # something compatible.
1390 + if use prefix ; then
1391 + local ldir
1392 + local llib
1393 + local paths=""
1394 + echo "int main() {}" > "${T}"/t.c
1395 + # need to ensure dirs contain compatible libs, bug #358875
1396 + for ldir in /lib /usr/lib /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 ; do
1397 + [[ -d ${ldir} ]] || continue
1398 + # find a random lib from here
1399 + llib=( ${ldir}/*$(get_libname) )
1400 + [[ -e ${llib[0]} ]] || continue
1401 + $(tc-getCC) -o "${T}"/t "${T}"/t.c ${llib[0]} >& /dev/null \
1402 + && paths="${paths} ${ldir}"
1403 + done
1404 + myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
1405 + elif [[ $(get_libdir) != "lib" ]] ; then
1406 + # We need to use " and not ', as the written config.sh use ' ...
1407 + myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
1408 + fi
1409 +
1410 + # don't try building ODBM, bug #354453
1411 + myconf -Dnoextensions=ODBM_File
1412 +
1413 + sh Configure \
1414 + -des \
1415 + -Duseshrplib \
1416 + -Darchname="${myarch}" \
1417 + -Dcc="$(tc-getCC)" \
1418 + -Doptimize="${CFLAGS}" \
1419 + -Dldflags="${LDFLAGS}" \
1420 + -Dprefix="${EPREFIX}"'/usr' \
1421 + -Dinstallprefix="${EPREFIX}"'/usr' \
1422 + -Dsiteprefix="${EPREFIX}"'/usr/local' \
1423 + -Dvendorprefix="${EPREFIX}"'/usr' \
1424 + -Dscriptdir="${EPREFIX}"'/usr/bin' \
1425 + -Dprivlib="${EPREFIX}${PRIV_LIB}" \
1426 + -Darchlib="${EPREFIX}${ARCH_LIB}" \
1427 + -Dsitelib="${EPREFIX}${SITE_LIB}" \
1428 + -Dsitearch="${EPREFIX}${SITE_ARCH}" \
1429 + -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
1430 + -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
1431 + -Dman1dir="${EPREFIX}"/usr/share/man/man1 \
1432 + -Dman3dir="${EPREFIX}"/usr/share/man/man3 \
1433 + -Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \
1434 + -Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \
1435 + -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
1436 + -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
1437 + -Dman1ext='1' \
1438 + -Dman3ext='3pm' \
1439 + -Dlibperl="${LIBPERL}" \
1440 + -Dlocincpth="${EPREFIX}"'/usr/include ' \
1441 + -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
1442 + -Duselargefiles \
1443 + -Dd_semctl_semun \
1444 + -Dcf_by='Gentoo' \
1445 + -Dmyhostname='localhost' \
1446 + -Dperladmin='root@localhost' \
1447 + -Dinstallusrbinperl='n' \
1448 + -Ud_csh \
1449 + -Uusenm \
1450 + "${myconf[@]}" || die "Unable to configure"
1451 +}
1452
1453 diff --git a/dev-lang/perl/files/eblits/src_install-v50160001.eblit b/dev-lang/perl/files/eblits/src_install-v50160001.eblit
1454 new file mode 100644
1455 index 0000000..dac22a2
1456 --- /dev/null
1457 +++ b/dev-lang/perl/files/eblits/src_install-v50160001.eblit
1458 @@ -0,0 +1,59 @@
1459 +# Copyright 1999-2012 Gentoo Foundation
1460 +# Distributed under the terms of the GNU General Public License v2
1461 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_install-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1462 +
1463 +eblit-perl-src_install() {
1464 + local i
1465 + local coredir="${ARCH_LIB}/CORE"
1466 +
1467 + emake DESTDIR="${D}" install
1468 +
1469 + rm -f "${ED}"/usr/bin/perl
1470 + ln -s perl${MY_PV} "${ED}"/usr/bin/perl || die
1471 +
1472 + if ! tc-is-static-only ; then
1473 + dolib.so "${ED}"${coredir}/${LIBPERL}
1474 + rm -f "${ED}"${coredir}/${LIBPERL}
1475 + ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
1476 + ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
1477 + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
1478 + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
1479 + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
1480 + fi
1481 +
1482 + rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
1483 +
1484 +# # A poor fix for the miniperl issues
1485 +# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
1486 +# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
1487 +# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
1488 +# fperms 0755 /usr/bin/xsubpp
1489 +
1490 + # This removes ${D} from Config.pm
1491 + for i in $(find "${D}" -iname "Config.pm" ) ; do
1492 + einfo "Removing ${D} from ${i}..."
1493 + sed -i -e "s:${D}::" "${i}" || die "Sed failed"
1494 + done
1495 +
1496 + find "${ED}" -type f -name .packlist -delete || die
1497 +
1498 + # Note: find out from psm why we would need/want this.
1499 + # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
1500 + # find "${ED}" -name "*NDBM*" | xargs rm -f
1501 +
1502 + dodoc Changes* README AUTHORS
1503 +
1504 + if use doc ; then
1505 + # HTML Documentation
1506 + # We expect errors, warnings, and such with the following.
1507 +
1508 + dodir /usr/share/doc/${PF}/html
1509 + LD_LIBRARY_PATH=. ./perl installhtml \
1510 + --podroot='.' \
1511 + --podpath='lib:ext:pod:vms' \
1512 + --recurse \
1513 + --htmldir="${ED}/usr/share/doc/${PF}/html"
1514 + fi
1515 +
1516 + dual_scripts
1517 +}
1518
1519 diff --git a/dev-lang/perl/files/eblits/src_prepare-v50160001.eblit b/dev-lang/perl/files/eblits/src_prepare-v50160001.eblit
1520 new file mode 100644
1521 index 0000000..075e576
1522 --- /dev/null
1523 +++ b/dev-lang/perl/files/eblits/src_prepare-v50160001.eblit
1524 @@ -0,0 +1,70 @@
1525 +# Copyright 1999-2012 Gentoo Foundation
1526 +# Distributed under the terms of the GNU General Public License v2
1527 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_prepare-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1528 +
1529 +src_prepare_update_patchlevel_h() {
1530 + # Copied and modified from debian:
1531 + # Copyright 2011 Niko Tyni
1532 + # This program is free software; you can redistribute it and/or modify
1533 + # it under the same terms as Perl itself.
1534 + local patchdir="${WORKDIR}/patches"
1535 + local prefix
1536 +
1537 + [[ -f ${patchdir}/series ]] || return 0
1538 +
1539 +while read patch
1540 +do
1541 + patchname=$(echo $patch | sed 's/\.diff$//')
1542 + < $patchdir/$patch sed -e '/^Subject:/ { N; s/\n / / }' | sed -n -e '
1543 +
1544 + # massage the patch headers
1545 + s|^Bug: .*https\?://rt\.perl\.org/.*id=\(.*\).*|[perl #\1]|; tprepend;
1546 + s|^Bug: .*https\?://rt\.cpan\.org/.*id=\(.*\).*|[rt.cpan.org #\1]|; tprepend;
1547 + s|^Bug-Gentoo: ||; tprepend;
1548 + s/^\(Subject\|Description\): //; tappend;
1549 + s|^Origin: .*http://perl5\.git\.perl\.org/perl\.git/commit\(diff\)\?/\(.......\).*|[\2]|; tprepend;
1550 +
1551 + # post-process at the end of input
1552 + $ { x;
1553 + # include the version number in the patchlevel.h description (if available)
1554 + s/List packaged patches/&'" for ${PF}(#${PATCH_VER})"'/;
1555 +
1556 + # escape any backslashes and double quotes
1557 + s|\\|\\\\|g; s|"|\\"|g;
1558 +
1559 + # add a prefix
1560 + s|^|\t,"'"$prefix$patchname"' - |;
1561 + # newlines away
1562 + s/\n/ /g; s/ */ /g;
1563 + # add a suffix
1564 + s/ *$/"/; p
1565 + };
1566 + # stop all processing
1567 + d;
1568 + # label: append to the hold space
1569 + :append H; d;
1570 + # label: prepend to the hold space
1571 + :prepend x; H; d;
1572 + '
1573 +done < "${WORKDIR}"/patches/series > "${S}"/patchlevel-gentoo.h
1574 +}
1575 +
1576 +eblit-perl-src_prepare() {
1577 + local patch
1578 + EPATCH_OPTS+=" -p1"
1579 + einfo "Applying patches from ${MY_P}-${PATCH_VER} ..."
1580 + while read patch ; do
1581 + EPATCH_SINGLE_MSG=" ${patch} ..."
1582 + epatch "${WORKDIR}"/patches/${patch}
1583 + done < "${WORKDIR}"/patches/series
1584 +
1585 + src_prepare_update_patchlevel_h
1586 +
1587 + # pod/perltoc.pod fails
1588 + # lib/ExtUtils/t/Embed.t fails
1589 + if ! tc-is-static-only ; then
1590 + ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
1591 + ln -s ${LIBPERL} libperl$(get_libname ) || die
1592 + fi
1593 +}
1594 +
1595
1596 diff --git a/dev-lang/perl/files/eblits/src_test-v50160001.eblit b/dev-lang/perl/files/eblits/src_test-v50160001.eblit
1597 new file mode 100644
1598 index 0000000..86acdc4
1599 --- /dev/null
1600 +++ b/dev-lang/perl/files/eblits/src_test-v50160001.eblit
1601 @@ -0,0 +1,12 @@
1602 +# Copyright 1999-2012 Gentoo Foundation
1603 +# Distributed under the terms of the GNU General Public License v2
1604 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_test-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
1605 +
1606 +eblit-perl-src_test() {
1607 + if [[ ${EUID} == 0 ]] ; then
1608 + ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
1609 + return 0
1610 + fi
1611 + use elibc_uclibc && export MAKEOPTS+=" -j1"
1612 + TEST_JOBS="$(makeopts_jobs)" make test_harness || die "test failed"
1613 +}
1614
1615 diff --git a/dev-lang/perl/files/perl-5.10.1-cleanup-paths.patch b/dev-lang/perl/files/perl-5.10.1-cleanup-paths.patch
1616 new file mode 100644
1617 index 0000000..3fc60af
1618 --- /dev/null
1619 +++ b/dev-lang/perl/files/perl-5.10.1-cleanup-paths.patch
1620 @@ -0,0 +1,100 @@
1621 +cut the crap of inventing paths, or adding search paths that we don't use
1622 +
1623 +--- Configure
1624 ++++ Configure
1625 +@@ -102,28 +102,6 @@
1626 + fi
1627 + fi
1628 +
1629 +-: Proper PATH setting
1630 +-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
1631 +-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
1632 +-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin"
1633 +-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin"
1634 +-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb"
1635 +-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin"
1636 +-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib"
1637 +-paths="$paths /sbin /usr/sbin /usr/libexec"
1638 +-paths="$paths /system/gnu_library/bin"
1639 +-
1640 +-for p in $paths
1641 +-do
1642 +- case "$p_$PATH$p_" in
1643 +- *$p_$p$p_*) ;;
1644 +- *) test -d $p && PATH=$PATH$p_$p ;;
1645 +- esac
1646 +-done
1647 +-
1648 +-PATH=.$p_$PATH
1649 +-export PATH
1650 +-
1651 + : shall we be using ksh?
1652 + inksh=''
1653 + needksh=''
1654 +@@ -8282,66 +8260,6 @@
1655 + ;;
1656 + esac
1657 +
1658 +-# How will the perl executable find the installed shared $libperl?
1659 +-# Add $xxx to ccdlflags.
1660 +-# If we can't figure out a command-line option, use $shrpenv to
1661 +-# set env LD_RUN_PATH. The main perl makefile uses this.
1662 +-shrpdir=$archlibexp/CORE
1663 +-xxx=''
1664 +-tmp_shrpenv=''
1665 +-if "$useshrplib"; then
1666 +- case "$osname" in
1667 +- aix)
1668 +- # We'll set it in Makefile.SH...
1669 +- ;;
1670 +- solaris)
1671 +- xxx="-R $shrpdir"
1672 +- ;;
1673 +- freebsd|netbsd|openbsd|interix|dragonfly)
1674 +- xxx="-Wl,-R$shrpdir"
1675 +- ;;
1676 +- bsdos|linux|irix*|dec_osf|gnu*)
1677 +- xxx="-Wl,-rpath,$shrpdir"
1678 +- ;;
1679 +- next)
1680 +- # next doesn't like the default...
1681 +- ;;
1682 +- beos)
1683 +- # beos doesn't like the default, either.
1684 +- ;;
1685 +- haiku)
1686 +- # Haiku doesn't like the default, either.
1687 +- ;;
1688 +- hpux*)
1689 +- # hpux doesn't like the default, either.
1690 +- tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
1691 +- ;;
1692 +- cygwin)
1693 +- # cygwin needs only ldlibpth
1694 +- ;;
1695 +- *)
1696 +- tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
1697 +- ;;
1698 +- esac
1699 +- case "$xxx" in
1700 +- '') ;;
1701 +- *)
1702 +- # Only add $xxx if it isn't already in ccdlflags.
1703 +- case " $ccdlflags " in
1704 +- *" $xxx "*) ;;
1705 +- *) ccdlflags="$ccdlflags $xxx"
1706 +- cat <<EOM >&4
1707 +-
1708 +-Adding $xxx to the flags
1709 +-passed to $ld so that the perl executable will find the
1710 +-installed shared $libperl.
1711 +-
1712 +-EOM
1713 +- ;;
1714 +- esac
1715 +- ;;
1716 +- esac
1717 +-fi
1718 + # Fix ccdlflags in AIX for building external extensions.
1719 + # (For building Perl itself bare -bE:perl.exp is needed,
1720 + # Makefile.SH takes care of this.)
1721
1722 diff --git a/dev-lang/perl/files/perl-5.10.1-hpux.patch b/dev-lang/perl/files/perl-5.10.1-hpux.patch
1723 new file mode 100644
1724 index 0000000..ca4ee52
1725 --- /dev/null
1726 +++ b/dev-lang/perl/files/perl-5.10.1-hpux.patch
1727 @@ -0,0 +1,40 @@
1728 +# do not assume '.' being in PATH on hpux,
1729 +# use 'gcc' as linker, link with '-lm'.
1730 +
1731 +--- hints/hpux.sh
1732 ++++ hints/hpux.sh
1733 +@@ -190,7 +190,7 @@
1734 + $define|true|[Yy])
1735 + echo '#include <stdio.h>\nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c
1736 + $cc -o try $ccflags $ldflags try.c
1737 +- if [ "`try`" = "8" ]; then
1738 ++ if [ "`./try`" = "8" ]; then
1739 + case "$use64bitall" in
1740 + $define|true|[Yy]) ;;
1741 + *) cat <<EOM >&4
1742 +@@ -338,7 +338,7 @@
1743 + } /* main */
1744 + EOF
1745 + $cc -o try $ccflags $ldflags try.c
1746 +- maxdsiz=`try`
1747 ++ maxdsiz=`./try`
1748 + rm -f try try.c core
1749 + if [ $maxdsiz -le 64 ]; then
1750 + # 64 Mb is probably not enough to optimize toke.c
1751 +@@ -363,11 +363,12 @@
1752 + "") optimize="-g -O" ;;
1753 + *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;;
1754 + esac
1755 +- #ld="$cc"
1756 +- ld=/usr/bin/ld
1757 ++ ld="$cc"
1758 ++ #ld=/usr/bin/ld
1759 + cccdlflags='-fPIC'
1760 +- #lddlflags='-shared'
1761 +- lddlflags='-b'
1762 ++ lddlflags='-shared'
1763 ++ #lddlflags='-b'
1764 ++ libs='-lm'
1765 + case "$optimize" in
1766 + *-g*-O*|*-O*-g*)
1767 + # gcc without gas will not accept -g
1768
1769 diff --git a/dev-lang/perl/files/perl-5.12.3-aix-soname.patch b/dev-lang/perl/files/perl-5.12.3-aix-soname.patch
1770 new file mode 100644
1771 index 0000000..70fe5fa
1772 --- /dev/null
1773 +++ b/dev-lang/perl/files/perl-5.12.3-aix-soname.patch
1774 @@ -0,0 +1,70 @@
1775 +1) Match "powerpc-ibm-aix5.3.0.0-gcc" as gcc too.
1776 +
1777 +2) Creating shared library on aix with full soname support, following
1778 +http://lists.gnu.org/archive/html/libtool/2011-01/msg00023.html
1779 +http://lists.gnu.org/archive/html/libtool/2011-02/msg00000.html
1780 +
1781 +Once there is an agreement on that, this patch basically is designed
1782 +for upstream perl to be applied when their soname would change anyway.
1783 +However, there is 'strip' being used, and I don't know yet what to
1784 +use instead in cross-aix setups with recent binutils.
1785 +
1786 +--- Makefile.SH
1787 ++++ Makefile.SH
1788 +@@ -92,12 +92,12 @@
1789 + ;;
1790 + aix*)
1791 + case "$cc" in
1792 +- gcc*)
1793 +- shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bE:perl.exp"
1794 ++ *gcc*)
1795 ++ shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bE:perl.exp"
1796 + case "$osvers" in
1797 +- 3*) shrpldflags="$shrpldflags -e _nostart"
1798 ++ 3*) shrpldflags="$shrpldflags -Wl,-bM:SRE -e _nostart"
1799 + ;;
1800 +- *) shrpldflags="$shrpldflags -Wl,-bnoentry"
1801 ++ *) shrpldflags="$shrpldflags -Wl,-G -Wl,-bernotok -Wl,-bnoentry"
1802 + ;;
1803 + esac
1804 + shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
1805 +@@ -105,11 +105,11 @@
1806 + linklibperl_nonshr='-lperl_nonshr'
1807 + ;;
1808 + *)
1809 +- shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
1810 ++ shrpldflags="-H512 -T512 -bhalt:4 -bE:perl.exp"
1811 + case "$osvers" in
1812 +- 3*) shrpldflags="$shrpldflags -e _nostart"
1813 ++ 3*) shrpldflags="$shrpldflags -bM:SRE -e _nostart"
1814 + ;;
1815 +- *) shrpldflags="$shrpldflags -b noentry"
1816 ++ *) shrpldflags="$shrpldflags -G -bernotok -b noentry"
1817 + ;;
1818 + esac
1819 + shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
1820 +@@ -763,11 +763,19 @@
1821 + !NO!SUBS!
1822 + case "$osname" in
1823 + aix)
1824 +- $spitshell >>$Makefile <<'!NO!SUBS!'
1825 +- rm -f libperl$(OBJ_EXT)
1826 +- mv $@ libperl$(OBJ_EXT)
1827 +- $(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
1828 +-!NO!SUBS!
1829 ++ bits=32
1830 ++ if test X"$use64bitall" = Xdefine; then bits=64; fi
1831 ++ $spitshell >>$Makefile <<!GROK!THIS!
1832 ++ rm -f shr.imp shr.o
1833 ++ mv \$@ shr.o
1834 ++ strip -e shr.o
1835 ++ ( echo '#! libperl.so.${revision}.${patchlevel}(shr.o)' \\
1836 ++ ; echo '# ${bits}' \\
1837 ++ ; grep -v '^#!' perl.exp \\
1838 ++ ) > shr.imp
1839 ++ \$(AR) qv \$@ shr.imp shr.o
1840 ++ rm -f shr.imp shr.o
1841 ++!GROK!THIS!
1842 + ;;
1843 + esac
1844 + ;;
1845
1846 diff --git a/dev-lang/perl/files/perl-5.12.3-interix.patch b/dev-lang/perl/files/perl-5.12.3-interix.patch
1847 new file mode 100644
1848 index 0000000..5e875b2
1849 --- /dev/null
1850 +++ b/dev-lang/perl/files/perl-5.12.3-interix.patch
1851 @@ -0,0 +1,21 @@
1852 +reported: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2011-04/msg01014.html
1853 +
1854 +diff -ru perl-5.12.3.orig/hints/interix.sh perl-5.12.3/hints/interix.sh
1855 +--- perl-5.12.3.orig/hints/interix.sh 2011-04-27 08:34:00 +0200
1856 ++++ perl-5.12.3/hints/interix.sh 2011-04-27 08:53:46 +0200
1857 +@@ -6,14 +6,13 @@
1858 + cc='gcc'
1859 + cccdlflags="-DPIC $cccdlflags"
1860 + ccdlflags='-Wl,-E'
1861 +-ccflags="-D_ALL_SOURCE $ccflags"
1862 +-d_poll="$undef"
1863 + ld='gcc'
1864 + lddlflags="-shared $lddlflags"
1865 + rpathflag='-Wl,-R'
1866 + sharpbang='#!'
1867 + usemymalloc='false'
1868 + usenm='false'
1869 ++firstmakefile=GNUmakefile
1870 +
1871 + # This script UU/usethreads.cbu will get 'called-back' by Configure
1872 + # after it has prompted the user for whether to use threads.
1873
1874 diff --git a/dev-lang/perl/files/perl-5.12.3-mint.patch b/dev-lang/perl/files/perl-5.12.3-mint.patch
1875 new file mode 100644
1876 index 0000000..4c6c108
1877 --- /dev/null
1878 +++ b/dev-lang/perl/files/perl-5.12.3-mint.patch
1879 @@ -0,0 +1,321 @@
1880 +http://rt.perl.org/rt3/Ticket/Display.html?id=89502
1881 +
1882 +--- perl-5.12.3/Configure 2011-02-21 09:18:09.000000000 +0000
1883 ++++ perl-5.12.3/Configure 2011-02-21 09:38:49.000000000 +0000
1884 +@@ -1275,6 +1275,9 @@
1885 + elif test -n "$DJGPP"; then
1886 + : DOS DJGPP
1887 + _exe=".exe"
1888 ++elif test -f "/kern/cookiejar"; then
1889 ++: MiNT
1890 ++ _exe=""
1891 + elif test -d c:/. -o -n "$is_os2" ; then
1892 + : OS/2 or cygwin
1893 + _exe=".exe"
1894 +@@ -1402,7 +1405,7 @@
1895 + xcat=/bin/cat
1896 + test -f $xcat$_exe || xcat=/usr/bin/cat
1897 + if test ! -f $xcat$_exe; then
1898 +- for p in `echo $PATH | sed -e "s/$p_/ /g"` $paths; do
1899 ++ for p in `echo $PATH | sed -e 's/$p_/ /g'` $paths; do
1900 + if test -f $p/cat$_exe; then
1901 + xcat=$p/cat
1902 + break
1903 +--- perl-5.12.3/ext/DynaLoader/dl_dld.xs 2010-11-21 21:40:55.000000000 +0000
1904 ++++ perl-5.12.3/ext/DynaLoader/dl_dld.xs 2011-02-21 09:38:51.000000000 +0000
1905 +@@ -116,6 +116,18 @@
1906 + goto haverror;
1907 + }
1908 +
1909 ++ DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dld_link(libm.a)\n"));
1910 ++ if (dlderr = dld_link("/usr/lib/libm.a")) {
1911 ++ SaveError(aTHX_ "dld_link(libm.a): %s", dld_strerror(dlderr));
1912 ++ goto haverror;
1913 ++ }
1914 ++
1915 ++ DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dld_link(libc.a)\n"));
1916 ++ if (dlderr = dld_link("/usr/lib/libc.a")) {
1917 ++ SaveError(aTHX_ "dld_link(libc.a): %s", dld_strerror(dlderr));
1918 ++ goto haverror;
1919 ++ }
1920 ++
1921 + max = AvFILL(dl_resolve_using);
1922 + for (x = 0; x <= max; x++) {
1923 + char *sym = SvPVX(*av_fetch(dl_resolve_using, x, 0));
1924 +--- perl-5.12.3/malloc.c 2011-01-09 20:20:57.000000000 +0000
1925 ++++ perl-5.12.3/malloc.c 2011-02-21 09:38:51.000000000 +0000
1926 +@@ -264,7 +264,7 @@
1927 + #define MIN_BUC_POW2 (sizeof(void*) > 4 ? 3 : 2) /* Allow for 4-byte arena. */
1928 + #define MIN_BUCKET (MIN_BUC_POW2 * BUCKETS_PER_POW2)
1929 +
1930 +-#if !(defined(I286) || defined(atarist))
1931 ++#if !defined(I286)
1932 + /* take 2k unless the block is bigger than that */
1933 + # define LOG_OF_MIN_ARENA 11
1934 + #else
1935 +@@ -551,8 +551,8 @@
1936 + */
1937 + #define u_short unsigned short
1938 +
1939 +-/* 286 and atarist like big chunks, which gives too much overhead. */
1940 +-#if (defined(RCHECK) || defined(I286) || defined(atarist)) && defined(PACK_MALLOC)
1941 ++/* 286 like big chunks, which gives too much overhead. */
1942 ++#if (defined(RCHECK) || defined(I286)) && defined(PACK_MALLOC)
1943 + # undef PACK_MALLOC
1944 + #endif
1945 +
1946 +@@ -1734,16 +1734,14 @@
1947 + /* Second, check alignment. */
1948 + slack = 0;
1949 +
1950 +-#if !defined(atarist) /* on the atari we dont have to worry about this */
1951 +-# ifndef I286 /* The sbrk(0) call on the I286 always returns the next segment */
1952 ++#ifndef I286 /* The sbrk(0) call on the I286 always returns the next segment */
1953 + /* WANTED_ALIGNMENT may be more than NEEDED_ALIGNMENT, but this may
1954 + improve performance of memory access. */
1955 + if (PTR2UV(cp) & (WANTED_ALIGNMENT - 1)) { /* Not aligned. */
1956 + slack = WANTED_ALIGNMENT - (PTR2UV(cp) & (WANTED_ALIGNMENT - 1));
1957 + add += slack;
1958 + }
1959 +-# endif
1960 +-#endif /* !atarist */
1961 ++#endif
1962 +
1963 + if (add) {
1964 + DEBUG_m(PerlIO_printf(Perl_debug_log,
1965 +--- perl-5.12.3/miniperlmain.c 2011-01-09 20:20:57.000000000 +0000
1966 ++++ perl-5.12.3/miniperlmain.c 2011-02-21 09:38:49.000000000 +0000
1967 +@@ -45,7 +45,7 @@
1968 + #if defined (atarist)
1969 + /* The Atari operating system doesn't have a dynamic stack. The
1970 + stack size is determined from this value. */
1971 +-long _stksize = 64 * 1024;
1972 ++long _stksize = 256 * 1024;
1973 + #endif
1974 +
1975 + #if defined(PERL_GLOBAL_STRUCT_PRIVATE)
1976 +--- perl-5.12.3/os2/perlrexx.c 2010-11-21 21:40:56.000000000 +0000
1977 ++++ perl-5.12.3/os2/perlrexx.c 2011-02-21 09:42:49.000000000 +0000
1978 +@@ -38,7 +38,7 @@
1979 + #if defined (atarist)
1980 + /* The Atari operating system doesn't have a dynamic stack. The
1981 + stack size is determined from this value. */
1982 +-long _stksize = 64 * 1024;
1983 ++long _stksize = 256 * 1024;
1984 + #endif
1985 +
1986 + /* Register any extra external extensions */
1987 +--- perl-5.12.3/perl.c 2011-02-21 09:17:19.000000000 +0000
1988 ++++ perl-5.12.3/perl.c 2011-02-21 09:38:50.000000000 +0000
1989 +@@ -3272,10 +3272,6 @@
1990 + "\n\nOS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel\n"
1991 + "Version 5 port Copyright (c) 1994-2002, Andreas Kaiser, Ilya Zakharevich\n");
1992 + #endif
1993 +-#ifdef atarist
1994 +- PerlIO_printf(PerlIO_stdout(),
1995 +- "atariST series port, ++jrb bammi@×××××××.com\n");
1996 +-#endif
1997 + #ifdef __BEOS__
1998 + PerlIO_printf(PerlIO_stdout(),
1999 + "BeOS port Copyright Tom Spindler, 1997-1999\n");
2000 +--- perl-5.12.3/perl.h 2011-01-09 20:20:57.000000000 +0000
2001 ++++ perl-5.12.3/perl.h 2011-02-21 09:38:50.000000000 +0000
2002 +@@ -497,7 +497,7 @@
2003 + */
2004 +
2005 + /* define this once if either system, instead of cluttering up the src */
2006 +-#if defined(MSDOS) || defined(atarist) || defined(WIN32) || defined(NETWARE)
2007 ++#if defined(MSDOS) || defined(WIN32) || defined(NETWARE)
2008 + #define DOSISH 1
2009 + #endif
2010 +
2011 +--- perl-5.12.3/perlio.c 2009-04-14 23:47:25.000000000 +0000
2012 ++++ perl-5.12.3/perlio.c 2010-03-23 18:36:15.000000000 +0000
2013 +@@ -135,17 +135,6 @@
2014 + * This used to be contents of do_binmode in doio.c
2015 + */
2016 + #ifdef DOSISH
2017 +-# if defined(atarist)
2018 +- PERL_UNUSED_ARG(iotype);
2019 +- if (!fflush(fp)) {
2020 +- if (mode & O_BINARY)
2021 +- ((FILE *) fp)->_flag |= _IOBIN;
2022 +- else
2023 +- ((FILE *) fp)->_flag &= ~_IOBIN;
2024 +- return 1;
2025 +- }
2026 +- return 0;
2027 +-# else
2028 + dTHX;
2029 + PERL_UNUSED_ARG(iotype);
2030 + #ifdef NETWARE
2031 +@@ -153,7 +142,7 @@
2032 + #else
2033 + if (PerlLIO_setmode(fileno(fp), mode) != -1) {
2034 + #endif
2035 +-# if defined(WIN32) && defined(__BORLANDC__)
2036 ++# if defined(WIN32) && defined(__BORLANDC__)
2037 + /*
2038 + * The translation mode of the stream is maintained independent
2039 + of
2040 +@@ -169,12 +158,11 @@
2041 + fp->flags |= _F_BIN;
2042 + else
2043 + fp->flags &= ~_F_BIN;
2044 +-# endif
2045 ++# endif
2046 + return 1;
2047 + }
2048 + else
2049 + return 0;
2050 +-# endif
2051 + #else
2052 + # if defined(USEMYBINMODE)
2053 + dTHX;
2054 +--- perl-5.12.3/pp_sys.c 2011-01-09 20:20:58.000000000 +0000
2055 ++++ perl-5.12.3/pp_sys.c 2011-02-21 09:38:50.000000000 +0000
2056 +@@ -3308,14 +3308,6 @@
2057 + RETPUSHNO;
2058 + }
2059 +
2060 +-#if defined(atarist) /* this will work with atariST. Configure will
2061 +- make guesses for other systems. */
2062 +-# define FILE_base(f) ((f)->_base)
2063 +-# define FILE_ptr(f) ((f)->_ptr)
2064 +-# define FILE_cnt(f) ((f)->_cnt)
2065 +-# define FILE_bufsiz(f) ((f)->_cnt + ((f)->_ptr - (f)->_base))
2066 +-#endif
2067 +-
2068 + PP(pp_fttext)
2069 + {
2070 + dVAR;
2071 +@@ -5567,30 +5559,6 @@
2072 + case 8:
2073 + retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
2074 + break;
2075 +-#ifdef atarist
2076 +- case 9:
2077 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);
2078 +- break;
2079 +- case 10:
2080 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);
2081 +- break;
2082 +- case 11:
2083 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
2084 +- a[10]);
2085 +- break;
2086 +- case 12:
2087 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
2088 +- a[10],a[11]);
2089 +- break;
2090 +- case 13:
2091 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
2092 +- a[10],a[11],a[12]);
2093 +- break;
2094 +- case 14:
2095 +- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
2096 +- a[10],a[11],a[12],a[13]);
2097 +- break;
2098 +-#endif /* atarist */
2099 + }
2100 + SP = ORIGMARK;
2101 + PUSHi(retval);
2102 +--- perl-5.12.3/util.c 2011-01-09 20:20:58.000000000 +0000
2103 ++++ perl-5.12.3/util.c 2011-02-21 09:38:51.000000000 +0000
2104 +@@ -2545,7 +2545,7 @@
2105 + return PerlIO_fdopen(p[This], mode);
2106 + }
2107 + #else
2108 +-#if defined(atarist) || defined(EPOC)
2109 ++#if defined(EPOC)
2110 + FILE *popen();
2111 + PerlIO *
2112 + Perl_my_popen(pTHX_ const char *cmd, const char *mode)
2113 +@@ -2994,7 +2994,7 @@
2114 + }
2115 + #endif
2116 +
2117 +-#if defined(atarist) || defined(OS2) || defined(EPOC)
2118 ++#if defined(OS2) || defined(EPOC)
2119 + int pclose();
2120 + #ifdef HAS_FORK
2121 + int /* Cannot prototype with I32
2122 +@@ -3111,7 +3111,7 @@
2123 + I32 len = 0;
2124 + int retval;
2125 + char *bufend;
2126 +-#if defined(DOSISH) && !defined(OS2) && !defined(atarist)
2127 ++#if defined(DOSISH) && !defined(OS2)
2128 + # define SEARCH_EXTS ".bat", ".cmd", NULL
2129 + # define MAX_EXT_LEN 4
2130 + #endif
2131 +@@ -3234,28 +3234,25 @@
2132 +
2133 + bufend = s + strlen(s);
2134 + while (s < bufend) {
2135 +-#if defined(atarist) || defined(DOSISH)
2136 ++#if defined(DOSISH)
2137 + for (len = 0; *s
2138 +-# ifdef atarist
2139 +- && *s != ','
2140 +-# endif
2141 + && *s != ';'; len++, s++) {
2142 + if (len < sizeof tmpbuf)
2143 + tmpbuf[len] = *s;
2144 + }
2145 + if (len < sizeof tmpbuf)
2146 + tmpbuf[len] = '\0';
2147 +-#else /* ! (atarist || DOSISH) */
2148 ++#else /* ! (DOSISH) */
2149 + s = delimcpy(tmpbuf, tmpbuf + sizeof tmpbuf, s, bufend,
2150 + ':',
2151 + &len);
2152 +-#endif /* ! (atarist || DOSISH) */
2153 ++#endif /* ! (DOSISH) */
2154 + if (s < bufend)
2155 + s++;
2156 + if (len + 1 + strlen(scriptname) + MAX_EXT_LEN >= sizeof tmpbuf)
2157 + continue; /* don't search dir with too-long name */
2158 + if (len
2159 +-# if defined(atarist) || defined(DOSISH)
2160 ++# if defined(DOSISH)
2161 + && tmpbuf[len - 1] != '/'
2162 + && tmpbuf[len - 1] != '\\'
2163 + # endif
2164 +--- perl-5.12.3/hints/freemint.sh 2011-01-09 20:20:58.000000000 +0000
2165 ++++ perl-5.12.3/hints/freemint.sh 2011-02-21 09:38:51.000000000 +0000
2166 +@@ -0,0 +1,34 @@
2167 ++# hints/freemint.sh
2168 ++#
2169 ++# talk to guido@××××××××.de if you want to change this file.
2170 ++# Please read the README.mint file.
2171 ++#
2172 ++# misc stuff
2173 ++
2174 ++archname="m68k-freemint"
2175 ++
2176 ++cccdlflags=' '; # avoid -fPIC
2177 ++ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
2178 ++
2179 ++# libs
2180 ++libpth="$prefix/lib /usr/local/lib /usr/lib"
2181 ++glibpth="$libpth"
2182 ++xlibpth="$libpth"
2183 ++
2184 ++ccflags="$ccflags -D_GNU_SOURCE"
2185 ++libswanted='m dld'
2186 ++dl_src='dl_dld.xs'
2187 ++dlext='o'
2188 ++lddlflags='-r'
2189 ++ldflags='-static'
2190 ++so='none'
2191 ++useshrplib='false'
2192 ++
2193 ++#sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
2194 ++#around 14M, so we need to use system malloc() as our sbrk()
2195 ++malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
2196 ++
2197 ++# Locales aren't feeling well. We crash if -Ox used.
2198 ++locale_cflags='optimize="-O0"'
2199 ++LC_ALL=C; export LC_ALL;
2200 ++LANG=C; export LANG;
2201
2202 diff --git a/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch b/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch
2203 new file mode 100644
2204 index 0000000..c199041
2205 --- /dev/null
2206 +++ b/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch
2207 @@ -0,0 +1,100 @@
2208 +cut the crap of inventing paths, or adding search paths that we don't use
2209 +
2210 +--- Configure
2211 ++++ Configure
2212 +@@ -105,28 +105,6 @@
2213 + fi
2214 + fi
2215 +
2216 +-: Proper PATH setting
2217 +-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
2218 +-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
2219 +-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin"
2220 +-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin"
2221 +-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb"
2222 +-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin"
2223 +-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib"
2224 +-paths="$paths /sbin /usr/sbin /usr/libexec"
2225 +-paths="$paths /system/gnu_library/bin"
2226 +-
2227 +-for p in $paths
2228 +-do
2229 +- case "$p_$PATH$p_" in
2230 +- *$p_$p$p_*) ;;
2231 +- *) test -d $p && PATH=$PATH$p_$p ;;
2232 +- esac
2233 +-done
2234 +-
2235 +-PATH=.$p_$PATH
2236 +-export PATH
2237 +-
2238 + : shall we be using ksh?
2239 + inksh=''
2240 + needksh=''
2241 +@@ -8287,66 +8265,6 @@
2242 + ;;
2243 + esac
2244 +
2245 +-# How will the perl executable find the installed shared $libperl?
2246 +-# Add $xxx to ccdlflags.
2247 +-# If we can't figure out a command-line option, use $shrpenv to
2248 +-# set env LD_RUN_PATH. The main perl makefile uses this.
2249 +-shrpdir=$archlibexp/CORE
2250 +-xxx=''
2251 +-tmp_shrpenv=''
2252 +-if "$useshrplib"; then
2253 +- case "$osname" in
2254 +- aix)
2255 +- # We'll set it in Makefile.SH...
2256 +- ;;
2257 +- solaris)
2258 +- xxx="-R $shrpdir"
2259 +- ;;
2260 +- freebsd|mirbsd|netbsd|openbsd|interix|dragonfly)
2261 +- xxx="-Wl,-R$shrpdir"
2262 +- ;;
2263 +- bsdos|linux|irix*|dec_osf|gnu*)
2264 +- xxx="-Wl,-rpath,$shrpdir"
2265 +- ;;
2266 +- next)
2267 +- # next doesn't like the default...
2268 +- ;;
2269 +- beos)
2270 +- # beos doesn't like the default, either.
2271 +- ;;
2272 +- haiku)
2273 +- # Haiku doesn't like the default, either.
2274 +- ;;
2275 +- hpux*)
2276 +- # hpux doesn't like the default, either.
2277 +- tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
2278 +- ;;
2279 +- cygwin)
2280 +- # cygwin needs only ldlibpth
2281 +- ;;
2282 +- *)
2283 +- tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
2284 +- ;;
2285 +- esac
2286 +- case "$xxx" in
2287 +- '') ;;
2288 +- *)
2289 +- # Only add $xxx if it isn't already in ccdlflags.
2290 +- case " $ccdlflags " in
2291 +- *" $xxx "*) ;;
2292 +- *) ccdlflags="$ccdlflags $xxx"
2293 +- cat <<EOM >&4
2294 +-
2295 +-Adding $xxx to the flags
2296 +-passed to $ld so that the perl executable will find the
2297 +-installed shared $libperl.
2298 +-
2299 +-EOM
2300 +- ;;
2301 +- esac
2302 +- ;;
2303 +- esac
2304 +-fi
2305 + # Fix ccdlflags in AIX for building external extensions.
2306 + # (For building Perl itself bare -bE:perl.exp is needed,
2307 + # Makefile.SH takes care of this.)
2308
2309 diff --git a/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch b/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch
2310 new file mode 100644
2311 index 0000000..c442def
2312 --- /dev/null
2313 +++ b/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch
2314 @@ -0,0 +1,21 @@
2315 +Bug #105054.
2316 +
2317 +We do not want the build root in the linked perl module's RUNPATH, so strip
2318 +paths containing PORTAGE_TMPDIR if its set.
2319 +
2320 +--- perl-5.8.7/lib/ExtUtils/MM_Unix.pm 2005-09-10 14:06:59.000000000 +0200
2321 ++++ perl-5.8.7.az/lib/ExtUtils/MM_Unix.pm 2005-09-10 15:25:52.000000000 +0200
2322 +@@ -1915,6 +1915,13 @@
2323 + # LD_RUN_PATH now computed by ExtUtils::Liblist
2324 + ($self->{EXTRALIBS}, $self->{BSLOADLIBS},
2325 + $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
2326 ++ # We do not want the build root in RPATH
2327 ++ if (exists $ENV{PORTAGE_TMPDIR}) {
2328 ++ # If we have PORTAGE_TMPDIR set, strip that, as just testing for
2329 ++ # /usr and /opt might not be sufficient
2330 ++ $self->{LD_RUN_PATH} = join ':', grep !/^\Q$ENV{PORTAGE_TMPDIR}/,
2331 ++ split /:/, $self->{LD_RUN_PATH};
2332 ++ }
2333 + last;
2334 + }
2335 + }
2336
2337 diff --git a/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch b/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch
2338 new file mode 100644
2339 index 0000000..d29fc25
2340 --- /dev/null
2341 +++ b/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch
2342 @@ -0,0 +1,280 @@
2343 +SECURITY [CAN-2005-0448]:
2344 +
2345 +Rewrite File::Path::rmtree to avoid race condition which allows an
2346 +attacker with write permission on directories in the tree being
2347 +removed to make files setuid or to remove arbitrary files (see
2348 +http://bugs.debian.org/286905 and http://bugs.debian.org/286922).
2349 +
2350 +Revised for 5.8.8-7etch6 to avoid failure when rmtree removes the
2351 +current directory.
2352 +
2353 +diff --git a/lib/File/Path.pm b/lib/File/Path.pm
2354 +index 2e41ff3..fd32b96 100644
2355 +--- a/lib/File/Path.pm
2356 ++++ b/lib/File/Path.pm
2357 +@@ -72,33 +72,17 @@ or C<unlink> to remove it, or that it's skipping it.
2358 +
2359 + =item *
2360 +
2361 +-a boolean value, which if TRUE will cause C<rmtree> to
2362 +-skip any files to which you do not have delete access
2363 +-(if running under VMS) or write access (if running
2364 +-under another OS). This will change in the future when
2365 +-a criterion for 'delete permission' under OSs other
2366 +-than VMS is settled. (defaults to FALSE)
2367 ++a boolean value, which if FALSE (the default for non-root users) will
2368 ++cause C<rmtree> to adjust the mode of directories (if required) prior
2369 ++to attempting to remove the contents. Note that on interruption or
2370 ++failure of C<rmtree>, directories may be left with more permissive
2371 ++modes for the owner.
2372 +
2373 + =back
2374 +
2375 + It returns the number of files successfully deleted. Symlinks are
2376 + simply deleted and not followed.
2377 +
2378 +-B<NOTE:> There are race conditions internal to the implementation of
2379 +-C<rmtree> making it unsafe to use on directory trees which may be
2380 +-altered or moved while C<rmtree> is running, and in particular on any
2381 +-directory trees with any path components or subdirectories potentially
2382 +-writable by untrusted users.
2383 +-
2384 +-Additionally, if the third parameter is not TRUE and C<rmtree> is
2385 +-interrupted, it may leave files and directories with permissions altered
2386 +-to allow deletion (and older versions of this module would even set
2387 +-files and directories to world-read/writable!)
2388 +-
2389 +-Note also that the occurrence of errors in C<rmtree> can be determined I<only>
2390 +-by trapping diagnostic messages using C<$SIG{__WARN__}>; it is not apparent
2391 +-from the return value.
2392 +-
2393 + =head1 DIAGNOSTICS
2394 +
2395 + =over 4
2396 +@@ -172,111 +156,127 @@ sub mkpath {
2397 + @created;
2398 + }
2399 +
2400 +-sub rmtree {
2401 +- my($roots, $verbose, $safe) = @_;
2402 +- my(@files);
2403 +- my($count) = 0;
2404 +- $verbose ||= 0;
2405 +- $safe ||= 0;
2406 ++sub _rmtree;
2407 ++sub _rmtree
2408 ++{
2409 ++ my ($path, $prefix, $up, $up_dev, $up_ino, $verbose, $safe) = @_;
2410 ++ my $up_name = $up eq '..' ? 'parent' : 'initial';
2411 ++
2412 ++ my ($dev, $ino) = lstat $path or return 0;
2413 ++ unless (-d _)
2414 ++ {
2415 ++ print "unlink $prefix$path\n" if $verbose;
2416 ++ unless (unlink $path)
2417 ++ {
2418 ++ carp "Can't remove file $prefix$path ($!)";
2419 ++ return 0;
2420 ++ }
2421 +
2422 +- if ( defined($roots) && length($roots) ) {
2423 +- $roots = [$roots] unless ref $roots;
2424 ++ return 1;
2425 + }
2426 +- else {
2427 +- carp "No root path(s) specified\n";
2428 +- return 0;
2429 ++
2430 ++ unless (chdir $path)
2431 ++ {
2432 ++ carp "Can't chdir to $prefix$path ($!)";
2433 ++ return 0;
2434 + }
2435 +
2436 +- my($root);
2437 +- foreach $root (@{$roots}) {
2438 +- if ($Is_MacOS) {
2439 +- $root = ":$root" if $root !~ /:/;
2440 +- $root =~ s#([^:])\z#$1:#;
2441 +- } else {
2442 +- $root =~ s#/\z##;
2443 +- }
2444 +- (undef, undef, my $rp) = lstat $root or next;
2445 +- $rp &= 07777; # don't forget setuid, setgid, sticky bits
2446 +- if ( -d _ ) {
2447 +- # notabene: 0700 is for making readable in the first place,
2448 +- # it's also intended to change it to writable in case we have
2449 +- # to recurse in which case we are better than rm -rf for
2450 +- # subtrees with strange permissions
2451 +- chmod($rp | 0700, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
2452 +- or carp "Can't make directory $root read+writeable: $!"
2453 +- unless $safe;
2454 +-
2455 +- if (opendir my $d, $root) {
2456 +- no strict 'refs';
2457 +- if (!defined ${"\cTAINT"} or ${"\cTAINT"}) {
2458 +- # Blindly untaint dir names
2459 +- @files = map { /^(.*)$/s ; $1 } readdir $d;
2460 +- } else {
2461 +- @files = readdir $d;
2462 +- }
2463 +- closedir $d;
2464 +- }
2465 +- else {
2466 +- carp "Can't read $root: $!";
2467 +- @files = ();
2468 +- }
2469 ++ # avoid a race condition where a directory may be replaced by a
2470 ++ # symlink between the lstat and the chdir
2471 ++ my ($new_dev, $new_ino, $perm) = stat '.';
2472 ++ unless ("$new_dev:$new_ino" eq "$dev:$ino")
2473 ++ {
2474 ++ croak "Directory $prefix$path changed before chdir, aborting";
2475 ++ }
2476 +
2477 +- # Deleting large numbers of files from VMS Files-11 filesystems
2478 +- # is faster if done in reverse ASCIIbetical order
2479 +- @files = reverse @files if $Is_VMS;
2480 +- ($root = VMS::Filespec::unixify($root)) =~ s#\.dir\z## if $Is_VMS;
2481 +- if ($Is_MacOS) {
2482 +- @files = map("$root$_", @files);
2483 +- } else {
2484 +- @files = map("$root/$_", grep $_!~/^\.{1,2}\z/s,@files);
2485 +- }
2486 +- $count += rmtree(\@files,$verbose,$safe);
2487 +- if ($safe &&
2488 +- ($Is_VMS ? !&VMS::Filespec::candelete($root) : !-w $root)) {
2489 +- print "skipped $root\n" if $verbose;
2490 +- next;
2491 +- }
2492 +- chmod $rp | 0700, $root
2493 +- or carp "Can't make directory $root writeable: $!"
2494 +- if $force_writeable;
2495 +- print "rmdir $root\n" if $verbose;
2496 +- if (rmdir $root) {
2497 +- ++$count;
2498 +- }
2499 +- else {
2500 +- carp "Can't remove directory $root: $!";
2501 +- chmod($rp, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
2502 +- or carp("and can't restore permissions to "
2503 +- . sprintf("0%o",$rp) . "\n");
2504 +- }
2505 +- }
2506 +- else {
2507 +- if ($safe &&
2508 +- ($Is_VMS ? !&VMS::Filespec::candelete($root)
2509 +- : !(-l $root || -w $root)))
2510 +- {
2511 +- print "skipped $root\n" if $verbose;
2512 +- next;
2513 +- }
2514 +- chmod $rp | 0600, $root
2515 +- or carp "Can't make file $root writeable: $!"
2516 +- if $force_writeable;
2517 +- print "unlink $root\n" if $verbose;
2518 +- # delete all versions under VMS
2519 +- for (;;) {
2520 +- unless (unlink $root) {
2521 +- carp "Can't unlink file $root: $!";
2522 +- if ($force_writeable) {
2523 +- chmod $rp, $root
2524 +- or carp("and can't restore permissions to "
2525 +- . sprintf("0%o",$rp) . "\n");
2526 +- }
2527 +- last;
2528 +- }
2529 +- ++$count;
2530 +- last unless $Is_VMS && lstat $root;
2531 +- }
2532 ++ $perm &= 07777;
2533 ++ my $nperm = $perm | 0700;
2534 ++ unless ($safe or $nperm == $perm or chmod $nperm, '.')
2535 ++ {
2536 ++ carp "Can't make directory $prefix$path read+writeable ($!)";
2537 ++ $nperm = $perm;
2538 ++ }
2539 ++
2540 ++ my $count = 0;
2541 ++ if (opendir my $dir, '.')
2542 ++ {
2543 ++ my $entry;
2544 ++ while (defined ($entry = readdir $dir))
2545 ++ {
2546 ++ next if $entry =~ /^\.\.?$/;
2547 ++ $entry =~ /^(.*)$/s; $entry = $1; # untaint
2548 ++ $count += _rmtree $entry, "$prefix$path/", '..', $dev, $ino,
2549 ++ $verbose, $safe;
2550 + }
2551 ++
2552 ++ closedir $dir;
2553 ++ }
2554 ++
2555 ++ # restore directory permissions if required (in case the rmdir
2556 ++ # below fails) now, while we're still in the directory and may do
2557 ++ # so without a race via '.'
2558 ++ unless ($nperm == $perm or chmod $perm, '.')
2559 ++ {
2560 ++ carp "Can't restore permissions on directory $prefix$path ($!)";
2561 ++ }
2562 ++
2563 ++ # don't leave the caller in an unexpected directory
2564 ++ unless (chdir $up)
2565 ++ {
2566 ++ croak "Can't return to $up_name directory from $prefix$path ($!)";
2567 ++ }
2568 ++
2569 ++ # ensure that a chdir .. didn't take us somewhere other than
2570 ++ # where we expected (see CVE-2002-0435)
2571 ++ unless (($new_dev, $new_ino) = stat '.'
2572 ++ and "$new_dev:$new_ino" eq "$up_dev:$up_ino")
2573 ++ {
2574 ++ croak "\u$up_name directory changed since entering $prefix$path";
2575 ++ }
2576 ++
2577 ++ print "rmdir $prefix$path\n" if $verbose;
2578 ++ if (rmdir $path)
2579 ++ {
2580 ++ $count++;
2581 ++ }
2582 ++ else
2583 ++ {
2584 ++ carp "Can't remove directory $prefix$path ($!)";
2585 ++ }
2586 ++
2587 ++ return $count;
2588 ++}
2589 ++
2590 ++sub rmtree
2591 ++{
2592 ++ my ($p, $verbose, $safe) = @_;
2593 ++ $p = [] unless defined $p and length $p;
2594 ++ $p = [ $p ] unless ref $p;
2595 ++ my @paths = grep defined && length, @$p;
2596 ++
2597 ++ # default to "unsafe" for non-root (will chmod dirs)
2598 ++ $safe = $> ? 0 : 1 unless defined $safe;
2599 ++
2600 ++ unless (@paths)
2601 ++ {
2602 ++ carp "No root path(s) specified";
2603 ++ return;
2604 ++ }
2605 ++
2606 ++ opendir my $oldpwd, '.' or do {
2607 ++ carp "Can't fetch initial working directory";
2608 ++ return;
2609 ++ };
2610 ++
2611 ++ my ($dev, $ino) = stat '.' or do {
2612 ++ carp "Can't stat initial working directory";
2613 ++ return;
2614 ++ };
2615 ++
2616 ++ my $count = 0;
2617 ++ for my $path (@paths)
2618 ++ {
2619 ++ $count += _rmtree $path, '', $oldpwd, $dev, $ino, $verbose, $safe;
2620 + }
2621 +
2622 + $count;
2623
2624 diff --git a/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch b/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch
2625 new file mode 100644
2626 index 0000000..4700058
2627 --- /dev/null
2628 +++ b/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch
2629 @@ -0,0 +1,256 @@
2630 +Fix a double free / segfault with utf8 regexps
2631 +Debian #454792
2632 +[rt.cpan.org #48156]
2633 +[rt.cpan.org #40641]
2634 +upstream change 29204
2635 +
2636 +UTF8_ALLOW_DEFAULT definition in utf8.h picked from upstream change 27688
2637 +
2638 +diff --git a/embed.fnc b/embed.fnc
2639 +index edfbc0e..26524c7 100644
2640 +--- a/embed.fnc
2641 ++++ b/embed.fnc
2642 +@@ -1168,6 +1168,7 @@ Es |void |reguni |NN const struct RExC_state_t *state|UV uv|NN char *s|NN STRLE
2643 + Es |regnode*|regclass |NN struct RExC_state_t *state
2644 + ERs |I32 |regcurly |NN const char *
2645 + Es |regnode*|reg_node |NN struct RExC_state_t *state|U8 op
2646 ++Es |UV |reg_recode |const char value|NULLOK SV **encp
2647 + Es |regnode*|regpiece |NN struct RExC_state_t *state|NN I32 *flagp
2648 + Es |void |reginsert |NN struct RExC_state_t *state|U8 op|NN regnode *opnd
2649 + Es |void |regoptail |NN struct RExC_state_t *state|NN regnode *p|NN regnode *val
2650 +diff --git a/embed.h b/embed.h
2651 +index 2b38fd5..372b04f 100644
2652 +--- a/embed.h
2653 ++++ b/embed.h
2654 +@@ -1234,6 +1234,7 @@
2655 + #define regclass S_regclass
2656 + #define regcurly S_regcurly
2657 + #define reg_node S_reg_node
2658 ++#define reg_recode S_reg_recode
2659 + #define regpiece S_regpiece
2660 + #define reginsert S_reginsert
2661 + #define regoptail S_regoptail
2662 +@@ -3277,6 +3278,7 @@
2663 + #define regclass(a) S_regclass(aTHX_ a)
2664 + #define regcurly(a) S_regcurly(aTHX_ a)
2665 + #define reg_node(a,b) S_reg_node(aTHX_ a,b)
2666 ++#define reg_recode(a,b) S_reg_recode(aTHX_ a,b)
2667 + #define regpiece(a,b) S_regpiece(aTHX_ a,b)
2668 + #define reginsert(a,b,c) S_reginsert(aTHX_ a,b,c)
2669 + #define regoptail(a,b,c) S_regoptail(aTHX_ a,b,c)
2670 +diff --git a/pod/perldiag.pod b/pod/perldiag.pod
2671 +index 9b3134c..7d95216 100644
2672 +--- a/pod/perldiag.pod
2673 ++++ b/pod/perldiag.pod
2674 +@@ -1900,6 +1900,15 @@ recognized by Perl or by a user-supplied handler. See L<attributes>.
2675 + (W printf) Perl does not understand the given format conversion. See
2676 + L<perlfunc/sprintf>.
2677 +
2678 ++=item Invalid escape in the specified encoding in regex; marked by <-- HERE in m/%s/
2679 ++
2680 ++(W regexp) The numeric escape (for example C<\xHH>) of value < 256
2681 ++didn't correspond to a single character through the conversion
2682 ++from the encoding specified by the encoding pragma.
2683 ++The escape was replaced with REPLACEMENT CHARACTER (U+FFFD) instead.
2684 ++The <-- HERE shows in the regular expression about where the
2685 ++escape was discovered.
2686 ++
2687 + =item Invalid [] range "%s" in regex; marked by <-- HERE in m/%s/
2688 +
2689 + (F) The range specified in a character class had a minimum character
2690 +diff --git a/proto.h b/proto.h
2691 +index 6d185dd..ef6c0cf 100644
2692 +--- a/proto.h
2693 ++++ b/proto.h
2694 +@@ -1748,6 +1748,7 @@ STATIC I32 S_regcurly(pTHX_ const char *)
2695 + __attribute__warn_unused_result__;
2696 +
2697 + STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t *state, U8 op);
2698 ++STATIC UV S_reg_recode(pTHX_ const char value, SV **encp);
2699 + STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t *state, I32 *flagp);
2700 + STATIC void S_reginsert(pTHX_ struct RExC_state_t *state, U8 op, regnode *opnd);
2701 + STATIC void S_regoptail(pTHX_ struct RExC_state_t *state, regnode *p, regnode *val);
2702 +diff --git a/regcomp.c b/regcomp.c
2703 +index 928cf39..98d48dd 100644
2704 +--- a/regcomp.c
2705 ++++ b/regcomp.c
2706 +@@ -2791,6 +2791,39 @@ S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp)
2707 + }
2708 +
2709 + /*
2710 ++ * reg_recode
2711 ++ *
2712 ++ * It returns the code point in utf8 for the value in *encp.
2713 ++ * value: a code value in the source encoding
2714 ++ * encp: a pointer to an Encode object
2715 ++ *
2716 ++ * If the result from Encode is not a single character,
2717 ++ * it returns U+FFFD (Replacement character) and sets *encp to NULL.
2718 ++ */
2719 ++STATIC UV
2720 ++S_reg_recode(pTHX_ const char value, SV **encp)
2721 ++{
2722 ++ STRLEN numlen = 1;
2723 ++ SV * const sv = sv_2mortal(newSVpvn(&value, numlen));
2724 ++ const char * const s = encp && *encp ? sv_recode_to_utf8(sv, *encp)
2725 ++ : SvPVX(sv);
2726 ++ const STRLEN newlen = SvCUR(sv);
2727 ++ UV uv = UNICODE_REPLACEMENT;
2728 ++
2729 ++ if (newlen)
2730 ++ uv = SvUTF8(sv)
2731 ++ ? utf8n_to_uvchr((U8*)s, newlen, &numlen, UTF8_ALLOW_DEFAULT)
2732 ++ : *(U8*)s;
2733 ++
2734 ++ if (!newlen || numlen != newlen) {
2735 ++ uv = UNICODE_REPLACEMENT;
2736 ++ if (encp)
2737 ++ *encp = NULL;
2738 ++ }
2739 ++ return uv;
2740 ++}
2741 ++
2742 ++/*
2743 + - regatom - the lowest level
2744 + *
2745 + * Optimization: gobbles an entire sequence of ordinary characters so that
2746 +@@ -3182,6 +3215,8 @@ tryagain:
2747 + ender = grok_hex(p, &numlen, &flags, NULL);
2748 + p += numlen;
2749 + }
2750 ++ if (PL_encoding && ender < 0x100)
2751 ++ goto recode_encoding;
2752 + break;
2753 + case 'c':
2754 + p++;
2755 +@@ -3201,6 +3236,17 @@ tryagain:
2756 + --p;
2757 + goto loopdone;
2758 + }
2759 ++ if (PL_encoding && ender < 0x100)
2760 ++ goto recode_encoding;
2761 ++ break;
2762 ++ recode_encoding:
2763 ++ {
2764 ++ SV* enc = PL_encoding;
2765 ++ ender = reg_recode((const char)(U8)ender, &enc);
2766 ++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
2767 ++ vWARN(p, "Invalid escape in the specified encoding");
2768 ++ RExC_utf8 = 1;
2769 ++ }
2770 + break;
2771 + case '\0':
2772 + if (p >= RExC_end)
2773 +@@ -3331,32 +3377,6 @@ tryagain:
2774 + break;
2775 + }
2776 +
2777 +- /* If the encoding pragma is in effect recode the text of
2778 +- * any EXACT-kind nodes. */
2779 +- if (PL_encoding && PL_regkind[(U8)OP(ret)] == EXACT) {
2780 +- STRLEN oldlen = STR_LEN(ret);
2781 +- SV *sv = sv_2mortal(newSVpvn(STRING(ret), oldlen));
2782 +-
2783 +- if (RExC_utf8)
2784 +- SvUTF8_on(sv);
2785 +- if (sv_utf8_downgrade(sv, TRUE)) {
2786 +- const char * const s = sv_recode_to_utf8(sv, PL_encoding);
2787 +- const STRLEN newlen = SvCUR(sv);
2788 +-
2789 +- if (SvUTF8(sv))
2790 +- RExC_utf8 = 1;
2791 +- if (!SIZE_ONLY) {
2792 +- DEBUG_r(PerlIO_printf(Perl_debug_log, "recode %*s to %*s\n",
2793 +- (int)oldlen, STRING(ret),
2794 +- (int)newlen, s));
2795 +- Copy(s, STRING(ret), newlen, char);
2796 +- STR_LEN(ret) += newlen - oldlen;
2797 +- RExC_emit += STR_SZ(newlen) - STR_SZ(oldlen);
2798 +- } else
2799 +- RExC_size += STR_SZ(newlen) - STR_SZ(oldlen);
2800 +- }
2801 +- }
2802 +-
2803 + return(ret);
2804 + }
2805 +
2806 +@@ -3734,6 +3754,8 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
2807 + value = grok_hex(RExC_parse, &numlen, &flags, NULL);
2808 + RExC_parse += numlen;
2809 + }
2810 ++ if (PL_encoding && value < 0x100)
2811 ++ goto recode_encoding;
2812 + break;
2813 + case 'c':
2814 + value = UCHARAT(RExC_parse++);
2815 +@@ -3741,13 +3763,24 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
2816 + break;
2817 + case '0': case '1': case '2': case '3': case '4':
2818 + case '5': case '6': case '7': case '8': case '9':
2819 +- {
2820 +- I32 flags = 0;
2821 +- numlen = 3;
2822 +- value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
2823 +- RExC_parse += numlen;
2824 +- break;
2825 +- }
2826 ++ {
2827 ++ I32 flags = 0;
2828 ++ numlen = 3;
2829 ++ value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
2830 ++ RExC_parse += numlen;
2831 ++ if (PL_encoding && value < 0x100)
2832 ++ goto recode_encoding;
2833 ++ break;
2834 ++ }
2835 ++ recode_encoding:
2836 ++ {
2837 ++ SV* enc = PL_encoding;
2838 ++ value = reg_recode((const char)(U8)value, &enc);
2839 ++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
2840 ++ vWARN(RExC_parse,
2841 ++ "Invalid escape in the specified encoding");
2842 ++ break;
2843 ++ }
2844 + default:
2845 + if (!SIZE_ONLY && isALPHA(value) && ckWARN(WARN_REGEXP))
2846 + vWARN2(RExC_parse,
2847 +diff --git a/t/uni/tr_utf8.t b/t/uni/tr_utf8.t
2848 +index 606a84a..354156a 100755
2849 +--- a/t/uni/tr_utf8.t
2850 ++++ b/t/uni/tr_utf8.t
2851 +@@ -31,7 +31,7 @@ BEGIN {
2852 + }
2853 +
2854 + use strict;
2855 +-use Test::More tests => 7;
2856 ++use Test::More tests => 8;
2857 +
2858 + use encoding 'utf8';
2859 +
2860 +@@ -67,4 +67,12 @@ is($str, $hiragana, "s/// # hiragana -> katakana");
2861 + $line =~ tr/bcdeghijklmnprstvwxyz$02578/בצדעגהיײקלמנפּרסטװשכיזשױתײחא/;
2862 + is($line, "aבצדעfגהיײקלמנoפqּרסuטװשכיזש1ױ34ת6ײח9", "[perl #16843]");
2863 + }
2864 ++
2865 ++{
2866 ++ # [perl #40641]
2867 ++ my $str = qq/Gebääääääääääääääääääääude/;
2868 ++ my $reg = qr/Gebääääääääääääääääääääude/;
2869 ++ ok($str =~ /$reg/, "[perl #40641]");
2870 ++}
2871 ++
2872 + __END__
2873 +diff --git a/utf8.h b/utf8.h
2874 +index 6d63897..3800866 100644
2875 +--- a/utf8.h
2876 ++++ b/utf8.h
2877 +@@ -198,6 +198,8 @@ encoded character.
2878 + UTF8_ALLOW_SURROGATE|UTF8_ALLOW_FFFF)
2879 + #define UTF8_ALLOW_ANY 0x00FF
2880 + #define UTF8_CHECK_ONLY 0x0200
2881 ++#define UTF8_ALLOW_DEFAULT (ckWARN(WARN_UTF8) ? 0 : \
2882 ++ UTF8_ALLOW_ANYUV)
2883 +
2884 + #define UNICODE_SURROGATE_FIRST 0xD800
2885 + #define UNICODE_SURROGATE_LAST 0xDFFF
2886
2887 diff --git a/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch b/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch
2888 new file mode 100644
2889 index 0000000..edcfc6a
2890 --- /dev/null
2891 +++ b/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch
2892 @@ -0,0 +1,111 @@
2893 +diff -Naurp perl-5.8.8-orig/lib/ExtUtils/Liblist.pm perl-5.8.8/lib/ExtUtils/Liblist.pm
2894 +--- perl-5.8.8-orig/lib/ExtUtils/Liblist.pm 2003-04-07 14:58:17.000000000 -0400
2895 ++++ perl-5.8.8/lib/ExtUtils/Liblist.pm 2006-02-07 09:57:04.000000000 -0500
2896 +@@ -87,6 +87,11 @@ libraries. LD_RUN_PATH is a colon separ
2897 + in LDLOADLIBS. It is passed as an environment variable to the process
2898 + that links the shared library.
2899 +
2900 ++The Red Hat extension: This generation of LD_RUN_PATH is disabled by default.
2901 ++To use the generated LD_RUN_PATH for all links, set the USE_MM_LD_RUN_PATH
2902 ++MakeMaker object attribute / argument, (or set the $USE_MM_LD_RUN_PATH
2903 ++environment variable).
2904 ++
2905 + =head2 BSLOADLIBS
2906 +
2907 + List of those libraries that are needed but can be linked in
2908 +diff -Naurp perl-5.8.8-orig/lib/ExtUtils/MM_Unix.pm perl-5.8.8/lib/ExtUtils/MM_Unix.pm
2909 +--- perl-5.8.8-orig/lib/ExtUtils/MM_Unix.pm 2005-05-21 05:42:56.000000000 -0400
2910 ++++ perl-5.8.8/lib/ExtUtils/MM_Unix.pm 2006-02-07 09:56:08.000000000 -0500
2911 +@@ -941,7 +941,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
2912 + }
2913 +
2914 + my $ld_run_path_shell = "";
2915 +- if ($self->{LD_RUN_PATH} ne "") {
2916 ++ if (($self->{LD_RUN_PATH} ne "") && ($self->{USE_MM_LD_RUN_PATH})) {
2917 + $ld_run_path_shell = 'LD_RUN_PATH="$(LD_RUN_PATH)" ';
2918 + }
2919 +
2920 +diff -Naurp perl-5.8.8-orig/lib/ExtUtils/MakeMaker.pm perl-5.8.8/lib/ExtUtils/MakeMaker.pm
2921 +--- perl-5.8.8-orig/lib/ExtUtils/MakeMaker.pm 2005-10-21 10:11:04.000000000 -0400
2922 ++++ perl-5.8.8/lib/ExtUtils/MakeMaker.pm 2006-02-07 09:55:03.000000000 -0500
2923 +@@ -233,7 +233,7 @@ sub full_setup {
2924 + PERL_SRC PERM_RW PERM_RWX
2925 + PL_FILES PM PM_FILTER PMLIBDIRS POLLUTE PPM_INSTALL_EXEC
2926 + PPM_INSTALL_SCRIPT PREREQ_FATAL PREREQ_PM PREREQ_PRINT PRINT_PREREQ
2927 +- SIGN SKIP TYPEMAPS VERSION VERSION_FROM XS XSOPT XSPROTOARG
2928 ++ SKIP TYPEMAPS USE_MM_LD_RUN_PATH VERSION VERSION_FROM XS XSOPT XSPROTOARG
2929 + XS_VERSION clean depend dist dynamic_lib linkext macro realclean
2930 + tool_autosplit
2931 +
2932 +@@ -371,6 +371,26 @@ sub new {
2933 + exit 0;
2934 + }
2935 +
2936 ++ # USE_MM_LD_RUN_PATH - borrowed from RedHat to disable automatic RPATH generation
2937 ++ if ( ( ! $self->{USE_MM_LD_RUN_PATH} )
2938 ++ &&( ("@ARGV" =~ /\bUSE_MM_LD_RUN_PATH(=([01]))?\b/)
2939 ++ ||( exists( $ENV{USE_MM_LD_RUN_PATH} )
2940 ++ &&( $ENV{USE_MM_LD_RUN_PATH} =~ /([01])?$/ )
2941 ++ )
2942 ++ )
2943 ++ )
2944 ++ {
2945 ++ my $v = $1;
2946 ++ if( $v )
2947 ++ {
2948 ++ $v = ($v=~/=([01])$/)[0];
2949 ++ }else
2950 ++ {
2951 ++ $v = 1;
2952 ++ };
2953 ++ $self->{USE_MM_LD_RUN_PATH}=$v;
2954 ++ };
2955 ++
2956 + print STDOUT "MakeMaker (v$VERSION)\n" if $Verbose;
2957 + if (-f "MANIFEST" && ! -f "Makefile"){
2958 + check_manifest();
2959 +@@ -2057,6 +2077,44 @@ precedence. A typemap in the current di
2960 + precedence, even if it isn't listed in TYPEMAPS. The default system
2961 + typemap has lowest precedence.
2962 +
2963 ++=item USE_MM_LD_RUN_PATH
2964 ++
2965 ++boolean
2966 ++This feature is borrowed from Red Hat to deal with RPATH issues.
2967 ++Please see bug 81745 - http://bugs.gentoo.org/81745 - for more
2968 ++information.
2969 ++
2970 ++The Red Hat perl MakeMaker distribution differs from the standard
2971 ++upstream release in that it disables use of the MakeMaker generated
2972 ++LD_RUN_PATH by default, UNLESS this attribute is specified , or the
2973 ++USE_MM_LD_RUN_PATH environment variable is set during the MakeMaker run.
2974 ++
2975 ++The upstream MakeMaker will set the ld(1) environment variable LD_RUN_PATH
2976 ++to the concatenation of every -L ld(1) option directory in which a -l ld(1)
2977 ++option library is found, which is used as the ld(1) -rpath option if none
2978 ++is specified. This means that, if your application builds shared libraries
2979 ++and your MakeMaker application links to them, that the absolute paths of the
2980 ++libraries in the build tree will be inserted into the RPATH header of all
2981 ++MakeMaker generated binaries, and that such binaries will be unable to link
2982 ++to these libraries if they do not still reside in the build tree directories
2983 ++(unlikely) or in the system library directories (/lib or /usr/lib), regardless
2984 ++of any LD_LIBRARY_PATH setting. So if you specified -L../mylib -lmylib , and
2985 ++your 'libmylib.so' gets installed into /some_directory_other_than_usr_lib,
2986 ++your MakeMaker application will be unable to link to it, even if LD_LIBRARY_PATH
2987 ++is set to include /some_directory_other_than_usr_lib, because RPATH overrides
2988 ++LD_LIBRARY_PATH.
2989 ++
2990 ++So for Red Hat MakeMaker builds LD_RUN_PATH is NOT generated by default for
2991 ++every link. You can still use explicit -rpath ld options or the LD_RUN_PATH
2992 ++environment variable during the build to generate an RPATH for the binaries.
2993 ++
2994 ++You can set the USE_MM_LD_RUN_PATH attribute to 1 on the MakeMaker command
2995 ++line or in the WriteMakefile arguments to enable generation of LD_RUN_PATH
2996 ++for every link command.
2997 ++
2998 ++USE_MM_LD_RUN_PATH will default to 1 (LD_RUN_PATH will be used) IF the
2999 ++$USE_MM_LD_RUN_PATH environment variable is set during a MakeMaker run.
3000 ++
3001 + =item VENDORPREFIX
3002 +
3003 + Like PERLPREFIX, but only for the vendor install locations.
3004
3005 diff --git a/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch b/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch
3006 new file mode 100644
3007 index 0000000..325caaf
3008 --- /dev/null
3009 +++ b/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch
3010 @@ -0,0 +1,12 @@
3011 +--- perl-5.8.8/ext/IPC/SysV/SysV.xs.no_asm_page_h 2001-06-30 14:46:07.000000000 -0400
3012 ++++ perl-5.8.8/ext/IPC/SysV/SysV.xs 2006-06-02 17:37:22.000000000 -0400
3013 +@@ -3,9 +3,6 @@
3014 + #include "XSUB.h"
3015 +
3016 + #include <sys/types.h>
3017 +-#ifdef __linux__
3018 +-# include <asm/page.h>
3019 +-#endif
3020 + #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
3021 + #ifndef HAS_SEM
3022 + # include <sys/ipc.h>
3023
3024 diff --git a/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch
3025 new file mode 100644
3026 index 0000000..85f66fe
3027 --- /dev/null
3028 +++ b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch
3029 @@ -0,0 +1,33 @@
3030 +--- Configure.orig 2009-11-04 11:09:08.934965499 +0100
3031 ++++ Configure 2009-11-04 11:13:19.055305854 +0100
3032 +@@ -7617,7 +7617,7 @@
3033 + cat <<EOM
3034 + You appear to have ELF support. I'll use $cc to build dynamic libraries.
3035 + EOM
3036 +- dflt="$cc"
3037 ++ dflt="$cc $optimize"
3038 + else
3039 + echo "I'll use ld to build dynamic libraries."
3040 + dflt='ld'
3041 +--- Makefile.SH.orig 2009-11-04 15:34:22.643322823 +0100
3042 ++++ Makefile.SH 2009-11-04 15:34:30.110147884 +0100
3043 +@@ -201,7 +201,7 @@
3044 + LD = $ld
3045 +
3046 + LDFLAGS = $ldflags
3047 +-CLDFLAGS = $ldflags
3048 ++CLDFLAGS = \$(OPTIMIZE) $ldflags
3049 +
3050 + mallocsrc = $mallocsrc
3051 + mallocobj = $mallocobj
3052 +--- x2p/Makefile.SH.orig 2009-11-04 15:54:14.146759212 +0100
3053 ++++ x2p/Makefile.SH 2009-11-04 15:54:19.963253154 +0100
3054 +@@ -107,7 +107,7 @@
3055 + $(REALPERL) -I../lib ../utils/perlcc -I .. -L .. $(plextract) -v -log ../compilelog;
3056 +
3057 + a2p$(EXE_EXT): $(obj) a2p$(OBJ_EXT)
3058 +- $(CC) -o a2p $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs)
3059 ++ $(CC) -o a2p $(OPTIMIZE) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs)
3060 +
3061 + # I now supply a2p.c with the kits, so the following section is
3062 + # used only if you force byacc to run by saying
3063
3064 diff --git a/dev-lang/perl/files/perl-5.8.8-cplusplus.patch b/dev-lang/perl/files/perl-5.8.8-cplusplus.patch
3065 new file mode 100644
3066 index 0000000..064bda4
3067 --- /dev/null
3068 +++ b/dev-lang/perl/files/perl-5.8.8-cplusplus.patch
3069 @@ -0,0 +1,22 @@
3070 +--- perl.h.orig 2006-03-29 08:53:46.000000000 -0500
3071 ++++ perl.h 2006-03-29 08:54:19.000000000 -0500
3072 +@@ -159,7 +159,7 @@ struct perl_thread;
3073 + #endif
3074 +
3075 + #ifndef PERL_UNUSED_DECL
3076 +-# ifdef HASATTRIBUTE_UNUSED
3077 ++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
3078 + # define PERL_UNUSED_DECL __attribute__unused__
3079 + # else
3080 + # define PERL_UNUSED_DECL
3081 +--- XSUB.h.orig 2006-03-29 08:54:24.000000000 -0500
3082 ++++ XSUB.h 2006-03-29 08:54:48.000000000 -0500
3083 +@@ -91,7 +91,7 @@ handled automatically by C<xsubpp>.
3084 + #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
3085 + # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
3086 + #else
3087 +-# ifdef HASATTRIBUTE_UNUSED
3088 ++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
3089 + # define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
3090 + # else
3091 + # define XS(name) void name(pTHX_ CV* cv)
3092
3093 diff --git a/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch b/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch
3094 new file mode 100644
3095 index 0000000..b96eea8
3096 --- /dev/null
3097 +++ b/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch
3098 @@ -0,0 +1,22 @@
3099 +Use $CC to link (and check for broken compilers), such that we don't get
3100 +linked modules of a different bitness.
3101 +http://bugs.gentoo.org/show_bug.cgi?id=297751
3102 +
3103 +--- hints/darwin.sh
3104 ++++ hints/darwin.sh
3105 +@@ -128,13 +128,13 @@
3106 + ccflags="${ccflags} ${cppflags}"
3107 +
3108 + # Known optimizer problems.
3109 +-case "`cc -v 2>&1`" in
3110 ++case "`${cc:-gcc} -v 2>&1`" in
3111 + *"3.1 20020105"*) toke_cflags='optimize=""' ;;
3112 + esac
3113 +
3114 + # Shared library extension is .dylib.
3115 + # Bundle extension is .bundle.
3116 +-ld='cc';
3117 ++ld="${cc:-gcc}";
3118 + so='dylib';
3119 + dlext='bundle';
3120 + usedl='define';
3121
3122 diff --git a/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch b/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch
3123 new file mode 100644
3124 index 0000000..52f32bf
3125 --- /dev/null
3126 +++ b/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch
3127 @@ -0,0 +1,170 @@
3128 +Index: perl-5.8.8/Configure
3129 +===================================================================
3130 +--- perl-5.8.8.orig/Configure 2006-01-08 14:51:03 +0000
3131 ++++ perl-5.8.8/Configure 2006-02-14 13:41:41 +0000
3132 +@@ -3130,6 +3130,8 @@
3133 + dgux) osname=dgux
3134 + osvers="$3"
3135 + ;;
3136 ++ dragonfly) osname=dragonfly
3137 ++ osvers="$3" ;;
3138 + dynixptx*) osname=dynixptx
3139 + osvers=`echo "$4"|sed 's/^v//'`
3140 + ;;
3141 +@@ -7889,7 +7891,7 @@
3142 + solaris)
3143 + xxx="-R $shrpdir"
3144 + ;;
3145 +- freebsd|netbsd|openbsd|interix)
3146 ++ freebsd|netbsd|openbsd|dragonfly|interix)
3147 + xxx="-Wl,-R$shrpdir"
3148 + ;;
3149 + bsdos|linux|irix*|dec_osf|gnu*)
3150 +Index: perl-5.8.8/Makefile.SH
3151 +===================================================================
3152 +--- perl-5.8.8.orig/Makefile.SH 2006-01-24 12:49:44 +0000
3153 ++++ perl-5.8.8/Makefile.SH 2006-02-14 13:46:57 +0000
3154 +@@ -73,7 +73,7 @@
3155 + sunos*)
3156 + linklibperl="-lperl"
3157 + ;;
3158 +- netbsd*|freebsd[234]*|openbsd*)
3159 ++ netbsd*|freebsd[234]*|openbsd*|dragonfly*)
3160 + linklibperl="-L. -lperl"
3161 + ;;
3162 + interix*)
3163 +@@ -990,6 +990,10 @@
3164 + n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
3165 + @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
3166 +
3167 ++.PHONY: printconfig
3168 ++printconfig:
3169 ++ @eval `$(LDLIBPTH) ./perl -Ilib -V:$(CONFIGVAR)`; echo $$$(CONFIGVAR)
3170 ++
3171 + .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
3172 + realclean _realcleaner clobber _clobber \
3173 + distclean veryclean _verycleaner
3174 +Index: perl-5.8.8/hints/dragonfly.sh
3175 +===================================================================
3176 +--- perl-5.8.8.orig/hints/dragonfly.sh 1970-01-01 00:00:00 +0000
3177 ++++ perl-5.8.8/hints/dragonfly.sh 2006-02-14 13:15:04 +0000
3178 +@@ -0,0 +1,118 @@
3179 ++# hints/dragonfly.sh
3180 ++#
3181 ++# This file is mostly copied from hints/freebsd.sh with the OS version
3182 ++# information taken out and only the FreeBSD-4 information intact.
3183 ++# Please check with Todd Willey <xtoddx@×××××.com> before making
3184 ++# modifications to this file.
3185 ++
3186 ++case "$osvers" in
3187 ++*) usevfork='true'
3188 ++ case "$usemymalloc" in
3189 ++ "") usemymalloc='n'
3190 ++ ;;
3191 ++ esac
3192 ++ libswanted=`echo $libswanted | sed 's/ malloc / /'`
3193 ++ ;;
3194 ++esac
3195 ++
3196 ++# Dynamic Loading flags have not changed much, so they are separated
3197 ++# out here to avoid duplicating them everywhere.
3198 ++case "$osvers" in
3199 ++*)
3200 ++ objformat=`/usr/bin/objformat`
3201 ++ if [ x$objformat = xelf ]; then
3202 ++ libpth="/usr/lib /usr/local/lib"
3203 ++ glibpth="/usr/lib /usr/local/lib"
3204 ++ ldflags="-Wl,-E "
3205 ++ lddlflags="-shared "
3206 ++ else
3207 ++ if [ -e /usr/lib/aout ]; then
3208 ++ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
3209 ++ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
3210 ++ fi
3211 ++ lddlflags='-Bshareable'
3212 ++ fi
3213 ++ cccdlflags='-DPIC -fPIC'
3214 ++ ;;
3215 ++esac
3216 ++
3217 ++case "$osvers" in
3218 ++*)
3219 ++ ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
3220 ++ if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
3221 ++ usenm=false
3222 ++ fi
3223 ++ ;;
3224 ++esac
3225 ++
3226 ++cat <<'EOM' >&4
3227 ++
3228 ++Some users have reported that Configure halts when testing for
3229 ++the O_NONBLOCK symbol with a syntax error. This is apparently a
3230 ++sh error. Rerunning Configure with ksh apparently fixes the
3231 ++problem. Try
3232 ++ ksh Configure [your options]
3233 ++
3234 ++EOM
3235 ++
3236 ++# From: Anton Berezin <tobez@×××××××.dk>
3237 ++# To: perl5-porters@××××.org
3238 ++# Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
3239 ++# Date: 30 Nov 1998 19:46:24 +0100
3240 ++# Message-ID: <864srhhvcv.fsf@××××××××××××.dk>
3241 ++
3242 ++signal_t='void'
3243 ++d_voidsig='define'
3244 ++
3245 ++# This script UU/usethreads.cbu will get 'called-back' by Configure
3246 ++# after it has prompted the user for whether to use threads.
3247 ++cat > UU/usethreads.cbu <<'EOCBU'
3248 ++case "$usethreads" in
3249 ++$define|true|[yY]*)
3250 ++ lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
3251 ++ case "$osvers" in
3252 ++ *)
3253 ++ if [ ! -r "$lc_r" ]; then
3254 ++ cat <<EOM >&4
3255 ++POSIX threads should be supported by FreeBSD $osvers --
3256 ++but your system is missing the shared libc_r.
3257 ++(/sbin/ldconfig -r doesn't find any).
3258 ++
3259 ++Consider using the latest STABLE release.
3260 ++EOM
3261 ++ exit 1
3262 ++ fi
3263 ++ case "$osvers" in
3264 ++ *) ldflags="-pthread $ldflags"
3265 ++ ;;
3266 ++ esac
3267 ++ # Both in 4.x and 5.x gethostbyaddr_r exists but
3268 ++ # it is "Temporary function, not threadsafe"...
3269 ++ # Presumably earlier it didn't even exist.
3270 ++ d_gethostbyaddr_r="undef"
3271 ++ d_gethostbyaddr_r_proto="0"
3272 ++ ;;
3273 ++
3274 ++ esac
3275 ++
3276 ++ set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
3277 ++ shift
3278 ++ libswanted="$*"
3279 ++ # Configure will probably pick the wrong libc to use for nm scan.
3280 ++ # The safest quick-fix is just to not use nm at all...
3281 ++ usenm=false
3282 ++
3283 ++ unset lc_r
3284 ++
3285 ++ # Even with the malloc mutexes the Perl malloc does not
3286 ++ # seem to be threadsafe in FreeBSD?
3287 ++ case "$usemymalloc" in
3288 ++ '') usemymalloc=n ;;
3289 ++ esac
3290 ++esac
3291 ++EOCBU
3292 ++
3293 ++# malloc wrap works
3294 ++case "$usemallocwrap" in
3295 ++'') usemallocwrap='define' ;;
3296 ++esac
3297 +
3298
3299 diff --git a/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
3300 new file mode 100644
3301 index 0000000..7dc1a65
3302 --- /dev/null
3303 +++ b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
3304 @@ -0,0 +1,57 @@
3305 +Index: perl-5.8.8/hints/freebsd.sh
3306 +===================================================================
3307 +--- perl-5.8.8.orig/hints/freebsd.sh
3308 ++++ perl-5.8.8/hints/freebsd.sh
3309 +@@ -88,6 +88,8 @@ case "$osvers" in
3310 + esac
3311 + libswanted=`echo $libswanted | sed 's/ malloc / /'`
3312 + libswanted=`echo $libswanted | sed 's/ bind / /'`
3313 ++ libswanted=`echo $libswanted | sed 's/ dl / /'`
3314 ++ libswanted=`echo $libswanted | sed 's/ c / /'`
3315 + # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
3316 + libswanted=`echo $libswanted | sed 's/ iconv / /'`
3317 + d_setregid='define'
3318 +@@ -102,6 +104,10 @@ case "$osvers" in
3319 + ;;
3320 + esac
3321 + libswanted=`echo $libswanted | sed 's/ malloc / /'`
3322 ++ libswanted=`echo $libswanted | sed 's/ bind / /'`
3323 ++ libswanted=`echo $libswanted | sed 's/ dl / /'`
3324 ++ libswanted=`echo $libswanted | sed 's/ iconv / /'`
3325 ++ libswanted=`echo $libswanted | sed 's/ c / /'`
3326 + ;;
3327 + esac
3328 +
3329 +@@ -116,17 +122,17 @@ case "$osvers" in
3330 +
3331 + *)
3332 + objformat=`/usr/bin/objformat`
3333 +- if [ x$objformat = xelf ]; then
3334 +- libpth="/usr/lib /usr/local/lib"
3335 +- glibpth="/usr/lib /usr/local/lib"
3336 +- ldflags="-Wl,-E "
3337 +- lddlflags="-shared "
3338 +- else
3339 ++ if [ x$objformat = xaout ]; then
3340 + if [ -e /usr/lib/aout ]; then
3341 + libpth="/usr/lib/aout /usr/local/lib /usr/lib"
3342 + glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
3343 + fi
3344 + lddlflags='-Bshareable'
3345 ++ else
3346 ++ libpth="/usr/lib /usr/local/lib"
3347 ++ glibpth="/usr/lib /usr/local/lib"
3348 ++ ldflags="-Wl,-E"
3349 ++ lddlflags="-shared "
3350 + fi
3351 + cccdlflags='-DPIC -fPIC'
3352 + ;;
3353 +@@ -137,7 +143,7 @@ case "$osvers" in
3354 +
3355 + *)
3356 + ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
3357 +- if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
3358 ++ if /usr/bin/file -L /usr/lib/libc.so | grep -vq "not stripped" ; then
3359 + usenm=false
3360 + fi
3361 + ;;
3362
3363 diff --git a/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch b/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch
3364 new file mode 100644
3365 index 0000000..c75aa89
3366 --- /dev/null
3367 +++ b/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch
3368 @@ -0,0 +1,72 @@
3369 +ExtUtils/Command.pm (among other things) expects to be able to destroy
3370 +a strangely-permissioned testdir. This is a backport of the chdir/chmod
3371 +work performed in File::Path released in Perl 5.10.0.
3372 +
3373 +--- perl-5.8.7.orig/lib/File/Path.pm 2008-12-05 13:23:32.000000000 -0800
3374 ++++ perl-5.8.7/lib/File/Path.pm 2008-12-05 13:33:13.000000000 -0800
3375 +@@ -162,7 +162,7 @@
3376 + {
3377 + my ($path, $prefix, $up, $up_dev, $up_ino, $verbose, $safe) = @_;
3378 +
3379 +- my ($dev, $ino) = lstat $path or return 0;
3380 ++ my ($dev, $ino, $perm) = lstat $path or return 0;
3381 + unless (-d _)
3382 + {
3383 + print "unlink $prefix$path\n" if $verbose;
3384 +@@ -175,15 +175,25 @@
3385 + return 1;
3386 + }
3387 +
3388 +- unless (chdir $path)
3389 +- {
3390 ++ if (!chdir($path)) {
3391 ++ # see if we can escalate privileges to get in
3392 ++ # (e.g. funny protection mask such as -w- instead of rwx)
3393 ++ $perm &= 07777;
3394 ++ my $nperm = $perm | 0700;
3395 ++ if (!($safe or $nperm == $perm or chmod($nperm, $path))) {
3396 ++ carp "cannot make $prefix$path read-write-exec";
3397 ++ return 0;
3398 ++ }
3399 ++ elsif (!chdir($path)) {
3400 + carp "Can't chdir to $prefix$path ($!)";
3401 + return 0;
3402 ++ }
3403 + }
3404 +
3405 + # avoid a race condition where a directory may be replaced by a
3406 + # symlink between the lstat and the chdir
3407 +- my ($new_dev, $new_ino, $perm) = stat '.';
3408 ++ my ($new_dev, $new_ino);
3409 ++ ($new_dev, $new_ino, $perm) = stat '.';
3410 + unless ("$new_dev:$new_ino" eq "$dev:$ino")
3411 + {
3412 + croak "Directory $prefix$path changed before chdir, aborting";
3413 +--- perl-5.8.8.orig/lib/ExtUtils/t/Command.t
3414 ++++ perl-5.8.8/lib/ExtUtils/t/Command.t
3415 +@@ -23,7 +23,7 @@
3416 + }
3417 +
3418 + BEGIN {
3419 +- use Test::More tests => 38;
3420 ++ use Test::More tests => 39;
3421 + use File::Spec;
3422 + }
3423 +
3424 +@@ -148,7 +148,7 @@
3425 + $^O eq 'NetWare' || $^O eq 'dos' || $^O eq 'cygwin' ||
3426 + $^O eq 'MacOS'
3427 + ) {
3428 +- skip( "different file permission semantics on $^O", 4);
3429 ++ skip( "different file permission semantics on $^O", 5);
3430 + }
3431 +
3432 + @ARGV = ('testdir');
3433 +@@ -178,6 +178,7 @@
3434 +
3435 + @ARGV = ('testdir');
3436 + rm_rf;
3437 ++ ok( ! -e 'testdir', 'rm_rf can delete a read-only dir' );
3438 + }
3439 +
3440 +
3441
3442 diff --git a/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch b/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch
3443 new file mode 100644
3444 index 0000000..6904136
3445 --- /dev/null
3446 +++ b/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch
3447 @@ -0,0 +1,11 @@
3448 +diff -Naur perl-5.8.8-orig/makedepend.SH perl-5.8.8/makedepend.SH
3449 +--- perl-5.8.8-orig/makedepend.SH 2006-10-01 20:05:40.000000000 -0600
3450 ++++ perl-5.8.8/makedepend.SH 2006-10-01 20:07:03.000000000 -0600
3451 +@@ -167,6 +167,7 @@
3452 + -e '/^#.*<builtin>/d' \
3453 + -e '/^#.*<built-in>/d' \
3454 + -e '/^#.*<command line>/d' \
3455 ++ -e '/^#.*<command-line>/d' \
3456 + -e '/^#.*"-"/d' \
3457 + -e '/: file path prefix .* never used$/d' \
3458 + -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
3459
3460 diff --git a/dev-lang/perl/files/perl-5.8.8-lib32.patch b/dev-lang/perl/files/perl-5.8.8-lib32.patch
3461 new file mode 100644
3462 index 0000000..88d5049
3463 --- /dev/null
3464 +++ b/dev-lang/perl/files/perl-5.8.8-lib32.patch
3465 @@ -0,0 +1,76 @@
3466 +--- a/Configure
3467 ++++ b/Configure
3468 +@@ -1255,12 +1255,12 @@ libnames=''
3469 + : change the next line if compiling for Xenix/286 on Xenix/386
3470 + xlibpth='/usr/lib/386 /lib/386'
3471 + : Possible local library directories to search.
3472 +-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
3473 +-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
3474 ++loclibpth="/usr/local/lib32 /opt/local/lib32 /usr/gnu/lib32"
3475 ++loclibpth="$loclibpth /opt/gnu/lib32 /usr/GNU/lib32 /opt/GNU/lib32"
3476 +
3477 + : general looking path for locating libraries
3478 +-glibpth="/lib /usr/lib $xlibpth"
3479 +-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
3480 ++glibpth="/lib32 /usr/lib32 $xlibpth"
3481 ++glibpth="$glibpth /usr/ccs/lib32 /usr/ucblib /usr/local/lib32"
3482 + test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
3483 + test -f /shlib/libc.so && glibpth="/shlib $glibpth"
3484 +
3485 +@@ -5945,8 +5945,8 @@ fi
3486 + : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
3487 + case "$installstyle" in
3488 + '') case "$prefix" in
3489 +- *perl*) dflt='lib';;
3490 +- *) dflt='lib/perl5' ;;
3491 ++ *perl*) dflt='lib32';;
3492 ++ *) dflt='lib32/perl5' ;;
3493 + esac
3494 + ;;
3495 + *) dflt="$installstyle" ;;
3496 +@@ -5962,8 +5962,8 @@ installstyle=$dflt
3497 + : /opt/perl/lib/perl5... would be redundant.
3498 + : The default "style" setting is made in installstyle.U
3499 + case "$installstyle" in
3500 +-*lib/perl5*) set dflt privlib lib/$package/$version ;;
3501 +-*) set dflt privlib lib/$version ;;
3502 ++*lib32/perl5*) set dflt privlib lib32/$package/$version ;;
3503 ++*) set dflt privlib lib32/$version ;;
3504 + esac
3505 + eval $prefixit
3506 + $cat <<EOM
3507 +@@ -6465,8 +6465,8 @@ siteprefixexp="$ansexp"
3508 + prog=`echo $package | $sed 's/-*[0-9.]*$//'`
3509 + case "$sitelib" in
3510 + '') case "$installstyle" in
3511 +- *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
3512 +- *) dflt=$siteprefix/lib/site_$prog/$version ;;
3513 ++ *lib32/perl5*) dflt=$siteprefix/lib32/$package/site_$prog/$version ;;
3514 ++ *) dflt=$siteprefix/lib32/site_$prog/$version ;;
3515 + esac
3516 + ;;
3517 + *) dflt="$sitelib"
3518 +@@ -6592,8 +6592,8 @@ case "$vendorprefix" in
3519 + '')
3520 + prog=`echo $package | $sed 's/-*[0-9.]*$//'`
3521 + case "$installstyle" in
3522 +- *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
3523 +- *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
3524 ++ *lib32/perl5*) dflt=$vendorprefix/lib32/$package/vendor_$prog/$version ;;
3525 ++ *) dflt=$vendorprefix/lib32/vendor_$prog/$version ;;
3526 + esac
3527 + ;;
3528 + *) dflt="$vendorlib"
3529 +@@ -10550,9 +10550,9 @@ else
3530 + else
3531 + for net in net socket
3532 + do
3533 +- if test -f /usr/lib/lib$net$_a; then
3534 +- ( ($nm $nm_opt /usr/lib/lib$net$_a | eval $nm_extract) || \
3535 +- $ar t /usr/lib/lib$net$_a) 2>/dev/null >> libc.list
3536 ++ if test -f /usr/lib32/lib$net$_a; then
3537 ++ ( ($nm $nm_opt /usr/lib32/lib$net$_a | eval $nm_extract) || \
3538 ++ $ar t /usr/lib32/lib$net$_a) 2>/dev/null >> libc.list
3539 + if $contains socket libc.list >/dev/null 2>&1; then
3540 + d_socket="$define"
3541 + socketlib="-l$net"
3542
3543 diff --git a/dev-lang/perl/files/perl-5.8.8-lib64.patch b/dev-lang/perl/files/perl-5.8.8-lib64.patch
3544 new file mode 100644
3545 index 0000000..4cc3aee
3546 --- /dev/null
3547 +++ b/dev-lang/perl/files/perl-5.8.8-lib64.patch
3548 @@ -0,0 +1,76 @@
3549 +--- a/Configure
3550 ++++ b/Configure
3551 +@@ -1255,12 +1255,12 @@ libnames=''
3552 + : change the next line if compiling for Xenix/286 on Xenix/386
3553 + xlibpth='/usr/lib/386 /lib/386'
3554 + : Possible local library directories to search.
3555 +-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
3556 +-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
3557 ++loclibpth="/usr/local/lib64 /opt/local/lib64 /usr/gnu/lib64"
3558 ++loclibpth="$loclibpth /opt/gnu/lib64 /usr/GNU/lib64 /opt/GNU/lib64"
3559 +
3560 + : general looking path for locating libraries
3561 +-glibpth="/lib /usr/lib $xlibpth"
3562 +-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
3563 ++glibpth="/lib64 /usr/lib64 $xlibpth"
3564 ++glibpth="$glibpth /usr/ccs/lib64 /usr/ucblib /usr/local/lib64"
3565 + test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
3566 + test -f /shlib/libc.so && glibpth="/shlib $glibpth"
3567 +
3568 +@@ -5945,8 +5945,8 @@ fi
3569 + : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
3570 + case "$installstyle" in
3571 + '') case "$prefix" in
3572 +- *perl*) dflt='lib';;
3573 +- *) dflt='lib/perl5' ;;
3574 ++ *perl*) dflt='lib64';;
3575 ++ *) dflt='lib64/perl5' ;;
3576 + esac
3577 + ;;
3578 + *) dflt="$installstyle" ;;
3579 +@@ -5962,8 +5962,8 @@ installstyle=$dflt
3580 + : /opt/perl/lib/perl5... would be redundant.
3581 + : The default "style" setting is made in installstyle.U
3582 + case "$installstyle" in
3583 +-*lib/perl5*) set dflt privlib lib/$package/$version ;;
3584 +-*) set dflt privlib lib/$version ;;
3585 ++*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
3586 ++*) set dflt privlib lib64/$version ;;
3587 + esac
3588 + eval $prefixit
3589 + $cat <<EOM
3590 +@@ -6465,8 +6465,8 @@ siteprefixexp="$ansexp"
3591 + prog=`echo $package | $sed 's/-*[0-9.]*$//'`
3592 + case "$sitelib" in
3593 + '') case "$installstyle" in
3594 +- *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
3595 +- *) dflt=$siteprefix/lib/site_$prog/$version ;;
3596 ++ *lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
3597 ++ *) dflt=$siteprefix/lib64/site_$prog/$version ;;
3598 + esac
3599 + ;;
3600 + *) dflt="$sitelib"
3601 +@@ -6592,8 +6592,8 @@ case "$vendorprefix" in
3602 + '')
3603 + prog=`echo $package | $sed 's/-*[0-9.]*$//'`
3604 + case "$installstyle" in
3605 +- *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
3606 +- *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
3607 ++ *lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
3608 ++ *) dflt=$vendorprefix/lib64/vendor_$prog/$version ;;
3609 + esac
3610 + ;;
3611 + *) dflt="$vendorlib"
3612 +@@ -10550,9 +10550,9 @@ else
3613 + else
3614 + for net in net socket
3615 + do
3616 +- if test -f /usr/lib/lib$net$_a; then
3617 +- ( ($nm $nm_opt /usr/lib/lib$net$_a | eval $nm_extract) || \
3618 +- $ar t /usr/lib/lib$net$_a) 2>/dev/null >> libc.list
3619 ++ if test -f /usr/lib64/lib$net$_a; then
3620 ++ ( ($nm $nm_opt /usr/lib64/lib$net$_a | eval $nm_extract) || \
3621 ++ $ar t /usr/lib64/lib$net$_a) 2>/dev/null >> libc.list
3622 + if $contains socket libc.list >/dev/null 2>&1; then
3623 + d_socket="$define"
3624 + socketlib="-l$net"
3625
3626 diff --git a/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch b/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch
3627 new file mode 100644
3628 index 0000000..60440e2
3629 --- /dev/null
3630 +++ b/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch
3631 @@ -0,0 +1,25 @@
3632 +commit adeb94125ab7de8d20c129a905a5159972ad9fd1
3633 +Author: Ricardo SIGNES <rjbs@××××.org>
3634 +Date: Mon Oct 22 05:01:09 2007 -0400
3635 +
3636 + hostname.t busted
3637 + Message-ID: <20071022130109.GA16748@knight>
3638 +
3639 + p4raw-id: //depot/perl@32180
3640 +
3641 +diff --git a/lib/Net/t/hostname.t b/lib/Net/t/hostname.t
3642 +index 758d304..4013d74 100644
3643 +--- a/lib/Net/t/hostname.t
3644 ++++ b/lib/Net/t/hostname.t
3645 +@@ -26,7 +26,10 @@ print "1..5\n";
3646 + $domain = domainname();
3647 +
3648 + if(defined $domain && $domain ne "") {
3649 +- print "ok 1\n";
3650 ++ print "ok 1 - defined, non-empty domainname\n";
3651 ++}
3652 ++elsif (not defined $domain) {
3653 ++ print "ok 1 # SKIP domain not fully defined\n";
3654 + }
3655 + else {
3656 + print "not ok 1\n";
3657
3658 diff --git a/dev-lang/perl/files/perl-5.8.8-links.patch b/dev-lang/perl/files/perl-5.8.8-links.patch
3659 new file mode 100644
3660 index 0000000..22e74b3
3661 --- /dev/null
3662 +++ b/dev-lang/perl/files/perl-5.8.8-links.patch
3663 @@ -0,0 +1,86 @@
3664 +--- lib/CPAN/FirstTime.pm.orig 2006-02-06 07:50:13.000000000 -0500
3665 ++++ lib/CPAN/FirstTime.pm 2006-02-06 07:50:28.000000000 -0500
3666 +@@ -292,7 +292,7 @@ by ENTER.
3667 + my(@path) = split /$Config{'path_sep'}/, $ENV{'PATH'};
3668 + local $^W = $old_warn;
3669 + my $progname;
3670 +- for $progname (qw/gzip tar unzip make lynx wget ncftpget ncftp ftp gpg/){
3671 ++ for $progname (qw/gzip tar unzip make links lynx wget ncftpget ncftp ftp gpg/){
3672 + if ($^O eq 'MacOS') {
3673 + $CPAN::Config->{$progname} = 'not_here';
3674 + next;
3675 +--- lib/CPAN.pm.orig 2006-02-06 07:54:43.000000000 -0500
3676 ++++ lib/CPAN.pm 2006-02-06 07:52:59.000000000 -0500
3677 +@@ -2604,7 +2604,7 @@ sub hosthard {
3678 +
3679 + $self->debug("localizing funkyftpwise[$url]") if $CPAN::DEBUG;
3680 + my($f,$funkyftp);
3681 +- for $f ('lynx','ncftpget','ncftp','wget') {
3682 ++ for $f ('links','lynx','ncftpget','ncftp','wget') {
3683 + next unless exists $CPAN::Config->{$f};
3684 + $funkyftp = $CPAN::Config->{$f};
3685 + next unless defined $funkyftp;
3686 +@@ -2613,7 +2613,7 @@ sub hosthard {
3687 + ($asl_ungz = $aslocal) =~ s/\.gz//;
3688 + $asl_gz = "$asl_ungz.gz";
3689 + my($src_switch) = "";
3690 +- if ($f eq "lynx"){
3691 ++ if (($f eq "lynx")||($f eq "links")){
3692 + $src_switch = " -source";
3693 + } elsif ($f eq "ncftp"){
3694 + $src_switch = " -c";
3695 +@@ -2637,10 +2637,14 @@ Trying with "$funkyftp$src_switch" to ge
3696 + my($wstatus);
3697 + if (($wstatus = system($system)) == 0
3698 + &&
3699 +- ($f eq "lynx" ?
3700 ++ (($f eq "lynx" ?
3701 + -s $asl_ungz # lynx returns 0 when it fails somewhere
3702 + : 1
3703 +- )
3704 ++ )||
3705 ++ ($f eq "links" ?
3706 ++ -s $asl_ungz # links returns 0 when it fails somewhere
3707 ++ : 1
3708 ++ ))
3709 + ) {
3710 + if (-s $aslocal) {
3711 + # Looks good
3712 +@@ -2695,7 +2699,7 @@ returned status $estatus (wstat $wstatus
3713 + });
3714 + }
3715 + return if $CPAN::Signal;
3716 +- } # lynx,ncftpget,ncftp
3717 ++ } # links,lynx,ncftpget,ncftp
3718 + } # host
3719 + }
3720 +
3721 +@@ -6022,7 +6026,7 @@ stalled.
3722 +
3723 + The CPAN module is designed to automate the make and install of perl
3724 + modules and extensions. It includes some primitive searching capabilities and
3725 +-knows how to use Net::FTP or LWP (or lynx or an external ftp client)
3726 ++knows how to use Net::FTP or LWP (or lynx or links or an external ftp client)
3727 + to fetch the raw data from the net.
3728 +
3729 + Modules are fetched from one or more of the mirrored CPAN
3730 +@@ -6975,16 +6979,18 @@ or
3731 +
3732 + =back
3733 +
3734 +-=head2 Configuring lynx or ncftp for going through a firewall
3735 ++=head2 Configuring links or lynx or ncftp for going through a firewall
3736 +
3737 + If you can go through your firewall with e.g. lynx, presumably with a
3738 + command such as
3739 +
3740 + /usr/local/bin/lynx -pscott:tiger
3741 ++ /usr/local/bin/links -pscott:tiger
3742 +
3743 + then you would configure CPAN.pm with the command
3744 +
3745 + o conf lynx "/usr/local/bin/lynx -pscott:tiger"
3746 ++ o conf links "/usr/local/bin/links -pscott:tiger"
3747 +
3748 + That's all. Similarly for ncftp or ftp, you would configure something
3749 + like
3750
3751 diff --git a/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch b/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch
3752 new file mode 100644
3753 index 0000000..147d499
3754 --- /dev/null
3755 +++ b/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch
3756 @@ -0,0 +1,11 @@
3757 +--- perl-5.8.8/makedepend.SH
3758 ++++ perl-5.8.8/makedepend.SH
3759 +@@ -128,7 +128,7 @@
3760 + *.y) filebase=`basename $file .y` ;;
3761 + esac
3762 + case "$file" in
3763 +- */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;;
3764 ++ */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;;
3765 + *) finc= ;;
3766 + esac
3767 + $echo "Finding dependencies for $filebase$_o."
3768
3769 diff --git a/dev-lang/perl/files/perl-5.8.8-perlcc.patch b/dev-lang/perl/files/perl-5.8.8-perlcc.patch
3770 new file mode 100644
3771 index 0000000..5c4b778
3772 --- /dev/null
3773 +++ b/dev-lang/perl/files/perl-5.8.8-perlcc.patch
3774 @@ -0,0 +1,11 @@
3775 +--- perl-5.8.8/ext/B/B/C.pm.orig 2007-06-07 21:12:04.000000000 +0300
3776 ++++ perl-5.8.8/ext/B/B/C.pm 2007-06-07 21:12:21.000000000 +0300
3777 +@@ -647,7 +647,7 @@
3778 + return $sym if defined $sym;
3779 + my $val= $sv->NVX;
3780 + $val .= '.00' if $val =~ /^-?\d+$/;
3781 +- $xpvnvsect->add(sprintf("0, 0, 0, %d, %s", $sv->IVX, $val));
3782 ++ $xpvnvsect->add(sprintf("0, 0, 0, %d, %s", $sv->NVX, $val));
3783 + $svsect->add(sprintf("&xpvnv_list[%d], %lu, 0x%x",
3784 + $xpvnvsect->index, $sv->REFCNT , $sv->FLAGS));
3785 + return savesym($sv, sprintf("&sv_list[%d]", $svsect->index));
3786
3787 diff --git a/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch b/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch
3788 new file mode 100644
3789 index 0000000..11c5692
3790 --- /dev/null
3791 +++ b/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch
3792 @@ -0,0 +1,93 @@
3793 +--- perl.c.orig 2006-01-24 09:57:33.000000000 -0500
3794 ++++ perl.c 2006-01-24 10:03:15.000000000 -0500
3795 +@@ -4777,9 +4777,9 @@ S_init_perllib(pTHX)
3796 + incpush(APPLLIB_EXP, TRUE, TRUE, TRUE);
3797 + #endif
3798 +
3799 +-#ifdef ARCHLIB_EXP
3800 +- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
3801 +-#endif
3802 ++ /* for configuration where /usr is mounted ro (CPAN::Config, Net::Config) */
3803 ++ incpush("/etc/perl", FALSE, FALSE, TRUE);
3804 ++
3805 + #ifdef MACOS_TRADITIONAL
3806 + {
3807 + Stat_t tmpstatbuf;
3808 +@@ -4806,51 +4806,58 @@ S_init_perllib(pTHX)
3809 + #endif
3810 + #if defined(WIN32)
3811 + incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE);
3812 +-#else
3813 +- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
3814 + #endif
3815 +
3816 +-#ifdef SITEARCH_EXP
3817 +- /* sitearch is always relative to sitelib on Windows for
3818 ++#ifdef PERL_VENDORARCH_EXP
3819 ++ /* vendorarch is always relative to vendorlib on Windows for
3820 + * DLL-based path intuition to work correctly */
3821 + # if !defined(WIN32)
3822 +- incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
3823 ++ incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
3824 + # endif
3825 + #endif
3826 +
3827 +-#ifdef SITELIB_EXP
3828 ++#ifdef PERL_VENDORLIB_EXP
3829 + # if defined(WIN32)
3830 +- /* this picks up sitearch as well */
3831 +- incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
3832 ++ incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
3833 + # else
3834 +- incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
3835 ++ incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
3836 + # endif
3837 + #endif
3838 +
3839 +-#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
3840 +- incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
3841 ++#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
3842 ++ incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
3843 + #endif
3844 +
3845 +-#ifdef PERL_VENDORARCH_EXP
3846 +- /* vendorarch is always relative to vendorlib on Windows for
3847 ++#ifdef SITEARCH_EXP
3848 ++ /* sitearch is always relative to sitelib on Windows for
3849 + * DLL-based path intuition to work correctly */
3850 + # if !defined(WIN32)
3851 +- incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
3852 ++ incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
3853 + # endif
3854 + #endif
3855 +
3856 +-#ifdef PERL_VENDORLIB_EXP
3857 ++#ifdef SITELIB_EXP
3858 + # if defined(WIN32)
3859 +- incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
3860 ++ /* this picks up sitearch as well */
3861 ++ incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
3862 + # else
3863 +- incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
3864 ++ incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
3865 + # endif
3866 + #endif
3867 +
3868 +-#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
3869 +- incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
3870 ++#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
3871 ++ incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
3872 + #endif
3873 +
3874 ++ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
3875 ++ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
3876 ++
3877 ++ /* Non-versioned site directory for local modules and for
3878 ++ compatability with the previous packages' site dirs */
3879 ++
3880 ++ incpush("/usr/local/lib/site_perl", TRUE, FALSE, TRUE);
3881 ++
3882 ++
3883 + #ifdef PERL_OTHERLIBDIRS
3884 + incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE);
3885 + #endif
3886
3887 diff --git a/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch b/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch
3888 new file mode 100644
3889 index 0000000..f2df825
3890 --- /dev/null
3891 +++ b/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch
3892 @@ -0,0 +1,21 @@
3893 +http://sourceware.org/ml/binutils/2005-12/msg00008.html
3894 +--- hints/solaris_2.sh
3895 ++++ hints/solaris_2.sh
3896 +@@ -289,7 +289,7 @@
3897 +
3898 + END
3899 + ccdlflags="$ccdlflags -Wl,-E"
3900 +- lddlflags="$lddlflags -Wl,-E -G"
3901 ++ lddlflags="$lddlflags -shared"
3902 + fi
3903 + fi
3904 +
3905 +@@ -555,7 +555,7 @@
3906 + : #ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
3907 + fi
3908 + ldflags="$ldflags -m64"
3909 +- lddlflags="$lddlflags -G -m64"
3910 ++ lddlflags="$lddlflags -m64"
3911 + ;;
3912 + *)
3913 + ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
3914
3915 diff --git a/dev-lang/perl/files/perl-5.8.8-solaris11.patch b/dev-lang/perl/files/perl-5.8.8-solaris11.patch
3916 new file mode 100644
3917 index 0000000..6ba72e0
3918 --- /dev/null
3919 +++ b/dev-lang/perl/files/perl-5.8.8-solaris11.patch
3920 @@ -0,0 +1,14 @@
3921 +Thanks to the nice OpenSolaris guys, I finally figured out that on
3922 +OpenSolaris 11, the header dependencies have changed.
3923 +
3924 +--- perl.h
3925 ++++ perl.h
3926 +@@ -1192,6 +1192,8 @@
3927 + */
3928 +
3929 + #if defined(I_SYSMODE) && !defined(PERL_MICRO)
3930 ++#include <sys/stat.h>
3931 ++#include <sys/vnode.h>
3932 + #include <sys/mode.h>
3933 + #endif
3934 +
3935
3936 diff --git a/dev-lang/perl/files/perl-5.8.8-usr-local.patch b/dev-lang/perl/files/perl-5.8.8-usr-local.patch
3937 new file mode 100644
3938 index 0000000..c44b786
3939 --- /dev/null
3940 +++ b/dev-lang/perl/files/perl-5.8.8-usr-local.patch
3941 @@ -0,0 +1,25 @@
3942 +# remove /usr/local paths from all stuff thats used
3943 +# in Configure script, locincpth, loclibpth and glibpth are sedded
3944 +# afterwards not to conflict with the lib32 and lib64 patches
3945 +
3946 +diff -rubB perl-5.8.8.orig/Configure perl-5.8.8/Configure
3947 +--- perl-5.8.8.orig/Configure Tue Jan 15 10:41:29 2008
3948 ++++ perl-5.8.8/Configure Tue Jan 15 10:44:59 2008
3949 +@@ -4424,7 +4422,7 @@
3950 + : Set private lib path
3951 + case "$plibpth" in
3952 + '') if ./mips; then
3953 +- plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
3954 ++ plibpth="$incpath/usr/lib /usr/ccs/lib"
3955 + fi;;
3956 + esac
3957 + case "$libpth" in
3958 +@@ -19144,7 +19142,7 @@
3959 + case "$ranlib" in
3960 + :) ranlib='';;
3961 + '')
3962 +- ranlib=`./loc ranlib X /usr/bin /bin /usr/local/bin`
3963 ++ ranlib=`./loc ranlib X /usr/bin /bin`
3964 + $test -f $ranlib || ranlib=''
3965 + ;;
3966 + esac
3967
3968 diff --git a/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch b/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch
3969 new file mode 100644
3970 index 0000000..d0efa3f
3971 --- /dev/null
3972 +++ b/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch
3973 @@ -0,0 +1,57 @@
3974 +--- regcomp.c 2006-01-08 12:59:27.000000000 -0800
3975 ++++ regcomp.c 2007-10-05 12:07:55.000000000 -0700
3976 +@@ -135,7 +135,8 @@
3977 + I32 extralen;
3978 + I32 seen_zerolen;
3979 + I32 seen_evals;
3980 +- I32 utf8;
3981 ++ I32 utf8; /* pattern is utf8 or not */
3982 ++ I32 orig_utf8; /* pattern was originally utf8 */
3983 + #if ADD_TO_REGEXEC
3984 + char *starttry; /* -Dr: where regtry was called. */
3985 + #define RExC_starttry (pRExC_state->starttry)
3986 +@@ -161,6 +162,7 @@
3987 + #define RExC_seen_zerolen (pRExC_state->seen_zerolen)
3988 + #define RExC_seen_evals (pRExC_state->seen_evals)
3989 + #define RExC_utf8 (pRExC_state->utf8)
3990 ++#define RExC_orig_utf8 (pRExC_state->orig_utf8)
3991 +
3992 + #define ISMULT1(c) ((c) == '*' || (c) == '+' || (c) == '?')
3993 + #define ISMULT2(s) ((*s) == '*' || (*s) == '+' || (*s) == '?' || \
3994 +@@ -1749,15 +1751,17 @@
3995 + if (exp == NULL)
3996 + FAIL("NULL regexp argument");
3997 +
3998 +- RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
3999 ++ RExC_orig_utf8 = RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
4000 +
4001 +- RExC_precomp = exp;
4002 + DEBUG_r({
4003 + if (!PL_colorset) reginitcolors();
4004 + PerlIO_printf(Perl_debug_log, "%sCompiling REx%s `%s%*s%s'\n",
4005 + PL_colors[4],PL_colors[5],PL_colors[0],
4006 +- (int)(xend - exp), RExC_precomp, PL_colors[1]);
4007 ++ (int)(xend - exp), exp, PL_colors[1]);
4008 + });
4009 ++
4010 ++redo_first_pass:
4011 ++ RExC_precomp = exp;
4012 + RExC_flags = pm->op_pmflags;
4013 + RExC_sawback = 0;
4014 +
4015 +@@ -1783,6 +1787,17 @@
4016 + RExC_precomp = Nullch;
4017 + return(NULL);
4018 + }
4019 ++ if (RExC_utf8 && !RExC_orig_utf8) {
4020 ++ STRLEN len = xend-exp;
4021 ++ DEBUG_r(PerlIO_printf(Perl_debug_log,
4022 ++ "UTF8 mismatch! Converting to utf8 for resizing and compile\n"));
4023 ++ exp = (char*)Perl_bytes_to_utf8(aTHX_ (U8*)exp, &len);
4024 ++ xend = exp + len;
4025 ++ RExC_orig_utf8 = RExC_utf8;
4026 ++ SAVEFREEPV(exp);
4027 ++ goto redo_first_pass;
4028 ++ }
4029 ++
4030 +
4031
4032 diff --git a/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch b/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch
4033 new file mode 100644
4034 index 0000000..a71fbe6
4035 --- /dev/null
4036 +++ b/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch
4037 @@ -0,0 +1,61 @@
4038 +Subject: Fix h2ph with double-quote-delimited #include directives.
4039 +
4040 +Allow the quote mark delimiter also for those #include directives chased with "h2ph -a".
4041 +
4042 +Debian bug #479762.
4043 +
4044 +Also add the directory prefix of the current file when the quote syntax is
4045 +used; 'require' will only look in @INC, not the current directory.
4046 +
4047 +Upstream change 33835.
4048 +--- a/utils/h2ph.PL
4049 ++++ b/utils/h2ph.PL
4050 +@@ -85,7 +85,7 @@ sub reindent($) {
4051 + }
4052 +
4053 + my ($t, $tab, %curargs, $new, $eval_index, $dir, $name, $args, $outfile);
4054 +-my ($incl, $incl_type, $next);
4055 ++my ($incl, $incl_type, $incl_quote, $next);
4056 + while (defined (my $file = next_file())) {
4057 + if (-l $file and -d $file) {
4058 + link_if_possible($file) if ($opt_l);
4059 +@@ -186,9 +186,10 @@ while (defined (my $file = next_file())) {
4060 + print OUT $t,"unless(defined(\&$name)) {\n sub $name () {\t",$new,";}\n}\n";
4061 + }
4062 + }
4063 +- } elsif (/^(include|import|include_next)\s*[<\"](.*)[>\"]/) {
4064 ++ } elsif (/^(include|import|include_next)\s*([<\"])(.*)[>\"]/) {
4065 + $incl_type = $1;
4066 +- $incl = $2;
4067 ++ $incl_quote = $2;
4068 ++ $incl = $3;
4069 + if (($incl_type eq 'include_next') ||
4070 + ($opt_e && exists($bad_file{$incl}))) {
4071 + $incl =~ s/\.h$/.ph/;
4072 +@@ -221,6 +222,10 @@ while (defined (my $file = next_file())) {
4073 + "warn(\$\@) if \$\@;\n");
4074 + } else {
4075 + $incl =~ s/\.h$/.ph/;
4076 ++ # copy the prefix in the quote syntax (#include "x.h") case
4077 ++ if ($incl !~ m|/| && $incl_quote eq q{"} && $file =~ m|^(.*)/|) {
4078 ++ $incl = "$1/$incl";
4079 ++ }
4080 + print OUT $t,"require '$incl';\n";
4081 + }
4082 + } elsif (/^ifdef\s+(\w+)/) {
4083 +@@ -724,8 +729,13 @@ sub queue_includes_from
4084 + $line .= <HEADER>;
4085 + }
4086 +
4087 +- if ($line =~ /^#\s*include\s+<(.*?)>/) {
4088 +- push(@ARGV, $1) unless $Is_converted{$1};
4089 ++ if ($line =~ /^#\s*include\s+([<"])(.*?)[>"]/) {
4090 ++ my ($delimiter, $new_file) = ($1, $2);
4091 ++ # copy the prefix in the quote syntax (#include "x.h") case
4092 ++ if ($delimiter eq q{"} && $file =~ m|^(.*)/|) {
4093 ++ $new_file = "$1/$new_file";
4094 ++ }
4095 ++ push(@ARGV, $new_file) unless $Is_converted{$new_file};
4096 + }
4097 + }
4098 + close HEADER;
4099
4100 diff --git a/dev-lang/perl/files/perl-h2ph-ansi-header.patch b/dev-lang/perl/files/perl-h2ph-ansi-header.patch
4101 new file mode 100644
4102 index 0000000..c7f0d72
4103 --- /dev/null
4104 +++ b/dev-lang/perl/files/perl-h2ph-ansi-header.patch
4105 @@ -0,0 +1,11 @@
4106 +--- perl-5.8.0-RC2/utils/h2ph_patched.pix 2002-06-24 12:52:31.000000000 +0200
4107 ++++ perl-5.8.0-RC2/utils/h2ph_patched 2002-06-24 12:54:32.000000000 +0200
4108 +@@ -39,6 +39,8 @@
4109 + my ($t, $tab, %curargs, $new, $eval_index, $dir, $name, $args, $outfile);
4110 + my ($incl, $next);
4111 + while (defined (my $file = next_file())) {
4112 ++ next if $file eq 'machine/ansi.h';
4113 ++
4114 + if (-l $file and -d $file) {
4115 + link_if_possible($file) if ($opt_l);
4116 + next;
4117
4118 diff --git a/dev-lang/perl/files/perl-hppa-pa7200-configure.patch b/dev-lang/perl/files/perl-hppa-pa7200-configure.patch
4119 new file mode 100644
4120 index 0000000..396209a
4121 --- /dev/null
4122 +++ b/dev-lang/perl/files/perl-hppa-pa7200-configure.patch
4123 @@ -0,0 +1,11 @@
4124 +--- Configure.orig 2006-06-02 13:14:22.000000000 -0500
4125 ++++ Configure 2006-06-02 13:07:03.000000000 -0500
4126 +@@ -2967,7 +2967,7 @@
4127 + : Try to determine whether config.sh was made on this system
4128 + case "$config_sh" in
4129 + '')
4130 +-myuname=`$uname -a 2>/dev/null`
4131 ++myuname=`$uname -a | $sed -e "s/'//" 2>/dev/null`
4132 + $test -z "$myuname" && myuname=`hostname 2>/dev/null`
4133 + # tr '[A-Z]' '[a-z]' would not work in EBCDIC
4134 + # because the A-Z/a-z are not consecutive.
4135
4136 diff --git a/dev-lang/perl/files/perl-noksh.patch b/dev-lang/perl/files/perl-noksh.patch
4137 new file mode 100644
4138 index 0000000..4c33b3e
4139 --- /dev/null
4140 +++ b/dev-lang/perl/files/perl-noksh.patch
4141 @@ -0,0 +1,16 @@
4142 +diff -burN perl-5.8.4.orig/Configure perl-5.8.4/Configure
4143 +--- perl-5.8.4.orig/Configure 2004-04-01 05:48:18.000000000 -0800
4144 ++++ perl-5.8.4/Configure 2004-06-09 12:02:54.694172368 -0700
4145 +@@ -164,6 +164,12 @@
4146 + ;;
4147 + esac
4148 +
4149 ++# 2004.06.09 rac
4150 ++# having $newsh persist as ksh here is bad news if ksh doesn't really
4151 ++# exist. this causes us to toss away a perfectly good working test in
4152 ++# bash in favour of more exotic external options. see bug 42665.
4153 ++test -x "${newsh}" || unset newsh
4154 ++
4155 + : if needed set CDPATH to a harmless value that is not chatty
4156 + : avoid bash 2.02 problems with empty CDPATH.
4157 + case "$CDPATH" in
4158
4159 diff --git a/dev-lang/perl/files/perl-perldoc-emptydirs.patch b/dev-lang/perl/files/perl-perldoc-emptydirs.patch
4160 new file mode 100644
4161 index 0000000..650248c
4162 --- /dev/null
4163 +++ b/dev-lang/perl/files/perl-perldoc-emptydirs.patch
4164 @@ -0,0 +1,10 @@
4165 +--- lib/Pod/Perldoc.pm.orig 2003-10-22 13:02:15.000000000 -0700
4166 ++++ lib/Pod/Perldoc.pm 2003-10-22 13:02:36.000000000 -0700
4167 +@@ -1513,6 +1513,7 @@
4168 + $self->{'target'} = (splitdir $s)[-1]; # XXX: why not use File::Basename?
4169 + for ($i=0; $i<@dirs; $i++) {
4170 + $dir = $dirs[$i];
4171 ++ next unless -d $dir;
4172 + ($dir = VMS::Filespec::unixpath($dir)) =~ s!/\z!! if IS_VMS;
4173 + if ( (! $self->opt_m && ( $ret = $self->check_file($dir,"$s.pod")))
4174 + or ( $ret = $self->check_file($dir,"$s.pm"))
4175
4176 diff --git a/dev-lang/perl/files/perl-picdl.patch b/dev-lang/perl/files/perl-picdl.patch
4177 new file mode 100644
4178 index 0000000..f69a680
4179 --- /dev/null
4180 +++ b/dev-lang/perl/files/perl-picdl.patch
4181 @@ -0,0 +1,13 @@
4182 +--- Makefile.SH.orig 2003-11-29 01:16:15.000000000 -0800
4183 ++++ Makefile.SH 2003-11-29 01:16:52.000000000 -0800
4184 +@@ -129,8 +129,8 @@
4185 +
4186 + ;;
4187 +
4188 +-*) pldlflags=''
4189 +- static_target='static'
4190 ++*) pldlflags="$cccdlflags"
4191 ++ static_target='static_pic'
4192 + ;;
4193 + esac
4194 +
4195
4196 diff --git a/dev-lang/perl/files/perl-prelink-lpthread.patch b/dev-lang/perl/files/perl-prelink-lpthread.patch
4197 new file mode 100644
4198 index 0000000..d38497e
4199 --- /dev/null
4200 +++ b/dev-lang/perl/files/perl-prelink-lpthread.patch
4201 @@ -0,0 +1,11 @@
4202 +--- hints/linux.sh.orig 2003-02-14 18:11:50.000000000 -0800
4203 ++++ hints/linux.sh 2003-02-14 18:12:01.000000000 -0800
4204 +@@ -43,7 +43,7 @@
4205 + # 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
4206 + set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'`
4207 + shift
4208 +-libswanted="$*"
4209 ++libswanted="pthread $*"
4210 +
4211 + # If you have glibc, then report the version for ./myconfig bug reporting.
4212 + # (Configure doesn't need to know the specific version since it just uses
4213
4214 diff --git a/dev-lang/perl/files/perl-regexp-nossp.patch b/dev-lang/perl/files/perl-regexp-nossp.patch
4215 new file mode 100644
4216 index 0000000..d0357cd
4217 --- /dev/null
4218 +++ b/dev-lang/perl/files/perl-regexp-nossp.patch
4219 @@ -0,0 +1,11 @@
4220 +--- cflags.SH.orig 2005-07-03 23:39:10.000000000 -0400
4221 ++++ cflags.SH 2005-07-03 23:39:47.000000000 -0400
4222 +@@ -165,6 +165,8 @@
4223 + esac
4224 +
4225 + : Can we perhaps use $ansi2knr here
4226 ++ [ "x$file" = xregcomp ] && export ccflags="${ccflags} -fno-stack-protector"
4227 ++ [ "x$file" = xregexec ] && export ccflags="${ccflags} -fno-stack-protector"
4228 + echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
4229 + eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'
4230 +
4231
4232 diff --git a/dev-lang/perl/perl-5.10.1.ebuild b/dev-lang/perl/perl-5.10.1.ebuild
4233 new file mode 100644
4234 index 0000000..e15f96c
4235 --- /dev/null
4236 +++ b/dev-lang/perl/perl-5.10.1.ebuild
4237 @@ -0,0 +1,610 @@
4238 +# Copyright 1999-2012 Gentoo Foundation
4239 +# Distributed under the terms of the GNU General Public License v2
4240 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.10.1.ebuild,v 1.23 2012/01/02 22:52:21 zmedico Exp $
4241 +
4242 +EAPI=2
4243 +
4244 +inherit eutils alternatives flag-o-matic toolchain-funcs multilib
4245 +
4246 +PATCH_VER=9
4247 +
4248 +PERL_OLDVERSEN="5.10.0"
4249 +
4250 +SHORT_PV="${PV%.*}"
4251 +MY_P="perl-${PV/_rc/-RC}"
4252 +MY_PV="${PV%_rc*}"
4253 +
4254 +DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
4255 +
4256 +S="${WORKDIR}/${MY_P}"
4257 +SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2
4258 + mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
4259 + http://dev.gentoo.org/~tove/files/${MY_P}-${PATCH_VER}.tar.bz2"
4260 +HOMEPAGE="http://www.perl.org/"
4261 +
4262 +LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
4263 +SLOT="0"
4264 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
4265 +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
4266 +IUSE="berkdb build debug doc gdbm ithreads"
4267 +
4268 +COMMON_DEPEND="berkdb? ( sys-libs/db )
4269 + gdbm? ( >=sys-libs/gdbm-1.8.3 )
4270 + >=sys-devel/libperl-5.10.1
4271 + !!<sys-devel/libperl-5.10.1
4272 + app-arch/bzip2
4273 + sys-libs/zlib"
4274 +DEPEND="${COMMON_DEPEND}
4275 + elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
4276 +RDEPEND="${COMMON_DEPEND}"
4277 +PDEPEND=">=app-admin/perl-cleaner-2_pre090920"
4278 +
4279 +dual_scripts() {
4280 + src_remove_dual_scripts perl-core/Archive-Tar 1.52 ptar ptardiff
4281 + src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
4282 + src_remove_dual_scripts perl-core/CPAN 1.9402 cpan
4283 + src_remove_dual_scripts perl-core/CPANPLUS 0.88 cpanp cpan2dist cpanp-run-perl
4284 + src_remove_dual_scripts perl-core/Encode 2.35 enc2xs piconv
4285 + src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.55_02 instmodsh
4286 + src_remove_dual_scripts perl-core/Module-Build 0.34_02 config_data
4287 + src_remove_dual_scripts perl-core/Module-CoreList 2.18 corelist
4288 + src_remove_dual_scripts perl-core/PodParser 1.37 pod2usage podchecker podselect
4289 + src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
4290 + src_remove_dual_scripts perl-core/podlators 2.2.2 pod2man pod2text
4291 +}
4292 +
4293 +pkg_setup() {
4294 + LIBPERL="libperl$(get_libname ${MY_PV})"
4295 +
4296 + if use ithreads ; then
4297 + ewarn "THREADS WARNING:"
4298 + ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
4299 + ewarn "interpreter-level threading enabled."
4300 + ewarn "Threading is not supported by all applications "
4301 + ewarn "that compile against perl. You use threading at "
4302 + ewarn "your own discretion. "
4303 + echo
4304 + fi
4305 + if has_version "~dev-lang/perl-5.8.8" ; then
4306 + ewarn "UPDATE THE PERL MODULES:"
4307 + ewarn "After updating dev-lang/perl you must reinstall"
4308 + ewarn "the installed perl modules."
4309 + ewarn "Use: perl-cleaner --all"
4310 + elif has_version dev-lang/perl ; then
4311 + # doesnot work
4312 + #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
4313 + #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
4314 + if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
4315 + ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
4316 + ( use debug && ! has_version dev-lang/perl[debug] ) || \
4317 + ( ! use debug && has_version dev-lang/perl[debug] ) ; then
4318 + ewarn "TOGGLED USE-FLAGS WARNING:"
4319 + ewarn "You changed one of the use-flags ithreads or debug."
4320 + ewarn "You must rebuild all perl-modules installed."
4321 + ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
4322 + fi
4323 + fi
4324 + dual_scripts
4325 +}
4326 +
4327 +src_prepare() {
4328 + EPATCH_SOURCE="${WORKDIR}/perl-patch" \
4329 + EPATCH_SUFFIX="diff" \
4330 + EPATCH_FORCE="yes" \
4331 + epatch
4332 +
4333 + # pod/perltoc.pod fails
4334 + ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
4335 + ln -s ${LIBPERL} libperl$(get_libname )
4336 +}
4337 +
4338 +myconf() {
4339 + # the myconf array is declared in src_configure
4340 + myconf=( "${myconf[@]}" "$@" )
4341 +}
4342 +
4343 +src_configure() {
4344 + declare -a myconf
4345 +
4346 + # some arches and -O do not mix :)
4347 + use ppc && replace-flags -O? -O1
4348 + # Perl has problems compiling with -Os in your flags with glibc
4349 + use elibc_uclibc || replace-flags "-Os" "-O2"
4350 + # This flag makes compiling crash in interesting ways
4351 + filter-flags "-malign-double"
4352 + # Fixes bug #97645
4353 + use ppc && filter-flags "-mpowerpc-gpopt"
4354 + # Fixes bug #143895 on gcc-4.1.1
4355 + filter-flags "-fsched2-use-superblocks"
4356 +
4357 + # this is needed because gcc 3.3-compiled kernels will hang
4358 + # the machine trying to run this test - check with `Kumba
4359 + # <rac@g.o> 2003.06.26
4360 + use mips && myconf -Dd_u32align
4361 +
4362 + use sparc && myconf -Ud_longdbl
4363 +
4364 + export LC_ALL="C"
4365 + [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
4366 +
4367 + # 266337
4368 + export BUILD_BZIP2=0
4369 + export BZIP2_INCLUDE=/usr/include
4370 + export BZIP2_LIB=/usr/$(get_libdir)
4371 + cat <<-EOF > "${S}/ext/Compress-Raw-Zlib/config.in"
4372 + BUILD_ZLIB = False
4373 + INCLUDE = /usr/include
4374 + LIB = /usr/$(get_libdir)
4375 +
4376 + OLD_ZLIB = False
4377 + GZIP_OS_CODE = AUTO_DETECT
4378 + EOF
4379 +
4380 + case ${CHOST} in
4381 + *-freebsd*) osname="freebsd" ;;
4382 + *-dragonfly*) osname="dragonfly" ;;
4383 + *-netbsd*) osname="netbsd" ;;
4384 + *-openbsd*) osname="openbsd" ;;
4385 + *-darwin*) osname="darwin" ;;
4386 + *) osname="linux" ;;
4387 + esac
4388 +
4389 + if use ithreads ; then
4390 + mythreading="-multi"
4391 + myconf -Dusethreads
4392 + myarch=${CHOST}
4393 + myarch="${myarch%%-*}-${osname}-thread"
4394 + else
4395 + myarch=${CHOST}
4396 + myarch="${myarch%%-*}-${osname}"
4397 + fi
4398 + if use debug ; then
4399 + myarch="${myarch}-debug"
4400 + fi
4401 +
4402 + # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
4403 +
4404 + myndbm='U'
4405 + mygdbm='U'
4406 + mydb='U'
4407 +
4408 + if use gdbm ; then
4409 + mygdbm='D'
4410 + myndbm='D'
4411 + fi
4412 + if use berkdb ; then
4413 + mydb='D'
4414 + has_version '=sys-libs/db-1*' && myndbm='D'
4415 + fi
4416 +
4417 + myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
4418 +
4419 + if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
4420 + ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
4421 + myconf -Ui_db -Ui_ndbm
4422 + fi
4423 +
4424 + if use debug ; then
4425 + append-cflags "-g"
4426 + myconf -DDEBUGGING
4427 + fi
4428 +
4429 + local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v} ${v}/${myarch}${mythreading}"; done )
4430 +
4431 + [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
4432 +
4433 + if [[ $(get_libdir) != "lib" ]] ; then
4434 + # We need to use " and not ', as the written config.sh use ' ...
4435 + myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
4436 + fi
4437 +
4438 + sh Configure \
4439 + -des \
4440 + -Duseshrplib \
4441 + -Darchname="${myarch}" \
4442 + -Dcc="$(tc-getCC)" \
4443 + -Doptimize="${CFLAGS}" \
4444 + -Dscriptdir=/usr/bin \
4445 + -Dprefix='/usr' \
4446 + -Dvendorprefix='/usr' \
4447 + -Dsiteprefix='/usr' \
4448 + -Dprivlib="/usr/$(get_libdir)/perl5/${MY_PV}" \
4449 + -Darchlib="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" \
4450 + -Dvendorlib="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" \
4451 + -Dvendorarch="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" \
4452 + -Dsitelib="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}" \
4453 + -Dsitearch="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}" \
4454 + -Dman1dir=/usr/share/man/man1 \
4455 + -Dman3dir=/usr/share/man/man3 \
4456 + -Dinstallman1dir=/usr/share/man/man1 \
4457 + -Dinstallman3dir=/usr/share/man/man3 \
4458 + -Dman1ext='1' \
4459 + -Dman3ext='3pm' \
4460 + -Dlibperl="${LIBPERL}" \
4461 + -Dlocincpth=' ' \
4462 + -Duselargefiles \
4463 + -Dd_semctl_semun \
4464 + -Dinc_version_list="$inclist" \
4465 + -Dcf_by='Gentoo' \
4466 + -Dmyhostname='localhost' \
4467 + -Dperladmin='root@localhost' \
4468 + -Dinstallusrbinperl='n' \
4469 + -Ud_csh \
4470 + -Uusenm \
4471 + "${myconf[@]}" || die "Unable to configure"
4472 +}
4473 +
4474 +src_test() {
4475 +# use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
4476 +# TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
4477 + make test_harness || die "test failed"
4478 +}
4479 +
4480 +src_install() {
4481 + export LC_ALL="C"
4482 + local i
4483 + local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
4484 +
4485 + # Fix for "stupid" modules and programs
4486 + dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
4487 +
4488 + local installtarget=install
4489 + if use build ; then
4490 + installtarget=install.perl
4491 + fi
4492 + make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
4493 +
4494 + rm -f "${D}"/usr/bin/perl
4495 + ln -s perl${MY_PV} "${D}"/usr/bin/perl
4496 +
4497 + dolib.so "${D}"/${coredir}/${LIBPERL} || die
4498 + dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
4499 + dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
4500 + rm -f "${D}"/${coredir}/${LIBPERL}
4501 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
4502 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
4503 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
4504 +
4505 + rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
4506 +# cp -f utils/h2ph utils/h2ph_patched
4507 +# epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
4508 +#
4509 +# LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
4510 +# -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
4511 +#asm/termios.h
4512 +#syscall.h
4513 +#syslimits.h
4514 +#syslog.h
4515 +#sys/ioctl.h
4516 +#sys/socket.h
4517 +#sys/time.h
4518 +#wait.h
4519 +#EOF
4520 +
4521 +# vvv still needed?
4522 +# # This is to fix a missing c flag for backwards compat
4523 +# for i in $(find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm" ) ; do
4524 +# sed -i \
4525 +# -e "s:ccflags=':ccflags='-DPERL5 :" \
4526 +# -e "s:cppflags=':cppflags='-DPERL5 :" \
4527 +# "${i}" || die "Sed failed"
4528 +# done
4529 +
4530 + # A poor fix for the miniperl issues
4531 + dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
4532 + fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
4533 + dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
4534 + fperms 0755 /usr/bin/xsubpp
4535 +
4536 + # This removes ${D} from Config.pm and .packlist
4537 + for i in $(find "${D}" -iname "Config.pm" -o -iname ".packlist" ) ; do
4538 + einfo "Removing ${D} from ${i}..."
4539 + sed -i -e "s:${D}::" "${i}" || die "Sed failed"
4540 + done
4541 +
4542 + # Note: find out from psm why we would need/want this.
4543 + # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
4544 + # find "${D}" -name "*NDBM*" | xargs rm -f
4545 +
4546 + dodoc Changes* README AUTHORS || die
4547 +
4548 + if use doc ; then
4549 + # HTML Documentation
4550 + # We expect errors, warnings, and such with the following.
4551 +
4552 + dodir /usr/share/doc/${PF}/html
4553 + ./perl installhtml \
4554 + --podroot='.' \
4555 + --podpath='lib:ext:pod:vms' \
4556 + --recurse \
4557 + --htmldir="${D}/usr/share/doc/${PF}/html" \
4558 + --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
4559 + fi
4560 +
4561 + dual_scripts
4562 +
4563 + if use build ; then
4564 + src_remove_extra_files
4565 + fi
4566 +}
4567 +
4568 +pkg_postinst() {
4569 + local INC DIR file
4570 +
4571 + dual_scripts
4572 +
4573 + INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
4574 + if [[ "${ROOT}" = "/" ]] ; then
4575 + ebegin "Removing old .ph files"
4576 + for DIR in ${INC} ; do
4577 + if [[ -d "${ROOT}/${DIR}" ]] ; then
4578 + for file in $(find "${ROOT}/${DIR}" -name "*.ph" -type f ) ; do
4579 + rm -f "${ROOT}/${file}"
4580 + einfo "<< ${file}"
4581 + done
4582 + fi
4583 + done
4584 + # Silently remove the now empty dirs
4585 + for DIR in ${INC} ; do
4586 + if [[ -d "${ROOT}/${DIR}" ]] ; then
4587 + find "${ROOT}/${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
4588 + fi
4589 + done
4590 + ebegin "Generating ConfigLocal.pm (ignore any error)"
4591 + enc2xs -C
4592 + ebegin "Converting C header files to the corresponding Perl format"
4593 + cd /usr/include
4594 + h2ph -Q *
4595 + h2ph -Q -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/*
4596 + fi
4597 +
4598 +# This has been moved into a function because rumor has it that a future release
4599 +# of portage will allow us to check what version was just removed - which means
4600 +# we will be able to invoke this only as needed :)
4601 + # Tried doing this via -z, but $INC is too big...
4602 + if [[ "${INC}x" != "x" ]]; then
4603 + cleaner_msg
4604 + epause 5
4605 + fi
4606 +}
4607 +
4608 +pkg_postrm(){
4609 + ${IS_PERL} && dual_scripts
4610 +}
4611 +
4612 +cleaner_msg() {
4613 + eerror "You have had multiple versions of perl. It is recommended"
4614 + eerror "that you run perl-cleaner now. perl-cleaner will"
4615 + eerror "assist with this transition. This script is capable"
4616 + eerror "of cleaning out old .ph files, rebuilding modules for "
4617 + eerror "your new version of perl, as well as re-emerging"
4618 + eerror "applications that compiled against your old libperl$(get_libname)"
4619 + eerror
4620 + eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
4621 + eerror "Part of the rebuilding of applications compiled against "
4622 + eerror "your old libperl involves temporarily unmerging"
4623 + eerror "them - interruptions could leave you with unmerged"
4624 + eerror "packages before they can be remerged."
4625 + eerror ""
4626 + eerror "If you have run perl-cleaner and a package still gives"
4627 + eerror "you trouble, and re-emerging it fails to correct"
4628 + eerror "the problem, please check http://bugs.gentoo.org/"
4629 + eerror "for more information or to report a bug."
4630 + eerror ""
4631 +}
4632 +
4633 +src_remove_dual_scripts() {
4634 + local i pkg ver ff
4635 + pkg="$1"
4636 + ver="$2"
4637 + shift 2
4638 + if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
4639 + for i in "$@" ; do
4640 + ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
4641 + ff=${ff##*.1}
4642 + alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
4643 + alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
4644 + done
4645 + elif has "${EBUILD_PHASE:-none}" "setup" ; then
4646 + for i in "$@" ; do
4647 + if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
4648 + has_version ${pkg} && ewarn "You must reinstall $pkg !"
4649 + break
4650 + fi
4651 + done
4652 + else
4653 + for i in "$@" ; do
4654 + mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
4655 + mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
4656 + echo "/usr/share/man/man1/${i}.1 does not exist!"
4657 + done
4658 + fi
4659 +}
4660 +
4661 +src_remove_extra_files() {
4662 + local prefix="./usr" # ./ is important
4663 + local bindir="${prefix}/bin"
4664 + local libdir="${prefix}/$(get_libdir)"
4665 + local perlroot="${libdir}/perl5" # perl installs per-arch dirs
4666 + local prV="${perlroot}/${MY_PV}"
4667 + local prVA="${prV}/${myarch}${mythreading}"
4668 +
4669 + # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
4670 + # Then, I added several files to get GNU autotools running
4671 + # FIXME: should this be in a separated file to be sourced?
4672 + local MINIMAL_PERL_INSTALL="
4673 + ${bindir}/h2ph
4674 + ${bindir}/perl
4675 + ${bindir}/perl${MY_PV}
4676 + ${bindir}/pod2man
4677 + ${libdir}/${LIBPERL}
4678 + ${libdir}/libperl$(get_libname)
4679 + ${libdir}/libperl$(get_libname ${SHORT_PV})
4680 + ${prV}/attributes.pm
4681 + ${prV}/AutoLoader.pm
4682 + ${prV}/autouse.pm
4683 + ${prV}/base.pm
4684 + ${prV}/bigint.pm
4685 + ${prV}/bignum.pm
4686 + ${prV}/bigrat.pm
4687 + ${prV}/blib.pm
4688 + ${prV}/bytes_heavy.pl
4689 + ${prV}/bytes.pm
4690 + ${prV}/Carp/Heavy.pm
4691 + ${prV}/Carp.pm
4692 + ${prV}/charnames.pm
4693 + ${prV}/Class/Struct.pm
4694 + ${prV}/constant.pm
4695 + ${prV}/diagnostics.pm
4696 + ${prV}/DirHandle.pm
4697 + ${prV}/Exporter/Heavy.pm
4698 + ${prV}/Exporter.pm
4699 + ${prV}/ExtUtils/Command.pm
4700 + ${prV}/ExtUtils/Constant.pm
4701 + ${prV}/ExtUtils/Embed.pm
4702 + ${prV}/ExtUtils/Installed.pm
4703 + ${prV}/ExtUtils/Install.pm
4704 + ${prV}/ExtUtils/Liblist.pm
4705 + ${prV}/ExtUtils/MakeMaker.pm
4706 + ${prV}/ExtUtils/Manifest.pm
4707 + ${prV}/ExtUtils/Mkbootstrap.pm
4708 + ${prV}/ExtUtils/Mksymlists.pm
4709 + ${prV}/ExtUtils/MM_Any.pm
4710 + ${prV}/ExtUtils/MM_MacOS.pm
4711 + ${prV}/ExtUtils/MM.pm
4712 + ${prV}/ExtUtils/MM_Unix.pm
4713 + ${prV}/ExtUtils/MY.pm
4714 + ${prV}/ExtUtils/Packlist.pm
4715 + ${prV}/ExtUtils/testlib.pm
4716 + ${prV}/ExtUtils/Miniperl.pm
4717 + ${prV}/ExtUtils/Command/MM.pm
4718 + ${prV}/ExtUtils/Constant/Base.pm
4719 + ${prV}/ExtUtils/Constant/Utils.pm
4720 + ${prV}/ExtUtils/Constant/XS.pm
4721 + ${prV}/ExtUtils/Liblist/Kid.pm
4722 + ${prV}/ExtUtils/MakeMaker/bytes.pm
4723 + ${prV}/ExtUtils/MakeMaker/vmsish.pm
4724 + ${prV}/fields.pm
4725 + ${prV}/File/Basename.pm
4726 + ${prV}/File/Compare.pm
4727 + ${prV}/File/Copy.pm
4728 + ${prV}/File/Find.pm
4729 + ${prV}/FileHandle.pm
4730 + ${prV}/File/Path.pm
4731 + ${prV}/File/Spec.pm
4732 + ${prV}/File/Spec/Unix.pm
4733 + ${prV}/File/stat.pm
4734 + ${prV}/filetest.pm
4735 + ${prVA}/attrs.pm
4736 + ${prVA}/auto/attrs
4737 + ${prVA}/auto/Cwd/Cwd$(get_libname)
4738 + ${prVA}/auto/Data/Dumper/Dumper$(get_libname)
4739 + ${prVA}/auto/DynaLoader/dl_findfile.al
4740 + ${prVA}/auto/Fcntl/Fcntl$(get_libname)
4741 + ${prVA}/auto/File/Glob/Glob$(get_libname)
4742 + ${prVA}/auto/IO/IO$(get_libname)
4743 + ${prVA}/auto/POSIX/autosplit.ix
4744 + ${prVA}/auto/POSIX/fstat.al
4745 + ${prVA}/auto/POSIX/load_imports.al
4746 + ${prVA}/auto/POSIX/POSIX.bs
4747 + ${prVA}/auto/POSIX/POSIX$(get_libname)
4748 + ${prVA}/auto/POSIX/stat.al
4749 + ${prVA}/auto/POSIX/tmpfile.al
4750 + ${prVA}/auto/re/re$(get_libname)
4751 + ${prVA}/auto/Socket/Socket$(get_libname)
4752 + ${prVA}/auto/Storable/autosplit.ix
4753 + ${prVA}/auto/Storable/_retrieve.al
4754 + ${prVA}/auto/Storable/retrieve.al
4755 + ${prVA}/auto/Storable/Storable$(get_libname)
4756 + ${prVA}/auto/Storable/_store.al
4757 + ${prVA}/auto/Storable/store.al
4758 + ${prVA}/B/Deparse.pm
4759 + ${prVA}/B.pm
4760 + ${prVA}/Config.pm
4761 + ${prVA}/Config_heavy.pl
4762 + ${prVA}/CORE/libperl$(get_libname)
4763 + ${prVA}/Cwd.pm
4764 + ${prVA}/Data/Dumper.pm
4765 + ${prVA}/DynaLoader.pm
4766 + ${prVA}/encoding.pm
4767 + ${prVA}/Errno.pm
4768 + ${prVA}/Fcntl.pm
4769 + ${prVA}/File/Glob.pm
4770 + ${prVA}/_h2ph_pre.ph
4771 + ${prVA}/IO/File.pm
4772 + ${prVA}/IO/Handle.pm
4773 + ${prVA}/IO/Pipe.pm
4774 + ${prVA}/IO.pm
4775 + ${prVA}/IO/Seekable.pm
4776 + ${prVA}/IO/Select.pm
4777 + ${prVA}/IO/Socket.pm
4778 + ${prVA}/lib.pm
4779 + ${prVA}/NDBM_File.pm
4780 + ${prVA}/ops.pm
4781 + ${prVA}/POSIX.pm
4782 + ${prVA}/re.pm
4783 + ${prVA}/Socket.pm
4784 + ${prVA}/Storable.pm
4785 + ${prVA}/threads
4786 + ${prVA}/threads.pm
4787 + ${prVA}/XSLoader.pm
4788 + ${prV}/Getopt/Long.pm
4789 + ${prV}/Getopt/Std.pm
4790 + ${prV}/if.pm
4791 + ${prV}/integer.pm
4792 + ${prV}/IO/Socket/INET.pm
4793 + ${prV}/IO/Socket/UNIX.pm
4794 + ${prV}/IPC/Open2.pm
4795 + ${prV}/IPC/Open3.pm
4796 + ${prV}/less.pm
4797 + ${prV}/List/Util.pm
4798 + ${prV}/locale.pm
4799 + ${prV}/open.pm
4800 + ${prV}/overload.pm
4801 + ${prV}/Pod/InputObjects.pm
4802 + ${prV}/Pod/Man.pm
4803 + ${prV}/Pod/ParseLink.pm
4804 + ${prV}/Pod/Parser.pm
4805 + ${prV}/Pod/Select.pm
4806 + ${prV}/Pod/Text.pm
4807 + ${prV}/Pod/Usage.pm
4808 + ${prV}/PerlIO.pm
4809 + ${prV}/Scalar/Util.pm
4810 + ${prV}/SelectSaver.pm
4811 + ${prV}/sigtrap.pm
4812 + ${prV}/sort.pm
4813 + ${prV}/stat.pl
4814 + ${prV}/strict.pm
4815 + ${prV}/subs.pm
4816 + ${prV}/Symbol.pm
4817 + ${prV}/Text/ParseWords.pm
4818 + ${prV}/Text/Tabs.pm
4819 + ${prV}/Text/Wrap.pm
4820 + ${prV}/Time/Local.pm
4821 + ${prV}/unicore/Canonical.pl
4822 + ${prV}/unicore/Exact.pl
4823 + ${prV}/unicore/lib/gc_sc/Digit.pl
4824 + ${prV}/unicore/lib/gc_sc/Word.pl
4825 + ${prV}/unicore/PVA.pl
4826 + ${prV}/unicore/To/Fold.pl
4827 + ${prV}/unicore/To/Lower.pl
4828 + ${prV}/unicore/To/Upper.pl
4829 + ${prV}/utf8_heavy.pl
4830 + ${prV}/utf8.pm
4831 + ${prV}/vars.pm
4832 + ${prV}/vmsish.pm
4833 + ${prV}/warnings
4834 + ${prV}/warnings.pm
4835 + ${prV}/warnings/register.pm"
4836 +
4837 + pushd "${D}" > /dev/null
4838 + # Remove cruft
4839 + einfo "Removing files that are not in the minimal install"
4840 + echo "${MINIMAL_PERL_INSTALL}"
4841 + for f in $(find . -type f ) ; do
4842 + has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
4843 + done
4844 + # Remove empty directories
4845 + find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
4846 + popd > /dev/null
4847 +}
4848
4849 diff --git a/dev-lang/perl/perl-5.12.3-r1.ebuild b/dev-lang/perl/perl-5.12.3-r1.ebuild
4850 new file mode 100644
4851 index 0000000..5856f99
4852 --- /dev/null
4853 +++ b/dev-lang/perl/perl-5.12.3-r1.ebuild
4854 @@ -0,0 +1,638 @@
4855 +# Copyright 1999-2012 Gentoo Foundation
4856 +# Distributed under the terms of the GNU General Public License v2
4857 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.3-r1.ebuild,v 1.8 2012/01/02 22:52:21 zmedico Exp $
4858 +
4859 +EAPI=3
4860 +
4861 +inherit eutils alternatives flag-o-matic toolchain-funcs multilib
4862 +
4863 +PATCH_VER=4
4864 +
4865 +PERL_OLDVERSEN="5.12.2 5.12.1 5.12.0"
4866 +
4867 +SHORT_PV="${PV%.*}"
4868 +MY_P="perl-${PV/_rc/-RC}"
4869 +MY_PV="${PV%_rc*}"
4870 +
4871 +DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
4872 +
4873 +SRC_URI="
4874 + mirror://cpan/src/${MY_P}.tar.bz2
4875 + mirror://cpan/authors/id/R/RJ/RJBS/${MY_P}.tar.bz2
4876 + mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
4877 + http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
4878 +# mirror://cpan/src/${MY_P}.tar.bz2
4879 +# mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
4880 +HOMEPAGE="http://www.perl.org/"
4881 +
4882 +LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
4883 +SLOT="0"
4884 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
4885 +IUSE="berkdb build debug doc gdbm ithreads"
4886 +
4887 +COMMON_DEPEND="berkdb? ( sys-libs/db )
4888 + gdbm? ( >=sys-libs/gdbm-1.8.3 )
4889 + >=sys-devel/libperl-5.10.1
4890 + !!<sys-devel/libperl-5.10.1
4891 + app-arch/bzip2
4892 + sys-libs/zlib"
4893 +DEPEND="${COMMON_DEPEND}
4894 + elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
4895 +RDEPEND="${COMMON_DEPEND}"
4896 +PDEPEND=">=app-admin/perl-cleaner-2.5"
4897 +
4898 +S="${WORKDIR}/${MY_P}"
4899 +
4900 +dual_scripts() {
4901 + src_remove_dual_scripts perl-core/Archive-Tar 1.54 ptar ptardiff
4902 + src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
4903 + src_remove_dual_scripts perl-core/CPAN 1.9456 cpan
4904 + src_remove_dual_scripts perl-core/CPANPLUS 0.90 cpanp cpan2dist cpanp-run-perl
4905 + src_remove_dual_scripts perl-core/Encode 2.39 enc2xs piconv
4906 + src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.56 instmodsh
4907 + src_remove_dual_scripts perl-core/Module-Build 0.3603 config_data
4908 + src_remove_dual_scripts perl-core/Module-CoreList 2.43 corelist
4909 + src_remove_dual_scripts perl-core/PodParser 1.37 pod2usage podchecker podselect
4910 + src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
4911 + src_remove_dual_scripts perl-core/podlators 2.3.1 pod2man pod2text
4912 +}
4913 +
4914 +pkg_setup() {
4915 + case ${CHOST} in
4916 + *-freebsd*) osname="freebsd" ;;
4917 + *-dragonfly*) osname="dragonfly" ;;
4918 + *-netbsd*) osname="netbsd" ;;
4919 + *-openbsd*) osname="openbsd" ;;
4920 + *-darwin*) osname="darwin" ;;
4921 + *) osname="linux" ;;
4922 + esac
4923 +
4924 + if use ithreads ; then
4925 + mythreading="-multi"
4926 + myarch="${CHOST%%-*}-${osname}-thread"
4927 + else
4928 + myarch="${CHOST%%-*}-${osname}"
4929 + fi
4930 + if use debug ; then
4931 + myarch="${myarch}-debug"
4932 + fi
4933 +
4934 + LIBPERL="libperl$(get_libname ${MY_PV} )"
4935 + PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
4936 + ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
4937 + SITE_LIB="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}"
4938 + SITE_ARCH="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}"
4939 + VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
4940 + VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
4941 +
4942 + if use ithreads ; then
4943 + echo ""
4944 + ewarn "THREADS WARNING:"
4945 + ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
4946 + ewarn "interpreter-level threading enabled."
4947 + ewarn "Threading is not supported by all applications "
4948 + ewarn "that compile against perl. You use threading at "
4949 + ewarn "your own discretion. "
4950 + fi
4951 + if has_version "<dev-lang/perl-${SHORT_PV}" ; then
4952 + echo ""
4953 + ewarn "UPDATE THE PERL MODULES:"
4954 + ewarn "After updating dev-lang/perl you must reinstall"
4955 + ewarn "the installed perl modules."
4956 + ewarn "Use: perl-cleaner --all"
4957 + elif has_version dev-lang/perl ; then
4958 + # doesnot work
4959 + #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
4960 + #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
4961 + if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
4962 + ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
4963 + ( use debug && ! has_version dev-lang/perl[debug] ) || \
4964 + ( ! use debug && has_version dev-lang/perl[debug] ) ; then
4965 + echo ""
4966 + ewarn "TOGGLED USE-FLAGS WARNING:"
4967 + ewarn "You changed one of the use-flags ithreads or debug."
4968 + ewarn "You must rebuild all perl-modules installed."
4969 + ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
4970 + fi
4971 + fi
4972 + dual_scripts
4973 +}
4974 +
4975 +src_prepare_update_patchlevel_h() {
4976 + [[ -f ${WORKDIR}/perl-patch/series ]] || return 0
4977 +
4978 + while read patch level ; do
4979 + sed -i -e "s/^\t,NULL$/ ,\"${patch//__/_}\"\n&/" "${S}"/patchlevel.h || die
4980 + done < "${WORKDIR}"/perl-patch/series
4981 +}
4982 +
4983 +src_prepare() {
4984 + EPATCH_SOURCE="${WORKDIR}/perl-patch" \
4985 + EPATCH_SUFFIX="diff" \
4986 + EPATCH_FORCE="yes" \
4987 + EPATCH_OPTS="-p1" \
4988 + epatch
4989 +
4990 + src_prepare_update_patchlevel_h
4991 +
4992 + # pod/perltoc.pod fails
4993 + # lib/ExtUtils/t/Embed.t fails
4994 + ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
4995 + ln -s ${LIBPERL} libperl$(get_libname )
4996 +}
4997 +
4998 +myconf() {
4999 + # the myconf array is declared in src_configure
5000 + myconf=( "${myconf[@]}" "$@" )
5001 +}
5002 +
5003 +src_configure() {
5004 + declare -a myconf
5005 +
5006 + export LC_ALL="C"
5007 + [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
5008 +
5009 + # some arches and -O do not mix :)
5010 + use ppc && replace-flags -O? -O1
5011 + # Perl has problems compiling with -Os in your flags with glibc
5012 + use elibc_uclibc || replace-flags "-Os" "-O2"
5013 + # This flag makes compiling crash in interesting ways
5014 + filter-flags "-malign-double"
5015 + # Fixes bug #97645
5016 + use ppc && filter-flags "-mpowerpc-gpopt"
5017 + # Fixes bug #143895 on gcc-4.1.1
5018 + filter-flags "-fsched2-use-superblocks"
5019 +
5020 + # this is needed because gcc 3.3-compiled kernels will hang
5021 + # the machine trying to run this test - check with `Kumba
5022 + # <rac@g.o> 2003.06.26
5023 + use mips && myconf -Dd_u32align
5024 +
5025 + use sparc && myconf -Ud_longdbl
5026 +
5027 + # 266337
5028 + export BUILD_BZIP2=0
5029 + export BZIP2_INCLUDE=/usr/include
5030 + export BZIP2_LIB=/usr/$(get_libdir)
5031 + cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in"
5032 + BUILD_ZLIB = False
5033 + INCLUDE = /usr/include
5034 + LIB = /usr/$(get_libdir)
5035 +
5036 + OLD_ZLIB = False
5037 + GZIP_OS_CODE = AUTO_DETECT
5038 + EOF
5039 +
5040 + # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
5041 +
5042 + myndbm='U'
5043 + mygdbm='U'
5044 + mydb='U'
5045 +
5046 + if use gdbm ; then
5047 + mygdbm='D'
5048 + myndbm='D'
5049 + fi
5050 + if use berkdb ; then
5051 + mydb='D'
5052 + has_version '=sys-libs/db-1*' && myndbm='D'
5053 + fi
5054 +
5055 + myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
5056 +
5057 + if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
5058 + ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
5059 + myconf -Ui_db -Ui_ndbm
5060 + fi
5061 +
5062 + use ithreads && myconf -Dusethreads
5063 +
5064 + if use debug ; then
5065 + append-cflags "-g"
5066 + myconf -DDEBUGGING
5067 + elif [[ ${CFLAGS} == *-g* ]] ; then
5068 + myconf -DDEBUGGING=-g
5069 + else
5070 + myconf -DDEBUGGING=none
5071 + fi
5072 +
5073 + if [[ -n ${PERL_OLDVERSEN} ]] ; then
5074 + local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
5075 + myconf -Dinc_version_list="$inclist"
5076 + fi
5077 +
5078 + [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
5079 +
5080 + if [[ $(get_libdir) != "lib" ]] ; then
5081 + # We need to use " and not ', as the written config.sh use ' ...
5082 + myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
5083 + fi
5084 +
5085 + sh Configure \
5086 + -des \
5087 + -Duseshrplib \
5088 + -Darchname="${myarch}" \
5089 + -Dcc="$(tc-getCC)" \
5090 + -Doptimize="${CFLAGS}" \
5091 + -Dldflags="${LDFLAGS}" \
5092 + -Dprefix='/usr' \
5093 + -Dsiteprefix='/usr' \
5094 + -Dvendorprefix='/usr' \
5095 + -Dscriptdir='/usr/bin' \
5096 + -Dprivlib="${PRIV_LIB}" \
5097 + -Darchlib="${ARCH_LIB}" \
5098 + -Dsitelib="${SITE_LIB}" \
5099 + -Dsitearch="${SITE_ARCH}" \
5100 + -Dvendorlib="${VENDOR_LIB}" \
5101 + -Dvendorarch="${VENDOR_ARCH}" \
5102 + -Dman1dir=/usr/share/man/man1 \
5103 + -Dman3dir=/usr/share/man/man3 \
5104 + -Dsiteman1dir=/usr/share/man/man1 \
5105 + -Dsiteman3dir=/usr/share/man/man3 \
5106 + -Dvendorman1dir=/usr/share/man/man1 \
5107 + -Dvendorman3dir=/usr/share/man/man3 \
5108 + -Dman1ext='1' \
5109 + -Dman3ext='3pm' \
5110 + -Dlibperl="${LIBPERL}" \
5111 + -Dlocincpth=' ' \
5112 + -Duselargefiles \
5113 + -Dd_semctl_semun \
5114 + -Dcf_by='Gentoo' \
5115 + -Dmyhostname='localhost' \
5116 + -Dperladmin='root@localhost' \
5117 + -Dinstallusrbinperl='n' \
5118 + -Ud_csh \
5119 + -Uusenm \
5120 + "${myconf[@]}" || die "Unable to configure"
5121 +}
5122 +
5123 +src_compile() {
5124 + # bug 331113
5125 + emake -j1 || die "emake failed"
5126 +}
5127 +
5128 +src_test() {
5129 + if [[ ${EUID} == 0 ]] ; then
5130 + ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
5131 + return 0
5132 + fi
5133 + use elibc_uclibc && export MAKEOPTS+=" -j1"
5134 + TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
5135 + make test_harness || die "test failed"
5136 +}
5137 +
5138 +src_install() {
5139 + local i
5140 + local coredir="${ARCH_LIB}/CORE"
5141 +
5142 +# # Fix for "stupid" modules and programs
5143 +# dodir ${SITE_ARCH} ${SITE_LIB}
5144 +# keepdir "${VENDOR_ARCH}" #338802 for enc2xs
5145 +
5146 + local installtarget=install
5147 + if use build ; then
5148 + installtarget=install.perl
5149 + fi
5150 + make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
5151 +
5152 + rm -f "${D}"/usr/bin/perl
5153 + ln -s perl${MY_PV} "${D}"/usr/bin/perl
5154 +
5155 + dolib.so "${D}"/${coredir}/${LIBPERL} || die
5156 + dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
5157 + dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
5158 + rm -f "${D}"/${coredir}/${LIBPERL}
5159 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
5160 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
5161 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
5162 +
5163 + rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
5164 +
5165 +# # A poor fix for the miniperl issues
5166 +# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
5167 +# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
5168 +# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
5169 +# fperms 0755 /usr/bin/xsubpp
5170 +
5171 + # This removes ${D} from Config.pm
5172 + for i in $(find "${D}" -iname "Config.pm" ) ; do
5173 + einfo "Removing ${D} from ${i}..."
5174 + sed -i -e "s:${D}::" "${i}" || die "Sed failed"
5175 + done
5176 +
5177 + find "${D}" -type f -name .packlist -delete || die
5178 +
5179 + # Note: find out from psm why we would need/want this.
5180 + # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
5181 + # find "${D}" -name "*NDBM*" | xargs rm -f
5182 +
5183 + dodoc Changes* README AUTHORS || die
5184 +
5185 + if use doc ; then
5186 + # HTML Documentation
5187 + # We expect errors, warnings, and such with the following.
5188 +
5189 + dodir /usr/share/doc/${PF}/html
5190 + LD_LIBRARY_PATH=. ./perl installhtml \
5191 + --podroot='.' \
5192 + --podpath='lib:ext:pod:vms' \
5193 + --recurse \
5194 + --htmldir="${D}/usr/share/doc/${PF}/html" \
5195 + --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
5196 + fi
5197 +
5198 + if use build ; then
5199 + src_remove_extra_files
5200 + fi
5201 +
5202 + dual_scripts
5203 +}
5204 +
5205 +pkg_postinst() {
5206 + dual_scripts
5207 +
5208 + if [[ "${ROOT}" = "/" ]] ; then
5209 + local INC DIR file
5210 + INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
5211 + einfo "Removing old .ph files"
5212 + for DIR in ${INC} ; do
5213 + if [[ -d "${DIR}" ]] ; then
5214 + for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
5215 + rm -f "${file}"
5216 + einfo "<< ${file}"
5217 + done
5218 + fi
5219 + done
5220 + # Silently remove the now empty dirs
5221 + for DIR in ${INC} ; do
5222 + if [[ -d "${DIR}" ]] ; then
5223 + find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
5224 + fi
5225 + done
5226 + if ! use build ; then
5227 + ebegin "Generating ConfigLocal.pm (ignore any error)"
5228 + enc2xs -C
5229 + fi
5230 +
5231 + einfo "Converting C header files to the corresponding Perl format (ignore any error)"
5232 + pushd /usr/include >/dev/null
5233 + h2ph -Q -a -d ${ARCH_LIB} \
5234 + asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
5235 + sys/socket.h sys/time.h wait.h sysexits.h
5236 + popd >/dev/null
5237 +
5238 +# This has been moved into a function because rumor has it that a future release
5239 +# of portage will allow us to check what version was just removed - which means
5240 +# we will be able to invoke this only as needed :)
5241 + # Tried doing this via -z, but $INC is too big...
5242 + #if [[ "${INC}x" != "x" ]]; then
5243 + # cleaner_msg
5244 + #fi
5245 + fi
5246 +}
5247 +
5248 +pkg_postrm(){
5249 + dual_scripts
5250 +
5251 +# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
5252 +# ebegin "Removing ConfigLocal.pm"
5253 +# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
5254 +# fi
5255 +}
5256 +
5257 +cleaner_msg() {
5258 + eerror "You have had multiple versions of perl. It is recommended"
5259 + eerror "that you run perl-cleaner now. perl-cleaner will"
5260 + eerror "assist with this transition. This script is capable"
5261 + eerror "of cleaning out old .ph files, rebuilding modules for "
5262 + eerror "your new version of perl, as well as re-emerging"
5263 + eerror "applications that compiled against your old libperl$(get_libname)"
5264 + eerror
5265 + eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
5266 + eerror "Part of the rebuilding of applications compiled against "
5267 + eerror "your old libperl involves temporarily unmerging"
5268 + eerror "them - interruptions could leave you with unmerged"
5269 + eerror "packages before they can be remerged."
5270 + eerror ""
5271 + eerror "If you have run perl-cleaner and a package still gives"
5272 + eerror "you trouble, and re-emerging it fails to correct"
5273 + eerror "the problem, please check http://bugs.gentoo.org/"
5274 + eerror "for more information or to report a bug."
5275 + eerror ""
5276 +}
5277 +
5278 +src_remove_dual_scripts() {
5279 +
5280 + local i pkg ver ff
5281 + pkg="$1"
5282 + ver="$2"
5283 + shift 2
5284 + if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
5285 + for i in "$@" ; do
5286 + alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
5287 + if [[ ${i} != cpanp-run-perl ]] ; then
5288 + ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
5289 + ff=${ff##*.1}
5290 + alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
5291 + fi
5292 + done
5293 + elif has "${EBUILD_PHASE:-none}" "setup" ; then
5294 + for i in "$@" ; do
5295 + if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
5296 + has_version ${pkg} && ewarn "You must reinstall $pkg !"
5297 + break
5298 + fi
5299 + done
5300 + else
5301 + for i in "$@" ; do
5302 + if ! [[ -f "${D}"/usr/bin/${i} ]] ; then
5303 + use build || ewarn "/usr/bin/${i} does not exist!"
5304 + continue
5305 + fi
5306 + mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
5307 + if [[ -f ${D}/usr/share/man/man1/${i}.1 ]] ; then
5308 + mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || die
5309 + else
5310 + echo "/usr/share/man/man1/${i}.1 does not exist!"
5311 + fi
5312 + done
5313 + fi
5314 +}
5315 +
5316 +src_remove_extra_files() {
5317 + local prefix="./usr" # ./ is important
5318 + local bindir="${prefix}/bin"
5319 + local libdir="${prefix}/$(get_libdir)"
5320 +
5321 + # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
5322 + # Then, I added several files to get GNU autotools running
5323 + # FIXME: should this be in a separated file to be sourced?
5324 + local MINIMAL_PERL_INSTALL="
5325 + ${bindir}/h2ph
5326 + ${bindir}/perl
5327 + ${bindir}/perl${MY_PV}
5328 + ${bindir}/pod2man
5329 + ${libdir}/${LIBPERL}
5330 + ${libdir}/libperl$(get_libname)
5331 + ${libdir}/libperl$(get_libname ${SHORT_PV})
5332 + .${PRIV_LIB}/AutoLoader.pm
5333 + .${PRIV_LIB}/B/Deparse.pm
5334 + .${PRIV_LIB}/Carp.pm
5335 + .${PRIV_LIB}/Carp/Heavy.pm
5336 + .${PRIV_LIB}/Class/Struct.pm
5337 + .${PRIV_LIB}/DirHandle.pm
5338 + .${PRIV_LIB}/Exporter.pm
5339 + .${PRIV_LIB}/Exporter/Heavy.pm
5340 + .${PRIV_LIB}/ExtUtils/Command.pm
5341 + .${PRIV_LIB}/ExtUtils/Command/MM.pm
5342 + .${PRIV_LIB}/ExtUtils/Constant.pm
5343 + .${PRIV_LIB}/ExtUtils/Constant/Base.pm
5344 + .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
5345 + .${PRIV_LIB}/ExtUtils/Constant/XS.pm
5346 + .${PRIV_LIB}/ExtUtils/Embed.pm
5347 + .${PRIV_LIB}/ExtUtils/Install.pm
5348 + .${PRIV_LIB}/ExtUtils/Installed.pm
5349 + .${PRIV_LIB}/ExtUtils/Liblist.pm
5350 + .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
5351 + .${PRIV_LIB}/ExtUtils/MM.pm
5352 + .${PRIV_LIB}/ExtUtils/MM_Any.pm
5353 + .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
5354 + .${PRIV_LIB}/ExtUtils/MM_Unix.pm
5355 + .${PRIV_LIB}/ExtUtils/MY.pm
5356 + .${PRIV_LIB}/ExtUtils/MakeMaker.pm
5357 + .${PRIV_LIB}/ExtUtils/Manifest.pm
5358 + .${PRIV_LIB}/ExtUtils/Miniperl.pm
5359 + .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
5360 + .${PRIV_LIB}/ExtUtils/Mksymlists.pm
5361 + .${PRIV_LIB}/ExtUtils/Packlist.pm
5362 + .${PRIV_LIB}/ExtUtils/testlib.pm
5363 + .${PRIV_LIB}/File/Basename.pm
5364 + .${PRIV_LIB}/File/Compare.pm
5365 + .${PRIV_LIB}/File/Copy.pm
5366 + .${PRIV_LIB}/File/Find.pm
5367 + .${PRIV_LIB}/File/Path.pm
5368 + .${PRIV_LIB}/File/stat.pm
5369 + .${PRIV_LIB}/FileHandle.pm
5370 + .${PRIV_LIB}/Getopt/Long.pm
5371 + .${PRIV_LIB}/Getopt/Std.pm
5372 + .${PRIV_LIB}/IPC/Open2.pm
5373 + .${PRIV_LIB}/IPC/Open3.pm
5374 + .${PRIV_LIB}/PerlIO.pm
5375 + .${PRIV_LIB}/Pod/InputObjects.pm
5376 + .${PRIV_LIB}/Pod/Man.pm
5377 + .${PRIV_LIB}/Pod/ParseLink.pm
5378 + .${PRIV_LIB}/Pod/Parser.pm
5379 + .${PRIV_LIB}/Pod/Select.pm
5380 + .${PRIV_LIB}/Pod/Text.pm
5381 + .${PRIV_LIB}/Pod/Usage.pm
5382 + .${PRIV_LIB}/SelectSaver.pm
5383 + .${PRIV_LIB}/Symbol.pm
5384 + .${PRIV_LIB}/Text/ParseWords.pm
5385 + .${PRIV_LIB}/Text/Tabs.pm
5386 + .${PRIV_LIB}/Text/Wrap.pm
5387 + .${PRIV_LIB}/Tie/Hash.pm
5388 + .${PRIV_LIB}/Time/Local.pm
5389 + .${PRIV_LIB}/XSLoader.pm
5390 + .${PRIV_LIB}/autouse.pm
5391 + .${PRIV_LIB}/base.pm
5392 + .${PRIV_LIB}/bigint.pm
5393 + .${PRIV_LIB}/bignum.pm
5394 + .${PRIV_LIB}/bigrat.pm
5395 + .${PRIV_LIB}/blib.pm
5396 + .${PRIV_LIB}/bytes.pm
5397 + .${PRIV_LIB}/bytes_heavy.pl
5398 + .${PRIV_LIB}/charnames.pm
5399 + .${PRIV_LIB}/constant.pm
5400 + .${PRIV_LIB}/diagnostics.pm
5401 + .${PRIV_LIB}/fields.pm
5402 + .${PRIV_LIB}/filetest.pm
5403 + .${PRIV_LIB}/if.pm
5404 + .${PRIV_LIB}/integer.pm
5405 + .${PRIV_LIB}/less.pm
5406 + .${PRIV_LIB}/locale.pm
5407 + .${PRIV_LIB}/open.pm
5408 + .${PRIV_LIB}/overload.pm
5409 + .${PRIV_LIB}/sigtrap.pm
5410 + .${PRIV_LIB}/sort.pm
5411 + .${PRIV_LIB}/stat.pl
5412 + .${PRIV_LIB}/strict.pm
5413 + .${PRIV_LIB}/subs.pm
5414 + .${PRIV_LIB}/unicore/To/Fold.pl
5415 + .${PRIV_LIB}/unicore/To/Lower.pl
5416 + .${PRIV_LIB}/unicore/To/Upper.pl
5417 + .${PRIV_LIB}/utf8.pm
5418 + .${PRIV_LIB}/utf8_heavy.pl
5419 + .${PRIV_LIB}/vars.pm
5420 + .${PRIV_LIB}/vmsish.pm
5421 + .${PRIV_LIB}/warnings
5422 + .${PRIV_LIB}/warnings.pm
5423 + .${PRIV_LIB}/warnings/register.pm
5424 + .${ARCH_LIB}/B.pm
5425 + .${ARCH_LIB}/CORE/libperl$(get_libname)
5426 + .${ARCH_LIB}/Config.pm
5427 + .${ARCH_LIB}/Config_heavy.pl
5428 + .${ARCH_LIB}/Cwd.pm
5429 + .${ARCH_LIB}/Data/Dumper.pm
5430 + .${ARCH_LIB}/DynaLoader.pm
5431 + .${ARCH_LIB}/Errno.pm
5432 + .${ARCH_LIB}/Fcntl.pm
5433 + .${ARCH_LIB}/File/Glob.pm
5434 + .${ARCH_LIB}/File/Spec.pm
5435 + .${ARCH_LIB}/File/Spec/Unix.pm
5436 + .${ARCH_LIB}/IO.pm
5437 + .${ARCH_LIB}/IO/File.pm
5438 + .${ARCH_LIB}/IO/Handle.pm
5439 + .${ARCH_LIB}/IO/Pipe.pm
5440 + .${ARCH_LIB}/IO/Seekable.pm
5441 + .${ARCH_LIB}/IO/Select.pm
5442 + .${ARCH_LIB}/IO/Socket.pm
5443 + .${ARCH_LIB}/IO/Socket/INET.pm
5444 + .${ARCH_LIB}/IO/Socket/UNIX.pm
5445 + .${ARCH_LIB}/List/Util.pm
5446 + .${ARCH_LIB}/NDBM_File.pm
5447 + .${ARCH_LIB}/POSIX.pm
5448 + .${ARCH_LIB}/Scalar/Util.pm
5449 + .${ARCH_LIB}/Socket.pm
5450 + .${ARCH_LIB}/Storable.pm
5451 + .${ARCH_LIB}/attributes.pm
5452 + .${ARCH_LIB}/auto/Cwd/Cwd$(get_libname)
5453 + .${ARCH_LIB}/auto/Data/Dumper/Dumper$(get_libname)
5454 + .${ARCH_LIB}/auto/DynaLoader/dl_findfile.al
5455 + .${ARCH_LIB}/auto/Fcntl/Fcntl$(get_libname)
5456 + .${ARCH_LIB}/auto/File/Glob/Glob$(get_libname)
5457 + .${ARCH_LIB}/auto/IO/IO$(get_libname)
5458 + .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
5459 + .${ARCH_LIB}/auto/POSIX/autosplit.ix
5460 + .${ARCH_LIB}/auto/POSIX/fstat.al
5461 + .${ARCH_LIB}/auto/POSIX/load_imports.al
5462 + .${ARCH_LIB}/auto/POSIX/stat.al
5463 + .${ARCH_LIB}/auto/POSIX/tmpfile.al
5464 + .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
5465 + .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
5466 + .${ARCH_LIB}/auto/Storable/_retrieve.al
5467 + .${ARCH_LIB}/auto/Storable/_store.al
5468 + .${ARCH_LIB}/auto/Storable/autosplit.ix
5469 + .${ARCH_LIB}/auto/Storable/retrieve.al
5470 + .${ARCH_LIB}/auto/Storable/store.al
5471 + .${ARCH_LIB}/auto/re/re$(get_libname)
5472 + .${ARCH_LIB}/encoding.pm
5473 + .${ARCH_LIB}/lib.pm
5474 + .${ARCH_LIB}/ops.pm
5475 + .${ARCH_LIB}/re.pm
5476 + .${ARCH_LIB}/threads.pm
5477 +"
5478 +
5479 + pushd "${D}" > /dev/null
5480 + # Remove cruft
5481 + einfo "Removing files that are not in the minimal install"
5482 + echo "${MINIMAL_PERL_INSTALL}"
5483 + for f in $(find . -type f ) ; do
5484 + has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
5485 + done
5486 + # Remove empty directories
5487 + find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
5488 + #for f in ${MINIMAL_PERL_INSTALL} ; do
5489 + # [[ -e $f ]] || ewarn "$f unused in MINIMAL_PERL_INSTALL"
5490 + #done
5491 + popd > /dev/null
5492 +}
5493
5494 diff --git a/dev-lang/perl/perl-5.8.8-r8.ebuild b/dev-lang/perl/perl-5.8.8-r8.ebuild
5495 new file mode 100644
5496 index 0000000..acea381
5497 --- /dev/null
5498 +++ b/dev-lang/perl/perl-5.8.8-r8.ebuild
5499 @@ -0,0 +1,698 @@
5500 +# Copyright 1999-2012 Gentoo Foundation
5501 +# Distributed under the terms of the GNU General Public License v2
5502 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.8-r8.ebuild,v 1.14 2012/01/02 22:52:21 zmedico Exp $
5503 +
5504 +inherit eutils alternatives flag-o-matic toolchain-funcs multilib
5505 +
5506 +# The slot of this binary compat version of libperl.so
5507 +PERLSLOT="1"
5508 +
5509 +SHORT_PV="${PV%.*}"
5510 +MY_P="perl-${PV/_rc/-RC}"
5511 +MY_PV="${PV%_rc*}"
5512 +DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
5513 +S="${WORKDIR}/${MY_P}"
5514 +SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2"
5515 +HOMEPAGE="http://www.perl.org/"
5516 +LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"
5517 +
5518 +LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
5519 +SLOT="0"
5520 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
5521 +IUSE="berkdb debug doc gdbm ithreads perlsuid build elibc_FreeBSD"
5522 +PERL_OLDVERSEN="5.8.0 5.8.2 5.8.4 5.8.5 5.8.6 5.8.7"
5523 +
5524 +DEPEND="berkdb? ( sys-libs/db )
5525 + gdbm? ( >=sys-libs/gdbm-1.8.3 )
5526 + >=sys-devel/libperl-${PV}-r1
5527 + elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )
5528 + <sys-devel/libperl-5.9
5529 + !<perl-core/File-Spec-0.87
5530 + !<perl-core/Test-Simple-0.47-r1"
5531 +
5532 +RDEPEND="~sys-devel/libperl-${PV}
5533 + berkdb? ( sys-libs/db )
5534 + gdbm? ( >=sys-libs/gdbm-1.8.3 )
5535 + build? (
5536 + !perl-core/Test-Harness
5537 + !perl-core/PodParser
5538 + !dev-perl/Locale-gettext
5539 + )"
5540 +
5541 +PDEPEND=">=app-admin/perl-cleaner-1.03"
5542 +
5543 +dual_scripts() {
5544 + src_remove_dual_scripts perl-core/Encode 2.12 enc2xs piconv
5545 + src_remove_dual_scripts perl-core/PodParser 1.32 pod2usage podchecker podselect
5546 + src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.30 instmodsh
5547 + src_remove_dual_scripts perl-core/Test-Harness 2.56 prove
5548 + src_remove_dual_scripts perl-core/CPAN 1.76_02 cpan
5549 + src_remove_dual_scripts perl-core/podlators 1.37 pod2man pod2text
5550 +}
5551 +
5552 +pkg_setup() {
5553 + # I think this should rather be displayed if you *have* 'ithreads'
5554 + # in USE if it could break things ...
5555 + if use ithreads
5556 + then
5557 + ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
5558 + ewarn "interpreter-level threading enabled."
5559 + ewarn "Threading is not supported by all applications "
5560 + ewarn "that compile against perl. You use threading at "
5561 + ewarn "your own discretion. "
5562 + epause 5
5563 + fi
5564 +
5565 + if [[ ! -f "${ROOT}/usr/$(get_libdir)/${LIBPERL}" ]]
5566 + then
5567 + # Make sure we have libperl installed ...
5568 + eerror "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}! Make sure that you"
5569 + eerror "have sys-libs/libperl installed properly ..."
5570 + die "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}!"
5571 + fi
5572 + dual_scripts
5573 +}
5574 +
5575 +src_unpack() {
5576 + unpack ${A}
5577 +
5578 + # Get -lpthread linked before -lc. This is needed
5579 + # when using glibc >= 2.3, or else runtime signal
5580 + # handling breaks. Fixes bug #14380.
5581 + # <rac@g.o> (14 Feb 2003)
5582 + # reinstated to try to avoid sdl segfaults 03.10.02
5583 + cd "${S}"; epatch "${FILESDIR}"/${PN}-prelink-lpthread.patch
5584 +
5585 + # Patch perldoc to not abort when it attempts to search
5586 + # nonexistent directories; fixes bug #16589.
5587 + # <rac@g.o> (28 Feb 2003)
5588 +
5589 + cd "${S}"; epatch "${FILESDIR}"/${PN}-perldoc-emptydirs.patch
5590 +
5591 + # this lays the groundwork for solving the issue of what happens
5592 + # when people (or ebuilds) install different versiosn of modules
5593 + # that are in the core, by rearranging the @INC directory to look
5594 + # site -> vendor -> core.
5595 + cd "${S}"; epatch "${FILESDIR}"/${P}-reorder-INC.patch
5596 +
5597 + # some well-intentioned stuff in http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=Pine.SOL.4.10.10205231231200.5399-100000%40maxwell.phys.lafayette.edu
5598 + # attempts to avoid bringing cccdlflags to bear on static
5599 + # extensions (like DynaLoader). i believe this is
5600 + # counterproductive on a Gentoo system which has both a shared
5601 + # and static libperl, so effectively revert this here.
5602 + cd "${S}"; epatch "${FILESDIR}"/${PN}-picdl.patch
5603 +
5604 + # Configure makes an unwarranted assumption that /bin/ksh is a
5605 + # good shell. This patch makes it revert to using /bin/sh unless
5606 + # /bin/ksh really is executable. Should fix bug 42665.
5607 + # rac 2004.06.09
5608 + cd "${S}"; epatch "${FILESDIR}"/${PN}-noksh.patch
5609 +
5610 + # makedepend.SH contains a syntax error which is ignored by bash but causes
5611 + # dash to abort
5612 + epatch "${FILESDIR}"/${P}-makedepend-syntax.patch
5613 +
5614 + # We do not want the build root in the linked perl module's RUNPATH, so
5615 + # strip paths containing PORTAGE_TMPDIR if its set. This is for the
5616 + # MakeMaker module, bug #105054.
5617 + epatch "${FILESDIR}"/${PN}-5.8.7-MakeMaker-RUNPATH.patch
5618 +
5619 + # Starting and hopefully ending with 5.8.7 we observe stack
5620 + # corruption with the regexp handling in perls DynaLoader code
5621 + # with ssp enabled. This become fatal during compile time so we
5622 + # temporally disable ssp on two regexp files till upstream has a
5623 + # chance to work it out. Bug #97452
5624 + [[ -n $(test-flags -fno-stack-protector) ]] && \
5625 + epatch "${FILESDIR}"/${PN}-regexp-nossp.patch
5626 +
5627 + # On PA7200, uname -a contains a single quote and we need to
5628 + # filter it otherwise configure fails. See #125535.
5629 + epatch "${FILESDIR}"/perl-hppa-pa7200-configure.patch
5630 +
5631 + case "$(get_libdir)" in
5632 + lib64) cd "${S}" && epatch "${FILESDIR}"/${P}-lib64.patch;;
5633 + lib32) cd "${S}" && epatch "${FILESDIR}"/${P}-lib32.patch;;
5634 + lib) true;;
5635 + *) die "Something's wrong with your libdir, don't know how to treat it.";;
5636 + esac
5637 +
5638 + [[ ${CHOST} == *-dragonfly* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-dragonfly-clean.patch
5639 + [[ ${CHOST} == *-freebsd* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-fbsdhints.patch
5640 + cd "${S}"; epatch "${FILESDIR}"/${P}-USE_MM_LD_RUN_PATH.patch
5641 + cd "${S}"; epatch "${FILESDIR}"/${P}-links.patch
5642 + # c++ patch - should address swig related items
5643 + cd "${S}"; epatch "${FILESDIR}"/${P}-cplusplus.patch
5644 +
5645 + epatch "${FILESDIR}"/${P}-gcc42-command-line.patch
5646 +
5647 + # Newer linux-headers don't include asm/page.h. Fix this.
5648 + # Patch from bug 168312, thanks Peter!
5649 + echo "#include <asm/page.h>" | $(tc-getCPP) > /dev/null 2>&1 || \
5650 + epatch "${FILESDIR}"/${P}-asm-page-h-compile-failure.patch
5651 +
5652 + # Also add the directory prefix of the current file when the quote syntax is
5653 + # used; 'require' will only look in @INC, not the current directory.
5654 + epatch "${FILESDIR}"/${PN}-fix_h2ph_include_quote.patch
5655 +
5656 + # perlcc fix patch - bug #181229
5657 + epatch "${FILESDIR}"/${P}-perlcc.patch
5658 +
5659 + # libnet hostname test patch
5660 + epatch "${FILESDIR}"/${P}-libnet-hostname.patch
5661 +
5662 + # patch to fix bug #198196
5663 + # UTF/Regular expressions boundary error (CVE-2007-5116)
5664 + epatch "${FILESDIR}"/${P}-utf8-boundary.patch
5665 +
5666 + # patch to fix bug #219203
5667 + epatch "${FILESDIR}"/${P}-CVE-2008-1927.patch
5668 +
5669 + epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
5670 + epatch "${FILESDIR}"/${P}-fix_file_path_chdir.patch
5671 +
5672 + # Respect CFLAGS even for linking when done with compiler
5673 + epatch "${FILESDIR}"/${P}-ccld-cflags.patch
5674 +}
5675 +
5676 +myconf() {
5677 + # the myconf array is declared in src_configure
5678 + myconf=( "${myconf[@]}" "$@" )
5679 +}
5680 +
5681 +src_configure() {
5682 + declare -a myconf
5683 +
5684 + # some arches and -O do not mix :)
5685 + use ppc && replace-flags -O? -O1
5686 + # Perl has problems compiling with -Os in your flags with glibc
5687 + use elibc_uclibc || replace-flags "-Os" "-O2"
5688 + ( gcc-specs-ssp && use ia64 ) && append-flags -fno-stack-protector
5689 + # This flag makes compiling crash in interesting ways
5690 + filter-flags -malign-double
5691 + # Fixes bug #97645
5692 + use ppc && filter-flags -mpowerpc-gpopt
5693 + # Fixes bug #143895 on gcc-4.1.1
5694 + filter-flags "-fsched2-use-superblocks"
5695 +
5696 + export LC_ALL="C"
5697 + [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
5698 +
5699 + case ${CHOST} in
5700 + *-freebsd*) osname="freebsd" ;;
5701 + *-dragonfly*) osname="dragonfly" ;;
5702 + *-netbsd*) osname="netbsd" ;;
5703 + *-openbsd*) osname="openbsd" ;;
5704 + *-darwin*) osname="darwin" ;;
5705 +
5706 + *) osname="linux" ;;
5707 + esac
5708 +
5709 + if use ithreads
5710 + then
5711 + einfo "using ithreads"
5712 + mythreading="-multi"
5713 + myconf -Dusethreads
5714 + myarch=${CHOST}
5715 + myarch="${myarch%%-*}-${osname}-thread"
5716 + else
5717 + myarch=${CHOST}
5718 + myarch="${myarch%%-*}-${osname}"
5719 + fi
5720 +
5721 + local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$myarch$mythreading "; done)
5722 +
5723 + # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
5724 +
5725 + myndbm='U'
5726 + mygdbm='U'
5727 + mydb='U'
5728 +
5729 + if use gdbm
5730 + then
5731 + mygdbm='D'
5732 + myndbm='D'
5733 + fi
5734 + if use berkdb
5735 + then
5736 + mydb='D'
5737 + has_version '=sys-libs/db-1*' && myndbm='D'
5738 + fi
5739 +
5740 + myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
5741 +
5742 + if use mips
5743 + then
5744 + # this is needed because gcc 3.3-compiled kernels will hang
5745 + # the machine trying to run this test - check with `Kumba
5746 + # <rac@g.o> 2003.06.26
5747 + myconf -Dd_u32align
5748 + fi
5749 +
5750 + if use perlsuid
5751 + then
5752 + myconf -Dd_dosuid
5753 + ewarn "You have enabled Perl's suid compile. Please"
5754 + ewarn "read http://search.cpan.org/~nwclark/perl-5.8.8/INSTALL#suidperl"
5755 + epause 3
5756 + fi
5757 +
5758 + if use debug
5759 + then
5760 + CFLAGS="${CFLAGS} -g"
5761 + myconf -DDEBUGGING
5762 + fi
5763 +
5764 + if use sparc
5765 + then
5766 + myconf -Ud_longdbl
5767 + fi
5768 +
5769 + if use alpha && "$(tc-getCC)" == "ccc"
5770 + then
5771 + ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
5772 + myconf -Ui_db -Ui_ndbm
5773 + fi
5774 +
5775 + [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
5776 +
5777 + if [[ $(get_libdir) != "lib" ]] ; then
5778 + # We need to use " and not ', as the written config.sh use ' ...
5779 + myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
5780 + fi
5781 +
5782 + sh Configure -des \
5783 + -Darchname="${myarch}" \
5784 + -Dcccdlflags='-fPIC' \
5785 + -Dccdlflags='-rdynamic' \
5786 + -Dcc="$(tc-getCC)" \
5787 + -Dprefix='/usr' \
5788 + -Dvendorprefix='/usr' \
5789 + -Dsiteprefix='/usr' \
5790 + -Dlocincpth=' ' \
5791 + -Doptimize="${CFLAGS}" \
5792 + -Duselargefiles \
5793 + -Dd_semctl_semun \
5794 + -Dscriptdir=/usr/bin \
5795 + -Dman1dir=/usr/share/man/man1 \
5796 + -Dman3dir=/usr/share/man/man3 \
5797 + -Dinstallman1dir=/usr/share/man/man1 \
5798 + -Dinstallman3dir=/usr/share/man/man3 \
5799 + -Dman1ext='1' \
5800 + -Dman3ext='3pm' \
5801 + -Dinc_version_list="$inclist" \
5802 + -Dcf_by='Gentoo' \
5803 + -Ud_csh \
5804 + -Dusenm \
5805 + "${myconf[@]}" || die "Unable to configure"
5806 +}
5807 +
5808 +src_compile() {
5809 +
5810 + # would like to bracket this with a test for the existence of a
5811 + # dotfile, but can't clean it automatically now.
5812 +
5813 + src_configure
5814 +
5815 + emake -j1 || die "Unable to make"
5816 +}
5817 +
5818 +src_test() {
5819 + use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
5820 + emake -i test CCDLFLAGS= || die "test failed"
5821 +}
5822 +
5823 +src_install() {
5824 +
5825 + export LC_ALL="C"
5826 +
5827 + # Need to do this, else apps do not link to dynamic version of
5828 + # the library ...
5829 + local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
5830 + dodir ${coredir}
5831 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
5832 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${PERLSLOT})
5833 + dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
5834 +
5835 + # Fix for "stupid" modules and programs
5836 + dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
5837 +
5838 + local installtarget=install
5839 + if use build ; then
5840 + installtarget=install.perl
5841 + fi
5842 + make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
5843 +
5844 + rm "${D}"/usr/bin/perl
5845 + ln -s perl${MY_PV} "${D}"/usr/bin/perl
5846 +
5847 + cp -f utils/h2ph utils/h2ph_patched
5848 + epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
5849 +
5850 + LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
5851 + -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
5852 +asm/termios.h
5853 +syscall.h
5854 +syslimits.h
5855 +syslog.h
5856 +sys/ioctl.h
5857 +sys/socket.h
5858 +sys/time.h
5859 +wait.h
5860 +EOF
5861 +
5862 + # This is to fix a missing c flag for backwards compat
5863 + for i in `find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm"`;do
5864 + sed -e "s:ccflags=':ccflags='-DPERL5 :" \
5865 + -e "s:cppflags=':cppflags='-DPERL5 :" \
5866 + ${i} > ${i}.new &&\
5867 + mv ${i}.new ${i} || die "Sed failed"
5868 + done
5869 +
5870 + # A poor fix for the miniperl issues
5871 + dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
5872 + fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
5873 + dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
5874 + fperms 0755 /usr/bin/xsubpp
5875 +
5876 + # This removes ${D} from Config.pm and .packlist
5877 + for i in `find "${D}" -iname "Config.pm"` `find "${D}" -iname ".packlist"`;do
5878 + einfo "Removing ${D} from ${i}..."
5879 + sed -e "s:${D}::" ${i} > ${i}.new &&\
5880 + mv ${i}.new ${i} || die "Sed failed"
5881 + done
5882 +
5883 + # Note: find out from psm why we would need/want this.
5884 + # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
5885 + # find ${D} -name "*NDBM*" | xargs rm -f
5886 +
5887 + dodoc Changes* Artistic Copying README Todo* AUTHORS
5888 +
5889 + if use doc
5890 + then
5891 + # HTML Documentation
5892 + # We expect errors, warnings, and such with the following.
5893 +
5894 + dodir /usr/share/doc/${PF}/html
5895 + ./perl installhtml \
5896 + --podroot='.' \
5897 + --podpath='lib:ext:pod:vms' \
5898 + --recurse \
5899 + --htmldir="${D}/usr/share/doc/${PF}/html" \
5900 + --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
5901 + fi
5902 + cd `find "${D}" -name Path.pm|sed -e 's/Path.pm//'`
5903 + # CAN patch in bug 79685
5904 + #epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
5905 +
5906 + dual_scripts
5907 +
5908 + if use build ; then
5909 + src_remove_extra_files
5910 + fi
5911 +}
5912 +
5913 +pkg_postinst() {
5914 + dual_scripts
5915 + INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
5916 + if [[ "${ROOT}" = "/" ]]
5917 + then
5918 + ebegin "Removing old .ph files"
5919 + for DIR in $INC; do
5920 + if [[ -d "${ROOT}"/$DIR ]]; then
5921 + for file in $(find "${ROOT}"/$DIR -name "*.ph" -type f); do
5922 + rm "${ROOT}"/$file
5923 + einfo "<< $file"
5924 + done
5925 + fi
5926 + done
5927 + # Silently remove the now empty dirs
5928 + for DIR in $INC; do
5929 + if [[ -d "${ROOT}"/$DIR ]]; then
5930 + find "${ROOT}"/$DIR -depth -type d | xargs -r rmdir &> /dev/null
5931 + fi
5932 + done
5933 + ebegin "Generating ConfigLocal.pm (ignore any error)"
5934 + enc2xs -C
5935 + ebegin "Converting C header files to the corresponding Perl format"
5936 + cd /usr/include;
5937 + h2ph *
5938 + h2ph -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/* gentoo*
5939 + cd /usr/include/linux
5940 + h2ph *
5941 + fi
5942 +
5943 +# This has been moved into a function because rumor has it that a future release
5944 +# of portage will allow us to check what version was just removed - which means
5945 +# we will be able to invoke this only as needed :)
5946 + # Tried doing this via -z, but $INC is too big...
5947 + if [[ "${INC}x" != "x" ]]; then
5948 + cleaner_msg
5949 + epause 5
5950 + fi
5951 +}
5952 +
5953 +pkg_postrm() {
5954 + dual_scripts
5955 +}
5956 +
5957 +cleaner_msg() {
5958 + eerror "You have had multiple versions of perl. It is recommended"
5959 + eerror "that you run perl-cleaner now. perl-cleaner will"
5960 + eerror "assist with this transition. This script is capable"
5961 + eerror "of cleaning out old .ph files, rebuilding modules for "
5962 + eerror "your new version of perl, as well as re-emerging"
5963 + eerror "applications that compiled against your old libperl$(get_libname)"
5964 + eerror
5965 + eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
5966 + eerror "Part of the rebuilding of applications compiled against "
5967 + eerror "your old libperl involves temporarily unmerging"
5968 + eerror "them - interruptions could leave you with unmerged"
5969 + eerror "packages before they can be remerged."
5970 + eerror ""
5971 + eerror "If you have run perl-cleaner and a package still gives"
5972 + eerror "you trouble, and re-emerging it fails to correct"
5973 + eerror "the problem, please check http://bugs.gentoo.org/"
5974 + eerror "for more information or to report a bug."
5975 + eerror ""
5976 + eerror ""
5977 +}
5978 +
5979 +src_remove_dual_scripts() {
5980 + local i pkg ver ff
5981 + pkg="$1"
5982 + ver="$2"
5983 + shift 2
5984 + if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
5985 + for i in "$@" ; do
5986 + ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
5987 + ff=${ff##*.1}
5988 + alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
5989 + alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
5990 + done
5991 + elif has "${EBUILD_PHASE:-none}" "setup" ; then
5992 + for i in "$@" ; do
5993 + if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
5994 + has_version ${pkg} && ewarn "You must reinstall $pkg !"
5995 + break
5996 + fi
5997 + done
5998 + else
5999 + for i in "$@" ; do
6000 + mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
6001 + mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
6002 + echo "/usr/share/man/man1/${i}.1 does not exist!"
6003 + done
6004 + fi
6005 +}
6006 +
6007 +src_remove_extra_files() {
6008 + local prefix="./usr" # ./ is important
6009 + local bindir="${prefix}/bin"
6010 + local perlroot="${prefix}/$(get_libdir)/perl5" # perl installs per-arch dirs
6011 + local prV="${perlroot}/${MY_PV}"
6012 + # myarch and mythreading are defined inside src_configure()
6013 + local prVA="${prV}/${myarch}${mythreading}"
6014 +
6015 + # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
6016 + # Then, I added several files to get GNU autotools running
6017 + # FIXME: should this be in a separated file to be sourced?
6018 + local MINIMAL_PERL_INSTALL="
6019 + ${bindir}/h2ph
6020 + ${bindir}/perl
6021 + ${bindir}/perl${MY_PV}
6022 + ${bindir}/pod2man
6023 + ${prV}/attributes.pm
6024 + ${prV}/AutoLoader.pm
6025 + ${prV}/autouse.pm
6026 + ${prV}/base.pm
6027 + ${prV}/bigint.pm
6028 + ${prV}/bignum.pm
6029 + ${prV}/bigrat.pm
6030 + ${prV}/blib.pm
6031 + ${prV}/bytes_heavy.pl
6032 + ${prV}/bytes.pm
6033 + ${prV}/Carp/Heavy.pm
6034 + ${prV}/Carp.pm
6035 + ${prV}/charnames.pm
6036 + ${prV}/Class/Struct.pm
6037 + ${prV}/constant.pm
6038 + ${prV}/diagnostics.pm
6039 + ${prV}/DirHandle.pm
6040 + ${prV}/Exporter/Heavy.pm
6041 + ${prV}/Exporter.pm
6042 + ${prV}/ExtUtils/Command.pm
6043 + ${prV}/ExtUtils/Constant.pm
6044 + ${prV}/ExtUtils/Embed.pm
6045 + ${prV}/ExtUtils/Installed.pm
6046 + ${prV}/ExtUtils/Install.pm
6047 + ${prV}/ExtUtils/Liblist.pm
6048 + ${prV}/ExtUtils/MakeMaker.pm
6049 + ${prV}/ExtUtils/Manifest.pm
6050 + ${prV}/ExtUtils/Mkbootstrap.pm
6051 + ${prV}/ExtUtils/Mksymlists.pm
6052 + ${prV}/ExtUtils/MM_Any.pm
6053 + ${prV}/ExtUtils/MM_MacOS.pm
6054 + ${prV}/ExtUtils/MM.pm
6055 + ${prV}/ExtUtils/MM_Unix.pm
6056 + ${prV}/ExtUtils/MY.pm
6057 + ${prV}/ExtUtils/Packlist.pm
6058 + ${prV}/ExtUtils/testlib.pm
6059 + ${prV}/ExtUtils/Miniperl.pm
6060 + ${prV}/ExtUtils/Command/MM.pm
6061 + ${prV}/ExtUtils/Constant/Base.pm
6062 + ${prV}/ExtUtils/Constant/Utils.pm
6063 + ${prV}/ExtUtils/Constant/XS.pm
6064 + ${prV}/ExtUtils/Liblist/Kid.pm
6065 + ${prV}/ExtUtils/MakeMaker/bytes.pm
6066 + ${prV}/ExtUtils/MakeMaker/vmsish.pm
6067 + ${prV}/fields.pm
6068 + ${prV}/File/Basename.pm
6069 + ${prV}/File/Compare.pm
6070 + ${prV}/File/Copy.pm
6071 + ${prV}/File/Find.pm
6072 + ${prV}/FileHandle.pm
6073 + ${prV}/File/Path.pm
6074 + ${prV}/File/Spec.pm
6075 + ${prV}/File/Spec/Unix.pm
6076 + ${prV}/File/stat.pm
6077 + ${prV}/filetest.pm
6078 + ${prVA}/attrs.pm
6079 + ${prVA}/auto/attrs
6080 + ${prVA}/auto/Cwd/Cwd$(get_libname)
6081 + ${prVA}/auto/Data/Dumper/Dumper$(get_libname)
6082 + ${prVA}/auto/DynaLoader/dl_findfile.al
6083 + ${prVA}/auto/Fcntl/Fcntl$(get_libname)
6084 + ${prVA}/auto/File/Glob/Glob$(get_libname)
6085 + ${prVA}/auto/IO/IO$(get_libname)
6086 + ${prVA}/auto/POSIX/autosplit.ix
6087 + ${prVA}/auto/POSIX/fstat.al
6088 + ${prVA}/auto/POSIX/load_imports.al
6089 + ${prVA}/auto/POSIX/POSIX.bs
6090 + ${prVA}/auto/POSIX/POSIX$(get_libname)
6091 + ${prVA}/auto/POSIX/assert.al
6092 + ${prVA}/auto/POSIX/stat.al
6093 + ${prVA}/auto/POSIX/tmpfile.al
6094 + ${prVA}/auto/re/re$(get_libname)
6095 + ${prVA}/auto/Socket/Socket$(get_libname)
6096 + ${prVA}/auto/Storable/autosplit.ix
6097 + ${prVA}/auto/Storable/_retrieve.al
6098 + ${prVA}/auto/Storable/retrieve.al
6099 + ${prVA}/auto/Storable/Storable$(get_libname)
6100 + ${prVA}/auto/Storable/_store.al
6101 + ${prVA}/auto/Storable/store.al
6102 + ${prVA}/B/Deparse.pm
6103 + ${prVA}/B.pm
6104 + ${prVA}/Config.pm
6105 + ${prVA}/Config_heavy.pl
6106 + ${prVA}/CORE/libperl$(get_libname)
6107 + ${prVA}/Cwd.pm
6108 + ${prVA}/Data/Dumper.pm
6109 + ${prVA}/DynaLoader.pm
6110 + ${prVA}/encoding.pm
6111 + ${prVA}/Errno.pm
6112 + ${prVA}/Fcntl.pm
6113 + ${prVA}/File/Glob.pm
6114 + ${prVA}/_h2ph_pre.ph
6115 + ${prVA}/IO/File.pm
6116 + ${prVA}/IO/Handle.pm
6117 + ${prVA}/IO/Pipe.pm
6118 + ${prVA}/IO.pm
6119 + ${prVA}/IO/Seekable.pm
6120 + ${prVA}/IO/Select.pm
6121 + ${prVA}/IO/Socket.pm
6122 + ${prVA}/lib.pm
6123 + ${prVA}/NDBM_File.pm
6124 + ${prVA}/ops.pm
6125 + ${prVA}/POSIX.pm
6126 + ${prVA}/re.pm
6127 + ${prVA}/Socket.pm
6128 + ${prVA}/Storable.pm
6129 + ${prVA}/threads
6130 + ${prVA}/threads.pm
6131 + ${prVA}/XSLoader.pm
6132 + ${prV}/Getopt/Long.pm
6133 + ${prV}/Getopt/Std.pm
6134 + ${prV}/if.pm
6135 + ${prV}/integer.pm
6136 + ${prV}/IO/Socket/INET.pm
6137 + ${prV}/IO/Socket/UNIX.pm
6138 + ${prV}/IPC/Open2.pm
6139 + ${prV}/IPC/Open3.pm
6140 + ${prV}/less.pm
6141 + ${prV}/List/Util.pm
6142 + ${prV}/locale.pm
6143 + ${prV}/open.pm
6144 + ${prV}/overload.pm
6145 + ${prV}/Pod/InputObjects.pm
6146 + ${prV}/Pod/Man.pm
6147 + ${prV}/Pod/ParseLink.pm
6148 + ${prV}/Pod/Parser.pm
6149 + ${prV}/Pod/Select.pm
6150 + ${prV}/Pod/Text.pm
6151 + ${prV}/Pod/Usage.pm
6152 + ${prV}/PerlIO.pm
6153 + ${prV}/Scalar/Util.pm
6154 + ${prV}/SelectSaver.pm
6155 + ${prV}/sigtrap.pm
6156 + ${prV}/sort.pm
6157 + ${prV}/stat.pl
6158 + ${prV}/strict.pm
6159 + ${prV}/subs.pm
6160 + ${prV}/Symbol.pm
6161 + ${prV}/Text/ParseWords.pm
6162 + ${prV}/Text/Tabs.pm
6163 + ${prV}/Text/Wrap.pm
6164 + ${prV}/Time/Local.pm
6165 + ${prV}/unicore/Canonical.pl
6166 + ${prV}/unicore/Exact.pl
6167 + ${prV}/unicore/lib/gc_sc/Digit.pl
6168 + ${prV}/unicore/lib/gc_sc/Word.pl
6169 + ${prV}/unicore/PVA.pl
6170 + ${prV}/unicore/To/Fold.pl
6171 + ${prV}/unicore/To/Lower.pl
6172 + ${prV}/unicore/To/Upper.pl
6173 + ${prV}/utf8_heavy.pl
6174 + ${prV}/utf8.pm
6175 + ${prV}/vars.pm
6176 + ${prV}/vmsish.pm
6177 + ${prV}/warnings
6178 + ${prV}/warnings.pm
6179 + ${prV}/warnings/register.pm"
6180 +
6181 + if use perlsuid ; then
6182 + MINIMAL_PERL_INSTALL="${MINIMAL_PERL_INSTALL}
6183 + ${bindir}/suidperl
6184 + ${bindir}/sperl${MY_PV}"
6185 + fi
6186 +
6187 + pushd "${D}" > /dev/null
6188 + # Remove cruft
6189 + einfo "Removing files that are not in the minimal install"
6190 + echo "${MINIMAL_PERL_INSTALL}"
6191 + for f in $(find . -type f); do
6192 + has ${f} ${MINIMAL_PERL_INSTALL} || rm -f ${f}
6193 + done
6194 + # Remove empty directories
6195 + find . -depth -type d | xargs -r rmdir &> /dev/null
6196 + popd > /dev/null
6197 +}
6198
6199 diff --git a/dev-lang/ruby/ruby-1.8.7_p352.ebuild b/dev-lang/ruby/ruby-1.8.7_p352.ebuild
6200 new file mode 100644
6201 index 0000000..a2af4de
6202 --- /dev/null
6203 +++ b/dev-lang/ruby/ruby-1.8.7_p352.ebuild
6204 @@ -0,0 +1,195 @@
6205 +# Copyright 1999-2011 Gentoo Foundation
6206 +# Distributed under the terms of the GNU General Public License v2
6207 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p352.ebuild,v 1.7 2011/10/22 12:07:43 armin76 Exp $
6208 +
6209 +EAPI=2
6210 +
6211 +inherit autotools eutils flag-o-matic multilib versionator
6212 +
6213 +MY_P="${PN}-$(replace_version_separator 3 '-')"
6214 +S=${WORKDIR}/${MY_P}
6215 +
6216 +SLOT=$(get_version_component_range 1-2)
6217 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
6218 +# 1.8 and 1.9 series disagree on this
6219 +RUBYVERSION=$(get_version_component_range 1-2)
6220 +
6221 +if [[ -n ${PATCHSET} ]]; then
6222 + if [[ ${PVR} == ${PV} ]]; then
6223 + PATCHSET="${PV}-r0.${PATCHSET}"
6224 + else
6225 + PATCHSET="${PVR}.${PATCHSET}"
6226 + fi
6227 +else
6228 + PATCHSET="${PVR}"
6229 +fi
6230 +
6231 +DESCRIPTION="An object-oriented scripting language"
6232 +HOMEPAGE="http://www.ruby-lang.org/"
6233 +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2
6234 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
6235 +
6236 +LICENSE="|| ( Ruby GPL-2 )"
6237 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
6238 +IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
6239 +
6240 +RDEPEND="
6241 + berkdb? ( sys-libs/db )
6242 + gdbm? ( sys-libs/gdbm )
6243 + ssl? ( >=dev-libs/openssl-0.9.8m )
6244 + socks5? ( >=net-proxy/dante-1.1.13 )
6245 + tk? ( dev-lang/tk[threads=] )
6246 + ncurses? ( sys-libs/ncurses )
6247 + libedit? ( dev-libs/libedit )
6248 + !libedit? ( readline? ( sys-libs/readline ) )
6249 + sys-libs/zlib
6250 + >=app-admin/eselect-ruby-20100603
6251 + !=dev-lang/ruby-cvs-${SLOT}*
6252 + !<dev-ruby/rdoc-2
6253 + !dev-ruby/rexml"
6254 +DEPEND="${RDEPEND}"
6255 +PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
6256 +
6257 +src_prepare() {
6258 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
6259 + epatch "${WORKDIR}/patches"
6260 +
6261 + # Fix a hardcoded lib path in configure script
6262 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
6263 + configure.in || die "sed failed"
6264 +
6265 + eautoreconf
6266 +}
6267 +
6268 +src_configure() {
6269 + local myconf=
6270 +
6271 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
6272 + filter-flags -fomit-frame-pointer
6273 + # In many places aliasing rules are broken; play it safe
6274 + # as it's risky with newer compilers to leave it as it is.
6275 + append-flags -fno-strict-aliasing
6276 +
6277 + # Socks support via dante
6278 + if use socks5 ; then
6279 + # Socks support can't be disabled as long as SOCKS_SERVER is
6280 + # set and socks library is present, so need to unset
6281 + # SOCKS_SERVER in that case.
6282 + unset SOCKS_SERVER
6283 + fi
6284 +
6285 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
6286 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
6287 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
6288 + fi
6289 +
6290 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
6291 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
6292 +
6293 + if use libedit; then
6294 + einfo "Using libedit to provide readline extension"
6295 + myconf="${myconf} --enable-libedit --with-readline"
6296 + elif use readline; then
6297 + einfo "Using readline to provide readline extension"
6298 + myconf="${myconf} --with-readline"
6299 + else
6300 + myconf="${myconf} --without-readline"
6301 + fi
6302 +
6303 + econf \
6304 + --program-suffix="${MY_SUFFIX}" \
6305 + --enable-shared \
6306 + $(use_enable socks5 socks) \
6307 + $(use_enable doc install-doc) \
6308 + $(use_enable threads pthread) \
6309 + --enable-ipv6 \
6310 + $(use_enable debug) \
6311 + $(use_with berkdb dbm) \
6312 + $(use_with gdbm) \
6313 + $(use_with ssl openssl) \
6314 + $(use_with tk) \
6315 + $(use_with ncurses curses) \
6316 + ${myconf} \
6317 + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
6318 + --enable-option-checking=no \
6319 + || die "econf failed"
6320 +}
6321 +
6322 +src_compile() {
6323 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
6324 +}
6325 +
6326 +src_test() {
6327 + emake -j1 test || die "make test failed"
6328 +
6329 + elog "Ruby's make test has been run. Ruby also ships with a make check"
6330 + elog "that cannot be run until after ruby has been installed."
6331 + elog
6332 + if use rubytests; then
6333 + elog "You have enabled rubytests, so they will be installed to"
6334 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
6335 + elog "than root, and you must place them into a writeable directory."
6336 + elog "Then call: "
6337 + elog
6338 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
6339 + else
6340 + elog "Enable the rubytests USE flag to install the make check tests"
6341 + fi
6342 +}
6343 +
6344 +src_install() {
6345 + # Ruby is involved in the install process, we don't want interference here.
6346 + unset RUBYOPT
6347 +
6348 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
6349 +
6350 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
6351 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
6352 + for d in $(find "${S}/ext" -type d) ; do
6353 + RUBYLIB="${RUBYLIB}:$d"
6354 + done
6355 + export LD_LIBRARY_PATH RUBYLIB
6356 +
6357 + emake DESTDIR="${D}" install || die "make install failed"
6358 +
6359 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
6360 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
6361 +
6362 + if use doc; then
6363 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
6364 + fi
6365 +
6366 + if use examples; then
6367 + insinto /usr/share/doc/${PF}
6368 + doins -r sample
6369 + fi
6370 +
6371 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6372 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
6373 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6374 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
6375 +
6376 + dodoc ChangeLog NEWS README* ToDo || die
6377 +
6378 + if use rubytests; then
6379 + pushd test
6380 + insinto /usr/share/${PN}-${SLOT}/test
6381 + doins -r .
6382 + popd
6383 + fi
6384 +}
6385 +
6386 +pkg_postinst() {
6387 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
6388 + eselect ruby set ruby${MY_SUFFIX}
6389 + fi
6390 +
6391 + elog
6392 + elog "To switch between available Ruby profiles, execute as root:"
6393 + elog "\teselect ruby set ruby(18|19|...)"
6394 + elog
6395 +}
6396 +
6397 +pkg_postrm() {
6398 + eselect ruby cleanup
6399 +}
6400
6401 diff --git a/dev-lang/ruby/ruby-1.8.7_p357.ebuild b/dev-lang/ruby/ruby-1.8.7_p357.ebuild
6402 new file mode 100644
6403 index 0000000..24a03a5
6404 --- /dev/null
6405 +++ b/dev-lang/ruby/ruby-1.8.7_p357.ebuild
6406 @@ -0,0 +1,193 @@
6407 +# Copyright 1999-2012 Gentoo Foundation
6408 +# Distributed under the terms of the GNU General Public License v2
6409 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p357.ebuild,v 1.6 2012/01/08 15:36:01 armin76 Exp $
6410 +
6411 +EAPI=2
6412 +
6413 +inherit autotools eutils flag-o-matic multilib versionator
6414 +
6415 +MY_P="${PN}-$(replace_version_separator 3 '-')"
6416 +S=${WORKDIR}/${MY_P}
6417 +
6418 +SLOT=$(get_version_component_range 1-2)
6419 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
6420 +# 1.8 and 1.9 series disagree on this
6421 +RUBYVERSION=$(get_version_component_range 1-2)
6422 +
6423 +if [[ -n ${PATCHSET} ]]; then
6424 + if [[ ${PVR} == ${PV} ]]; then
6425 + PATCHSET="${PV}-r0.${PATCHSET}"
6426 + else
6427 + PATCHSET="${PVR}.${PATCHSET}"
6428 + fi
6429 +else
6430 + PATCHSET="${PVR}"
6431 +fi
6432 +
6433 +DESCRIPTION="An object-oriented scripting language"
6434 +HOMEPAGE="http://www.ruby-lang.org/"
6435 +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2
6436 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
6437 +
6438 +LICENSE="|| ( Ruby GPL-2 )"
6439 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
6440 +IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
6441 +
6442 +RDEPEND="
6443 + berkdb? ( sys-libs/db )
6444 + gdbm? ( sys-libs/gdbm )
6445 + ssl? ( >=dev-libs/openssl-0.9.8m )
6446 + socks5? ( >=net-proxy/dante-1.1.13 )
6447 + tk? ( dev-lang/tk[threads=] )
6448 + ncurses? ( sys-libs/ncurses )
6449 + libedit? ( dev-libs/libedit )
6450 + !libedit? ( readline? ( sys-libs/readline ) )
6451 + sys-libs/zlib
6452 + >=app-admin/eselect-ruby-20100603
6453 + !<dev-ruby/rdoc-2"
6454 +DEPEND="${RDEPEND}"
6455 +PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
6456 +
6457 +src_prepare() {
6458 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
6459 + epatch "${WORKDIR}/patches"
6460 +
6461 + # Fix a hardcoded lib path in configure script
6462 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
6463 + configure.in || die "sed failed"
6464 +
6465 + eautoreconf
6466 +}
6467 +
6468 +src_configure() {
6469 + local myconf=
6470 +
6471 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
6472 + filter-flags -fomit-frame-pointer
6473 + # In many places aliasing rules are broken; play it safe
6474 + # as it's risky with newer compilers to leave it as it is.
6475 + append-flags -fno-strict-aliasing
6476 +
6477 + # Socks support via dante
6478 + if use socks5 ; then
6479 + # Socks support can't be disabled as long as SOCKS_SERVER is
6480 + # set and socks library is present, so need to unset
6481 + # SOCKS_SERVER in that case.
6482 + unset SOCKS_SERVER
6483 + fi
6484 +
6485 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
6486 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
6487 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
6488 + fi
6489 +
6490 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
6491 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
6492 +
6493 + if use libedit; then
6494 + einfo "Using libedit to provide readline extension"
6495 + myconf="${myconf} --enable-libedit --with-readline"
6496 + elif use readline; then
6497 + einfo "Using readline to provide readline extension"
6498 + myconf="${myconf} --with-readline"
6499 + else
6500 + myconf="${myconf} --without-readline"
6501 + fi
6502 +
6503 + econf \
6504 + --program-suffix="${MY_SUFFIX}" \
6505 + --enable-shared \
6506 + $(use_enable socks5 socks) \
6507 + $(use_enable doc install-doc) \
6508 + $(use_enable threads pthread) \
6509 + --enable-ipv6 \
6510 + $(use_enable debug) \
6511 + $(use_with berkdb dbm) \
6512 + $(use_with gdbm) \
6513 + $(use_with ssl openssl) \
6514 + $(use_with tk) \
6515 + $(use_with ncurses curses) \
6516 + ${myconf} \
6517 + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
6518 + --enable-option-checking=no \
6519 + || die "econf failed"
6520 +}
6521 +
6522 +src_compile() {
6523 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
6524 +}
6525 +
6526 +src_test() {
6527 + emake -j1 test || die "make test failed"
6528 +
6529 + elog "Ruby's make test has been run. Ruby also ships with a make check"
6530 + elog "that cannot be run until after ruby has been installed."
6531 + elog
6532 + if use rubytests; then
6533 + elog "You have enabled rubytests, so they will be installed to"
6534 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
6535 + elog "than root, and you must place them into a writeable directory."
6536 + elog "Then call: "
6537 + elog
6538 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
6539 + else
6540 + elog "Enable the rubytests USE flag to install the make check tests"
6541 + fi
6542 +}
6543 +
6544 +src_install() {
6545 + # Ruby is involved in the install process, we don't want interference here.
6546 + unset RUBYOPT
6547 +
6548 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
6549 +
6550 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
6551 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
6552 + for d in $(find "${S}/ext" -type d) ; do
6553 + RUBYLIB="${RUBYLIB}:$d"
6554 + done
6555 + export LD_LIBRARY_PATH RUBYLIB
6556 +
6557 + emake DESTDIR="${D}" install || die "make install failed"
6558 +
6559 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
6560 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
6561 +
6562 + if use doc; then
6563 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
6564 + fi
6565 +
6566 + if use examples; then
6567 + insinto /usr/share/doc/${PF}
6568 + doins -r sample
6569 + fi
6570 +
6571 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6572 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
6573 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6574 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
6575 +
6576 + dodoc ChangeLog NEWS README* ToDo || die
6577 +
6578 + if use rubytests; then
6579 + pushd test
6580 + insinto /usr/share/${PN}-${SLOT}/test
6581 + doins -r .
6582 + popd
6583 + fi
6584 +}
6585 +
6586 +pkg_postinst() {
6587 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
6588 + eselect ruby set ruby${MY_SUFFIX}
6589 + fi
6590 +
6591 + elog
6592 + elog "To switch between available Ruby profiles, execute as root:"
6593 + elog "\teselect ruby set ruby(18|19|...)"
6594 + elog
6595 +}
6596 +
6597 +pkg_postrm() {
6598 + eselect ruby cleanup
6599 +}
6600
6601 diff --git a/dev-lang/ruby/ruby-1.8.7_p358.ebuild b/dev-lang/ruby/ruby-1.8.7_p358.ebuild
6602 new file mode 100644
6603 index 0000000..31ef929
6604 --- /dev/null
6605 +++ b/dev-lang/ruby/ruby-1.8.7_p358.ebuild
6606 @@ -0,0 +1,193 @@
6607 +# Copyright 1999-2012 Gentoo Foundation
6608 +# Distributed under the terms of the GNU General Public License v2
6609 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p358.ebuild,v 1.2 2012/04/26 16:55:14 aballier Exp $
6610 +
6611 +EAPI=2
6612 +
6613 +inherit autotools eutils flag-o-matic multilib versionator
6614 +
6615 +MY_P="${PN}-$(replace_version_separator 3 '-')"
6616 +S=${WORKDIR}/${MY_P}
6617 +
6618 +SLOT=$(get_version_component_range 1-2)
6619 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
6620 +# 1.8 and 1.9 series disagree on this
6621 +RUBYVERSION=$(get_version_component_range 1-2)
6622 +
6623 +if [[ -n ${PATCHSET} ]]; then
6624 + if [[ ${PVR} == ${PV} ]]; then
6625 + PATCHSET="${PV}-r0.${PATCHSET}"
6626 + else
6627 + PATCHSET="${PVR}.${PATCHSET}"
6628 + fi
6629 +else
6630 + PATCHSET="${PVR}"
6631 +fi
6632 +
6633 +DESCRIPTION="An object-oriented scripting language"
6634 +HOMEPAGE="http://www.ruby-lang.org/"
6635 +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2
6636 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
6637 +
6638 +LICENSE="|| ( Ruby GPL-2 )"
6639 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
6640 +IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
6641 +
6642 +RDEPEND="
6643 + berkdb? ( sys-libs/db )
6644 + gdbm? ( sys-libs/gdbm )
6645 + ssl? ( >=dev-libs/openssl-0.9.8m )
6646 + socks5? ( >=net-proxy/dante-1.1.13 )
6647 + tk? ( dev-lang/tk[threads=] )
6648 + ncurses? ( sys-libs/ncurses )
6649 + libedit? ( dev-libs/libedit )
6650 + !libedit? ( readline? ( sys-libs/readline ) )
6651 + sys-libs/zlib
6652 + >=app-admin/eselect-ruby-20100603
6653 + !<dev-ruby/rdoc-2"
6654 +DEPEND="${RDEPEND}"
6655 +PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
6656 +
6657 +src_prepare() {
6658 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
6659 + epatch "${WORKDIR}/patches"
6660 +
6661 + # Fix a hardcoded lib path in configure script
6662 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
6663 + configure.in || die "sed failed"
6664 +
6665 + eautoreconf
6666 +}
6667 +
6668 +src_configure() {
6669 + local myconf=
6670 +
6671 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
6672 + filter-flags -fomit-frame-pointer
6673 + # In many places aliasing rules are broken; play it safe
6674 + # as it's risky with newer compilers to leave it as it is.
6675 + append-flags -fno-strict-aliasing
6676 +
6677 + # Socks support via dante
6678 + if use socks5 ; then
6679 + # Socks support can't be disabled as long as SOCKS_SERVER is
6680 + # set and socks library is present, so need to unset
6681 + # SOCKS_SERVER in that case.
6682 + unset SOCKS_SERVER
6683 + fi
6684 +
6685 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
6686 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
6687 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
6688 + fi
6689 +
6690 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
6691 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
6692 +
6693 + if use libedit; then
6694 + einfo "Using libedit to provide readline extension"
6695 + myconf="${myconf} --enable-libedit --with-readline"
6696 + elif use readline; then
6697 + einfo "Using readline to provide readline extension"
6698 + myconf="${myconf} --with-readline"
6699 + else
6700 + myconf="${myconf} --without-readline"
6701 + fi
6702 +
6703 + econf \
6704 + --program-suffix="${MY_SUFFIX}" \
6705 + --enable-shared \
6706 + $(use_enable socks5 socks) \
6707 + $(use_enable doc install-doc) \
6708 + $(use_enable threads pthread) \
6709 + --enable-ipv6 \
6710 + $(use_enable debug) \
6711 + $(use_with berkdb dbm) \
6712 + $(use_with gdbm) \
6713 + $(use_with ssl openssl) \
6714 + $(use_with tk) \
6715 + $(use_with ncurses curses) \
6716 + ${myconf} \
6717 + --with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
6718 + --enable-option-checking=no \
6719 + || die "econf failed"
6720 +}
6721 +
6722 +src_compile() {
6723 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
6724 +}
6725 +
6726 +src_test() {
6727 + emake -j1 test || die "make test failed"
6728 +
6729 + elog "Ruby's make test has been run. Ruby also ships with a make check"
6730 + elog "that cannot be run until after ruby has been installed."
6731 + elog
6732 + if use rubytests; then
6733 + elog "You have enabled rubytests, so they will be installed to"
6734 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
6735 + elog "than root, and you must place them into a writeable directory."
6736 + elog "Then call: "
6737 + elog
6738 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
6739 + else
6740 + elog "Enable the rubytests USE flag to install the make check tests"
6741 + fi
6742 +}
6743 +
6744 +src_install() {
6745 + # Ruby is involved in the install process, we don't want interference here.
6746 + unset RUBYOPT
6747 +
6748 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
6749 +
6750 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
6751 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
6752 + for d in $(find "${S}/ext" -type d) ; do
6753 + RUBYLIB="${RUBYLIB}:$d"
6754 + done
6755 + export LD_LIBRARY_PATH RUBYLIB
6756 +
6757 + emake DESTDIR="${D}" install || die "make install failed"
6758 +
6759 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
6760 + keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
6761 +
6762 + if use doc; then
6763 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
6764 + fi
6765 +
6766 + if use examples; then
6767 + insinto /usr/share/doc/${PF}
6768 + doins -r sample
6769 + fi
6770 +
6771 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6772 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
6773 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
6774 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
6775 +
6776 + dodoc ChangeLog NEWS README* ToDo || die
6777 +
6778 + if use rubytests; then
6779 + pushd test
6780 + insinto /usr/share/${PN}-${SLOT}/test
6781 + doins -r .
6782 + popd
6783 + fi
6784 +}
6785 +
6786 +pkg_postinst() {
6787 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
6788 + eselect ruby set ruby${MY_SUFFIX}
6789 + fi
6790 +
6791 + elog
6792 + elog "To switch between available Ruby profiles, execute as root:"
6793 + elog "\teselect ruby set ruby(18|19|...)"
6794 + elog
6795 +}
6796 +
6797 +pkg_postrm() {
6798 + eselect ruby cleanup
6799 +}
6800
6801 diff --git a/dev-lang/ruby/ruby-1.9.3_p0.ebuild b/dev-lang/ruby/ruby-1.9.3_p0.ebuild
6802 new file mode 100644
6803 index 0000000..c5934c8
6804 --- /dev/null
6805 +++ b/dev-lang/ruby/ruby-1.9.3_p0.ebuild
6806 @@ -0,0 +1,223 @@
6807 +# Copyright 1999-2012 Gentoo Foundation
6808 +# Distributed under the terms of the GNU General Public License v2
6809 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p0.ebuild,v 1.6 2012/02/05 22:06:30 maekke Exp $
6810 +
6811 +EAPI=2
6812 +
6813 +#PATCHSET=
6814 +
6815 +inherit autotools eutils flag-o-matic multilib versionator
6816 +
6817 +RUBYPL=$(get_version_component_range 4)
6818 +
6819 +MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
6820 +S=${WORKDIR}/${MY_P}
6821 +
6822 +SLOT=$(get_version_component_range 1-2)
6823 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
6824 +# 1.9.3 still uses 1.9.1
6825 +RUBYVERSION=1.9.1
6826 +
6827 +if [[ -n ${PATCHSET} ]]; then
6828 + if [[ ${PVR} == ${PV} ]]; then
6829 + PATCHSET="${PV}-r0.${PATCHSET}"
6830 + else
6831 + PATCHSET="${PVR}.${PATCHSET}"
6832 + fi
6833 +else
6834 + PATCHSET="${PVR}"
6835 +fi
6836 +
6837 +DESCRIPTION="An object-oriented scripting language"
6838 +HOMEPAGE="http://www.ruby-lang.org/"
6839 +SRC_URI="mirror://ruby/1.9/${MY_P}.tar.bz2
6840 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
6841 +
6842 +LICENSE="|| ( Ruby BSD-2 )"
6843 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
6844 +IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline +yaml" #libedit
6845 +
6846 +# libedit support is removed everywhere because of this upstream bug:
6847 +# http://redmine.ruby-lang.org/issues/show/3698
6848 +
6849 +RDEPEND="
6850 + berkdb? ( sys-libs/db )
6851 + gdbm? ( sys-libs/gdbm )
6852 + ssl? ( dev-libs/openssl )
6853 + socks5? ( >=net-proxy/dante-1.1.13 )
6854 + tk? ( dev-lang/tk[threads] )
6855 + ncurses? ( sys-libs/ncurses )
6856 + readline? ( sys-libs/readline )
6857 + yaml? ( dev-libs/libyaml )
6858 + virtual/libffi
6859 + sys-libs/zlib
6860 + >=app-admin/eselect-ruby-20100402
6861 + !<dev-ruby/rdoc-3.9.4
6862 + !<dev-ruby/rubygems-1.8.10-r1"
6863 +# libedit? ( dev-libs/libedit )
6864 +# !libedit? ( readline? ( sys-libs/readline ) )
6865 +
6866 +DEPEND="${RDEPEND}"
6867 +PDEPEND="
6868 + rdoc? ( >=dev-ruby/rdoc-3.9.4[ruby_targets_ruby19] )
6869 + xemacs? ( app-xemacs/ruby-modes )"
6870 +
6871 +src_prepare() {
6872 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
6873 + epatch "${WORKDIR}/patches"
6874 +
6875 + einfo "Unbundling gems..."
6876 + cd "$S"
6877 + rm -r \
6878 + {bin,lib}/rake lib/rake.rb man/rake.1 \
6879 + ext/json \
6880 + bin/gem || die "removal failed"
6881 +
6882 + # Fix a hardcoded lib path in configure script
6883 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
6884 + configure.in || die "sed failed"
6885 +
6886 + eautoreconf
6887 +}
6888 +
6889 +src_configure() {
6890 + local myconf=
6891 +
6892 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
6893 + filter-flags -fomit-frame-pointer
6894 + # In many places aliasing rules are broken; play it safe
6895 + # as it's risky with newer compilers to leave it as it is.
6896 + append-flags -fno-strict-aliasing
6897 + # SuperH needs this
6898 + use sh && append-flags -mieee
6899 +
6900 + # Socks support via dante
6901 + if use socks5 ; then
6902 + # Socks support can't be disabled as long as SOCKS_SERVER is
6903 + # set and socks library is present, so need to unset
6904 + # SOCKS_SERVER in that case.
6905 + unset SOCKS_SERVER
6906 + fi
6907 +
6908 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
6909 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
6910 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
6911 + fi
6912 +
6913 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
6914 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
6915 +
6916 +# if use libedit; then
6917 +# einfo "Using libedit to provide readline extension"
6918 +# myconf="${myconf} --enable-libedit --with-readline"
6919 +# elif use readline; then
6920 +# einfo "Using readline to provide readline extension"
6921 +# myconf="${myconf} --with-readline"
6922 +# else
6923 +# myconf="${myconf} --without-readline"
6924 +# fi
6925 + myconf="${myconf} $(use_with readline)"
6926 +
6927 + # Set a faux target (bug #342819)
6928 + use hppa && myconf="${myconf} --target=parisc"
6929 +
6930 + econf \
6931 + --program-suffix=${MY_SUFFIX} \
6932 + --with-soname=ruby${MY_SUFFIX} \
6933 + --enable-shared \
6934 + --enable-pthread \
6935 + $(use_enable socks5 socks) \
6936 + $(use_enable doc install-doc) \
6937 + --enable-ipv6 \
6938 + $(use_enable debug) \
6939 + $(use_with berkdb dbm) \
6940 + $(use_with gdbm) \
6941 + $(use_with ssl openssl) \
6942 + $(use_with tk) \
6943 + $(use_with ncurses curses) \
6944 + $(use_with yaml psych) \
6945 + ${myconf} \
6946 + --enable-option-checking=no \
6947 + || die "econf failed"
6948 +}
6949 +
6950 +src_compile() {
6951 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
6952 +}
6953 +
6954 +src_test() {
6955 + emake -j1 test || die "make test failed"
6956 +
6957 + elog "Ruby's make test has been run. Ruby also ships with a make check"
6958 + elog "that cannot be run until after ruby has been installed."
6959 + elog
6960 + if use rubytests; then
6961 + elog "You have enabled rubytests, so they will be installed to"
6962 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
6963 + elog "than root, and you must place them into a writeable directory."
6964 + elog "Then call: "
6965 + elog
6966 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
6967 + else
6968 + elog "Enable the rubytests USE flag to install the make check tests"
6969 + fi
6970 +}
6971 +
6972 +src_install() {
6973 + # Ruby is involved in the install process, we don't want interference here.
6974 + unset RUBYOPT
6975 +
6976 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
6977 +
6978 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
6979 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
6980 + for d in $(find "${S}/ext" -type d) ; do
6981 + RUBYLIB="${RUBYLIB}:$d"
6982 + done
6983 + export LD_LIBRARY_PATH RUBYLIB
6984 +
6985 + emake DESTDIR="${D}" install || die "make install failed"
6986 +
6987 + # Remove installed rubygems copy
6988 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
6989 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
6990 + rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
6991 +
6992 + if use doc; then
6993 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
6994 + fi
6995 +
6996 + if use examples; then
6997 + insinto /usr/share/doc/${PF}
6998 + doins -r sample
6999 + fi
7000 +
7001 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7002 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
7003 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7004 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
7005 +
7006 + dodoc ChangeLog NEWS doc/NEWS-1.8.7 README* ToDo || die
7007 +
7008 + if use rubytests; then
7009 + pushd test
7010 + insinto /usr/share/${PN}-${SLOT}/test
7011 + doins -r .
7012 + popd
7013 + fi
7014 +}
7015 +
7016 +pkg_postinst() {
7017 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
7018 + eselect ruby set ruby${MY_SUFFIX}
7019 + fi
7020 +
7021 + elog
7022 + elog "To switch between available Ruby profiles, execute as root:"
7023 + elog "\teselect ruby set ruby(18|19|...)"
7024 + elog
7025 +}
7026 +
7027 +pkg_postrm() {
7028 + eselect ruby cleanup
7029 +}
7030
7031 diff --git a/dev-lang/ruby/ruby-1.9.3_p125.ebuild b/dev-lang/ruby/ruby-1.9.3_p125.ebuild
7032 new file mode 100644
7033 index 0000000..2f44811
7034 --- /dev/null
7035 +++ b/dev-lang/ruby/ruby-1.9.3_p125.ebuild
7036 @@ -0,0 +1,223 @@
7037 +# Copyright 1999-2012 Gentoo Foundation
7038 +# Distributed under the terms of the GNU General Public License v2
7039 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p125.ebuild,v 1.5 2012/06/25 07:06:31 nativemad Exp $
7040 +
7041 +EAPI=2
7042 +
7043 +#PATCHSET=
7044 +
7045 +inherit autotools eutils flag-o-matic multilib versionator
7046 +
7047 +RUBYPL=$(get_version_component_range 4)
7048 +
7049 +MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
7050 +S=${WORKDIR}/${MY_P}
7051 +
7052 +SLOT=$(get_version_component_range 1-2)
7053 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
7054 +# 1.9.3 still uses 1.9.1
7055 +RUBYVERSION=1.9.1
7056 +
7057 +if [[ -n ${PATCHSET} ]]; then
7058 + if [[ ${PVR} == ${PV} ]]; then
7059 + PATCHSET="${PV}-r0.${PATCHSET}"
7060 + else
7061 + PATCHSET="${PVR}.${PATCHSET}"
7062 + fi
7063 +else
7064 + PATCHSET="${PVR}"
7065 +fi
7066 +
7067 +DESCRIPTION="An object-oriented scripting language"
7068 +HOMEPAGE="http://www.ruby-lang.org/"
7069 +SRC_URI="mirror://ruby/1.9/${MY_P}.tar.bz2
7070 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
7071 +
7072 +LICENSE="|| ( Ruby BSD-2 )"
7073 +KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
7074 +IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline +yaml" #libedit
7075 +
7076 +# libedit support is removed everywhere because of this upstream bug:
7077 +# http://redmine.ruby-lang.org/issues/show/3698
7078 +
7079 +RDEPEND="
7080 + berkdb? ( sys-libs/db )
7081 + gdbm? ( sys-libs/gdbm )
7082 + ssl? ( dev-libs/openssl )
7083 + socks5? ( >=net-proxy/dante-1.1.13 )
7084 + tk? ( dev-lang/tk[threads] )
7085 + ncurses? ( sys-libs/ncurses )
7086 + readline? ( sys-libs/readline )
7087 + yaml? ( dev-libs/libyaml )
7088 + virtual/libffi
7089 + sys-libs/zlib
7090 + >=app-admin/eselect-ruby-20100402
7091 + !<dev-ruby/rdoc-3.9.4
7092 + !<dev-ruby/rubygems-1.8.10-r1"
7093 +# libedit? ( dev-libs/libedit )
7094 +# !libedit? ( readline? ( sys-libs/readline ) )
7095 +
7096 +DEPEND="${RDEPEND}"
7097 +PDEPEND="
7098 + rdoc? ( >=dev-ruby/rdoc-3.9.4[ruby_targets_ruby19] )
7099 + xemacs? ( app-xemacs/ruby-modes )"
7100 +
7101 +src_prepare() {
7102 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
7103 + epatch "${WORKDIR}/patches"
7104 +
7105 + einfo "Unbundling gems..."
7106 + cd "$S"
7107 + rm -r \
7108 + {bin,lib}/rake lib/rake.rb man/rake.1 \
7109 + ext/json \
7110 + bin/gem || die "removal failed"
7111 +
7112 + # Fix a hardcoded lib path in configure script
7113 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
7114 + configure.in || die "sed failed"
7115 +
7116 + eautoreconf
7117 +}
7118 +
7119 +src_configure() {
7120 + local myconf=
7121 +
7122 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
7123 + filter-flags -fomit-frame-pointer
7124 + # In many places aliasing rules are broken; play it safe
7125 + # as it's risky with newer compilers to leave it as it is.
7126 + append-flags -fno-strict-aliasing
7127 + # SuperH needs this
7128 + use sh && append-flags -mieee
7129 +
7130 + # Socks support via dante
7131 + if use socks5 ; then
7132 + # Socks support can't be disabled as long as SOCKS_SERVER is
7133 + # set and socks library is present, so need to unset
7134 + # SOCKS_SERVER in that case.
7135 + unset SOCKS_SERVER
7136 + fi
7137 +
7138 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
7139 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
7140 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
7141 + fi
7142 +
7143 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
7144 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
7145 +
7146 +# if use libedit; then
7147 +# einfo "Using libedit to provide readline extension"
7148 +# myconf="${myconf} --enable-libedit --with-readline"
7149 +# elif use readline; then
7150 +# einfo "Using readline to provide readline extension"
7151 +# myconf="${myconf} --with-readline"
7152 +# else
7153 +# myconf="${myconf} --without-readline"
7154 +# fi
7155 + myconf="${myconf} $(use_with readline)"
7156 +
7157 + # Set a faux target (bug #342819)
7158 + use hppa && myconf="${myconf} --target=parisc"
7159 +
7160 + econf \
7161 + --program-suffix=${MY_SUFFIX} \
7162 + --with-soname=ruby${MY_SUFFIX} \
7163 + --enable-shared \
7164 + --enable-pthread \
7165 + $(use_enable socks5 socks) \
7166 + $(use_enable doc install-doc) \
7167 + --enable-ipv6 \
7168 + $(use_enable debug) \
7169 + $(use_with berkdb dbm) \
7170 + $(use_with gdbm) \
7171 + $(use_with ssl openssl) \
7172 + $(use_with tk) \
7173 + $(use_with ncurses curses) \
7174 + $(use_with yaml psych) \
7175 + ${myconf} \
7176 + --enable-option-checking=no \
7177 + || die "econf failed"
7178 +}
7179 +
7180 +src_compile() {
7181 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
7182 +}
7183 +
7184 +src_test() {
7185 + emake -j1 test || die "make test failed"
7186 +
7187 + elog "Ruby's make test has been run. Ruby also ships with a make check"
7188 + elog "that cannot be run until after ruby has been installed."
7189 + elog
7190 + if use rubytests; then
7191 + elog "You have enabled rubytests, so they will be installed to"
7192 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
7193 + elog "than root, and you must place them into a writeable directory."
7194 + elog "Then call: "
7195 + elog
7196 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
7197 + else
7198 + elog "Enable the rubytests USE flag to install the make check tests"
7199 + fi
7200 +}
7201 +
7202 +src_install() {
7203 + # Ruby is involved in the install process, we don't want interference here.
7204 + unset RUBYOPT
7205 +
7206 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
7207 +
7208 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
7209 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
7210 + for d in $(find "${S}/ext" -type d) ; do
7211 + RUBYLIB="${RUBYLIB}:$d"
7212 + done
7213 + export LD_LIBRARY_PATH RUBYLIB
7214 +
7215 + emake DESTDIR="${D}" install || die "make install failed"
7216 +
7217 + # Remove installed rubygems copy
7218 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
7219 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
7220 + rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
7221 +
7222 + if use doc; then
7223 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
7224 + fi
7225 +
7226 + if use examples; then
7227 + insinto /usr/share/doc/${PF}
7228 + doins -r sample
7229 + fi
7230 +
7231 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7232 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
7233 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7234 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
7235 +
7236 + dodoc ChangeLog NEWS doc/NEWS* README* ToDo || die
7237 +
7238 + if use rubytests; then
7239 + pushd test
7240 + insinto /usr/share/${PN}-${SLOT}/test
7241 + doins -r .
7242 + popd
7243 + fi
7244 +}
7245 +
7246 +pkg_postinst() {
7247 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
7248 + eselect ruby set ruby${MY_SUFFIX}
7249 + fi
7250 +
7251 + elog
7252 + elog "To switch between available Ruby profiles, execute as root:"
7253 + elog "\teselect ruby set ruby(18|19|...)"
7254 + elog
7255 +}
7256 +
7257 +pkg_postrm() {
7258 + eselect ruby cleanup
7259 +}
7260
7261 diff --git a/dev-lang/ruby/ruby-1.9.3_p194.ebuild b/dev-lang/ruby/ruby-1.9.3_p194.ebuild
7262 new file mode 100644
7263 index 0000000..7b7c09b
7264 --- /dev/null
7265 +++ b/dev-lang/ruby/ruby-1.9.3_p194.ebuild
7266 @@ -0,0 +1,223 @@
7267 +# Copyright 1999-2012 Gentoo Foundation
7268 +# Distributed under the terms of the GNU General Public License v2
7269 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p194.ebuild,v 1.1 2012/04/30 11:14:18 graaff Exp $
7270 +
7271 +EAPI=2
7272 +
7273 +#PATCHSET=
7274 +
7275 +inherit autotools eutils flag-o-matic multilib versionator
7276 +
7277 +RUBYPL=$(get_version_component_range 4)
7278 +
7279 +MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
7280 +S=${WORKDIR}/${MY_P}
7281 +
7282 +SLOT=$(get_version_component_range 1-2)
7283 +MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
7284 +# 1.9.3 still uses 1.9.1
7285 +RUBYVERSION=1.9.1
7286 +
7287 +if [[ -n ${PATCHSET} ]]; then
7288 + if [[ ${PVR} == ${PV} ]]; then
7289 + PATCHSET="${PV}-r0.${PATCHSET}"
7290 + else
7291 + PATCHSET="${PVR}.${PATCHSET}"
7292 + fi
7293 +else
7294 + PATCHSET="${PVR}"
7295 +fi
7296 +
7297 +DESCRIPTION="An object-oriented scripting language"
7298 +HOMEPAGE="http://www.ruby-lang.org/"
7299 +SRC_URI="mirror://ruby/1.9/${MY_P}.tar.bz2
7300 + http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
7301 +
7302 +LICENSE="|| ( Ruby BSD-2 )"
7303 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
7304 +IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline +yaml" #libedit
7305 +
7306 +# libedit support is removed everywhere because of this upstream bug:
7307 +# http://redmine.ruby-lang.org/issues/show/3698
7308 +
7309 +RDEPEND="
7310 + berkdb? ( sys-libs/db )
7311 + gdbm? ( sys-libs/gdbm )
7312 + ssl? ( dev-libs/openssl )
7313 + socks5? ( >=net-proxy/dante-1.1.13 )
7314 + tk? ( dev-lang/tk[threads] )
7315 + ncurses? ( sys-libs/ncurses )
7316 + readline? ( sys-libs/readline )
7317 + yaml? ( dev-libs/libyaml )
7318 + virtual/libffi
7319 + sys-libs/zlib
7320 + >=app-admin/eselect-ruby-20100402
7321 + !<dev-ruby/rdoc-3.9.4
7322 + !<dev-ruby/rubygems-1.8.10-r1"
7323 +# libedit? ( dev-libs/libedit )
7324 +# !libedit? ( readline? ( sys-libs/readline ) )
7325 +
7326 +DEPEND="${RDEPEND}"
7327 +PDEPEND="
7328 + rdoc? ( >=dev-ruby/rdoc-3.9.4[ruby_targets_ruby19] )
7329 + xemacs? ( app-xemacs/ruby-modes )"
7330 +
7331 +src_prepare() {
7332 + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
7333 + epatch "${WORKDIR}/patches"
7334 +
7335 + einfo "Unbundling gems..."
7336 + cd "$S"
7337 + rm -r \
7338 + {bin,lib}/rake lib/rake.rb man/rake.1 \
7339 + ext/json \
7340 + bin/gem || die "removal failed"
7341 +
7342 + # Fix a hardcoded lib path in configure script
7343 + sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
7344 + configure.in || die "sed failed"
7345 +
7346 + eautoreconf
7347 +}
7348 +
7349 +src_configure() {
7350 + local myconf=
7351 +
7352 + # -fomit-frame-pointer makes ruby segfault, see bug #150413.
7353 + filter-flags -fomit-frame-pointer
7354 + # In many places aliasing rules are broken; play it safe
7355 + # as it's risky with newer compilers to leave it as it is.
7356 + append-flags -fno-strict-aliasing
7357 + # SuperH needs this
7358 + use sh && append-flags -mieee
7359 +
7360 + # Socks support via dante
7361 + if use socks5 ; then
7362 + # Socks support can't be disabled as long as SOCKS_SERVER is
7363 + # set and socks library is present, so need to unset
7364 + # SOCKS_SERVER in that case.
7365 + unset SOCKS_SERVER
7366 + fi
7367 +
7368 + # Increase GC_MALLOC_LIMIT if set (default is 8000000)
7369 + if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
7370 + append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
7371 + fi
7372 +
7373 + # ipv6 hack, bug 168939. Needs --enable-ipv6.
7374 + use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
7375 +
7376 +# if use libedit; then
7377 +# einfo "Using libedit to provide readline extension"
7378 +# myconf="${myconf} --enable-libedit --with-readline"
7379 +# elif use readline; then
7380 +# einfo "Using readline to provide readline extension"
7381 +# myconf="${myconf} --with-readline"
7382 +# else
7383 +# myconf="${myconf} --without-readline"
7384 +# fi
7385 + myconf="${myconf} $(use_with readline)"
7386 +
7387 + # Set a faux target (bug #342819)
7388 + use hppa && myconf="${myconf} --target=parisc"
7389 +
7390 + econf \
7391 + --program-suffix=${MY_SUFFIX} \
7392 + --with-soname=ruby${MY_SUFFIX} \
7393 + --enable-shared \
7394 + --enable-pthread \
7395 + $(use_enable socks5 socks) \
7396 + $(use_enable doc install-doc) \
7397 + --enable-ipv6 \
7398 + $(use_enable debug) \
7399 + $(use_with berkdb dbm) \
7400 + $(use_with gdbm) \
7401 + $(use_with ssl openssl) \
7402 + $(use_with tk) \
7403 + $(use_with ncurses curses) \
7404 + $(use_with yaml psych) \
7405 + ${myconf} \
7406 + --enable-option-checking=no \
7407 + || die "econf failed"
7408 +}
7409 +
7410 +src_compile() {
7411 + emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
7412 +}
7413 +
7414 +src_test() {
7415 + emake -j1 test || die "make test failed"
7416 +
7417 + elog "Ruby's make test has been run. Ruby also ships with a make check"
7418 + elog "that cannot be run until after ruby has been installed."
7419 + elog
7420 + if use rubytests; then
7421 + elog "You have enabled rubytests, so they will be installed to"
7422 + elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
7423 + elog "than root, and you must place them into a writeable directory."
7424 + elog "Then call: "
7425 + elog
7426 + elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
7427 + else
7428 + elog "Enable the rubytests USE flag to install the make check tests"
7429 + fi
7430 +}
7431 +
7432 +src_install() {
7433 + # Ruby is involved in the install process, we don't want interference here.
7434 + unset RUBYOPT
7435 +
7436 + local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
7437 +
7438 + LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
7439 + RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
7440 + for d in $(find "${S}/ext" -type d) ; do
7441 + RUBYLIB="${RUBYLIB}:$d"
7442 + done
7443 + export LD_LIBRARY_PATH RUBYLIB
7444 +
7445 + emake DESTDIR="${D}" install || die "make install failed"
7446 +
7447 + # Remove installed rubygems copy
7448 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
7449 + rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
7450 + rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
7451 +
7452 + if use doc; then
7453 + make DESTDIR="${D}" install-doc || die "make install-doc failed"
7454 + fi
7455 +
7456 + if use examples; then
7457 + insinto /usr/share/doc/${PF}
7458 + doins -r sample
7459 + fi
7460 +
7461 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7462 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
7463 + dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
7464 + "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
7465 +
7466 + dodoc ChangeLog NEWS doc/NEWS* README* ToDo || die
7467 +
7468 + if use rubytests; then
7469 + pushd test
7470 + insinto /usr/share/${PN}-${SLOT}/test
7471 + doins -r .
7472 + popd
7473 + fi
7474 +}
7475 +
7476 +pkg_postinst() {
7477 + if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
7478 + eselect ruby set ruby${MY_SUFFIX}
7479 + fi
7480 +
7481 + elog
7482 + elog "To switch between available Ruby profiles, execute as root:"
7483 + elog "\teselect ruby set ruby(18|19|...)"
7484 + elog
7485 +}
7486 +
7487 +pkg_postrm() {
7488 + eselect ruby cleanup
7489 +}
7490
7491 diff --git a/dev-lang/spidermonkey/Manifest b/dev-lang/spidermonkey/Manifest
7492 index 863054f..5e478e5 100644
7493 --- a/dev-lang/spidermonkey/Manifest
7494 +++ b/dev-lang/spidermonkey/Manifest
7495 @@ -17,7 +17,7 @@ EBUILD spidermonkey-1.7.0-r2.ebuild 1664 RMD160 2eea40d279729740380fd8eca22d1425
7496 EBUILD spidermonkey-1.7.0.ebuild 1432 RMD160 9dc3f12649f67fe727f8b327a54bbc91c0522358 SHA1 411aad11f1d1beb4435aa19a43d96447b11e7dac SHA256 5df2e8917fce96363d2128a2fdafc623aa159e60682591b347201b062778a99e
7497 EBUILD spidermonkey-1.8.2.15-r1.ebuild 1938 RMD160 e8c4748dbd6ebb9e1a8d6f1d318c44418bcd2c8c SHA1 f59d3fd53e89d41139d2159822a328a4bcfa6ceb SHA256 b1fc8c11374df02de4ae2136127958f3d5b7d4c9dca349e396f5127769e9c0f2
7498 EBUILD spidermonkey-1.8.2.15.ebuild 1907 RMD160 597288c1c1478e152f492add1a9222833dc2272a SHA1 ab6719373203f4270ff9bb2c384869d28f379740 SHA256 e03a07403e86e8a20c7efefc59dc5e84853cb8eb459e9685de79d7d90f46de19
7499 -EBUILD spidermonkey-1.8.5-r1.ebuild 3130 RMD160 f3b1a2467602f9a0decdb6cf8bf7ab7848d4979f SHA1 07ef7109f2ba91b70f9382a0a5790936d727049f SHA256 5b1fe36c12e421f1f84ee6dcfff275f1f9bf6b8433163d7e12f5f769397d7e5d
7500 -EBUILD spidermonkey-1.8.7.ebuild 3445 RMD160 5ae7af985f8c820a1fb3f93d39da6a7d67c7b59e SHA1 6c76831838d3e747a6d9229d2816e3cdb68de006 SHA256 af6ed7f9fc7d90b9c183429d54112d496932901459147c14615b83a815ebbff8
7501 +EBUILD spidermonkey-1.8.5-r1.ebuild 3120 RMD160 eef86cb44c0ff51b499cb7fe6cc2eccfc8c67e27 SHA1 65f8a34b18409e243a01cf7eaedafe99eb70e62b SHA256 1cbe794b58e37a656a1cc2a56ea7eed2e3f95828020d48863f6906252faa3de2
7502 +EBUILD spidermonkey-1.8.7.ebuild 3463 RMD160 2dbcaa35304180b4cf361ea19dabc37bb1687b58 SHA1 5775ee624640109480e318b44121bbe4a0ce4e6c SHA256 a5d9397a9da3b811ab1fd547e17d13ca55d4399cd7217cd312bc558d30976182
7503 MISC ChangeLog 12126 RMD160 aaa3a7af0d5cdca8a8b2ff14ba032bbdced1c56a SHA1 6c091ad48ffb96d1864337d38b8d91e5b6cab066 SHA256 718a0a29975f90cd5628abc4519203c1b93ae2c5e0445d9b115fea5a4559e08f
7504 MISC metadata.xml 523 RMD160 b40a1ffd94bc32fd5045b99160481c2b95d69d30 SHA1 91eb56541e242621c81e38eb9e9f0c4dea6f099f SHA256 876e7996ea990b78088ea8ef1f0445658fea0bb7cf0a1e07cd1db2bae870307f
7505
7506 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.5-build.patch b/dev-lang/spidermonkey/files/spidermonkey-1.5-build.patch
7507 new file mode 100644
7508 index 0000000..a5c4b47
7509 --- /dev/null
7510 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.5-build.patch
7511 @@ -0,0 +1,138 @@
7512 +--- js/src/Makefile.ref
7513 ++++ js/src/Makefile.ref
7514 +@@ -127,7 +127,7 @@ endif
7515 + ifdef JS_READLINE
7516 + # For those platforms with the readline library installed.
7517 + DEFINES += -DEDITLINE
7518 +-PROG_LIBS += -lreadline -ltermcap
7519 ++PROG_LIBS += -lreadline
7520 + else
7521 + ifdef JS_EDITLINE
7522 + # Use the editline library, built locally.
7523 +@@ -370,3 +370,16 @@ TARFILES = files `cat files`
7524 + SUFFIXES: .i
7525 + %.i: %.c
7526 + $(CC) -C -E $(CFLAGS) $< > $*.i
7527 ++
7528 ++DESTDIR :=
7529 ++PREFIX := /usr
7530 ++BINDIR := $(PREFIX)/bin
7531 ++MY_LIBDIR := $(PREFIX)/$(LIBDIR)
7532 ++INCLUDEDIR := $(PREFIX)/include/js
7533 ++INSTALL := install -g 0 -o root
7534 ++install:
7535 ++ $(INSTALL) -m 755 -d $(DESTDIR)$(INCLUDEDIR) $(DESTDIR)$(MY_LIBDIR) $(DESTDIR)$(BINDIR)
7536 ++ $(INSTALL) -m 755 $(SHARED_LIBRARY) $(DESTDIR)$(MY_LIBDIR)
7537 ++ $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(MY_LIBDIR)
7538 ++ $(INSTALL) -m 755 $(OBJDIR)/js $(OBJDIR)/jscpucfg $(DESTDIR)$(BINDIR)
7539 ++ $(INSTALL) -m 644 $(HFILES) $(DESTDIR)$(INCLUDEDIR)
7540 +--- js/src/config/Linux_All.mk
7541 ++++ js/src/config/Linux_All.mk
7542 +@@ -41,37 +41,15 @@
7543 + # Config for all versions of Linux
7544 + #
7545 +
7546 +-CC = gcc
7547 +-CCC = g++
7548 + CFLAGS += -Wall -Wno-format
7549 + OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
7550 +
7551 + RANLIB = echo
7552 +-MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS)
7553 ++MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS) -soname $(notdir $@)
7554 +
7555 + #.c.o:
7556 + # $(CC) -c -MD $*.d $(CFLAGS) $<
7557 +
7558 +-CPU_ARCH = $(shell uname -m)
7559 +-# don't filter in x86-64 architecture
7560 +-ifneq (x86_64,$(CPU_ARCH))
7561 +-ifeq (86,$(findstring 86,$(CPU_ARCH)))
7562 +-CPU_ARCH = x86
7563 +-OS_CFLAGS+= -DX86_LINUX
7564 +-
7565 +-ifeq (gcc, $(CC))
7566 +-# if using gcc on x86, check version for opt bug
7567 +-# (http://bugzilla.mozilla.org/show_bug.cgi?id=24892)
7568 +-GCC_VERSION := $(shell gcc -v 2>&1 | grep version | awk '{ print $$3 }')
7569 +-GCC_LIST:=$(sort 2.91.66 $(GCC_VERSION) )
7570 +-
7571 +-ifeq (2.91.66, $(firstword $(GCC_LIST)))
7572 +-CFLAGS+= -DGCC_OPT_BUG
7573 +-endif
7574 +-endif
7575 +-endif
7576 +-endif
7577 +-
7578 + GFX_ARCH = x
7579 +
7580 + OS_LIBS = -lm -lc
7581 +@@ -88,16 +66,6 @@
7582 + endif
7583 +
7584 + # Use the editline library to provide line-editing support.
7585 +-JS_EDITLINE = 1
7586 ++JS_READLINE = 1
7587 +
7588 +-ifeq ($(CPU_ARCH),x86_64)
7589 +-# Use VA_COPY() standard macro on x86-64
7590 +-# FIXME: better use it everywhere
7591 + OS_CFLAGS += -DHAVE_VA_COPY -DVA_COPY=va_copy
7592 +-endif
7593 +-
7594 +-ifeq ($(CPU_ARCH),x86_64)
7595 +-# We need PIC code for shared libraries
7596 +-# FIXME: better patch rules.mk & fdlibm/Makefile*
7597 +-OS_CFLAGS += -DPIC -fPIC
7598 +-endif
7599 +--- js/src/rules.mk
7600 ++++ js/src/rules.mk
7601 +@@ -82,6 +82,10 @@ $(OBJDIR)/%.o: %.c
7602 + @$(MAKE_OBJDIR)
7603 + $(CC) -o $@ -c $(CFLAGS) $*.c
7604 +
7605 ++$(OBJDIR)/%.lo: %.c
7606 ++ @$(MAKE_OBJDIR)
7607 ++ $(CC) -o $@ -c $(CFLAGS) $*.c -fPIC
7608 ++
7609 + $(OBJDIR)/%.o: %.s
7610 + @$(MAKE_OBJDIR)
7611 + $(AS) -o $@ $(ASFLAGS) $*.s
7612 +@@ -111,11 +115,12 @@ $(SHARED_LIBRARY): $(LIB_OBJS)
7613 + /implib:"$(OBJDIR)/$(@F:.dll=.lib)" $^
7614 + else
7615 + $(LIBRARY): $(LIB_OBJS)
7616 +- $(AR) rv $@ $?
7617 ++ $(AR) cr $@ $?
7618 + $(RANLIB) $@
7619 +
7620 +-$(SHARED_LIBRARY): $(LIB_OBJS)
7621 +- $(MKSHLIB) -o $@ $(LIB_OBJS) $(LDFLAGS) $(OTHER_LIBS)
7622 ++SHARED_LIB_OBJS := $(LIB_OBJS:.o=.lo)
7623 ++$(SHARED_LIBRARY): $(SHARED_LIB_OBJS)
7624 ++ $(MKSHLIB) -o $@ $(SHARED_LIB_OBJS) $(LDFLAGS) $(OTHER_LIBS)
7625 + endif
7626 + endif
7627 +
7628 +--- js/src/fdlibm/Makefile.ref
7629 ++++ js/src/fdlibm/Makefile.ref
7630 +@@ -151,7 +151,7 @@
7631 +
7632 + $(OBJDIR)/%.o: %.c
7633 + @$(MAKE_OBJDIR)
7634 +- $(CC) -o $@ -c $(CFLAGS) $*.c
7635 ++ $(CC) -o $@ -c $(CFLAGS) $*.c -fPIC
7636 +
7637 + $(OBJDIR)/%.o: %.s
7638 + @$(MAKE_OBJDIR)
7639 +--- js/src/config.mk
7640 ++++ js/src/config.mk
7641 +@@ -112,6 +112,8 @@
7642 + CP = cp
7643 + endif
7644 +
7645 ++BUILD_OPT := 1
7646 ++
7647 + ifdef BUILD_OPT
7648 + OPTIMIZER = -O
7649 + DEFINES += -UDEBUG -DNDEBUG -UDEBUG_$(shell whoami)
7650
7651 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.6-header.patch b/dev-lang/spidermonkey/files/spidermonkey-1.6-header.patch
7652 new file mode 100644
7653 index 0000000..df4cf7d
7654 --- /dev/null
7655 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.6-header.patch
7656 @@ -0,0 +1,13 @@
7657 +Index: src/Makefile.ref
7658 +===================================================================
7659 +--- src.orig/Makefile.ref
7660 ++++ src/Makefile.ref
7661 +@@ -185,6 +185,8 @@ JS_HFILES = \
7662 + jsstr.h \
7663 + jsxdrapi.h \
7664 + jsxml.h \
7665 ++ jsutil.h \
7666 ++ jsprf.h \
7667 + $(NULL)
7668 +
7669 + API_HFILES = \
7670
7671 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.7.0-ldflags.patch b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-ldflags.patch
7672 new file mode 100644
7673 index 0000000..4ddc346
7674 --- /dev/null
7675 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-ldflags.patch
7676 @@ -0,0 +1,42 @@
7677 +Respect LDFLAGS
7678 +
7679 +http://bugs.gentoo.org/show_bug.cgi?id=331129
7680 +
7681 +--- js/src/Makefile.ref
7682 ++++ js/src/Makefile.ref
7683 +@@ -87,7 +87,7 @@
7684 + LDFLAGS = $(XLDFLAGS)
7685 +
7686 + ifndef NO_LIBM
7687 +-LDFLAGS += -lm
7688 ++OTHER_LIBS += -lm
7689 + endif
7690 +
7691 + # Prevent floating point errors caused by VC++ optimizations
7692 +@@ -325,7 +325,7 @@
7693 + $(CC) -o $@ -c $(CFLAGS) $<
7694 +
7695 + $(OBJDIR)/jskwgen$(HOST_BIN_SUFFIX): $(OBJDIR)/jskwgen.$(OBJ_SUFFIX)
7696 +- $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^
7697 ++ $(CC) $(HOST_LDFLAGS) -o $@ $(CFLAGS) $(OTHER_LIBS) $^
7698 +
7699 + endif
7700 +
7701 +@@ -338,7 +338,7 @@
7702 + link.exe -out:"$@" $(EXE_LINK_FLAGS) $^
7703 + else
7704 + $(PROGRAM): $(PROG_OBJS) $(LIBRARY)
7705 +- $(CC) -o $@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) $(OTHER_LIBS) \
7706 ++ $(CC) $(HOST_LDFLAGS) -o $@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(OTHER_LIBS) \
7707 + $(PROG_LIBS)
7708 + endif
7709 +
7710 +@@ -355,7 +355,7 @@
7711 + $(OBJDIR)/jscpucfg > $@
7712 +
7713 + $(OBJDIR)/jscpucfg: $(OBJDIR)/jscpucfg.o
7714 +- $(CC) -o $@ $(OBJDIR)/jscpucfg.o
7715 ++ $(CC) $(HOST_LDFLAGS) -o $@ $(OBJDIR)/jscpucfg.o
7716 +
7717 + # Add to TARGETS for clobber rule
7718 + TARGETS += $(OBJDIR)/jsautocfg.h $(OBJDIR)/jscpucfg \
7719
7720 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff
7721 new file mode 100644
7722 index 0000000..8728811
7723 --- /dev/null
7724 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff
7725 @@ -0,0 +1,18 @@
7726 +Index: src/Makefile.ref
7727 +===================================================================
7728 +--- src.orig/Makefile.ref
7729 ++++ src/Makefile.ref
7730 +@@ -63,11 +63,11 @@ INCLUDES += -I$(OBJDIR)
7731 +
7732 + ifdef JS_THREADSAFE
7733 + DEFINES += -DJS_THREADSAFE
7734 +-INCLUDES += -I$(DIST)/include/nspr
7735 ++INCLUDES += -I/usr/include/nspr
7736 + ifdef USE_MSVC
7737 + OTHER_LIBS += $(DIST)/lib/libnspr$(NSPR_LIBSUFFIX).lib
7738 + else
7739 +-OTHER_LIBS += -L$(DIST)/lib -lnspr$(NSPR_LIBSUFFIX)
7740 ++OTHER_LIBS += -L/usr/$(LIBDIR)/nspr -lnspr$(NSPR_LIBSUFFIX)
7741 + endif
7742 + endif
7743 +
7744
7745 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.8.5-arm_resprect_cflags-1.patch b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-arm_resprect_cflags-1.patch
7746 new file mode 100644
7747 index 0000000..7c9dd84
7748 --- /dev/null
7749 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-arm_resprect_cflags-1.patch
7750 @@ -0,0 +1,58 @@
7751 +--- a/js/src/configure.in
7752 ++++ b/js/src/configure.in
7753 +@@ -3550,7 +3550,7 @@ AC_MSG_CHECKING(for ARM NEON support in
7754 + _SAVE_CFLAGS="$CFLAGS"
7755 + if test "$GNU_CC"; then
7756 + # gcc needs -mfpu=neon to recognize NEON instructions
7757 +- CFLAGS="$CFLAGS -mfpu=neon -mfloat-abi=softfp"
7758 ++ CFLAGS="$CFLAGS -mfpu=neon"
7759 + fi
7760 + AC_TRY_COMPILE([],
7761 + [asm("vadd.i8 d0, d0, d0");],
7762 +@@ -4687,9 +4687,9 @@ if test -n "$MOZ_THUMB2"; then
7763 + if test "$GNU_CC"; then
7764 + AC_DEFINE(MOZ_THUMB2)
7765 + AC_DEFINE(MOZ_ARM_ARCH)
7766 +- CFLAGS="$CFLAGS -march=armv7-a -mthumb -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7767 +- CXXFLAGS="$CXXFLAGS -march=armv7-a -mthumb -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7768 +- ASFLAGS="$ASFLAGS -march=armv7-a -mthumb -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7769 ++ CFLAGS="$CFLAGS -march=armv7-a -mthumb $MOZ_ARM_VFP_FLAGS"
7770 ++ CXXFLAGS="$CXXFLAGS -march=armv7-a -mthumb $MOZ_ARM_VFP_FLAGS"
7771 ++ ASFLAGS="$ASFLAGS -march=armv7-a -mthumb $MOZ_ARM_VFP_FLAGS"
7772 + else
7773 + AC_MSG_ERROR([--enable-thumb2 is not supported for non-GNU toolchains])
7774 + fi
7775 +@@ -4703,9 +4703,9 @@ elif test "$MOZ_ARM_ARCH" = "armv7"; the
7776 + arm*)
7777 + if test "$GNU_CC"; then
7778 + AC_DEFINE(MOZ_ARM_ARCH)
7779 +- CFLAGS="$CFLAGS -march=armv7-a -marm -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7780 +- CXXFLAGS="$CXXFLAGS -march=armv7-a -marm -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7781 +- ASFLAGS="$ASFLAGS -march=armv7-a -marm -mfloat-abi=softfp $MOZ_ARM_VFP_FLAGS"
7782 ++ CFLAGS="$CFLAGS -march=armv7-a -marm $MOZ_ARM_VFP_FLAGS"
7783 ++ CXXFLAGS="$CXXFLAGS -march=armv7-a -marm $MOZ_ARM_VFP_FLAGS"
7784 ++ ASFLAGS="$ASFLAGS -march=armv7-a -marm $MOZ_ARM_VFP_FLAGS"
7785 + else
7786 + AC_MSG_ERROR([--with-cpu-arch=armv7 is not supported for non-GNU toolchains])
7787 + fi
7788 +--- a/js/src/Makefile.in
7789 ++++ b/js/src/Makefile.in
7790 +@@ -354,7 +354,7 @@ ASFILES += TrampolineSUNWX86.s
7791 + endif
7792 + endif
7793 + endif
7794 +-ifeq (arm, $(TARGET_CPU))
7795 ++ifeq (arm, $(findstring arm,$(TARGET_CPU)))
7796 + #CPPSRCS += only_on_arm.cpp
7797 + endif
7798 + #
7799 +@@ -436,7 +436,7 @@ else
7800 + #CPPSRCS += only_on_x86.cpp
7801 + endif
7802 + endif
7803 +-ifeq (arm, $(TARGET_CPU))
7804 ++ifeq (arm, $(findstring arm,$(TARGET_CPU)))
7805 + #CPPSRCS += only_on_arm.cpp
7806 + endif
7807 + #
7808 +
7809
7810 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-install-symlinks.patch b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-install-symlinks.patch
7811 new file mode 100644
7812 index 0000000..c867e45
7813 --- /dev/null
7814 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-install-symlinks.patch
7815 @@ -0,0 +1,15 @@
7816 +https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43
7817 +
7818 +--- js/src/Makefile.in
7819 ++++ js/src/Makefile.in
7820 +@@ -888,8 +888,8 @@
7821 + ifeq (,$(HOST_BIN_SUFFIX))
7822 + mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
7823 + @[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
7824 +- ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
7825 +- ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
7826 ++ ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
7827 ++ ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
7828 + endif
7829 + endif
7830 + ifneq (,$(IMPORT_LIBRARY))
7831
7832 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-ppc64.patch b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-ppc64.patch
7833 new file mode 100644
7834 index 0000000..3927c87
7835 --- /dev/null
7836 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.8.5-fix-ppc64.patch
7837 @@ -0,0 +1,61 @@
7838 +# HG changeset patch
7839 +# User Mike Hommey <mh+mozilla@××××××××.org>
7840 +# Date 1303461188 -7200
7841 +# Node ID 59771590e9203d48ef8cbcd7eaf2f8ae45dbb1c1
7842 +# Parent c4b82ec27d6d6e1c02ef0abb3b6e805bfdd092ec
7843 +Bug 638056 - Avoid "The cacheFlush support is missing on this platform" error on exotic platforms. r=cdleary
7844 +
7845 +diff --git a/js/src/Makefile.in b/js/src/Makefile.in
7846 +--- a/js/src/Makefile.in
7847 ++++ b/js/src/Makefile.in
7848 +@@ -383,17 +383,17 @@ CPPSRCS += checks.cc \
7849 + platform.cc \
7850 + utils.cc \
7851 + $(NONE)
7852 +
7853 + #
7854 + # END enclude sources for V8 dtoa
7855 + #############################################
7856 +
7857 +-ifeq (,$(filter-out powerpc sparc,$(TARGET_CPU)))
7858 ++ifeq (,$(filter arm% %86 x86_64,$(TARGET_CPU)))
7859 +
7860 + VPATH += $(srcdir)/assembler \
7861 + $(srcdir)/assembler/wtf \
7862 + $(srcdir)/yarr/pcre \
7863 + $(NULL)
7864 +
7865 + CPPSRCS += pcre_compile.cpp \
7866 + pcre_exec.cpp \
7867 +
7868 +# HG changeset patch
7869 +# User Luke Wagner <lw@×××××××.com>
7870 +# Date 1299520258 28800
7871 +# Node ID 68203913d04cf5be53fd16278816183d5670ba5c
7872 +# Parent 27e5814815491ebb68e474e453aff6c2ea908c43
7873 +Bug 618485 - Add missing 64-bit big-endian jsval_layout field (r=luke)
7874 +
7875 +diff --git a/js/src/jsval.h b/js/src/jsval.h
7876 +--- a/js/src/jsval.h
7877 ++++ b/js/src/jsval.h
7878 +@@ -342,16 +342,17 @@ typedef union jsval_layout
7879 + JSValueTag tag : 17;
7880 + uint64 payload47 : 47;
7881 + } debugView;
7882 + struct {
7883 + union {
7884 + int32 i32;
7885 + uint32 u32;
7886 + JSWhyMagic why;
7887 ++ jsuword word;
7888 + } payload;
7889 + } s;
7890 + double asDouble;
7891 + void *asPtr;
7892 + } jsval_layout;
7893 + # endif /* JS_BITS_PER_WORD */
7894 + #endif /* defined(IS_LITTLE_ENDIAN) */
7895 +
7896 +
7897 +
7898 +
7899
7900 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.8.7-filter_desc.patch b/dev-lang/spidermonkey/files/spidermonkey-1.8.7-filter_desc.patch
7901 new file mode 100644
7902 index 0000000..65d0a2d
7903 --- /dev/null
7904 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.8.7-filter_desc.patch
7905 @@ -0,0 +1,18 @@
7906 +--- a/js/src/Makefile.in 2012-06-18 13:53:41.000000000 -0400
7907 ++++ b/js/src/Makefile.in 2012-06-18 13:55:44.000000000 -0400
7908 +@@ -965,10 +965,10 @@
7909 + endif
7910 + endif
7911 +
7912 +-install:: $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
7913 +-ifneq (,$(LIBRARY))
7914 +- $(SYSINSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
7915 +- mv -f $(DESTDIR)$(libdir)/$(LIBRARY) $(subst $(STATIC_LIBRARY_NAME),mozjs187-$(SRCREL_ABI_VERSION),$(DESTDIR)$(libdir)/$(LIBRARY))
7916 ++install:: $(filter-out %.$(LIBS_DESC_SUFFIX),$(LIBRARY)) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
7917 ++ifneq (,$(filter-out %.$(LIBS_DESC_SUFFIX),$(LIBRARY)))
7918 ++ $(SYSINSTALL) $(filter-out %.$(LIBS_DESC_SUFFIX),$(LIBRARY)) $(DESTDIR)$(libdir)
7919 ++ mv -f $(DESTDIR)$(libdir)/$(filter-out %.$(LIBS_DESC_SUFFIX),$(LIBRARY)) $(subst $(STATIC_LIBRARY_NAME),mozjs187-$(SRCREL_ABI_VERSION),$(DESTDIR)$(libdir)/$(filter-out %.$(LIBS_DESC_SUFFIX),$(LIBRARY)))
7920 + endif
7921 + ifneq (,$(SHARED_LIBRARY))
7922 + ifeq (,$(HOST_BIN_SUFFIX))
7923 +
7924
7925 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch b/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch
7926 new file mode 100644
7927 index 0000000..847bf79
7928 --- /dev/null
7929 +++ b/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch
7930 @@ -0,0 +1,22 @@
7931 +diff --git a/js/src/jsapi-tests/Makefile.in b/js/src/jsapi-tests/Makefile.in
7932 +--- a/js/src/jsapi-tests/Makefile.in
7933 ++++ b/js/src/jsapi-tests/Makefile.in
7934 +@@ -55,17 +55,17 @@ CPPSRCS = \
7935 + testSameValue.cpp \
7936 + testDebugger.cpp \
7937 + testDefineGetterSetterNonEnumerable.cpp \
7938 + testExtendedEq.cpp \
7939 + $(NULL)
7940 +
7941 + DEFINES += -DEXPORT_JS_API
7942 +
7943 +-LIBS = $(NSPR_LIBS) $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX)
7944 ++LIBS = $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS)
7945 +
7946 + LOCAL_INCLUDES += -I$(topsrcdir) -I..
7947 +
7948 + ifdef _MSC_VER
7949 + ifdef WINCE
7950 + WIN32_EXE_LDFLAGS += -ENTRY:mainACRTStartup
7951 + endif
7952 + endif
7953
7954 diff --git a/dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild b/dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild
7955 new file mode 100644
7956 index 0000000..b6d1054
7957 --- /dev/null
7958 +++ b/dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild
7959 @@ -0,0 +1,51 @@
7960 +# Copyright 1999-2011 Gentoo Foundation
7961 +# Distributed under the terms of the GNU General Public License v2
7962 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild,v 1.2 2011/03/22 15:51:21 jer Exp $
7963 +
7964 +inherit eutils toolchain-funcs multilib flag-o-matic
7965 +
7966 +MY_P="js-${PV}"
7967 +DESCRIPTION="Stand-alone JavaScript C library"
7968 +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
7969 +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.gz"
7970 +
7971 +LICENSE="NPL-1.1"
7972 +SLOT="0"
7973 +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
7974 +IUSE="threadsafe unicode"
7975 +
7976 +S="${WORKDIR}/js/src"
7977 +
7978 +RDEPEND="threadsafe? ( dev-libs/nspr )"
7979 +
7980 +DEPEND="${RDEPEND}"
7981 +
7982 +src_unpack() {
7983 + unpack ${A}
7984 + cd "${S}"
7985 + epatch "${FILESDIR}/${PN}-1.5-build.patch"
7986 + epatch "${FILESDIR}/${PN}-1.6-header.patch"
7987 + epatch "${FILESDIR}/${P}-threadsafe.diff"
7988 + if [[ ${CHOST} == *-freebsd* ]]; then
7989 + # Don't try to be smart, this does not work in cross-compile anyway
7990 + ln -s "${S}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
7991 + fi
7992 +}
7993 +
7994 +src_compile() {
7995 + use unicode && append-flags "-DJS_C_STRINGS_ARE_UTF8"
7996 + tc-export CC LD AR
7997 + if use threadsafe; then
7998 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 \
7999 + || die "emake with threadsafe enabled failed";
8000 + else
8001 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" \
8002 + || die "emake without threadsafe enabled failed";
8003 + fi
8004 +}
8005 +
8006 +src_install() {
8007 + emake -f Makefile.ref install DESTDIR="${D}" LIBDIR="$(get_libdir)" || die
8008 + dodoc ../jsd/README
8009 + dohtml README.html
8010 +}
8011
8012 diff --git a/dev-lang/spidermonkey/spidermonkey-1.7.0-r2.ebuild b/dev-lang/spidermonkey/spidermonkey-1.7.0-r2.ebuild
8013 new file mode 100644
8014 index 0000000..b6278f9
8015 --- /dev/null
8016 +++ b/dev-lang/spidermonkey/spidermonkey-1.7.0-r2.ebuild
8017 @@ -0,0 +1,52 @@
8018 +# Copyright 1999-2011 Gentoo Foundation
8019 +# Distributed under the terms of the GNU General Public License v2
8020 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.7.0-r2.ebuild,v 1.2 2011/03/22 15:51:21 jer Exp $
8021 +
8022 +inherit eutils toolchain-funcs multilib flag-o-matic
8023 +
8024 +MY_P="js-${PV}"
8025 +DESCRIPTION="Stand-alone JavaScript C library"
8026 +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
8027 +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.gz"
8028 +
8029 +LICENSE="NPL-1.1"
8030 +SLOT="0"
8031 +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
8032 +IUSE="threadsafe unicode"
8033 +
8034 +S="${WORKDIR}/js/src"
8035 +
8036 +RDEPEND="threadsafe? ( dev-libs/nspr )"
8037 +DEPEND="${RDEPEND}"
8038 +
8039 +src_unpack() {
8040 + unpack ${A}
8041 + cd "${S}"
8042 + epatch "${FILESDIR}/${PN}-1.5-build.patch"
8043 + epatch "${FILESDIR}/${PN}-1.6-header.patch"
8044 + epatch "${FILESDIR}/${P}-threadsafe.diff" \
8045 + "${FILESDIR}"/${P}-ldflags.patch
8046 + if [[ ${CHOST} == *-freebsd* ]]; then
8047 + # Don't try to be smart, this does not work in cross-compile anyway
8048 + ln -s "${S}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
8049 + fi
8050 +}
8051 +
8052 +src_compile() {
8053 + use unicode && append-flags "-DJS_C_STRINGS_ARE_UTF8"
8054 + tc-export CC LD AR
8055 + if use threadsafe; then
8056 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 \
8057 + XLDFLAGS="$(raw-ldflags)" HOST_LDFLAGS="${LDFLAGS}" \
8058 + || die "emake with threadsafe enabled failed";
8059 + else
8060 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" XLDFLAGS="$(raw-ldflags)" \
8061 + HOST_LDFLAGS="${LDFLAGS}" || die "emake without threadsafe enabled failed";
8062 + fi
8063 +}
8064 +
8065 +src_install() {
8066 + emake -f Makefile.ref install DESTDIR="${D}" LIBDIR="$(get_libdir)" || die
8067 + dodoc ../jsd/README
8068 + dohtml README.html
8069 +}
8070
8071 diff --git a/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild b/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild
8072 new file mode 100644
8073 index 0000000..2d26d44
8074 --- /dev/null
8075 +++ b/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild
8076 @@ -0,0 +1,50 @@
8077 +# Copyright 1999-2011 Gentoo Foundation
8078 +# Distributed under the terms of the GNU General Public License v2
8079 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild,v 1.9 2011/03/22 15:51:21 jer Exp $
8080 +
8081 +inherit eutils toolchain-funcs multilib
8082 +
8083 +MY_P="js-${PV}"
8084 +DESCRIPTION="Stand-alone JavaScript C library"
8085 +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
8086 +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.gz"
8087 +
8088 +LICENSE="NPL-1.1"
8089 +SLOT="0"
8090 +KEYWORDS="alpha amd64 ~arm ppc ppc64 sparc x86 ~x86-fbsd"
8091 +IUSE="threadsafe"
8092 +
8093 +S="${WORKDIR}/js/src"
8094 +
8095 +RDEPEND="threadsafe? ( dev-libs/nspr )"
8096 +
8097 +DEPEND="${RDEPEND}"
8098 +
8099 +src_unpack() {
8100 + unpack ${A}
8101 + cd "${S}"
8102 + epatch "${FILESDIR}/${PN}-1.5-build.patch"
8103 + epatch "${FILESDIR}/${PN}-1.6-header.patch"
8104 + epatch "${FILESDIR}/${P}-threadsafe.diff"
8105 + if [[ ${CHOST} == *-freebsd* ]]; then
8106 + # Don't try to be smart, this does not work in cross-compile anyway
8107 + ln -s "${S}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
8108 + fi
8109 +}
8110 +
8111 +src_compile() {
8112 + tc-export CC LD AR
8113 + if use threadsafe; then
8114 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 \
8115 + || die "emake with threadsafe enabled failed";
8116 + else
8117 + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" \
8118 + || die "emake without threadsafe enabled failed";
8119 + fi
8120 +}
8121 +
8122 +src_install() {
8123 + emake -f Makefile.ref install DESTDIR="${D}" LIBDIR="$(get_libdir)" || die
8124 + dodoc ../jsd/README
8125 + dohtml README.html
8126 +}
8127
8128 diff --git a/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild b/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild
8129 new file mode 100644
8130 index 0000000..f04b0bd
8131 --- /dev/null
8132 +++ b/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild
8133 @@ -0,0 +1,79 @@
8134 +# Copyright 1999-2012 Gentoo Foundation
8135 +# Distributed under the terms of the GNU General Public License v2
8136 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild,v 1.2 2012/05/03 02:41:39 jdhore Exp $
8137 +
8138 +EAPI="3"
8139 +inherit eutils toolchain-funcs multilib python
8140 +
8141 +MY_PV="${PV}"
8142 +MY_PV="${MY_PV/1.8.2/3.6}"
8143 +DESCRIPTION="Stand-alone JavaScript C library"
8144 +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
8145 +REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
8146 +SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2"
8147 +
8148 +LICENSE="NPL-1.1"
8149 +SLOT="0"
8150 +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
8151 +IUSE="threadsafe"
8152 +
8153 +S="${WORKDIR}/mozilla-1.9.2"
8154 +BUILDDIR="${S}/js/src"
8155 +
8156 +RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )"
8157 +
8158 +DEPEND="${RDEPEND}
8159 + app-arch/zip
8160 + =dev-lang/python-2*[threads]
8161 + virtual/pkgconfig"
8162 +
8163 +pkg_setup(){
8164 + python_set_active_version 2
8165 +}
8166 +
8167 +src_prepare() {
8168 + epatch "${FILESDIR}/${PN}-1.9.2.13-as-needed.patch"
8169 +
8170 + epatch_user
8171 +
8172 + cd "${S}"
8173 + if [[ ${CHOST} == *-freebsd* ]]; then
8174 + # Don't try to be smart, this does not work in cross-compile anyway
8175 + ln -s "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
8176 + fi
8177 +}
8178 +
8179 +src_configure() {
8180 + cd ${BUILDDIR}
8181 +
8182 + local myconf
8183 +
8184 + if use threadsafe ; then
8185 + myconf="${myconf} --with-system-nspr \
8186 + --enable-threadsafe"
8187 + fi
8188 + # Disable no-print-directory
8189 + MAKEOPTS=${MAKEOPTS/--no-print-directory/}
8190 +
8191 + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf \
8192 + ${myconf}
8193 +}
8194 +
8195 +src_compile() {
8196 + cd ${BUILDDIR}
8197 + emake -j1 || die "emake failed";
8198 +}
8199 +
8200 +src_install() {
8201 + cd ${BUILDDIR}
8202 + emake install DESTDIR="${D}" || die
8203 + dobin shell/js ||die
8204 + dodoc ../jsd/README
8205 + dohtml README.html
8206 +
8207 + if [[ ${CHOST} == *-darwin* ]] ; then
8208 + # fixup install_name
8209 + install_name_tool -id "${EPREFIX}"/usr/$(get_libdir)/libmozjs.dylib \
8210 + "${ED}"/usr/$(get_libdir)/libmozjs.dylib || die
8211 + fi
8212 +}
8213
8214 diff --git a/dev-lang/spidermonkey/spidermonkey-1.8.2.15.ebuild b/dev-lang/spidermonkey/spidermonkey-1.8.2.15.ebuild
8215 new file mode 100644
8216 index 0000000..6f708f3
8217 --- /dev/null
8218 +++ b/dev-lang/spidermonkey/spidermonkey-1.8.2.15.ebuild
8219 @@ -0,0 +1,78 @@
8220 +# Copyright 1999-2012 Gentoo Foundation
8221 +# Distributed under the terms of the GNU General Public License v2
8222 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15.ebuild,v 1.3 2012/05/03 02:41:39 jdhore Exp $
8223 +
8224 +EAPI="3"
8225 +inherit eutils toolchain-funcs multilib python
8226 +
8227 +MY_PV="${PV}"
8228 +MY_PV="${MY_PV/1.8.2/3.6}"
8229 +DESCRIPTION="Stand-alone JavaScript C library"
8230 +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
8231 +REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
8232 +SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2"
8233 +
8234 +LICENSE="NPL-1.1"
8235 +SLOT="0"
8236 +KEYWORDS="alpha amd64 ~arm ppc ppc64 sparc x86 ~x86-fbsd ~x64-macos ~x86-macos"
8237 +IUSE="threadsafe"
8238 +
8239 +S="${WORKDIR}/mozilla-1.9.2"
8240 +BUILDDIR="${S}/js/src"
8241 +
8242 +RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )"
8243 +
8244 +DEPEND="${RDEPEND}
8245 + app-arch/zip
8246 + =dev-lang/python-2*[threads]
8247 + virtual/pkgconfig"
8248 +
8249 +pkg_setup(){
8250 + python_set_active_version 2
8251 +}
8252 +
8253 +src_prepare() {
8254 + epatch "${FILESDIR}/${PN}-1.9.2.13-as-needed.patch"
8255 +
8256 + epatch_user
8257 +
8258 + cd "${S}"
8259 + if [[ ${CHOST} == *-freebsd* ]]; then
8260 + # Don't try to be smart, this does not work in cross-compile anyway
8261 + ln -s "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
8262 + fi
8263 +}
8264 +
8265 +src_configure() {
8266 + cd ${BUILDDIR}
8267 +
8268 + local myconf
8269 +
8270 + if use threadsafe ; then
8271 + myconf="${myconf} --with-system-nspr \
8272 + --enable-threadsafe"
8273 + fi
8274 + # Disable no-print-directory
8275 + MAKEOPTS=${MAKEOPTS/--no-print-directory/}
8276 +
8277 + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf \
8278 + ${myconf}
8279 +}
8280 +
8281 +src_compile() {
8282 + cd ${BUILDDIR}
8283 + emake -j1 || die "emake failed";
8284 +}
8285 +
8286 +src_install() {
8287 + cd ${BUILDDIR}
8288 + emake install DESTDIR="${D}" || die
8289 + dodoc ../jsd/README
8290 + dohtml README.html
8291 +
8292 + if [[ ${CHOST} == *-darwin* ]] ; then
8293 + # fixup install_name
8294 + install_name_tool -id "${EPREFIX}"/usr/$(get_libdir)/libmozjs.dylib \
8295 + "${ED}"/usr/$(get_libdir)/libmozjs.dylib || die
8296 + fi
8297 +}
8298
8299 diff --git a/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild b/dev-lang/spidermonkey/spidermonkey-1.8.5-r1.ebuild
8300 similarity index 73%
8301 copy from dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild
8302 copy to dev-lang/spidermonkey/spidermonkey-1.8.5-r1.ebuild
8303 index 4f5b1ae..f1372a4 100644
8304 --- a/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild
8305 +++ b/dev-lang/spidermonkey/spidermonkey-1.8.5-r1.ebuild
8306 @@ -1,6 +1,6 @@
8307 # Copyright 1999-2012 Gentoo Foundation
8308 # Distributed under the terms of the GNU General Public License v2
8309 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild,v 1.2 2012/06/19 23:18:48 blueness Exp $
8310 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5-r1.ebuild,v 1.8 2012/06/19 23:18:48 blueness Exp $
8311
8312 EAPI="4-slot-abi"
8313 WANT_AUTOCONF="2.1"
8314 @@ -10,22 +10,19 @@ MY_PN="js"
8315 TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))"
8316 MY_P="${MY_PN}-${PV}"
8317 TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0"
8318 -SPIDERPV="${PV}-patches-0.1"
8319 DESCRIPTION="Stand-alone JavaScript C library"
8320 HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
8321 -SRC_URI="http://people.mozilla.com/~dmandelin/${TARBALL_P}.tar.gz
8322 - http://dev.gentoo.org/~anarchy/mozilla/patchsets/spidermonkey-${SPIDERPV}.tar.xz"
8323 +SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${TARBALL_P}.tar.gz"
8324
8325 LICENSE="NPL-1.1"
8326 -SLOT="0/187"
8327 +SLOT="0/185"
8328 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
8329 -IUSE="debug jit static-libs test"
8330 +IUSE="debug static-libs test"
8331
8332 S="${WORKDIR}/${MY_P}"
8333 BUILDDIR="${S}/js/src"
8334
8335 -RDEPEND=">=dev-libs/nspr-4.7.0
8336 - virtual/libffi"
8337 +RDEPEND=">=dev-libs/nspr-4.7.0"
8338 DEPEND="${RDEPEND}
8339 app-arch/zip
8340 =dev-lang/python-2*[threads]
8341 @@ -33,18 +30,18 @@ DEPEND="${RDEPEND}
8342
8343 pkg_setup(){
8344 python_set_active_version 2
8345 + python_pkg_setup
8346
8347 export LC_ALL="C"
8348 }
8349
8350 src_prepare() {
8351 - # Apply patches that are required for misc archs
8352 - EPATCH_SUFFIX="patch" \
8353 - EPATCH_FORCE="yes" \
8354 - epatch "${WORKDIR}/spidermonkey"
8355 -
8356 - epatch "${FILESDIR}"/${PN}-1.8.5-fix-install-symlinks.patch
8357 - epatch "${FILESDIR}"/${PN}-1.8.7-filter_desc.patch
8358 + # https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43
8359 + epatch "${FILESDIR}/${P}-fix-install-symlinks.patch"
8360 + # https://bugzilla.mozilla.org/show_bug.cgi?id=638056#c9
8361 + epatch "${FILESDIR}/${P}-fix-ppc64.patch"
8362 + # https://bugs.gentoo.org/show_bug.cgi?id=400727
8363 + epatch "${FILESDIR}/${P}-arm_resprect_cflags-1.patch"
8364
8365 epatch_user
8366
8367 @@ -67,11 +64,7 @@ src_configure() {
8368 --enable-readline \
8369 --enable-threadsafe \
8370 --with-system-nspr \
8371 - --enable-system-ffi \
8372 - --enable-jemalloc \
8373 $(use_enable debug) \
8374 - $(use_enable jit tracejit) \
8375 - $(use_enable jit methodjit) \
8376 $(use_enable static-libs static) \
8377 $(use_enable test tests)
8378 }
8379 @@ -111,16 +104,9 @@ src_install() {
8380 cd "${BUILDDIR}"
8381 emake DESTDIR="${D}" install
8382 dobin shell/js
8383 - if use jit ; then
8384 - pax-mark m "${ED}/usr/bin/js"
8385 - fi
8386 + pax-mark m "${ED}/usr/bin/js"
8387 dodoc ../../README
8388 dohtml README.html
8389 - # install header files needed but not part of build system
8390 - insinto /usr/include/js
8391 - doins ../public/*.h
8392 - insinto /usr/include/js/mozilla
8393 - doins "${S}"/mfbt/*.h
8394
8395 if ! use static-libs; then
8396 # We can't actually disable building of static libraries
8397
8398 diff --git a/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild b/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild
8399 index 4f5b1ae..4123aa4 100644
8400 --- a/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild
8401 +++ b/dev-lang/spidermonkey/spidermonkey-1.8.7.ebuild
8402 @@ -33,6 +33,7 @@ DEPEND="${RDEPEND}
8403
8404 pkg_setup(){
8405 python_set_active_version 2
8406 + python_pkg_setup
8407
8408 export LC_ALL="C"
8409 }
8410
8411 diff --git a/dev-libs/gjs/Manifest b/dev-libs/gjs/Manifest
8412 new file mode 100644
8413 index 0000000..63585e5
8414 --- /dev/null
8415 +++ b/dev-libs/gjs/Manifest
8416 @@ -0,0 +1,6 @@
8417 +DIST gjs-1.30.1.tar.xz 455456 RMD160 10a44261cb801a2d8eacb075addc296476953f3a SHA1 269796944742bb3f86bbe017620a65f2fea50207 SHA256 f5db07ddf70458a33a5d0bdf83f84070fc234237ecb0d49a8676e67b52119a05
8418 +DIST gjs-1.32.0.tar.xz 464372 RMD160 977ea08c57cb99c597ccf49b994f4c31f8e07458 SHA1 7ea9c2bbcef40f65c0e7aa04e6f2df8c553516ee SHA256 b9f1dc156c15806824c936bb08ddc5048f52f6921654146c47025a62457108c0
8419 +EBUILD gjs-1.30.1.ebuild 1461 RMD160 4011b946d7008258583b96a6481c820fd066d8de SHA1 30ab6c8dc06b4e157185c94674eccd44a7c23874 SHA256 dc97e6db47256a1fd31e955c6b2ab513cf890c1ea01bdd8178d8d9478dfb0925
8420 +EBUILD gjs-1.32.0.ebuild 1553 RMD160 c29f93544192716b66706062cd408830be3ccf94 SHA1 82fbb70782604560f830ddface0669abb64de0eb SHA256 b3c4f492a3a09ec91fbabcf5180ef0db5a52ca23d5a785c38af0f3c9626fb937
8421 +MISC ChangeLog 1603 RMD160 2aaa024602d84fa13d3e35c8ccfe555b6f429b47 SHA1 61a63c46598ffd0399081d4f4cb2bf0fe70f1bcd SHA256 f2ea2c62b46b74b04466a1f91f80e58bc8e0a9670d74c339aa2d9cb370edb4e1
8422 +MISC metadata.xml 160 RMD160 2b0d347221b384d4765ecdcccefbc74b0ae502ef SHA1 ae1b892a3e72888c5b66b520f15f740576f607ec SHA256 4d793ecb79b17794248102d8409d16bc27b1022c72038bd2d1241e129693d5f2
8423
8424 diff --git a/dev-libs/gjs/gjs-1.30.1.ebuild b/dev-libs/gjs/gjs-1.30.1.ebuild
8425 new file mode 100644
8426 index 0000000..724951d
8427 --- /dev/null
8428 +++ b/dev-libs/gjs/gjs-1.30.1.ebuild
8429 @@ -0,0 +1,65 @@
8430 +# Copyright 1999-2012 Gentoo Foundation
8431 +# Distributed under the terms of the GNU General Public License v2
8432 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gjs/gjs-1.30.1.ebuild,v 1.2 2012/05/04 18:35:43 jdhore Exp $
8433 +
8434 +EAPI="4-slot-abi"
8435 +GCONF_DEBUG="no"
8436 +GNOME2_LA_PUNT="yes"
8437 +PYTHON_DEPEND="2"
8438 +
8439 +inherit gnome2 python virtualx
8440 +
8441 +DESCRIPTION="Javascript bindings for GNOME"
8442 +HOMEPAGE="http://live.gnome.org/Gjs"
8443 +
8444 +LICENSE="MIT MPL-1.1 LGPL-2 GPL-2"
8445 +SLOT="0"
8446 +IUSE="examples test"
8447 +KEYWORDS="~amd64 ~x86"
8448 +
8449 +RDEPEND=">=dev-libs/glib-2.18:2
8450 + >=dev-libs/gobject-introspection-1.29.16
8451 +
8452 + dev-libs/dbus-glib
8453 + sys-libs/readline
8454 + x11-libs/cairo
8455 + >=dev-lang/spidermonkey-1.8.5:="
8456 +DEPEND="${RDEPEND}
8457 + sys-devel/gettext
8458 + virtual/pkgconfig"
8459 +
8460 +pkg_setup() {
8461 + # AUTHORS, ChangeLog are empty
8462 + DOCS="NEWS README"
8463 + # FIXME: add systemtap/dtrace support, like in glib:2
8464 + # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
8465 + # XXX: Do NOT enable coverage, completely useless for portage installs
8466 + G2CONF="${G2CONF}
8467 + --with-js-package=mozjs185
8468 + --disable-systemtap
8469 + --disable-dtrace
8470 + --disable-coverage"
8471 +
8472 + python_set_active_version 2
8473 + python_pkg_setup
8474 +}
8475 +
8476 +src_prepare() {
8477 + gnome2_src_prepare
8478 + python_convert_shebangs 2 "${S}"/scripts/make-tests
8479 +}
8480 +
8481 +src_test() {
8482 + # Tests need dbus
8483 + Xemake check
8484 +}
8485 +
8486 +src_install() {
8487 + # installation sometimes fails in parallel
8488 + gnome2_src_install -j1
8489 +
8490 + if use examples; then
8491 + insinto /usr/share/doc/${PF}/examples
8492 + doins ${S}/examples/*
8493 + fi
8494 +}
8495
8496 diff --git a/dev-libs/gjs/gjs-1.32.0.ebuild b/dev-libs/gjs/gjs-1.32.0.ebuild
8497 new file mode 100644
8498 index 0000000..4272765
8499 --- /dev/null
8500 +++ b/dev-libs/gjs/gjs-1.32.0.ebuild
8501 @@ -0,0 +1,67 @@
8502 +# Copyright 1999-2012 Gentoo Foundation
8503 +# Distributed under the terms of the GNU General Public License v2
8504 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gjs/gjs-1.32.0.ebuild,v 1.3 2012/05/28 00:19:48 mattst88 Exp $
8505 +
8506 +EAPI="4-slot-abi"
8507 +GCONF_DEBUG="no"
8508 +GNOME2_LA_PUNT="yes"
8509 +PYTHON_DEPEND="2"
8510 +
8511 +inherit gnome2 pax-utils python virtualx
8512 +
8513 +DESCRIPTION="Javascript bindings for GNOME"
8514 +HOMEPAGE="http://live.gnome.org/Gjs"
8515 +
8516 +LICENSE="MIT MPL-1.1 LGPL-2 GPL-2"
8517 +SLOT="0"
8518 +IUSE="examples test"
8519 +KEYWORDS="~alpha ~amd64 ~x86"
8520 +
8521 +RDEPEND=">=dev-libs/glib-2.31:2
8522 + >=dev-libs/gobject-introspection-1.31.22
8523 +
8524 + dev-libs/dbus-glib
8525 + sys-libs/readline
8526 + x11-libs/cairo
8527 + >=dev-lang/spidermonkey-1.8.5:="
8528 +DEPEND="${RDEPEND}
8529 + sys-devel/gettext
8530 + virtual/pkgconfig"
8531 +
8532 +pkg_setup() {
8533 + # AUTHORS, ChangeLog are empty
8534 + DOCS="NEWS README"
8535 + # FIXME: add systemtap/dtrace support, like in glib:2
8536 + # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
8537 + # XXX: Do NOT enable coverage, completely useless for portage installs
8538 + G2CONF="${G2CONF}
8539 + --disable-systemtap
8540 + --disable-dtrace
8541 + --disable-coverage"
8542 +
8543 + python_set_active_version 2
8544 + python_pkg_setup
8545 +}
8546 +
8547 +src_prepare() {
8548 + gnome2_src_prepare
8549 + python_convert_shebangs 2 "${S}"/scripts/make-tests
8550 +}
8551 +
8552 +src_test() {
8553 + # Tests need dbus
8554 + Xemake check
8555 +}
8556 +
8557 +src_install() {
8558 + # installation sometimes fails in parallel
8559 + gnome2_src_install -j1
8560 +
8561 + if use examples; then
8562 + insinto /usr/share/doc/${PF}/examples
8563 + doins ${S}/examples/*
8564 + fi
8565 +
8566 + # Required for gjs-console to run correctly on PaX systems
8567 + pax-mark mr "${ED}/usr/bin/gjs-console"
8568 +}
8569
8570 diff --git a/dev-libs/libyaml/libyaml-0.0.1.ebuild b/dev-libs/libyaml/libyaml-0.0.1.ebuild
8571 new file mode 100644
8572 index 0000000..c3c1742
8573 --- /dev/null
8574 +++ b/dev-libs/libyaml/libyaml-0.0.1.ebuild
8575 @@ -0,0 +1,37 @@
8576 +# Copyright 1999-2009 Gentoo Foundation
8577 +# Distributed under the terms of the GNU General Public License v2
8578 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libyaml/libyaml-0.0.1.ebuild,v 1.4 2009/03/01 16:35:13 patrick Exp $
8579 +
8580 +inherit eutils
8581 +
8582 +MY_P="${P/lib}"
8583 +
8584 +DESCRIPTION="YAML 1.1 parser and emitter written in C"
8585 +HOMEPAGE="http://pyyaml.org/wiki/LibYAML"
8586 +SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
8587 +
8588 +LICENSE="MIT"
8589 +SLOT="0"
8590 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
8591 +IUSE="doc examples"
8592 +
8593 +S="${WORKDIR}/${MY_P}"
8594 +
8595 +src_unpack() {
8596 + unpack ${A}
8597 + cd "${S}"
8598 + # conditionally remove tests
8599 + if use test ; then
8600 + sed -i -e 's: tests::g' Makefile*
8601 + fi
8602 +}
8603 +
8604 +src_install() {
8605 + emake DESTDIR="${D}" install || die "emake install failed"
8606 + use doc && dohtml -r doc/html/.
8607 + dodoc README
8608 + if use examples ; then
8609 + insinto /usr/share/doc/${PF}/examples
8610 + doins tests/example-*.c
8611 + fi
8612 +}
8613
8614 diff --git a/dev-libs/libyaml/libyaml-0.1.2.ebuild b/dev-libs/libyaml/libyaml-0.1.2.ebuild
8615 new file mode 100644
8616 index 0000000..079318b
8617 --- /dev/null
8618 +++ b/dev-libs/libyaml/libyaml-0.1.2.ebuild
8619 @@ -0,0 +1,37 @@
8620 +# Copyright 1999-2010 Gentoo Foundation
8621 +# Distributed under the terms of the GNU General Public License v2
8622 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libyaml/libyaml-0.1.2.ebuild,v 1.8 2010/01/14 21:39:14 fauli Exp $
8623 +
8624 +inherit eutils
8625 +
8626 +MY_P="${P/lib}"
8627 +
8628 +DESCRIPTION="YAML 1.1 parser and emitter written in C"
8629 +HOMEPAGE="http://pyyaml.org/wiki/LibYAML"
8630 +SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
8631 +
8632 +LICENSE="MIT"
8633 +SLOT="0"
8634 +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-linux ~x86-macos"
8635 +IUSE="doc examples test"
8636 +
8637 +S="${WORKDIR}/${MY_P}"
8638 +
8639 +src_unpack() {
8640 + unpack ${A}
8641 + cd "${S}"
8642 + # conditionally remove tests
8643 + if use test ; then
8644 + sed -i -e 's: tests::g' Makefile*
8645 + fi
8646 +}
8647 +
8648 +src_install() {
8649 + emake DESTDIR="${D}" install || die "emake install failed"
8650 + use doc && dohtml -r doc/html/.
8651 + dodoc README
8652 + if use examples ; then
8653 + insinto /usr/share/doc/${PF}/examples
8654 + doins tests/example-*.c
8655 + fi
8656 +}
8657
8658 diff --git a/dev-libs/libyaml/libyaml-0.1.3.ebuild b/dev-libs/libyaml/libyaml-0.1.3.ebuild
8659 new file mode 100644
8660 index 0000000..e8659e2
8661 --- /dev/null
8662 +++ b/dev-libs/libyaml/libyaml-0.1.3.ebuild
8663 @@ -0,0 +1,37 @@
8664 +# Copyright 1999-2011 Gentoo Foundation
8665 +# Distributed under the terms of the GNU General Public License v2
8666 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libyaml/libyaml-0.1.3.ebuild,v 1.8 2011/12/29 17:07:04 jer Exp $
8667 +
8668 +EAPI="2"
8669 +
8670 +inherit eutils
8671 +
8672 +MY_P="${P/lib}"
8673 +
8674 +DESCRIPTION="YAML 1.1 parser and emitter written in C"
8675 +HOMEPAGE="http://pyyaml.org/wiki/LibYAML"
8676 +SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
8677 +
8678 +LICENSE="MIT"
8679 +SLOT="0"
8680 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
8681 +IUSE="doc examples test"
8682 +
8683 +S="${WORKDIR}/${MY_P}"
8684 +
8685 +src_prepare() {
8686 + # conditionally remove tests
8687 + if use test ; then
8688 + sed -i -e 's: tests::g' Makefile*
8689 + fi
8690 +}
8691 +
8692 +src_install() {
8693 + emake DESTDIR="${D}" install || die "emake install failed"
8694 + use doc && dohtml -r doc/html/.
8695 + dodoc README
8696 + if use examples ; then
8697 + insinto /usr/share/doc/${PF}/examples
8698 + doins tests/example-*.c
8699 + fi
8700 +}
8701
8702 diff --git a/dev-perl/AnyEvent/AnyEvent-5.2.5.1.ebuild b/dev-perl/AnyEvent/AnyEvent-5.2.5.1.ebuild
8703 new file mode 100644
8704 index 0000000..ea62551
8705 --- /dev/null
8706 +++ b/dev-perl/AnyEvent/AnyEvent-5.2.5.1.ebuild
8707 @@ -0,0 +1,23 @@
8708 +# Copyright 1999-2011 Gentoo Foundation
8709 +# Distributed under the terms of the GNU General Public License v2
8710 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/AnyEvent/AnyEvent-5.2.5.1.ebuild,v 1.6 2011/09/11 17:58:24 armin76 Exp $
8711 +
8712 +EAPI=2
8713 +
8714 +inherit versionator
8715 +MODULE_AUTHOR=MLEHMANN
8716 +MY_P=${PN}-$(get_major_version).$(delete_all_version_separators $(get_after_major_version))
8717 +S=${WORKDIR}/${MY_P}
8718 +inherit perl-module
8719 +
8720 +DESCRIPTION="provide framework for multiple event loops"
8721 +
8722 +LICENSE="GPL-2"
8723 +SLOT="0"
8724 +KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ppc64 sparc x86 ~x86-solaris"
8725 +IUSE=""
8726 +
8727 +RDEPEND="dev-perl/Event"
8728 +DEPEND=""
8729 +
8730 +SRC_TEST="do"
8731
8732 diff --git a/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch b/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch
8733 new file mode 100644
8734 index 0000000..56283f8
8735 --- /dev/null
8736 +++ b/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch
8737 @@ -0,0 +1,25 @@
8738 +From 6b1b60546ffca416a65d047a1c0d5d2b610b4dac Mon Sep 17 00:00:00 2001
8739 +From: Christian Ruppert <idl0r@g.o>
8740 +Date: Fri, 25 Mar 2011 17:42:54 +0100
8741 +Subject: [PATCH] Fix Linux::Smaps detection to *not* die if /proc/self/smaps doesn't exist
8742 +
8743 +---
8744 + lib/Apache/SizeLimit/Core.pm | 2 +-
8745 + 1 files changed, 1 insertions(+), 1 deletions(-)
8746 +
8747 +diff --git a/lib/Apache/SizeLimit/Core.pm b/lib/Apache/SizeLimit/Core.pm
8748 +index 5942bc8..f2fbac4 100644
8749 +--- a/lib/Apache/SizeLimit/Core.pm
8750 ++++ b/lib/Apache/SizeLimit/Core.pm
8751 +@@ -143,7 +143,7 @@ BEGIN {
8752 +
8753 + *_platform_getppid = \&_linux_getppid;
8754 +
8755 +- if (eval { require Linux::Smaps } && Linux::Smaps->new($$)) {
8756 ++ if (eval { require Linux::Smaps && Linux::Smaps->new($$) }) {
8757 + $USE_SMAPS = 1;
8758 + *_platform_check_size = \&_linux_smaps_size_check;
8759 + }
8760 +--
8761 +1.7.3.4
8762 +
8763
8764 diff --git a/dev-perl/AppConfig/files/blockdiffs.patch b/dev-perl/AppConfig/files/blockdiffs.patch
8765 new file mode 100644
8766 index 0000000..2e30310
8767 --- /dev/null
8768 +++ b/dev-perl/AppConfig/files/blockdiffs.patch
8769 @@ -0,0 +1,83 @@
8770 +diff -Naurp AppConfig-1.65.orig/lib/AppConfig/File.pm AppConfig-1.65/lib/AppConfig/File.pm
8771 +--- AppConfig-1.65.orig/lib/AppConfig/File.pm 2007-05-30 07:24:09.000000000 -0400
8772 ++++ AppConfig-1.65/lib/AppConfig/File.pm 2007-06-09 07:08:21.000000000 -0400
8773 +@@ -38,6 +38,7 @@ sub new {
8774 + STATE => $state, # AppConfig::State ref
8775 + DEBUG => $state->_debug(), # store local copy of debug
8776 + PEDANTIC => $state->_pedantic, # and pedantic flags
8777 ++ BLOCKSEP => $state->_blocksep, # and block separator
8778 + };
8779 +
8780 + bless $self, $class;
8781 +@@ -80,7 +81,7 @@ sub parse {
8782 + my $flag;
8783 +
8784 + # take a local copy of the state to avoid much hash dereferencing
8785 +- my ($state, $debug, $pedantic) = @$self{ qw( STATE DEBUG PEDANTIC ) };
8786 ++ my ($state, $debug, $pedantic, $blocksep) = @$self{ qw( STATE DEBUG PEDANTIC BLOCKSEP ) };
8787 +
8788 + # we want to install a custom error handler into the AppConfig::State
8789 + # which appends filename and line info to error messages and then
8790 +@@ -163,7 +164,7 @@ sub parse {
8791 + s/\s+$//;
8792 +
8793 + # look for a [block] to set $prefix
8794 +- if (/^\[([^\]]+)\]$/) {
8795 ++ if (/^\[\s*([^\]\s]+)\s*\]$/) {
8796 + $prefix = $1;
8797 + print STDERR "Entering [$prefix] block\n" if $debug;
8798 + next;
8799 +@@ -194,7 +195,7 @@ sub parse {
8800 + $flag = $1;
8801 +
8802 + # $variable gets any $prefix
8803 +- $variable = $prefix . '_' . $variable
8804 ++ $variable = $prefix . $blocksep . $variable
8805 + if length $prefix;
8806 +
8807 + # if the variable doesn't exist, we call set() to give
8808 +diff -Naurp AppConfig-1.65.orig/lib/AppConfig/State.pm AppConfig-1.65/lib/AppConfig/State.pm
8809 +--- AppConfig-1.65.orig/lib/AppConfig/State.pm 2007-05-30 07:24:20.000000000 -0400
8810 ++++ AppConfig-1.65/lib/AppConfig/State.pm 2007-06-09 07:11:16.000000000 -0400
8811 +@@ -53,7 +53,7 @@ my %METHVARS;
8812 +
8813 + # internal values that AUTOLOAD should provide access to
8814 + my %METHFLAGS;
8815 +- @METHFLAGS{ qw( PEDANTIC ) } = ();
8816 ++ @METHFLAGS{ qw( PEDANTIC BLOCKSEP ) } = ();
8817 +
8818 + # variable attributes that may be specified in GLOBAL;
8819 + my @GLOBAL_OK = qw( DEFAULT EXPAND VALIDATE ACTION ARGS ARGCOUNT );
8820 +@@ -94,6 +94,7 @@ sub new {
8821 + PEDANTIC => 0, # return immediately on parse warnings
8822 + EHANDLER => undef, # error handler (let's hope we don't need it!)
8823 + ERROR => '', # error message
8824 ++ BLOCKSEP => '_', # separator between [block] and variable name
8825 + };
8826 +
8827 + bless $self, $class;
8828 +@@ -504,8 +505,8 @@ sub _configure {
8829 + next;
8830 + };
8831 +
8832 +- # CASE, CREATE and PEDANTIC are stored as they are
8833 +- $opt =~ /^CASE|CREATE|PEDANTIC$/i && do {
8834 ++ # CASE, CREATE, PEDANTIC and BLOCKSEP are stored as they are
8835 ++ $opt =~ /^CASE|CREATE|PEDANTIC|BLOCKSEP$/i && do {
8836 + $self->{ uc $opt } = $cfg->{ $opt };
8837 + next;
8838 + };
8839 +@@ -1015,6 +1016,13 @@ instantiated with a reference to an App:
8840 + DEBUG (and also PEDANTIC) values of the state at that time. Subsequent
8841 + changes to the AppConfig::State debug value will not affect them.
8842 +
8843 ++=item BLOCKSEP
8844 ++
8845 ++When parsing configuration files that are grouped using constructions
8846 ++like [block], this string parameter determines what is used to
8847 ++separate the name of the block from the name of each variable
8848 ++contained within it. If unspecified, BLOCKSEP defaults to '_'.
8849 ++
8850 + =item GLOBAL
8851 +
8852 + The GLOBAL option allows default values to be set for the DEFAULT, ARGCOUNT,
8853
8854 diff --git a/dev-perl/Archive-Rar/Archive-Rar-1.9.3.ebuild b/dev-perl/Archive-Rar/Archive-Rar-1.9.3.ebuild
8855 new file mode 100644
8856 index 0000000..49a2364
8857 --- /dev/null
8858 +++ b/dev-perl/Archive-Rar/Archive-Rar-1.9.3.ebuild
8859 @@ -0,0 +1,24 @@
8860 +# Copyright 1999-2008 Gentoo Foundation
8861 +# Distributed under the terms of the GNU General Public License v2
8862 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Archive-Rar/Archive-Rar-1.9.3.ebuild,v 1.5 2008/12/23 08:48:55 robbat2 Exp $
8863 +
8864 +inherit versionator
8865 +MODULE_AUTHOR=SMUELLER
8866 +MY_P="${PN}-$(delete_version_separator 2)"
8867 +inherit perl-module
8868 +
8869 +S=${WORKDIR}/${MY_P}
8870 +
8871 +DESCRIPTION="Archive::Rar - Interface with the rar command"
8872 +
8873 +LICENSE="Artistic"
8874 +SLOT="0"
8875 +KEYWORDS="amd64 x86"
8876 +IUSE="test"
8877 +
8878 +RDEPEND="dev-lang/perl
8879 + app-arch/rar"
8880 +DEPEND="${RDEPEND}
8881 + test? ( dev-perl/Test-Pod )"
8882 +
8883 +SRC_TEST="do"
8884
8885 diff --git a/dev-perl/B-OPCheck/files/0.29-Perl_check_t.patch b/dev-perl/B-OPCheck/files/0.29-Perl_check_t.patch
8886 new file mode 100644
8887 index 0000000..77cec36
8888 --- /dev/null
8889 +++ b/dev-perl/B-OPCheck/files/0.29-Perl_check_t.patch
8890 @@ -0,0 +1,15 @@
8891 +https://rt.cpan.org/Public/Bug/Display.html?id=57356
8892 +
8893 +--- B-OPCheck-0.29/OPCheck.xs
8894 ++++ B-OPCheck-0.29/OPCheck.xs
8895 +@@ -12,10 +12,6 @@
8896 + #define NEED_sv_2pv_flags
8897 + #include "ppport.h"
8898 +
8899 +-#if PERL_VERSION < 9
8900 +-typedef OP* (CPERLscope(*Perl_check_t)) (pTHX_ OP*);
8901 +-#endif
8902 +-
8903 + STATIC AV **OPCHECK_subs;
8904 + Perl_check_t *PL_check_orig;
8905 +
8906
8907 diff --git a/dev-perl/BerkeleyDB/files/Gentoo-config-0.26.diff b/dev-perl/BerkeleyDB/files/Gentoo-config-0.26.diff
8908 new file mode 100644
8909 index 0000000..616beba
8910 --- /dev/null
8911 +++ b/dev-perl/BerkeleyDB/files/Gentoo-config-0.26.diff
8912 @@ -0,0 +1,23 @@
8913 +#diff -Naurp config.old config.in
8914 +--- config.old 2004-10-21 08:11:53.000000000 -0400
8915 ++++ config.in 2004-10-21 08:13:05.000000000 -0400
8916 +@@ -9,7 +9,8 @@
8917 +
8918 + #INCLUDE = /usr/local/include
8919 + #INCLUDE = ../..
8920 +-INCLUDE = /usr/local/BerkeleyDB/include
8921 ++#INCLUDE = /usr/local/BerkeleyDB/include
8922 ++INCLUDE = /usr/include
8923 +
8924 + # 2. Where is libdb?
8925 + #
8926 +@@ -18,7 +19,8 @@ INCLUDE = /usr/local/BerkeleyDB/include
8927 +
8928 + #LIB = /usr/local/lib
8929 + #LIB = ../..
8930 +-LIB = /usr/local/BerkeleyDB/lib
8931 ++#LIB = /usr/local/BerkeleyDB/lib
8932 ++LIB = /usr/lib
8933 +
8934 + # 3. Is the library called libdb?
8935 + #
8936
8937 diff --git a/dev-perl/CPAN-Mini/CPAN-Mini-0.562.ebuild b/dev-perl/CPAN-Mini/CPAN-Mini-0.562.ebuild
8938 new file mode 100644
8939 index 0000000..d84f148
8940 --- /dev/null
8941 +++ b/dev-perl/CPAN-Mini/CPAN-Mini-0.562.ebuild
8942 @@ -0,0 +1,22 @@
8943 +# Copyright 1999-2012 Gentoo Foundation
8944 +# Distributed under the terms of the GNU General Public License v2
8945 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/CPAN-Mini/CPAN-Mini-0.562.ebuild,v 1.6 2012/06/17 16:33:54 armin76 Exp $
8946 +
8947 +inherit perl-module
8948 +
8949 +DESCRIPTION="create a minimal mirror of CPAN"
8950 +HOMEPAGE="http://search.cpan.org/~rjbs/${P}/"
8951 +SRC_URI="mirror://cpan/authors/id/R/RJ/RJBS/${P}.tar.gz"
8952 +
8953 +LICENSE="Artistic"
8954 +SLOT="0"
8955 +KEYWORDS="amd64 x86"
8956 +IUSE=""
8957 +
8958 +SRC_TEST="do"
8959 +
8960 +DEPEND="dev-perl/libwww-perl
8961 + >=virtual/perl-IO-Compress-1.20
8962 + dev-perl/File-HomeDir
8963 + dev-perl/URI
8964 + dev-lang/perl"
8965
8966 diff --git a/dev-perl/Cache-Memcached/Cache-Memcached-1.24.ebuild b/dev-perl/Cache-Memcached/Cache-Memcached-1.24.ebuild
8967 new file mode 100644
8968 index 0000000..6fc2a2e
8969 --- /dev/null
8970 +++ b/dev-perl/Cache-Memcached/Cache-Memcached-1.24.ebuild
8971 @@ -0,0 +1,20 @@
8972 +# Copyright 1999-2011 Gentoo Foundation
8973 +# Distributed under the terms of the GNU General Public License v2
8974 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Cache-Memcached/Cache-Memcached-1.24.ebuild,v 1.10 2011/07/30 10:21:00 tove Exp $
8975 +
8976 +inherit perl-module
8977 +
8978 +DESCRIPTION="Perl API for memcached"
8979 +HOMEPAGE="http://www.danga.com/memcached/"
8980 +SRC_URI="mirror://cpan/authors/id/B/BR/BRADFITZ/${P}.tar.gz"
8981 +
8982 +SRC_TEST="do"
8983 +
8984 +LICENSE="|| ( Artistic GPL-2 )"
8985 +SLOT="0"
8986 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
8987 +IUSE=""
8988 +
8989 +DEPEND="dev-perl/string-crc32
8990 + dev-lang/perl"
8991 +mydoc="ChangeLog README TODO"
8992
8993 diff --git a/dev-perl/Cache-Memcached/Cache-Memcached-1.26.ebuild b/dev-perl/Cache-Memcached/Cache-Memcached-1.26.ebuild
8994 new file mode 100644
8995 index 0000000..31754f3
8996 --- /dev/null
8997 +++ b/dev-perl/Cache-Memcached/Cache-Memcached-1.26.ebuild
8998 @@ -0,0 +1,23 @@
8999 +# Copyright 1999-2011 Gentoo Foundation
9000 +# Distributed under the terms of the GNU General Public License v2
9001 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Cache-Memcached/Cache-Memcached-1.26.ebuild,v 1.2 2011/07/30 10:21:00 tove Exp $
9002 +
9003 +EAPI=2
9004 +
9005 +MODULE_AUTHOR=BRADFITZ
9006 +inherit perl-module
9007 +
9008 +DESCRIPTION="Perl API for memcached"
9009 +HOMEPAGE="http://www.danga.com/memcached/"
9010 +
9011 +SRC_TEST="do"
9012 +
9013 +SLOT="0"
9014 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
9015 +IUSE=""
9016 +
9017 +DEPEND="dev-perl/string-crc32
9018 + dev-lang/perl"
9019 +RDEPEND="${DEPEND}"
9020 +
9021 +mydoc="ChangeLog README TODO"
9022
9023 diff --git a/dev-perl/Cache-Memcached/Cache-Memcached-1.27.ebuild b/dev-perl/Cache-Memcached/Cache-Memcached-1.27.ebuild
9024 new file mode 100644
9025 index 0000000..44adce7
9026 --- /dev/null
9027 +++ b/dev-perl/Cache-Memcached/Cache-Memcached-1.27.ebuild
9028 @@ -0,0 +1,21 @@
9029 +# Copyright 1999-2011 Gentoo Foundation
9030 +# Distributed under the terms of the GNU General Public License v2
9031 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Cache-Memcached/Cache-Memcached-1.27.ebuild,v 1.2 2011/07/30 10:21:00 tove Exp $
9032 +
9033 +EAPI=2
9034 +
9035 +MODULE_AUTHOR=BRADFITZ
9036 +inherit perl-module
9037 +
9038 +DESCRIPTION="Perl API for memcached"
9039 +HOMEPAGE="http://www.danga.com/memcached/"
9040 +
9041 +SLOT="0"
9042 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
9043 +IUSE=""
9044 +
9045 +DEPEND="dev-perl/string-crc32"
9046 +RDEPEND="${DEPEND}"
9047 +
9048 +SRC_TEST="do"
9049 +mydoc="ChangeLog README TODO"
9050
9051 diff --git a/dev-perl/Cache-Memcached/Cache-Memcached-1.28.ebuild b/dev-perl/Cache-Memcached/Cache-Memcached-1.28.ebuild
9052 new file mode 100644
9053 index 0000000..d1540dd
9054 --- /dev/null
9055 +++ b/dev-perl/Cache-Memcached/Cache-Memcached-1.28.ebuild
9056 @@ -0,0 +1,21 @@
9057 +# Copyright 1999-2011 Gentoo Foundation
9058 +# Distributed under the terms of the GNU General Public License v2
9059 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Cache-Memcached/Cache-Memcached-1.28.ebuild,v 1.3 2011/07/30 10:21:00 tove Exp $
9060 +
9061 +EAPI=2
9062 +
9063 +MODULE_AUTHOR=BRADFITZ
9064 +inherit perl-module
9065 +
9066 +DESCRIPTION="Perl API for memcached"
9067 +HOMEPAGE="http://www.danga.com/memcached/"
9068 +
9069 +SLOT="0"
9070 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
9071 +IUSE=""
9072 +
9073 +DEPEND="dev-perl/string-crc32"
9074 +RDEPEND="${DEPEND}"
9075 +
9076 +SRC_TEST="do"
9077 +mydoc="ChangeLog README TODO"
9078
9079 diff --git a/dev-perl/Cache-Memcached/Cache-Memcached-1.29.ebuild b/dev-perl/Cache-Memcached/Cache-Memcached-1.29.ebuild
9080 new file mode 100644
9081 index 0000000..081edb7
9082 --- /dev/null
9083 +++ b/dev-perl/Cache-Memcached/Cache-Memcached-1.29.ebuild
9084 @@ -0,0 +1,21 @@
9085 +# Copyright 1999-2011 Gentoo Foundation
9086 +# Distributed under the terms of the GNU General Public License v2
9087 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Cache-Memcached/Cache-Memcached-1.29.ebuild,v 1.2 2011/07/30 10:21:00 tove Exp $
9088 +
9089 +EAPI=2
9090 +
9091 +MODULE_AUTHOR=DORMANDO
9092 +inherit perl-module
9093 +
9094 +DESCRIPTION="Perl API for memcached"
9095 +HOMEPAGE="http://www.danga.com/memcached/"
9096 +
9097 +SLOT="0"
9098 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
9099 +IUSE=""
9100 +
9101 +DEPEND="dev-perl/string-crc32"
9102 +RDEPEND="${DEPEND}"
9103 +
9104 +SRC_TEST="do"
9105 +mydoc="ChangeLog README TODO"
9106
9107 diff --git a/dev-perl/Chart/Chart-2.4.2.ebuild b/dev-perl/Chart/Chart-2.4.2.ebuild
9108 new file mode 100644
9109 index 0000000..93a608b
9110 --- /dev/null
9111 +++ b/dev-perl/Chart/Chart-2.4.2.ebuild
9112 @@ -0,0 +1,20 @@
9113 +# Copyright 1999-2012 Gentoo Foundation
9114 +# Distributed under the terms of the GNU General Public License v2
9115 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Chart/Chart-2.4.2.ebuild,v 1.5 2012/03/02 21:31:47 ranger Exp $
9116 +
9117 +EAPI=3
9118 +
9119 +MODULE_AUTHOR=CHARTGRP
9120 +inherit perl-module
9121 +
9122 +DESCRIPTION="The Perl Chart Module"
9123 +
9124 +SLOT="0"
9125 +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
9126 +IUSE="test"
9127 +
9128 +RDEPEND=">=dev-perl/GD-2.0.36"
9129 +DEPEND="${RDEPEND}
9130 + test? ( dev-perl/GD[png] )"
9131 +
9132 +SRC_TEST="do"
9133
9134 diff --git a/dev-perl/Class-Load/Class-Load-0.06.ebuild b/dev-perl/Class-Load/Class-Load-0.06.ebuild
9135 new file mode 100644
9136 index 0000000..f02a71f
9137 --- /dev/null
9138 +++ b/dev-perl/Class-Load/Class-Load-0.06.ebuild
9139 @@ -0,0 +1,23 @@
9140 +# Copyright 1999-2011 Gentoo Foundation
9141 +# Distributed under the terms of the GNU General Public License v2
9142 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Class-Load/Class-Load-0.06.ebuild,v 1.8 2011/07/07 23:04:56 aballier Exp $
9143 +
9144 +EAPI=3
9145 +
9146 +MODULE_AUTHOR=SARTAK
9147 +inherit perl-module
9148 +
9149 +DESCRIPTION="a working (require q{Class::Name}) and more "
9150 +
9151 +SLOT="0"
9152 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
9153 +IUSE="test"
9154 +
9155 +RDEPEND="virtual/perl-Scalar-List-Utils"
9156 +DEPEND="${RDEPEND}
9157 + test? (
9158 + virtual/perl-Test-Simple
9159 + dev-perl/Test-Fatal
9160 + )"
9161 +
9162 +SRC_TEST="do"
9163
9164 diff --git a/dev-perl/Class-MethodMaker/Class-MethodMaker-2.15.ebuild b/dev-perl/Class-MethodMaker/Class-MethodMaker-2.15.ebuild
9165 new file mode 100644
9166 index 0000000..6c13d65
9167 --- /dev/null
9168 +++ b/dev-perl/Class-MethodMaker/Class-MethodMaker-2.15.ebuild
9169 @@ -0,0 +1,18 @@
9170 +# Copyright 1999-2010 Gentoo Foundation
9171 +# Distributed under the terms of the GNU General Public License v2
9172 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Class-MethodMaker/Class-MethodMaker-2.15.ebuild,v 1.11 2010/01/09 17:32:44 grobian Exp $
9173 +
9174 +MODULE_AUTHOR=SCHWIGON
9175 +MODULE_SECTION=class-methodmaker
9176 +inherit perl-module eutils
9177 +
9178 +DESCRIPTION="Perl module for Class::MethodMaker"
9179 +
9180 +LICENSE="|| ( Artistic GPL-2 )"
9181 +SLOT="0"
9182 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
9183 +IUSE=""
9184 +
9185 +DEPEND="dev-lang/perl"
9186 +
9187 +SRC_TEST="do"
9188
9189 diff --git a/dev-perl/Class-Singleton/Class-Singleton-1.03.ebuild b/dev-perl/Class-Singleton/Class-Singleton-1.03.ebuild
9190 new file mode 100644
9191 index 0000000..5b87cfb
9192 --- /dev/null
9193 +++ b/dev-perl/Class-Singleton/Class-Singleton-1.03.ebuild
9194 @@ -0,0 +1,15 @@
9195 +# Copyright 1999-2010 Gentoo Foundation
9196 +# Distributed under the terms of the GNU General Public License v2
9197 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Class-Singleton/Class-Singleton-1.03.ebuild,v 1.18 2010/12/03 01:24:12 xmw Exp $
9198 +
9199 +inherit perl-module
9200 +
9201 +DESCRIPTION="Implementation of a Singleton class"
9202 +HOMEPAGE="http://search.cpan.org/~abw/"
9203 +SRC_URI="mirror://cpan/authors/id/A/AB/ABW/${P}.tar.gz"
9204 +
9205 +LICENSE="GPL-2"
9206 +SLOT="0"
9207 +KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd"
9208 +IUSE=""
9209 +DEPEND="dev-lang/perl"
9210
9211 diff --git a/dev-perl/Convert-UUlib/Convert-UUlib-1.340.ebuild b/dev-perl/Convert-UUlib/Convert-UUlib-1.340.ebuild
9212 new file mode 100644
9213 index 0000000..d8d76a9
9214 --- /dev/null
9215 +++ b/dev-perl/Convert-UUlib/Convert-UUlib-1.340.ebuild
9216 @@ -0,0 +1,18 @@
9217 +# Copyright 1999-2011 Gentoo Foundation
9218 +# Distributed under the terms of the GNU General Public License v2
9219 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Convert-UUlib/Convert-UUlib-1.340.ebuild,v 1.6 2011/01/24 03:24:59 jer Exp $
9220 +
9221 +EAPI=3
9222 +
9223 +MODULE_AUTHOR=MLEHMANN
9224 +MODULE_VERSION=1.34
9225 +inherit perl-module
9226 +
9227 +DESCRIPTION="A Perl interface to the uulib library"
9228 +
9229 +LICENSE="Artistic GPL-2" # needs both
9230 +SLOT="0"
9231 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
9232 +IUSE=""
9233 +
9234 +SRC_TEST="do"
9235
9236 diff --git a/dev-perl/Crypt-Cracklib/files/1.4-disable-reversed-test.patch b/dev-perl/Crypt-Cracklib/files/1.4-disable-reversed-test.patch
9237 new file mode 100644
9238 index 0000000..f8cde38
9239 --- /dev/null
9240 +++ b/dev-perl/Crypt-Cracklib/files/1.4-disable-reversed-test.patch
9241 @@ -0,0 +1,17 @@
9242 +--- Crypt-Cracklib-1.4/t/01use.t
9243 ++++ Crypt-Cracklib-1.4/t/01use.t
9244 +@@ -1,4 +1,4 @@
9245 +-use Test::More tests => 19;
9246 ++use Test::More tests => 18;
9247 +
9248 + BEGIN { use_ok( 'Crypt::Cracklib' ); }
9249 +
9250 +@@ -28,7 +28,7 @@
9251 + like(fascist_check('dictionary'), qr/dictionary/, "dictionary");
9252 +
9253 + # it is based on a (reversed) dictionary word
9254 +-like(fascist_check('1elppa'), qr/reversed/, "reversed dictionary");
9255 ++#like(fascist_check('1elppa'), qr/reversed/, "reversed dictionary");
9256 +
9257 + # Ok
9258 + ok(fascist_check('Sil1ntBob') eq 'ok');
9259
9260 diff --git a/dev-perl/Crypt-RIPEMD160/Crypt-RIPEMD160-0.04.ebuild b/dev-perl/Crypt-RIPEMD160/Crypt-RIPEMD160-0.04.ebuild
9261 new file mode 100644
9262 index 0000000..63e37bd
9263 --- /dev/null
9264 +++ b/dev-perl/Crypt-RIPEMD160/Crypt-RIPEMD160-0.04.ebuild
9265 @@ -0,0 +1,17 @@
9266 +# Copyright 1999-2012 Gentoo Foundation
9267 +# Distributed under the terms of the GNU General Public License v2
9268 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Crypt-RIPEMD160/Crypt-RIPEMD160-0.04.ebuild,v 1.15 2012/06/17 14:25:34 armin76 Exp $
9269 +
9270 +inherit perl-module
9271 +
9272 +DESCRIPTION="Crypt::RIPEMD160 module for perl"
9273 +HOMEPAGE="http://search.cpan.org/~chgeuer/"
9274 +SRC_URI="mirror://cpan/authors/id/C/CH/CHGEUER/${P}.tar.gz"
9275 +
9276 +SLOT="0"
9277 +LICENSE="|| ( Artistic GPL-2 )"
9278 +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
9279 +IUSE=""
9280 +
9281 +export OPTIMIZE="$CFLAGS"
9282 +DEPEND="dev-lang/perl"
9283
9284 diff --git a/dev-perl/Crypt-RIPEMD160/files/0.50.0-header.patch b/dev-perl/Crypt-RIPEMD160/files/0.50.0-header.patch
9285 new file mode 100644
9286 index 0000000..e2abeda
9287 --- /dev/null
9288 +++ b/dev-perl/Crypt-RIPEMD160/files/0.50.0-header.patch
9289 @@ -0,0 +1,8 @@
9290 +--- Crypt-RIPEMD160-0.05/wrap_160.c
9291 ++++ Crypt-RIPEMD160-0.05/wrap_160.c
9292 +@@ -1,4 +1,5 @@
9293 + #include <string.h>
9294 ++#include <stdio.h>
9295 +
9296 + #include "rmd160.h"
9297 + #include "wrap_160.h"
9298
9299 diff --git a/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.57.ebuild b/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.57.ebuild
9300 new file mode 100644
9301 index 0000000..c80723b
9302 --- /dev/null
9303 +++ b/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.57.ebuild
9304 @@ -0,0 +1,27 @@
9305 +# Copyright 1999-2011 Gentoo Foundation
9306 +# Distributed under the terms of the GNU General Public License v2
9307 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.57.ebuild,v 1.13 2011/07/30 10:21:58 tove Exp $
9308 +
9309 +MODULE_AUTHOR=DLAND
9310 +inherit perl-module
9311 +
9312 +DESCRIPTION="Crypt::SSLeay module for perl"
9313 +
9314 +LICENSE="|| ( Artistic GPL-2 )"
9315 +SLOT="0"
9316 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
9317 +IUSE=""
9318 +
9319 +# Disabling tests for now. Opening a port always leads to mixed results for
9320 +# folks - bug 59554
9321 +# nb. Re-enabled tests, seem to be better written now, keeping an eye on bugs
9322 +# for this though.
9323 +SRC_TEST="do"
9324 +
9325 +DEPEND=">=dev-lang/perl-5
9326 + >=dev-libs/openssl-0.9.7c"
9327 +# PDEPEND: circular dependencies bug #144761
9328 +PDEPEND="dev-perl/libwww-perl"
9329 +
9330 +export OPTIMIZE="${CFLAGS}"
9331 +myconf="--lib=${EPREFIX}/usr"
9332
9333 diff --git a/dev-perl/Curses/files/Curses-1.08-p5.8-fixes.diff b/dev-perl/Curses/files/Curses-1.08-p5.8-fixes.diff
9334 new file mode 100644
9335 index 0000000..f661f80
9336 --- /dev/null
9337 +++ b/dev-perl/Curses/files/Curses-1.08-p5.8-fixes.diff
9338 @@ -0,0 +1,32 @@
9339 +diff -Naurp CursesFun.c.old CursesFun.c
9340 +--- CursesFun.c.old 2005-03-05 09:15:20.714006864 -0500
9341 ++++ CursesFun.c 2005-03-05 09:16:14.501829872 -0500
9342 +@@ -1276,8 +1276,8 @@ XS(XS_Curses_newterm)
9343 + c_exactargs("newterm", items, 3);
9344 + {
9345 + char * type = ST(0) != &PL_sv_undef ? (char *)SvPV(ST(0),PL_na) : NULL;
9346 +- FILE * outfd = IoIFP(sv_2io(ST(1)));
9347 +- FILE * infd = IoIFP(sv_2io(ST(2)));
9348 ++ FILE * outfd = PerlIO_findFILE(IoIFP(sv_2io(ST(1))));
9349 ++ FILE * infd = PerlIO_findFILE(IoIFP(sv_2io(ST(2))));
9350 + SCREEN * ret = newterm(type, outfd, infd);
9351 +
9352 + ST(0) = sv_newmortal();
9353 +@@ -3450,7 +3450,7 @@ XS(XS_Curses_putwin)
9354 + c_exactargs("putwin", items, 2);
9355 + {
9356 + WINDOW *win = c_sv2window(ST(0), 0);
9357 +- FILE * filep = IoIFP(sv_2io(ST(1)));
9358 ++ FILE * filep = PerlIO_findFILE(IoIFP(sv_2io(ST(1))));
9359 + int ret = putwin(win, filep);
9360 +
9361 + ST(0) = sv_newmortal();
9362 +@@ -3469,7 +3469,7 @@ XS(XS_Curses_getwin)
9363 + #ifdef C_GETWIN
9364 + c_exactargs("getwin", items, 1);
9365 + {
9366 +- FILE * filep = IoIFP(sv_2io(ST(0)));
9367 ++ FILE * filep = PerlIO_findFILE(IoIFP(sv_2io(ST(0))));
9368 + WINDOW * ret = getwin(filep);
9369 +
9370 + ST(0) = sv_newmortal();
9371
9372 diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-0.31-r1.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-0.31-r1.ebuild
9373 new file mode 100644
9374 index 0000000..b214a6c
9375 --- /dev/null
9376 +++ b/dev-perl/DBD-SQLite/DBD-SQLite-0.31-r1.ebuild
9377 @@ -0,0 +1,17 @@
9378 +# Copyright 1999-2011 Gentoo Foundation
9379 +# Distributed under the terms of the GNU General Public License v2
9380 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-0.31-r1.ebuild,v 1.7 2011/09/04 11:32:35 tove Exp $
9381 +
9382 +MODULE_AUTHOR=MSERGEANT
9383 +inherit perl-module
9384 +
9385 +DESCRIPTION="Self Contained RDBMS in a DBI Driver"
9386 +
9387 +LICENSE="|| ( Artistic GPL-2 )"
9388 +SLOT="0"
9389 +KEYWORDS="~ppc sparc x86"
9390 +IUSE=""
9391 +SRC_TEST="do"
9392 +
9393 +DEPEND="dev-perl/DBI
9394 + dev-lang/perl"
9395
9396 diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-1.31.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-1.31.ebuild
9397 new file mode 100644
9398 index 0000000..38ae190
9399 --- /dev/null
9400 +++ b/dev-perl/DBD-SQLite/DBD-SQLite-1.31.ebuild
9401 @@ -0,0 +1,34 @@
9402 +# Copyright 1999-2011 Gentoo Foundation
9403 +# Distributed under the terms of the GNU General Public License v2
9404 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.31.ebuild,v 1.8 2011/07/30 10:23:21 tove Exp $
9405 +
9406 +EAPI=3
9407 +
9408 +MODULE_AUTHOR=ADAMK
9409 +inherit perl-module
9410 +
9411 +DESCRIPTION="Self Contained RDBMS in a DBI Driver"
9412 +
9413 +SLOT="0"
9414 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
9415 +IUSE="test"
9416 +
9417 +RDEPEND=">=dev-perl/DBI-1.57
9418 + >=dev-db/sqlite-3.6.22[extensions]
9419 + !<dev-perl/DBD-SQLite-1"
9420 +DEPEND="${RDEPEND}
9421 + test? ( >=virtual/perl-Test-Simple-0.86 )"
9422 +
9423 +SRC_TEST="do"
9424 +
9425 +src_prepare() {
9426 + perl-module_src_prepare
9427 + sed -i 's/^if ( 0 )/if ( 1 )/' "${S}"/Makefile.PL || die
9428 + # remove bundled sqlite (rt.cpan#61361)
9429 + for i in sqlite3{.c,.h,ext.h} ; do
9430 + rm ${i} || die
9431 + sed -i -e "/^${i}\$/d" MANIFEST || die
9432 + done
9433 +
9434 + myconf="SQLITE_LOCATION=${EPREFIX}/usr"
9435 +}
9436
9437 diff --git a/dev-perl/DBD-mysql/DBD-mysql-4.01.7.ebuild b/dev-perl/DBD-mysql/DBD-mysql-4.01.7.ebuild
9438 new file mode 100644
9439 index 0000000..97f8d8c
9440 --- /dev/null
9441 +++ b/dev-perl/DBD-mysql/DBD-mysql-4.01.7.ebuild
9442 @@ -0,0 +1,22 @@
9443 +# Copyright 1999-2011 Gentoo Foundation
9444 +# Distributed under the terms of the GNU General Public License v2
9445 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.01.7.ebuild,v 1.9 2011/07/30 10:24:20 tove Exp $
9446 +
9447 +inherit versionator
9448 +
9449 +MODULE_AUTHOR="CAPTTOFU"
9450 +MY_P=${PN}-$(delete_version_separator 2 )
9451 +S=${WORKDIR}/${MY_P}
9452 +inherit eutils perl-module
9453 +
9454 +DESCRIPTION="The Perl DBD:mysql Module"
9455 +
9456 +SLOT="0"
9457 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
9458 +IUSE=""
9459 +
9460 +RDEPEND="dev-perl/DBI
9461 + virtual/mysql"
9462 +DEPEND="${RDEPEND}"
9463 +
9464 +mydoc="ToDo"
9465
9466 diff --git a/dev-perl/DBI/DBI-1.615.ebuild b/dev-perl/DBI/DBI-1.615.ebuild
9467 new file mode 100644
9468 index 0000000..c7cd716
9469 --- /dev/null
9470 +++ b/dev-perl/DBI/DBI-1.615.ebuild
9471 @@ -0,0 +1,24 @@
9472 +# Copyright 1999-2011 Gentoo Foundation
9473 +# Distributed under the terms of the GNU General Public License v2
9474 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBI/DBI-1.615.ebuild,v 1.9 2011/07/30 10:25:15 tove Exp $
9475 +
9476 +EAPI=3
9477 +
9478 +MODULE_AUTHOR=TIMB
9479 +inherit perl-module eutils
9480 +
9481 +DESCRIPTION="The Perl DBI Module"
9482 +
9483 +SLOT="0"
9484 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
9485 +IUSE="test"
9486 +
9487 +RDEPEND=">=dev-perl/PlRPC-0.2
9488 + >=virtual/perl-Sys-Syslog-0.17
9489 + virtual/perl-File-Spec"
9490 +DEPEND="${RDEPEND}
9491 + test? ( >=virtual/perl-Test-Simple-0.90 )"
9492 +
9493 +SRC_TEST="do"
9494 +mydoc="ToDo"
9495 +MAKEOPTS="${MAKEOPTS} -j1"
9496
9497 diff --git a/dev-perl/Daemon-Generic/Daemon-Generic-0.71.ebuild b/dev-perl/Daemon-Generic/Daemon-Generic-0.71.ebuild
9498 new file mode 100644
9499 index 0000000..a6d4904
9500 --- /dev/null
9501 +++ b/dev-perl/Daemon-Generic/Daemon-Generic-0.71.ebuild
9502 @@ -0,0 +1,22 @@
9503 +# Copyright 1999-2011 Gentoo Foundation
9504 +# Distributed under the terms of the GNU General Public License v2
9505 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Daemon-Generic/Daemon-Generic-0.71.ebuild,v 1.6 2011/01/27 19:12:51 xarthisius Exp $
9506 +
9507 +EAPI=3
9508 +
9509 +MODULE_AUTHOR="MUIR"
9510 +MODULE_SECTION="modules"
9511 +
9512 +inherit perl-module
9513 +
9514 +DESCRIPTION="Framework to provide start/stop/reload for a daemon"
9515 +
9516 +SLOT="0"
9517 +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
9518 +IUSE=""
9519 +
9520 +DEPEND="dev-perl/File-Flock
9521 + dev-perl/File-Slurp"
9522 +RDEPEND="${DEPEND}"
9523 +
9524 +SRC_TEST="do"
9525
9526 diff --git a/dev-perl/Data-ShowTable/files/3.3.patch b/dev-perl/Data-ShowTable/files/3.3.patch
9527 new file mode 100644
9528 index 0000000..4a9e2d4
9529 --- /dev/null
9530 +++ b/dev-perl/Data-ShowTable/files/3.3.patch
9531 @@ -0,0 +1,39 @@
9532 +--- showtable
9533 ++++ showtable
9534 +@@ -1,4 +1,4 @@
9535 +-#!/usr/bin/perl5
9536 ++#!/usr/bin/perl
9537 + # showtable - read data and show it
9538 + #
9539 + # Copyright (C) 1996,1997 Alan K. Stebbens <aks@×××.com>
9540 +--- ShowTable.pm
9541 ++++ ShowTable.pm
9542 +@@ -721,7 +721,7 @@
9543 +
9544 + S< >B<ShowHTMLTable> I<\@titles>, I<\@types>, I<\@widths>, I<\&row_sub>
9545 + [, I<\&fmt_sub> [, I<$max_width> [, I<\%URL_Keys> [, I<$no_escape>
9546 +-[, I<\@title_formats [, I<\@data_formats [, I<$table_attrs> ] ] ] ] ] ] ];
9547 ++[, I<\@title_formats> [, I<\@data_formats> [, I<$table_attrs> ] ] ] ] ] ] ];
9548 +
9549 + The B<ShowHTMLTable> displays one or more rows of columns of data using
9550 + the HTML C<\<TABLE\>> feature. In addition to the usual parameter arguments
9551 +--- t/Test-Setup.pl
9552 ++++ t/Test-Setup.pl
9553 +@@ -19,7 +19,7 @@
9554 +
9555 + sub talk { print STDERR @_; }
9556 +
9557 +-sub start_tests {
9558 ++sub start_tests($) {
9559 + my $count = shift; # how many tests?
9560 + mkdir("$testdir/out",0755) unless -d "$testdir/out";
9561 + print "1..$count\n"; # tell harness how many tests
9562 +@@ -50,7 +50,7 @@
9563 +
9564 + # run_test $num, \&sub;
9565 +
9566 +-sub run_test {
9567 ++sub run_test($&) {
9568 + my $num = shift;
9569 + my $sub = shift;
9570 +
9571
9572 diff --git a/dev-perl/Date-Pcalc/Date-Pcalc-1.2.ebuild b/dev-perl/Date-Pcalc/Date-Pcalc-1.2.ebuild
9573 new file mode 100644
9574 index 0000000..8dbf673
9575 --- /dev/null
9576 +++ b/dev-perl/Date-Pcalc/Date-Pcalc-1.2.ebuild
9577 @@ -0,0 +1,16 @@
9578 +# Copyright 1999-2007 Gentoo Foundation
9579 +# Distributed under the terms of the GNU General Public License v2
9580 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Date-Pcalc/Date-Pcalc-1.2.ebuild,v 1.14 2007/07/10 23:33:28 mr_bones_ Exp $
9581 +
9582 +inherit perl-module
9583 +
9584 +DESCRIPTION="Gregorian calendar date calculations"
9585 +SRC_URI="mirror://cpan/authors/id/S/ST/STBEY/${P}.tar.gz"
9586 +HOMEPAGE="http://search.cpan.org/~stbey/"
9587 +
9588 +SLOT="0"
9589 +LICENSE="|| ( Artistic GPL-2 )"
9590 +KEYWORDS="amd64 ia64 ppc ~ppc64 x86"
9591 +IUSE=""
9592 +
9593 +DEPEND="dev-lang/perl"
9594
9595 diff --git a/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch b/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch
9596 new file mode 100644
9597 index 0000000..e475ea2
9598 --- /dev/null
9599 +++ b/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch
9600 @@ -0,0 +1,16 @@
9601 +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=76442
9602 +Gentoo-Bug: https://bugs.gentoo.org/420177
9603 +--- a/src/C_XS/ToolBox.h
9604 ++++ b/src/C_XS/ToolBox.h
9605 +@@ -93,7 +93,10 @@
9606 + #elif PERL_DARWIN
9607 + #define boolean bool
9608 + #else
9609 +- typedef enum { false = FALSE, true = TRUE } boolean;
9610 ++ typedef int boolean;
9611 ++ #ifndef I_STDBOOL
9612 ++ enum { false, true };
9613 ++ #endif
9614 + #endif
9615 + #endif
9616 +
9617
9618 diff --git a/dev-perl/DateManip/DateManip-5.56.ebuild b/dev-perl/DateManip/DateManip-5.56.ebuild
9619 new file mode 100644
9620 index 0000000..c63b861
9621 --- /dev/null
9622 +++ b/dev-perl/DateManip/DateManip-5.56.ebuild
9623 @@ -0,0 +1,26 @@
9624 +# Copyright 1999-2011 Gentoo Foundation
9625 +# Distributed under the terms of the GNU General Public License v2
9626 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DateManip/DateManip-5.56.ebuild,v 1.8 2011/07/30 10:26:09 tove Exp $
9627 +
9628 +EAPI=2
9629 +
9630 +MY_PN=Date-Manip
9631 +MY_P=${MY_PN}-${PV}
9632 +S=${WORKDIR}/${MY_P}
9633 +MODULE_AUTHOR=SBECK
9634 +inherit perl-module
9635 +
9636 +DESCRIPTION="Perl date manipulation routines"
9637 +
9638 +SLOT="0"
9639 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux"
9640 +IUSE="test"
9641 +
9642 +RDEPEND=""
9643 +DEPEND="${RDEPEND}
9644 + virtual/perl-Module-Build
9645 + test? ( dev-perl/Test-Pod )"
9646 +# dev-perl/Test-Pod-Coverage )"
9647 +
9648 +SRC_TEST="do"
9649 +mydoc="HISTORY"
9650
9651 diff --git a/dev-perl/DateTime-Format-Strptime/DateTime-Format-Strptime-1.500.0.ebuild b/dev-perl/DateTime-Format-Strptime/DateTime-Format-Strptime-1.500.0.ebuild
9652 new file mode 100644
9653 index 0000000..d7ae4f3
9654 --- /dev/null
9655 +++ b/dev-perl/DateTime-Format-Strptime/DateTime-Format-Strptime-1.500.0.ebuild
9656 @@ -0,0 +1,25 @@
9657 +# Copyright 1999-2011 Gentoo Foundation
9658 +# Distributed under the terms of the GNU General Public License v2
9659 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DateTime-Format-Strptime/DateTime-Format-Strptime-1.500.0.ebuild,v 1.4 2011/09/24 13:26:39 grobian Exp $
9660 +
9661 +EAPI=3
9662 +
9663 +MODULE_AUTHOR=DROLSKY
9664 +MODULE_VERSION=1.5000
9665 +inherit perl-module
9666 +
9667 +DESCRIPTION="Parse and Format DateTimes using Strptime"
9668 +
9669 +LICENSE="Artistic-2"
9670 +SLOT="0"
9671 +KEYWORDS="amd64 x86 ~x64-macos ~x86-solaris"
9672 +IUSE=""
9673 +
9674 +RDEPEND="dev-perl/DateTime
9675 + >=dev-perl/DateTime-Locale-0.45
9676 + >=dev-perl/DateTime-TimeZone-0.79
9677 + >=dev-perl/Params-Validate-0.91"
9678 +DEPEND="${RDEPEND}
9679 + >=virtual/perl-ExtUtils-MakeMaker-6.31"
9680 +
9681 +SRC_TEST=do
9682
9683 diff --git a/dev-perl/DateTime-TimeZone/DateTime-TimeZone-1.22.ebuild b/dev-perl/DateTime-TimeZone/DateTime-TimeZone-1.22.ebuild
9684 new file mode 100644
9685 index 0000000..fc2edfc
9686 --- /dev/null
9687 +++ b/dev-perl/DateTime-TimeZone/DateTime-TimeZone-1.22.ebuild
9688 @@ -0,0 +1,25 @@
9689 +# Copyright 1999-2011 Gentoo Foundation
9690 +# Distributed under the terms of the GNU General Public License v2
9691 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DateTime-TimeZone/DateTime-TimeZone-1.22.ebuild,v 1.9 2011/01/13 16:55:36 ranger Exp $
9692 +
9693 +EAPI=3
9694 +
9695 +inherit versionator
9696 +MY_P=${PN}-$(delete_version_separator 2)
9697 +MODULE_AUTHOR=DROLSKY
9698 +S=${WORKDIR}/${MY_P}
9699 +inherit perl-module
9700 +
9701 +DESCRIPTION="Time zone object base class and factory"
9702 +
9703 +SLOT="0"
9704 +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
9705 +IUSE="test"
9706 +
9707 +RDEPEND=">=dev-perl/Params-Validate-0.72
9708 + >=dev-perl/Class-Singleton-1.03"
9709 +DEPEND="${RDEPEND}
9710 + >=virtual/perl-Module-Build-0.34
9711 + test? ( >=virtual/perl-Test-Simple-0.92 )"
9712 +
9713 +SRC_TEST="do"
9714
9715 diff --git a/dev-perl/DateTime/DateTime-0.55.ebuild b/dev-perl/DateTime/DateTime-0.55.ebuild
9716 new file mode 100644
9717 index 0000000..7783c43
9718 --- /dev/null
9719 +++ b/dev-perl/DateTime/DateTime-0.55.ebuild
9720 @@ -0,0 +1,27 @@
9721 +# Copyright 1999-2011 Gentoo Foundation
9722 +# Distributed under the terms of the GNU General Public License v2
9723 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DateTime/DateTime-0.55.ebuild,v 1.8 2011/01/08 18:54:10 jer Exp $
9724 +
9725 +EAPI=2
9726 +
9727 +#inherit versionator
9728 +#MY_P=${PN}-$(delete_version_separator 2)
9729 +#S=${WORKDIR}/${MY_P}
9730 +MODULE_AUTHOR=DROLSKY
9731 +inherit perl-module
9732 +
9733 +DESCRIPTION="A date and time object"
9734 +
9735 +SLOT="0"
9736 +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
9737 +IUSE="test"
9738 +
9739 +RDEPEND=">=dev-perl/Params-Validate-0.76
9740 + >=virtual/perl-Time-Local-1.04
9741 + >=dev-perl/DateTime-TimeZone-1.09
9742 + >=dev-perl/DateTime-Locale-0.44"
9743 +DEPEND="${RDEPEND}
9744 + virtual/perl-Module-Build
9745 + test? ( dev-perl/Test-Exception )"
9746 +
9747 +SRC_TEST="do"
9748
9749 diff --git a/dev-perl/Devel-Profiler/files/perl510.patch b/dev-perl/Devel-Profiler/files/perl510.patch
9750 new file mode 100644
9751 index 0000000..78ecc4d
9752 --- /dev/null
9753 +++ b/dev-perl/Devel-Profiler/files/perl510.patch
9754 @@ -0,0 +1,39 @@
9755 +http://cvs.fedoraproject.org/viewvc/devel/perl-Devel-Profiler/perl-Devel-Profiler-perl510.patch
9756 +--- Devel-Profiler-0.04/lib/Devel/Profiler.pm
9757 ++++ Devel-Profiler-0.04/lib/Devel/Profiler.pm
9758 +@@ -151,9 +151,14 @@ sub scan {
9759 + }
9760 +
9761 + # found a code ref? then instrument it
9762 +- instrument($pkg, $sym, $code)
9763 +- if defined($code = *{$glob}{CODE}) and ref $code eq 'CODE';
9764 +-
9765 ++ if (ref \$glob ne 'GLOB') {
9766 ++ # Something stranger in the typeglob, which will expand to (at
9767 ++ # least) a prototype if we take a reference to it.
9768 ++ instrument($pkg, $sym, \&{"$pkg$sym"});
9769 ++ } else {
9770 ++ instrument($pkg, $sym, $code)
9771 ++ if defined($code = *{$glob}{CODE}) and ref $code eq 'CODE';
9772 ++ }
9773 + }
9774 + }
9775 + }
9776 +--- Devel-Profiler-0.04/t/09fcntl.t
9777 ++++ Devel-Profiler-0.04/t/09fcntl.t
9778 +@@ -8,7 +8,14 @@ foo();
9779 + END
9780 +
9781 + # make sure the call tree looks right
9782 +-check_tree(<<END, "checking tree");
9783 ++if ($] > 5.009) {
9784 ++ # Fcntl's constants are now directly defined, so constant() isn't called.
9785 ++ check_tree(<<END, "checking tree");
9786 ++main::foo
9787 ++END
9788 ++} else {
9789 ++ check_tree(<<END, "checking tree");
9790 + main::foo
9791 + Fcntl::constant
9792 + END
9793 ++}
9794
9795 diff --git a/dev-perl/Devel-Symdump/Devel-Symdump-2.07.ebuild b/dev-perl/Devel-Symdump/Devel-Symdump-2.07.ebuild
9796 new file mode 100644
9797 index 0000000..cf296e0
9798 --- /dev/null
9799 +++ b/dev-perl/Devel-Symdump/Devel-Symdump-2.07.ebuild
9800 @@ -0,0 +1,20 @@
9801 +# Copyright 1999-2008 Gentoo Foundation
9802 +# Distributed under the terms of the GNU General Public License v2
9803 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Devel-Symdump/Devel-Symdump-2.07.ebuild,v 1.11 2008/04/27 20:09:06 aballier Exp $
9804 +
9805 +inherit versionator perl-module
9806 +
9807 +MY_P="${PN}-$(delete_version_separator 2)"
9808 +S=${WORKDIR}/${MY_P}
9809 +
9810 +DESCRIPTION="dump symbol names or the symbol table"
9811 +HOMEPAGE="http://search.cpan.org/~andk/"
9812 +SRC_URI="mirror://cpan/authors/id/A/AN/ANDK/${MY_P}.tar.gz"
9813 +
9814 +SRC_TEST="do"
9815 +LICENSE="|| ( Artistic GPL-2 )"
9816 +SLOT="0"
9817 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
9818 +IUSE=""
9819 +
9820 +DEPEND="dev-lang/perl"
9821
9822 diff --git a/dev-perl/Device-SerialPort/Device-SerialPort-1.002.001.ebuild b/dev-perl/Device-SerialPort/Device-SerialPort-1.002.001.ebuild
9823 new file mode 100644
9824 index 0000000..bad3b0e
9825 --- /dev/null
9826 +++ b/dev-perl/Device-SerialPort/Device-SerialPort-1.002.001.ebuild
9827 @@ -0,0 +1,25 @@
9828 +# Copyright 1999-2009 Gentoo Foundation
9829 +# Distributed under the terms of the GNU General Public License v2
9830 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Device-SerialPort/Device-SerialPort-1.002.001.ebuild,v 1.7 2009/07/02 19:32:29 jer Exp $
9831 +
9832 +inherit perl-module versionator
9833 +
9834 +MY_PV="$(delete_version_separator 2)"
9835 +MY_P="${PN}-${MY_PV}"
9836 +S=${WORKDIR}/${MY_P}
9837 +
9838 +DESCRIPTION="A Serial port Perl Module"
9839 +HOMEPAGE="http://sendpage.org/device-serialport/"
9840 +SRC_URI="mirror://cpan/authors/id/C/CO/COOK/${MY_P}.tar.gz"
9841 +
9842 +LICENSE="Artistic"
9843 +SLOT="0"
9844 +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc sparc x86"
9845 +IUSE=""
9846 +
9847 +#From the module:
9848 +# If you run 'make test', you must make sure that nothing is plugged
9849 +# into '/dev/ttyS1'!
9850 +# Doesn't sound wise to enable SRC_TEST="do" - mcummings
9851 +
9852 +DEPEND="dev-lang/perl"
9853
9854 diff --git a/dev-perl/Email-Address/Email-Address-1.88.9.ebuild b/dev-perl/Email-Address/Email-Address-1.88.9.ebuild
9855 new file mode 100644
9856 index 0000000..c252ee1
9857 --- /dev/null
9858 +++ b/dev-perl/Email-Address/Email-Address-1.88.9.ebuild
9859 @@ -0,0 +1,24 @@
9860 +# Copyright 1999-2010 Gentoo Foundation
9861 +# Distributed under the terms of the GNU General Public License v2
9862 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Email-Address/Email-Address-1.88.9.ebuild,v 1.8 2010/03/18 19:03:58 darkside Exp $
9863 +
9864 +inherit versionator
9865 +MODULE_AUTHOR=RJBS
9866 +MY_P=${PN}-$(delete_version_separator 2)
9867 +S=${WORKDIR}/${MY_P}
9868 +inherit perl-module
9869 +
9870 +DESCRIPTION="Email::Address - RFC 2822 Address Parsing and Creation"
9871 +
9872 +LICENSE="|| ( Artistic GPL-2 )"
9873 +SLOT="0"
9874 +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
9875 +IUSE="test"
9876 +
9877 +RDEPEND="dev-lang/perl"
9878 +DEPEND="${RDEPEND}
9879 + test? ( virtual/perl-Test-Simple
9880 + >=dev-perl/Test-Pod-1.14
9881 + >=dev-perl/Test-Pod-Coverage-1.08 )"
9882 +
9883 +SRC_TEST="do"
9884
9885 diff --git a/dev-perl/Email-Sender/Email-Sender-0.110.0.ebuild b/dev-perl/Email-Sender/Email-Sender-0.110.0.ebuild
9886 new file mode 100644
9887 index 0000000..c5af2a9
9888 --- /dev/null
9889 +++ b/dev-perl/Email-Sender/Email-Sender-0.110.0.ebuild
9890 @@ -0,0 +1,45 @@
9891 +# Copyright 1999-2011 Gentoo Foundation
9892 +# Distributed under the terms of the GNU General Public License v2
9893 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Email-Sender/Email-Sender-0.110.0.ebuild,v 1.3 2011/12/18 19:59:00 phajdan.jr Exp $
9894 +
9895 +EAPI=3
9896 +
9897 +MODULE_AUTHOR=RJBS
9898 +MODULE_VERSION=0.110000
9899 +inherit perl-module
9900 +
9901 +DESCRIPTION="A library for sending email"
9902 +
9903 +SLOT="0"
9904 +KEYWORDS="amd64 x86"
9905 +IUSE="test"
9906 +
9907 +RDEPEND="virtual/perl-Scalar-List-Utils
9908 + virtual/perl-File-Spec
9909 + >=dev-perl/Email-Abstract-3
9910 + dev-perl/Email-Simple
9911 + dev-perl/List-MoreUtils
9912 + dev-perl/Net-SMTP-SSL
9913 + dev-perl/Sub-Exporter
9914 + dev-perl/Throwable
9915 + dev-perl/Try-Tiny
9916 + virtual/perl-libnet
9917 + dev-perl/Moose
9918 + dev-perl/Email-Address"
9919 +DEPEND="${RDEPEND}
9920 + >=virtual/perl-ExtUtils-MakeMaker-6.31
9921 + test? (
9922 + >=dev-perl/Capture-Tiny-0.08
9923 + )"
9924 +# dev-perl/JSON
9925 +# dev-perl/Test-MinimumVersion
9926 +# dev-perl/Sub-Override
9927 +# dev-perl/Test-MockObject )"
9928 +
9929 +SRC_TEST=do
9930 +
9931 +src_test() {
9932 + # https://rt.cpan.org/Public/Bug/Display.html?id=54642
9933 + mv "${S}"/t/smtp-via-mock.t{,.disable} || die
9934 + perl-module_src_test
9935 +}
9936
9937 diff --git a/dev-perl/Email-Valid/Email-Valid-0.184.ebuild b/dev-perl/Email-Valid/Email-Valid-0.184.ebuild
9938 new file mode 100644
9939 index 0000000..4c3f6b4
9940 --- /dev/null
9941 +++ b/dev-perl/Email-Valid/Email-Valid-0.184.ebuild
9942 @@ -0,0 +1,23 @@
9943 +# Copyright 1999-2012 Gentoo Foundation
9944 +# Distributed under the terms of the GNU General Public License v2
9945 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Email-Valid/Email-Valid-0.184.ebuild,v 1.8 2012/06/17 14:11:35 armin76 Exp $
9946 +
9947 +EAPI=3
9948 +
9949 +MODULE_AUTHOR=RJBS
9950 +inherit perl-module
9951 +
9952 +DESCRIPTION="Check validity of Internet email addresses."
9953 +
9954 +SLOT="0"
9955 +KEYWORDS="amd64 hppa ~mips ppc ppc64 x86"
9956 +IUSE="test"
9957 +
9958 +RDEPEND="dev-perl/MailTools
9959 + dev-perl/Net-DNS"
9960 +DEPEND="test? ( ${RDEPEND}
9961 + dev-perl/Test-Pod
9962 + dev-perl/Test-Pod-Coverage )"
9963 +
9964 +SRC_TEST="do"
9965 +PATCHES=( "${FILESDIR}/0.181-disable-online-test.patch" )
9966
9967 diff --git a/dev-perl/Email-Valid/files/0.181-disable-online-test.patch b/dev-perl/Email-Valid/files/0.181-disable-online-test.patch
9968 new file mode 100644
9969 index 0000000..ec716ea
9970 --- /dev/null
9971 +++ b/dev-perl/Email-Valid/files/0.181-disable-online-test.patch
9972 @@ -0,0 +1,11 @@
9973 +diff -ur Email-Valid-0.181-orig/t/valid.t Email-Valid-0.181/t/valid.t
9974 +--- Email-Valid-0.181-orig/t/valid.t 2008-11-21 22:36:54.000000000 +0100
9975 ++++ Email-Valid-0.181/t/valid.t 2009-06-08 08:43:31.000000000 +0200
9976 +@@ -85,6 +85,5 @@
9977 + );
9978 +
9979 + SKIP: {
9980 +- skip "your dns appears missing or failing to resolve", 2
9981 +- unless $v->address(-address=> 'devnull@×××××.com', -mxcheck => 1);
9982 ++ skip "disabled online tests", 2;
9983 +
9984
9985 diff --git a/dev-perl/Email-Valid/files/0.185-disable-online-test.patch b/dev-perl/Email-Valid/files/0.185-disable-online-test.patch
9986 new file mode 100644
9987 index 0000000..6bcbf6d
9988 --- /dev/null
9989 +++ b/dev-perl/Email-Valid/files/0.185-disable-online-test.patch
9990 @@ -0,0 +1,10 @@
9991 +--- a/t/valid.t
9992 ++++ b/t/valid.t
9993 +@@ -85,6 +85,5 @@
9994 + );
9995 +
9996 + SKIP: {
9997 +- skip "your dns appears missing or failing to resolve", 2
9998 +- unless eval { $v->address(-address=> 'devnull@×××××.com', -mxcheck => 1) };
9999 ++ skip "disabled online tests", 2;
10000 +
10001
10002 diff --git a/dev-perl/Encode-Locale/Encode-Locale-1.20.0.ebuild b/dev-perl/Encode-Locale/Encode-Locale-1.20.0.ebuild
10003 new file mode 100644
10004 index 0000000..d037fd3
10005 --- /dev/null
10006 +++ b/dev-perl/Encode-Locale/Encode-Locale-1.20.0.ebuild
10007 @@ -0,0 +1,17 @@
10008 +# Copyright 1999-2011 Gentoo Foundation
10009 +# Distributed under the terms of the GNU General Public License v2
10010 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Encode-Locale/Encode-Locale-1.20.0.ebuild,v 1.15 2011/12/18 21:31:26 halcy0n Exp $
10011 +
10012 +EAPI=3
10013 +
10014 +MODULE_AUTHOR=GAAS
10015 +MODULE_VERSION=1.02
10016 +inherit perl-module
10017 +
10018 +DESCRIPTION="Determine the locale encoding"
10019 +
10020 +SLOT="0"
10021 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
10022 +IUSE=""
10023 +
10024 +SRC_TEST=do
10025
10026 diff --git a/dev-perl/Error/Error-0.170.160.ebuild b/dev-perl/Error/Error-0.170.160.ebuild
10027 new file mode 100644
10028 index 0000000..ba38de9
10029 --- /dev/null
10030 +++ b/dev-perl/Error/Error-0.170.160.ebuild
10031 @@ -0,0 +1,23 @@
10032 +# Copyright 1999-2011 Gentoo Foundation
10033 +# Distributed under the terms of the GNU General Public License v2
10034 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Error/Error-0.170.160.ebuild,v 1.3 2011/07/30 10:30:01 tove Exp $
10035 +
10036 +EAPI=2
10037 +
10038 +MODULE_AUTHOR=SHLOMIF
10039 +MODULE_VERSION=0.17016
10040 +inherit perl-module
10041 +
10042 +DESCRIPTION="Error/exception handling in an OO-ish way"
10043 +
10044 +SLOT="0"
10045 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
10046 +IUSE="test"
10047 +
10048 +RDEPEND=""
10049 +DEPEND="${RDEPEND}
10050 + virtual/perl-Module-Build
10051 + test? ( >=dev-perl/Test-Pod-1.14
10052 + >=dev-perl/Test-Pod-Coverage-1.04 )"
10053 +
10054 +SRC_TEST="do"
10055
10056 diff --git a/dev-perl/Event-RPC/Event-RPC-0.90.ebuild b/dev-perl/Event-RPC/Event-RPC-0.90.ebuild
10057 new file mode 100644
10058 index 0000000..b4d35c9
10059 --- /dev/null
10060 +++ b/dev-perl/Event-RPC/Event-RPC-0.90.ebuild
10061 @@ -0,0 +1,21 @@
10062 +# Copyright 1999-2006 Gentoo Foundation
10063 +# Distributed under the terms of the GNU General Public License v2
10064 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Event-RPC/Event-RPC-0.90.ebuild,v 1.10 2006/10/09 14:27:03 mcummings Exp $
10065 +
10066 +inherit perl-module
10067 +
10068 +DESCRIPTION="Event based transparent Client/Server RPC framework"
10069 +SRC_URI="mirror://cpan/modules/by-module/Event/${P}.tar.gz"
10070 +HOMEPAGE="http://www.exit1.org/${PN}/"
10071 +
10072 +SLOT="0"
10073 +LICENSE="GPL-2"
10074 +KEYWORDS="amd64 ia64 ppc ppc64 sparc x86"
10075 +IUSE=""
10076 +SRC_TEST="do"
10077 +
10078 +DEPEND="dev-perl/glib-perl
10079 + dev-perl/IO-Socket-SSL
10080 + dev-perl/Net-SSLeay
10081 + dev-perl/Event
10082 + dev-lang/perl"
10083
10084 diff --git a/dev-perl/Event/Event-1.09.ebuild b/dev-perl/Event/Event-1.09.ebuild
10085 new file mode 100644
10086 index 0000000..422a589
10087 --- /dev/null
10088 +++ b/dev-perl/Event/Event-1.09.ebuild
10089 @@ -0,0 +1,19 @@
10090 +# Copyright 1999-2009 Gentoo Foundation
10091 +# Distributed under the terms of the GNU General Public License v2
10092 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Event/Event-1.09.ebuild,v 1.8 2009/05/23 17:04:56 armin76 Exp $
10093 +
10094 +inherit perl-module
10095 +
10096 +DESCRIPTION="fast, generic event loop"
10097 +SRC_URI="mirror://cpan/authors/id/J/JP/JPRIT/${P}.tar.gz"
10098 +HOMEPAGE="http://www.cpan.org/modules/by-module/Event/${P}.readme"
10099 +
10100 +SLOT="0"
10101 +LICENSE="|| ( Artistic GPL-2 )"
10102 +KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86"
10103 +IUSE=""
10104 +SRC_TEST="do"
10105 +
10106 +mydoc="ANNOUNCE INSTALL TODO Tutorial.pdf"
10107 +
10108 +DEPEND="dev-lang/perl"
10109
10110 diff --git a/dev-perl/Event/Event-1.10.ebuild b/dev-perl/Event/Event-1.10.ebuild
10111 new file mode 100644
10112 index 0000000..e6d796a
10113 --- /dev/null
10114 +++ b/dev-perl/Event/Event-1.10.ebuild
10115 @@ -0,0 +1,19 @@
10116 +# Copyright 1999-2009 Gentoo Foundation
10117 +# Distributed under the terms of the GNU General Public License v2
10118 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Event/Event-1.10.ebuild,v 1.3 2009/05/23 17:04:56 armin76 Exp $
10119 +
10120 +inherit perl-module
10121 +
10122 +DESCRIPTION="fast, generic event loop"
10123 +SRC_URI="mirror://cpan/authors/id/J/JP/JPRIT/${P}.tar.gz"
10124 +HOMEPAGE="http://www.cpan.org/modules/by-module/Event/${P}.readme"
10125 +
10126 +SLOT="0"
10127 +LICENSE="|| ( Artistic GPL-2 )"
10128 +KEYWORDS="alpha ~amd64 ~arm ia64 ~ppc ~ppc64 sparc x86"
10129 +IUSE=""
10130 +SRC_TEST="do"
10131 +
10132 +mydoc="ANNOUNCE INSTALL TODO Tutorial.pdf"
10133 +
10134 +DEPEND="dev-lang/perl"
10135
10136 diff --git a/dev-perl/FCGI/FCGI-0.67.ebuild b/dev-perl/FCGI/FCGI-0.67.ebuild
10137 new file mode 100644
10138 index 0000000..0722934
10139 --- /dev/null
10140 +++ b/dev-perl/FCGI/FCGI-0.67.ebuild
10141 @@ -0,0 +1,19 @@
10142 +# Copyright 1999-2012 Gentoo Foundation
10143 +# Distributed under the terms of the GNU General Public License v2
10144 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/FCGI/FCGI-0.67.ebuild,v 1.16 2012/06/17 16:27:16 armin76 Exp $
10145 +
10146 +# this is an RT dependency
10147 +
10148 +inherit perl-module
10149 +
10150 +DESCRIPTION="Fast CGI"
10151 +SRC_URI="mirror://cpan/authors/id/S/SK/SKIMO/${P}.tar.gz"
10152 +HOMEPAGE="http://search.cpan.org/~skimo/"
10153 +
10154 +SRC_TEST="do"
10155 +SLOT="0"
10156 +LICENSE="openmarket"
10157 +KEYWORDS="amd64 ppc ~ppc64 x86"
10158 +IUSE=""
10159 +
10160 +DEPEND="dev-lang/perl"
10161
10162 diff --git a/dev-perl/FCGI/FCGI-0.71.ebuild b/dev-perl/FCGI/FCGI-0.71.ebuild
10163 new file mode 100644
10164 index 0000000..ff2ffc3
10165 --- /dev/null
10166 +++ b/dev-perl/FCGI/FCGI-0.71.ebuild
10167 @@ -0,0 +1,17 @@
10168 +# Copyright 1999-2012 Gentoo Foundation
10169 +# Distributed under the terms of the GNU General Public License v2
10170 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/FCGI/FCGI-0.71.ebuild,v 1.4 2012/06/17 16:27:16 armin76 Exp $
10171 +
10172 +EAPI=2
10173 +
10174 +MODULE_AUTHOR=FLORA
10175 +inherit perl-module
10176 +
10177 +DESCRIPTION="Fast CGI"
10178 +
10179 +LICENSE="openmarket"
10180 +SLOT="0"
10181 +KEYWORDS="amd64 ppc ~ppc64 x86"
10182 +IUSE=""
10183 +
10184 +SRC_TEST="do"
10185
10186 diff --git a/dev-perl/File-Flat/File-Flat-1.00.ebuild b/dev-perl/File-Flat/File-Flat-1.00.ebuild
10187 new file mode 100644
10188 index 0000000..0d5a8c1
10189 --- /dev/null
10190 +++ b/dev-perl/File-Flat/File-Flat-1.00.ebuild
10191 @@ -0,0 +1,26 @@
10192 +# Copyright 1999-2012 Gentoo Foundation
10193 +# Distributed under the terms of the GNU General Public License v2
10194 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-Flat/File-Flat-1.00.ebuild,v 1.10 2012/03/19 19:31:17 armin76 Exp $
10195 +
10196 +inherit perl-module
10197 +
10198 +DESCRIPTION="Implements a flat filesystem"
10199 +SRC_URI="mirror://cpan/authors/id/A/AD/ADAMK/${P}.tar.gz"
10200 +HOMEPAGE="http://search.cpan.org/~adamk/"
10201 +
10202 +SLOT="0"
10203 +LICENSE="|| ( Artistic GPL-2 )"
10204 +KEYWORDS="alpha amd64 hppa ~mips ppc x86"
10205 +IUSE=""
10206 +SRC_TEST="do"
10207 +
10208 +DEPEND=">=dev-perl/Class-Autouse-1
10209 + >=dev-perl/Test-ClassAPI-1.02
10210 + >=dev-perl/File-Copy-Recursive-0.28
10211 + >=dev-perl/File-Remove-0.21
10212 + >=virtual/perl-File-Spec-0.85
10213 + >=virtual/perl-File-Temp-0.14
10214 + >=dev-perl/File-Remove-0.21
10215 + >=dev-perl/File-Slurp-9999.04
10216 + >=dev-perl/prefork-0.02
10217 + dev-lang/perl"
10218
10219 diff --git a/dev-perl/File-NCopy/File-NCopy-0.34.ebuild b/dev-perl/File-NCopy/File-NCopy-0.34.ebuild
10220 new file mode 100644
10221 index 0000000..0947e9f
10222 --- /dev/null
10223 +++ b/dev-perl/File-NCopy/File-NCopy-0.34.ebuild
10224 @@ -0,0 +1,17 @@
10225 +# Copyright 1999-2007 Gentoo Foundation
10226 +# Distributed under the terms of the GNU General Public License v2
10227 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-NCopy/File-NCopy-0.34.ebuild,v 1.21 2007/01/15 19:39:12 mcummings Exp $
10228 +
10229 +inherit perl-module
10230 +
10231 +DESCRIPTION="Copy file, file Copy file[s] | dir[s], dir"
10232 +SRC_URI="mirror://cpan/authors/id/M/MZ/MZSANFORD/${P}.tar.gz"
10233 +HOMEPAGE="http://search.cpan.org/~mzsanford/"
10234 +
10235 +SLOT="0"
10236 +LICENSE="|| ( Artistic GPL-2 )"
10237 +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
10238 +IUSE=""
10239 +
10240 +DEPEND="virtual/perl-File-Spec
10241 + dev-lang/perl"
10242
10243 diff --git a/dev-perl/File-RsyncP/File-RsyncP-0.68.ebuild b/dev-perl/File-RsyncP/File-RsyncP-0.68.ebuild
10244 new file mode 100644
10245 index 0000000..dbf2206
10246 --- /dev/null
10247 +++ b/dev-perl/File-RsyncP/File-RsyncP-0.68.ebuild
10248 @@ -0,0 +1,25 @@
10249 +# Copyright 1999-2011 Gentoo Foundation
10250 +# Distributed under the terms of the GNU General Public License v2
10251 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-RsyncP/File-RsyncP-0.68.ebuild,v 1.11 2011/04/20 13:01:04 jlec Exp $
10252 +
10253 +EAPI=2
10254 +
10255 +MODULE_AUTHOR=CBARRATT
10256 +inherit perl-module toolchain-funcs
10257 +
10258 +DESCRIPTION="An rsync perl module"
10259 +HOMEPAGE="http://perlrsync.sourceforge.net/"
10260 +
10261 +LICENSE="GPL-2"
10262 +SLOT="0"
10263 +KEYWORDS="amd64 ia64 ~ppc ~ppc64 sparc x86"
10264 +IUSE=""
10265 +
10266 +RDEPEND="net-misc/rsync"
10267 +
10268 +MAKEOPTS="${MAKEOPTS} -j1"
10269 +
10270 +src_prepare() {
10271 + perl-module_src_prepare
10272 + tc-export CC
10273 +}
10274
10275 diff --git a/dev-perl/File-Slurp/File-Slurp-9999.13.ebuild b/dev-perl/File-Slurp/File-Slurp-9999.13.ebuild
10276 new file mode 100644
10277 index 0000000..6f70f5e
10278 --- /dev/null
10279 +++ b/dev-perl/File-Slurp/File-Slurp-9999.13.ebuild
10280 @@ -0,0 +1,20 @@
10281 +# Copyright 1999-2010 Gentoo Foundation
10282 +# Distributed under the terms of the GNU General Public License v2
10283 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-Slurp/File-Slurp-9999.13.ebuild,v 1.9 2010/01/09 20:08:39 grobian Exp $
10284 +
10285 +inherit perl-module
10286 +
10287 +DESCRIPTION="Efficient Reading/Writing of Complete Files"
10288 +HOMEPAGE="http://search.cpan.org/~uri/${P}/"
10289 +SRC_URI="mirror://cpan/authors/id/D/DR/DROLSKY/${P}.tar.gz"
10290 +
10291 +LICENSE="Artistic"
10292 +SLOT="0"
10293 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
10294 +IUSE=""
10295 +
10296 +DEPEND="dev-lang/perl"
10297 +
10298 +SRC_TEST="do"
10299 +
10300 +mydoc="extras/slurp_article.pod"
10301
10302 diff --git a/dev-perl/Finance-Quote/Finance-Quote-1.17.ebuild b/dev-perl/Finance-Quote/Finance-Quote-1.17.ebuild
10303 new file mode 100644
10304 index 0000000..e050fc2
10305 --- /dev/null
10306 +++ b/dev-perl/Finance-Quote/Finance-Quote-1.17.ebuild
10307 @@ -0,0 +1,24 @@
10308 +# Copyright 1999-2012 Gentoo Foundation
10309 +# Distributed under the terms of the GNU General Public License v2
10310 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Finance-Quote/Finance-Quote-1.17.ebuild,v 1.5 2012/03/25 15:17:38 armin76 Exp $
10311 +
10312 +EAPI=2
10313 +
10314 +MODULE_AUTHOR=ECOCODE
10315 +inherit perl-module
10316 +
10317 +DESCRIPTION="Get stock and mutual fund quotes from various exchanges"
10318 +
10319 +LICENSE="GPL-2"
10320 +SLOT="0"
10321 +KEYWORDS="alpha amd64 ppc x86"
10322 +IUSE=""
10323 +
10324 +DEPEND="dev-perl/libwww-perl
10325 + dev-perl/HTML-Tree
10326 + dev-perl/HTML-TableExtract
10327 + dev-perl/Crypt-SSLeay"
10328 +RDEPEND="${DEPEND}"
10329 +
10330 +SRC_TEST="do"
10331 +mydoc="TODO"
10332
10333 diff --git a/dev-perl/Finance-Quote/files/VWD.pm.diff b/dev-perl/Finance-Quote/files/VWD.pm.diff
10334 new file mode 100644
10335 index 0000000..4ddabdb
10336 --- /dev/null
10337 +++ b/dev-perl/Finance-Quote/files/VWD.pm.diff
10338 @@ -0,0 +1,11 @@
10339 +--- lib/Finance/Quote/VWD.pm
10340 ++++ lib/Finance/Quote/VWD.pm
10341 +@@ -118,7 +118,7 @@
10342 + # all other info below <div class=contentContainer>
10343 + my $content = $tree->look_down(
10344 + "_tag", "div",
10345 +- "class", "contentContainer"
10346 ++ "class", "mainContainer"
10347 + );
10348 + next if not $content;
10349 +
10350
10351 diff --git a/dev-perl/GSSAPI/files/0.26-libs-parse.patch b/dev-perl/GSSAPI/files/0.26-libs-parse.patch
10352 new file mode 100644
10353 index 0000000..fa72ced
10354 --- /dev/null
10355 +++ b/dev-perl/GSSAPI/files/0.26-libs-parse.patch
10356 @@ -0,0 +1,11 @@
10357 +--- GSSAPI-0.26/Makefile.PL
10358 ++++ GSSAPI-0.26/Makefile.PL
10359 +@@ -267,7 +267,7 @@
10360 + my ( $confstringstring ) = @_;
10361 + my (@libs, @others);
10362 + foreach ( split ' ', $confstringstring ) {
10363 +- if ( m/(-(Wl,-R|[LlR])[^ ]*)/) {
10364 ++ if ( m/(^-(Wl,-R|[LlR])[^ ]*)/) {
10365 + push @libs, $1
10366 + } else {
10367 + push @others, $_;
10368
10369 diff --git a/dev-perl/Gearman-Client-Async/Gearman-Client-Async-0.94.ebuild b/dev-perl/Gearman-Client-Async/Gearman-Client-Async-0.94.ebuild
10370 new file mode 100644
10371 index 0000000..b41d783
10372 --- /dev/null
10373 +++ b/dev-perl/Gearman-Client-Async/Gearman-Client-Async-0.94.ebuild
10374 @@ -0,0 +1,20 @@
10375 +# Copyright 1999-2010 Gentoo Foundation
10376 +# Distributed under the terms of the GNU General Public License v2
10377 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Client-Async/Gearman-Client-Async-0.94.ebuild,v 1.3 2010/09/19 15:28:12 tove Exp $
10378 +
10379 +EAPI=2
10380 +
10381 +MODULE_AUTHOR=BRADFITZ
10382 +inherit perl-module
10383 +
10384 +DESCRIPTION="Asynchronous client module for Gearman for Danga::Socket applications"
10385 +
10386 +SLOT="0"
10387 +KEYWORDS="~amd64 ~ppc ~x86"
10388 +IUSE=""
10389 +
10390 +RDEPEND=">=dev-perl/Gearman-1.07
10391 + >=dev-perl/Danga-Socket-1.57"
10392 +
10393 +# testsuite requires gearman server
10394 +SRC_TEST="never"
10395
10396 diff --git a/dev-perl/Gearman-Server/Gearman-Server-1.09-r1.ebuild b/dev-perl/Gearman-Server/Gearman-Server-1.09-r1.ebuild
10397 new file mode 100644
10398 index 0000000..0b9a113
10399 --- /dev/null
10400 +++ b/dev-perl/Gearman-Server/Gearman-Server-1.09-r1.ebuild
10401 @@ -0,0 +1,27 @@
10402 +# Copyright 1999-2008 Gentoo Foundation
10403 +# Distributed under the terms of the GNU General Public License v2
10404 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/Gearman-Server-1.09-r1.ebuild,v 1.2 2008/09/30 13:15:16 tove Exp $
10405 +
10406 +MODULE_AUTHOR=BRADFITZ
10407 +inherit perl-module
10408 +
10409 +DESCRIPTION="Gearman distributed job system - worker/client connector"
10410 +
10411 +SLOT="0"
10412 +LICENSE="|| ( Artistic GPL-2 )"
10413 +KEYWORDS="~amd64 ~ppc ~x86"
10414 +IUSE=""
10415 +
10416 +DEPEND=">=dev-perl/Danga-Socket-1.57
10417 + >=dev-perl/Gearman-1.07
10418 + dev-lang/perl"
10419 +
10420 +mydoc="CHANGES"
10421 +
10422 +PATCHES=( "${FILESDIR}/$PN-1.09-Use-saner-name-in-process-listing.patch" )
10423 +
10424 +src_install() {
10425 + perl-module_src_install
10426 + newinitd "${FILESDIR}"/gearmand-init.d-1.09 gearmand
10427 + newconfd "${FILESDIR}"/gearmand-conf.d-1.09 gearmand
10428 +}
10429
10430 diff --git a/dev-perl/Gearman-Server/Gearman-Server-1.10.ebuild b/dev-perl/Gearman-Server/Gearman-Server-1.10.ebuild
10431 new file mode 100644
10432 index 0000000..1f10dc7
10433 --- /dev/null
10434 +++ b/dev-perl/Gearman-Server/Gearman-Server-1.10.ebuild
10435 @@ -0,0 +1,27 @@
10436 +# Copyright 1999-2009 Gentoo Foundation
10437 +# Distributed under the terms of the GNU General Public License v2
10438 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/Gearman-Server-1.10.ebuild,v 1.1 2009/11/10 10:14:50 robbat2 Exp $
10439 +
10440 +MODULE_AUTHOR=DORMANDO
10441 +inherit perl-module
10442 +
10443 +DESCRIPTION="Gearman distributed job system - worker/client connector"
10444 +
10445 +SLOT="0"
10446 +LICENSE="|| ( Artistic GPL-2 )"
10447 +KEYWORDS="~amd64 ~ppc ~x86"
10448 +IUSE=""
10449 +
10450 +DEPEND=">=dev-perl/Danga-Socket-1.57
10451 + >=dev-perl/Gearman-1.07
10452 + dev-lang/perl"
10453 +
10454 +mydoc="CHANGES"
10455 +
10456 +PATCHES=( "${FILESDIR}/$PN-1.09-Use-saner-name-in-process-listing.patch" )
10457 +
10458 +src_install() {
10459 + perl-module_src_install
10460 + newinitd "${FILESDIR}"/gearmand-init.d-1.09 gearmand
10461 + newconfd "${FILESDIR}"/gearmand-conf.d-1.09 gearmand
10462 +}
10463
10464 diff --git a/dev-perl/Gearman-Server/Gearman-Server-1.11.ebuild b/dev-perl/Gearman-Server/Gearman-Server-1.11.ebuild
10465 new file mode 100644
10466 index 0000000..aa78c76
10467 --- /dev/null
10468 +++ b/dev-perl/Gearman-Server/Gearman-Server-1.11.ebuild
10469 @@ -0,0 +1,27 @@
10470 +# Copyright 1999-2010 Gentoo Foundation
10471 +# Distributed under the terms of the GNU General Public License v2
10472 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/Gearman-Server-1.11.ebuild,v 1.1 2010/03/27 21:43:16 robbat2 Exp $
10473 +
10474 +MODULE_AUTHOR=DORMANDO
10475 +inherit perl-module
10476 +
10477 +DESCRIPTION="Gearman distributed job system - worker/client connector"
10478 +
10479 +SLOT="0"
10480 +LICENSE="|| ( Artistic GPL-2 )"
10481 +KEYWORDS="~amd64 ~ppc ~x86"
10482 +IUSE=""
10483 +
10484 +DEPEND=">=dev-perl/Danga-Socket-1.57
10485 + >=dev-perl/Gearman-1.07
10486 + dev-lang/perl"
10487 +
10488 +mydoc="CHANGES"
10489 +
10490 +PATCHES=( "${FILESDIR}/$PN-1.09-Use-saner-name-in-process-listing.patch" )
10491 +
10492 +src_install() {
10493 + perl-module_src_install
10494 + newinitd "${FILESDIR}"/gearmand-init.d-1.09 gearmand
10495 + newconfd "${FILESDIR}"/gearmand-conf.d-1.09 gearmand
10496 +}
10497
10498 diff --git a/dev-perl/Gearman-Server/files/Gearman-Server-1.09-Use-saner-name-in-process-listing.patch b/dev-perl/Gearman-Server/files/Gearman-Server-1.09-Use-saner-name-in-process-listing.patch
10499 new file mode 100644
10500 index 0000000..f573606
10501 --- /dev/null
10502 +++ b/dev-perl/Gearman-Server/files/Gearman-Server-1.09-Use-saner-name-in-process-listing.patch
10503 @@ -0,0 +1,33 @@
10504 +From 6d8055b1d44d745f194665458674c6e03f48f322 Mon Sep 17 00:00:00 2001
10505 +From: Robin H. Johnson <robbat2@g.o>
10506 +Date: Sat, 12 May 2007 22:16:37 -0700
10507 +Subject: [PATCH gearman] Use saner name in process listing.
10508 +
10509 +Normally the binary will turn up in the process list as:
10510 +/usr/bin/perl $SCRIPTNAME
10511 +
10512 +By adding a single line, we can make it be simply '$SCRIPTNAME'.
10513 +This makes writing init.d scripts signficently easier.
10514 +
10515 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
10516 +---
10517 + server/gearmand | 3 +++
10518 + 1 files changed, 3 insertions(+), 0 deletions(-)
10519 +
10520 +diff --git a/server/gearmand b/server/gearmand
10521 +index 2d8bd6b..148b1f9 100755
10522 +--- a/server/gearmand
10523 ++++ b/server/gearmand
10524 +@@ -94,6 +94,9 @@ my (
10525 + );
10526 + my $conf_port = 7003;
10527 +
10528 ++# Rename binary in process list to make init scripts saner
10529 ++$0 = $_ = $0;
10530 ++
10531 + Getopt::Long::GetOptions(
10532 + 'd|daemonize' => \$daemonize,
10533 + 'p|port=i' => \$conf_port,
10534 +--
10535 +1.5.1.4
10536 +
10537
10538 diff --git a/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 b/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09
10539 new file mode 100644
10540 index 0000000..69efd90
10541 --- /dev/null
10542 +++ b/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09
10543 @@ -0,0 +1,4 @@
10544 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09,v 1.1 2007/05/13 02:18:42 robbat2 Exp $
10545 +PIDFILE="/var/run/gearmand.pid"
10546 +GEARMAND_OPTS="--daemonize --port=7003 --pidfile=${PIDFILE}"
10547 +# vim: ft=gentoo-conf-d:
10548
10549 diff --git a/dev-perl/Gearman-Server/files/gearmand-init.d-1.09 b/dev-perl/Gearman-Server/files/gearmand-init.d-1.09
10550 new file mode 100644
10551 index 0000000..5b8c053
10552 --- /dev/null
10553 +++ b/dev-perl/Gearman-Server/files/gearmand-init.d-1.09
10554 @@ -0,0 +1,26 @@
10555 +#!/sbin/runscript
10556 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/files/gearmand-init.d-1.09,v 1.2 2007/05/13 08:10:05 robbat2 Exp $
10557 +
10558 +NAME="gearmand"
10559 +BINARY="/usr/bin/gearmand"
10560 +
10561 +depend() {
10562 + use net
10563 +}
10564 +
10565 +start() {
10566 + # start-stop-daemon does not work properly in certain cases
10567 + # this hack should go away when bug #178274 is resolved.
10568 + ebegin "Starting $NAME"
10569 + start-stop-daemon --start --pidfile="${PIDFILE}" \
10570 + --exec ${BINARY} -- ${GEARMAND_OPTS}
10571 + eend $?
10572 +}
10573 +
10574 +stop() {
10575 + ebegin "Stopping $NAME"
10576 + start-stop-daemon --stop --pidfile="${PIDFILE}"
10577 + eend $?
10578 +}
10579 +
10580 +# vim: ft=gentoo-init-d:
10581
10582 diff --git a/dev-perl/Gearman/Gearman-1.09.ebuild b/dev-perl/Gearman/Gearman-1.09.ebuild
10583 new file mode 100644
10584 index 0000000..575baf2
10585 --- /dev/null
10586 +++ b/dev-perl/Gearman/Gearman-1.09.ebuild
10587 @@ -0,0 +1,21 @@
10588 +# Copyright 1999-2007 Gentoo Foundation
10589 +# Distributed under the terms of the GNU General Public License v2
10590 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman/Gearman-1.09.ebuild,v 1.1 2007/10/27 01:12:04 robbat2 Exp $
10591 +
10592 +MODULE_AUTHOR="BRADFITZ"
10593 +inherit perl-module
10594 +
10595 +DESCRIPTION="Gearman distributed job system"
10596 +
10597 +IUSE=""
10598 +
10599 +SLOT="0"
10600 +LICENSE="|| ( Artistic GPL-2 )"
10601 +KEYWORDS="~amd64 ~ppc ~x86"
10602 +
10603 +DEPEND="dev-perl/string-crc32
10604 + dev-lang/perl"
10605 +
10606 +mydoc="CHANGES HACKING TODO"
10607 +# testsuite requires gearman server
10608 +SRC_TEST="never"
10609
10610 diff --git a/dev-perl/Gearman/Gearman-1.10.ebuild b/dev-perl/Gearman/Gearman-1.10.ebuild
10611 new file mode 100644
10612 index 0000000..d8ae0f6
10613 --- /dev/null
10614 +++ b/dev-perl/Gearman/Gearman-1.10.ebuild
10615 @@ -0,0 +1,21 @@
10616 +# Copyright 1999-2009 Gentoo Foundation
10617 +# Distributed under the terms of the GNU General Public License v2
10618 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman/Gearman-1.10.ebuild,v 1.1 2009/11/10 10:15:19 robbat2 Exp $
10619 +
10620 +MODULE_AUTHOR="DORMANDO"
10621 +inherit perl-module
10622 +
10623 +DESCRIPTION="Gearman distributed job system"
10624 +
10625 +IUSE=""
10626 +
10627 +SLOT="0"
10628 +LICENSE="|| ( Artistic GPL-2 )"
10629 +KEYWORDS="~amd64 ~ppc ~x86"
10630 +
10631 +DEPEND="dev-perl/string-crc32
10632 + dev-lang/perl"
10633 +
10634 +mydoc="CHANGES HACKING TODO"
10635 +# testsuite requires gearman server
10636 +SRC_TEST="never"
10637
10638 diff --git a/dev-perl/Gearman/Gearman-1.11.ebuild b/dev-perl/Gearman/Gearman-1.11.ebuild
10639 new file mode 100644
10640 index 0000000..7904551
10641 --- /dev/null
10642 +++ b/dev-perl/Gearman/Gearman-1.11.ebuild
10643 @@ -0,0 +1,21 @@
10644 +# Copyright 1999-2010 Gentoo Foundation
10645 +# Distributed under the terms of the GNU General Public License v2
10646 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman/Gearman-1.11.ebuild,v 1.1 2010/03/27 21:42:53 robbat2 Exp $
10647 +
10648 +MODULE_AUTHOR="DORMANDO"
10649 +inherit perl-module
10650 +
10651 +DESCRIPTION="Gearman distributed job system"
10652 +
10653 +IUSE=""
10654 +
10655 +SLOT="0"
10656 +LICENSE="|| ( Artistic GPL-2 )"
10657 +KEYWORDS="~amd64 ~ppc ~x86"
10658 +
10659 +DEPEND="dev-perl/string-crc32
10660 + dev-lang/perl"
10661 +
10662 +mydoc="CHANGES HACKING TODO"
10663 +# testsuite requires gearman server
10664 +SRC_TEST="never"
10665
10666 diff --git a/dev-perl/Goo-Canvas/files/fix_implicit_pointer_declaration.patch b/dev-perl/Goo-Canvas/files/fix_implicit_pointer_declaration.patch
10667 new file mode 100644
10668 index 0000000..c33a9b3
10669 --- /dev/null
10670 +++ b/dev-perl/Goo-Canvas/files/fix_implicit_pointer_declaration.patch
10671 @@ -0,0 +1,14 @@
10672 +Index: Goo-Canvas-0.06/goocanvas-perl.h
10673 +===================================================================
10674 +--- Goo-Canvas-0.06.orig/goocanvas-perl.h
10675 ++++ Goo-Canvas-0.06/goocanvas-perl.h
10676 +@@ -9,6 +9,9 @@
10677 + #include "cairo-perl.h"
10678 + #include "goocanvas.h"
10679 +
10680 ++cairo_surface_t * goo_canvas_cairo_pattern_from_pixbuf(GdkPixbuf *pixbuf);
10681 ++cairo_surface_t * goo_canvas_cairo_surface_from_pixbuf(GdkPixbuf *pixbuf);
10682 ++
10683 + /* FIXME: How to avoid compile error in autogen.h */
10684 + #define GooCairoPattern cairo_pattern_t
10685 + #define GooCairoMatrix cairo_matrix_t
10686
10687 diff --git a/dev-perl/GraphViz/GraphViz-2.02.ebuild b/dev-perl/GraphViz/GraphViz-2.02.ebuild
10688 new file mode 100644
10689 index 0000000..3f3c178
10690 --- /dev/null
10691 +++ b/dev-perl/GraphViz/GraphViz-2.02.ebuild
10692 @@ -0,0 +1,20 @@
10693 +# Copyright 1999-2008 Gentoo Foundation
10694 +# Distributed under the terms of the GNU General Public License v2
10695 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/GraphViz/GraphViz-2.02.ebuild,v 1.6 2008/11/19 13:51:15 tove Exp $
10696 +
10697 +MODULE_AUTHOR=LBROCARD
10698 +inherit perl-module
10699 +
10700 +DESCRIPTION="GraphViz - Interface to the GraphViz graphing tool"
10701 +
10702 +LICENSE="|| ( Artistic GPL-2 )"
10703 +SLOT="0"
10704 +KEYWORDS="amd64 ~x86"
10705 +IUSE=""
10706 +SRC_TEST="do"
10707 +
10708 +RDEPEND="dev-lang/perl
10709 + media-gfx/graphviz
10710 + dev-perl/IPC-Run"
10711 +DEPEND="${RDEPEND}
10712 + >=virtual/perl-Module-Build-0.28"
10713
10714 diff --git a/dev-perl/Gtk2-Notify/files/Gtk2-Notify-0.05-libnotify.patch b/dev-perl/Gtk2-Notify/files/Gtk2-Notify-0.05-libnotify.patch
10715 new file mode 100644
10716 index 0000000..1e1ce9c
10717 --- /dev/null
10718 +++ b/dev-perl/Gtk2-Notify/files/Gtk2-Notify-0.05-libnotify.patch
10719 @@ -0,0 +1,114 @@
10720 +http://bugs.gentoo.org/398699
10721 +http://rt.cpan.org/Public/Bug/Display.html?id=67297
10722 +http://pkgs.fedoraproject.org/gitweb/?p=perl-Gtk2-Notify.git;a=blob_plain;f=libnotify.patch;hb=HEAD
10723 +
10724 +--- t/notification.t
10725 ++++ t/notification.t
10726 +@@ -2,20 +2,18 @@
10727 +
10728 + use strict;
10729 + use warnings;
10730 +-use Gtk2::TestHelper tests => 35;
10731 ++use Gtk2::TestHelper tests => 32;
10732 + use Test::Exception;
10733 + use Gtk2::Notify -init, $0;
10734 +
10735 + ginterfaces_ok('Gtk2::Notify');
10736 +
10737 +-my $w = Gtk2::Window->new;
10738 +-my $n = Gtk2::Notify->new('foo', 'bar', '', $w);
10739 ++my $n = Gtk2::Notify->new('foo', 'bar', '');
10740 +
10741 + isa_ok($n, 'Gtk2::Notify');
10742 +
10743 + my @methods = qw(
10744 + add_action
10745 +- attach_to_widget
10746 + clear_actions
10747 + clear_hints
10748 + close
10749 +@@ -46,16 +44,6 @@ lives_ok(sub {
10750 + }, 42);
10751 + }, 'add_action');
10752 +
10753 +-{
10754 +- my $nw = Gtk2::Window->new;
10755 +- lives_ok(sub {
10756 +- $n->attach_to_widget($nw);
10757 +- }, 'attach_to_widget');
10758 +- lives_ok(sub {
10759 +- $n->attach_to_widget($w);
10760 +- }, 'attach_to_widget');
10761 +-}
10762 +-
10763 + lives_ok(sub {
10764 + $n->clear_actions;
10765 + }, 'clear_actions with existing actions');
10766 +@@ -99,8 +87,6 @@ lives_ok(sub {
10767 + $n->close;
10768 + }, 'close before show');
10769 +
10770 +-$w->show_all;
10771 +-
10772 + lives_ok(sub {
10773 + $n->show;
10774 + }, 'show');
10775 +--- xs/Notify.xs
10776 ++++ xs/Notify.xs
10777 +@@ -86,26 +86,12 @@ notify_get_server_info (class, OUTLIST c
10778 + MODULE = Gtk2::Notify PACKAGE = Gtk2::Notify PREFIX = notify_notification_
10779 +
10780 + NotifyNotification *
10781 +-notify_notification_new (class, summary, body=NULL, icon=NULL, attach=NULL)
10782 ++notify_notification_new (class, summary, body=NULL, icon=NULL)
10783 + const gchar *summary
10784 + const gchar *body
10785 + const gchar *icon
10786 +- GtkWidget_ornull *attach
10787 + C_ARGS:
10788 +- summary, body, icon, attach
10789 +-
10790 +-#if GTK_CHECK_VERSION (2, 9, 2)
10791 +-
10792 +-NotifyNotification *
10793 +-notify_notification_new_with_status_icon (class, summary, body=NULL, icon=NULL, status_icon=NULL)
10794 +- const gchar *summary
10795 +- const gchar *body
10796 +- const gchar *icon
10797 +- GtkStatusIcon *status_icon
10798 +- C_ARGS:
10799 +- summary, body, icon, status_icon
10800 +-
10801 +-#endif
10802 ++ summary, body, icon
10803 +
10804 + gboolean
10805 + notify_notification_update (notification, summary, message=NULL, icon=NULL)
10806 +@@ -114,27 +100,6 @@ notify_notification_update (notification
10807 + const gchar *message
10808 + const gchar *icon
10809 +
10810 +-void
10811 +-notify_notification_attach_to_widget (notification, attach)
10812 +- NotifyNotification *notification
10813 +- GtkWidget *attach
10814 +-
10815 +-#if GTK_CHECK_VERSION (2, 9, 2)
10816 +-
10817 +-void
10818 +-notify_notification_attach_to_status_icon (notification, status_icon)
10819 +- NotifyNotification *notification
10820 +- GtkStatusIcon *status_icon
10821 +-
10822 +-#endif
10823 +-
10824 +-void
10825 +-notify_notification_set_geometry_hints (notification, screen, x, y)
10826 +- NotifyNotification *notification
10827 +- GdkScreen *screen
10828 +- gint x
10829 +- gint y
10830 +-
10831 + NO_OUTPUT gboolean
10832 + notify_notification_show (notification)
10833 + NotifyNotification *notification
10834
10835 diff --git a/dev-perl/Gtk2-Unique/files/Gtk2-Unique-0.05-implicit-pointer.patch b/dev-perl/Gtk2-Unique/files/Gtk2-Unique-0.05-implicit-pointer.patch
10836 new file mode 100644
10837 index 0000000..1df5844
10838 --- /dev/null
10839 +++ b/dev-perl/Gtk2-Unique/files/Gtk2-Unique-0.05-implicit-pointer.patch
10840 @@ -0,0 +1,13 @@
10841 +Index: Gtk2-Unique-0.05/xs/UniqueApp.xs
10842 +===================================================================
10843 +--- Gtk2-Unique-0.05.orig/xs/UniqueApp.xs
10844 ++++ Gtk2-Unique-0.05/xs/UniqueApp.xs
10845 +@@ -1,6 +1,8 @@
10846 + #include "unique-perl.h"
10847 + #include <gperl_marshal.h>
10848 +
10849 ++G_CONST_RETURN gchar * unique_command_to_string (UniqueApp *app, gint command);
10850 ++
10851 + static void
10852 + perl_unique_app_marshall_message_received (
10853 + GClosure *closure,
10854
10855 diff --git a/dev-perl/HTML-Form/HTML-Form-6.0.0.ebuild b/dev-perl/HTML-Form/HTML-Form-6.0.0.ebuild
10856 new file mode 100644
10857 index 0000000..8137439
10858 --- /dev/null
10859 +++ b/dev-perl/HTML-Form/HTML-Form-6.0.0.ebuild
10860 @@ -0,0 +1,24 @@
10861 +# Copyright 1999-2011 Gentoo Foundation
10862 +# Distributed under the terms of the GNU General Public License v2
10863 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Form/HTML-Form-6.0.0.ebuild,v 1.11 2011/12/18 21:27:35 halcy0n Exp $
10864 +
10865 +EAPI=3
10866 +
10867 +MODULE_AUTHOR=GAAS
10868 +MODULE_VERSION=6.00
10869 +inherit perl-module
10870 +
10871 +DESCRIPTION="Class that represents an HTML form element"
10872 +
10873 +SLOT="0"
10874 +KEYWORDS="alpha amd64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-linux"
10875 +IUSE=""
10876 +
10877 +RDEPEND="
10878 + !<dev-perl/libwww-perl-6
10879 + >=dev-perl/HTTP-Message-6.0.0
10880 + >=dev-perl/URI-1.10
10881 + dev-perl/HTML-Parser
10882 + >=virtual/perl-Encode-2
10883 +"
10884 +DEPEND="${RDEPEND}"
10885
10886 diff --git a/dev-perl/HTML-Mason/HTML-Mason-1.42.ebuild b/dev-perl/HTML-Mason/HTML-Mason-1.42.ebuild
10887 new file mode 100644
10888 index 0000000..7ba9985
10889 --- /dev/null
10890 +++ b/dev-perl/HTML-Mason/HTML-Mason-1.42.ebuild
10891 @@ -0,0 +1,59 @@
10892 +# Copyright 1999-2011 Gentoo Foundation
10893 +# Distributed under the terms of the GNU General Public License v2
10894 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Mason/HTML-Mason-1.42.ebuild,v 1.7 2011/06/19 15:50:32 armin76 Exp $
10895 +
10896 +inherit depend.apache perl-module
10897 +
10898 +DESCRIPTION="A HTML development and delivery Perl Module"
10899 +SRC_URI="mirror://cpan/authors/id/D/DR/DROLSKY/${P}.tar.gz"
10900 +HOMEPAGE="http://www.masonhq.com/"
10901 +
10902 +SLOT="0"
10903 +LICENSE="|| ( Artistic GPL-2 )"
10904 +KEYWORDS="amd64 ppc x86"
10905 +IUSE="modperl doc"
10906 +SRC_TEST="do"
10907 +
10908 +RDEPEND="!modperl? ( virtual/perl-CGI )
10909 + modperl? (
10910 + www-apache/libapreq2
10911 + >=www-apache/mod_perl-2
10912 + )
10913 + >=dev-perl/Params-Validate-0.7
10914 + >=dev-perl/Class-Container-0.08
10915 + >=dev-perl/Exception-Class-1.15
10916 + dev-perl/HTML-Parser
10917 + virtual/perl-Scalar-List-Utils
10918 + virtual/perl-File-Spec
10919 + >=dev-perl/Cache-Cache-1.01
10920 + dev-lang/perl"
10921 +
10922 +DEPEND="${RDEPEND}
10923 + virtual/perl-Module-Build"
10924 +
10925 +want_apache2 modperl
10926 +
10927 +mydoc="CREDITS UPGRADE"
10928 +myconf="--noprompts"
10929 +
10930 +pkg_setup() {
10931 + depend.apache_pkg_setup modperl
10932 + perl-module_pkg_setup
10933 +}
10934 +
10935 +perl-module_src_prep() {
10936 + # Note about new modperl use flag
10937 + if use !modperl ; then
10938 + ewarn "HTML-Mason will only install with modperl support"
10939 + ewarn "if the use flag modperl is enabled."
10940 + sleep 5
10941 + fi
10942 + # rendhalver - needed to set an env var for the build script so it finds our apache.
10943 + APACHE="${APACHE_BIN}" perl ${S}/Build.PL installdirs=vendor destdir=${D} ${myconf}
10944 +}
10945 +
10946 +src_install () {
10947 + perl-module_src_install
10948 + # rendhalver - the html docs have subdirs so this gets all of them
10949 + use doc && dohtml -r htdocs/*
10950 +}
10951
10952 diff --git a/dev-perl/HTML-TableContentParser/files/0.13-test.patch b/dev-perl/HTML-TableContentParser/files/0.13-test.patch
10953 new file mode 100644
10954 index 0000000..79916ac
10955 --- /dev/null
10956 +++ b/dev-perl/HTML-TableContentParser/files/0.13-test.patch
10957 @@ -0,0 +1,74 @@
10958 +--- t/1.t
10959 ++++ t/1.t
10960 +@@ -2,6 +2,8 @@
10961 +
10962 +
10963 + use Test;
10964 ++use strict;
10965 ++use warnings;
10966 +
10967 + BEGIN { plan tests => 34 }
10968 +
10969 +@@ -20,7 +22,7 @@
10970 +
10971 + ## Test object creation
10972 +
10973 +-$obj = HTML::TableContentParser->new();
10974 ++my $obj = HTML::TableContentParser->new();
10975 + ok(defined $obj, 1, $@);
10976 +
10977 +
10978 +@@ -29,14 +31,14 @@
10979 + ## the correct values to the callback.
10980 +
10981 +
10982 +-$table_caption = 'This is a caption';
10983 +-$table_content1 = 'This is table cell content 1';
10984 +-$table_content2 = 'This is table cell content 2';
10985 +-$table_content3 = '<a href="SomeLink">This is table cell content 3, a link</a>';
10986 +-$table_content4 = 'Some more text wrapping <a href="SomeLink">This is table cell content 4</a> a link.';
10987 +-$header_text = 'Header text';
10988 ++my $table_caption = 'This is a caption';
10989 ++my $table_content1 = 'This is table cell content 1';
10990 ++my $table_content2 = 'This is table cell content 2';
10991 ++my $table_content3 = '<a href="SomeLink">This is table cell content 3, a link</a>';
10992 ++my $table_content4 = 'Some more text wrapping <a href="SomeLink">This is table cell content 4</a> a link.';
10993 ++my $header_text = 'Header text';
10994 +
10995 +-$html = qq{
10996 ++my $html = qq{
10997 + <html>
10998 + <head>
10999 + </head>
11000 +@@ -59,7 +61,7 @@
11001 +
11002 +
11003 + $HTML::TableContentParser::DEBUG = 0;
11004 +-$tables = $obj->parse($html);
11005 ++my $tables = $obj->parse($html);
11006 + ok($tables->[0]->{caption}->{data}, $table_caption, $@);
11007 + ok($tables->[0]->{rows}->[0]->{cells}->[0]->{data}, $table_content1, $@);
11008 + ok($tables->[0]->{rows}->[1]->{cells}->[0]->{data}, $table_content2, $@);
11009 +@@ -124,16 +126,17 @@
11010 + ok(@$tables, 2, @_);
11011 +
11012 + ## and three headers for each table
11013 +-for $t (0..$#{@$tables}) {
11014 +- for (0..$#hdrs) {
11015 +- ok($tables->[$t]->{headers}->[$_]->{data}, $hdrs[$_], $@);
11016 ++for my $t (0..(@$tables-1)) {
11017 ++ for (0..2) {
11018 ++ # ok($t, $t);
11019 ++ ok($tables->[$t]->{headers}->[$_]->{data}, $hdrs[$_], $@);
11020 + }
11021 + }
11022 +
11023 +
11024 + ## and three rows of three cells each, for each table.. (18 total).
11025 +-for $t (0..$#{@$tables}) {
11026 +- for $r (0..$#rows) {
11027 ++for my $t (0..1) {
11028 ++ for my $r (0..$#rows) {
11029 + for (0..2) {
11030 + ok($tables->[$t]->{rows}->[$r]->{cells}->[$_]->{data}, $rows[$r]->[$_], $@);
11031 + }
11032
11033 diff --git a/dev-perl/HTTP-Daemon/HTTP-Daemon-6.0.0.ebuild b/dev-perl/HTTP-Daemon/HTTP-Daemon-6.0.0.ebuild
11034 new file mode 100644
11035 index 0000000..5285497
11036 --- /dev/null
11037 +++ b/dev-perl/HTTP-Daemon/HTTP-Daemon-6.0.0.ebuild
11038 @@ -0,0 +1,26 @@
11039 +# Copyright 1999-2011 Gentoo Foundation
11040 +# Distributed under the terms of the GNU General Public License v2
11041 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Daemon/HTTP-Daemon-6.0.0.ebuild,v 1.15 2011/12/18 21:29:09 halcy0n Exp $
11042 +
11043 +EAPI=3
11044 +
11045 +MODULE_AUTHOR=GAAS
11046 +MODULE_VERSION=6.00
11047 +inherit perl-module
11048 +
11049 +DESCRIPTION="Base class for simple HTTP servers"
11050 +
11051 +SLOT="0"
11052 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
11053 +IUSE=""
11054 +
11055 +RDEPEND="
11056 + !<dev-perl/libwww-perl-6
11057 + >=dev-perl/HTTP-Date-6.0.0
11058 + virtual/perl-IO
11059 + >=dev-perl/HTTP-Message-6.0.0
11060 + >=dev-perl/LWP-MediaTypes-6.0.0
11061 +"
11062 +DEPEND="${RDEPEND}"
11063 +
11064 +SRC_TEST=online
11065
11066 diff --git a/dev-perl/HTTP-Date/HTTP-Date-6.0.0.ebuild b/dev-perl/HTTP-Date/HTTP-Date-6.0.0.ebuild
11067 new file mode 100644
11068 index 0000000..445a2d7
11069 --- /dev/null
11070 +++ b/dev-perl/HTTP-Date/HTTP-Date-6.0.0.ebuild
11071 @@ -0,0 +1,23 @@
11072 +# Copyright 1999-2011 Gentoo Foundation
11073 +# Distributed under the terms of the GNU General Public License v2
11074 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Date/HTTP-Date-6.0.0.ebuild,v 1.15 2011/12/18 21:35:18 halcy0n Exp $
11075 +
11076 +EAPI=3
11077 +
11078 +MODULE_AUTHOR=GAAS
11079 +MODULE_VERSION=6.00
11080 +inherit perl-module
11081 +
11082 +DESCRIPTION="Date conversion for HTTP date formats"
11083 +
11084 +SLOT="0"
11085 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
11086 +IUSE=""
11087 +
11088 +RDEPEND="
11089 + !<dev-perl/libwww-perl-6
11090 + virtual/perl-Time-Local
11091 +"
11092 +DEPEND="${RDEPEND}"
11093 +
11094 +SRC_TEST=do
11095
11096 diff --git a/dev-perl/HTTP-Message/HTTP-Message-6.20.0.ebuild b/dev-perl/HTTP-Message/HTTP-Message-6.20.0.ebuild
11097 new file mode 100644
11098 index 0000000..9d890e2
11099 --- /dev/null
11100 +++ b/dev-perl/HTTP-Message/HTTP-Message-6.20.0.ebuild
11101 @@ -0,0 +1,31 @@
11102 +# Copyright 1999-2011 Gentoo Foundation
11103 +# Distributed under the terms of the GNU General Public License v2
11104 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Message/HTTP-Message-6.20.0.ebuild,v 1.15 2011/12/18 21:30:39 halcy0n Exp $
11105 +
11106 +EAPI=3
11107 +
11108 +MODULE_AUTHOR=GAAS
11109 +MODULE_VERSION=6.02
11110 +inherit perl-module
11111 +
11112 +DESCRIPTION="Base class for Request/Response"
11113 +
11114 +SLOT="0"
11115 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
11116 +IUSE=""
11117 +
11118 +RDEPEND="
11119 + !<dev-perl/libwww-perl-6
11120 + virtual/perl-Compress-Raw-Zlib
11121 + >=dev-perl/URI-1.10
11122 + >=virtual/perl-Encode-2.12
11123 + >=dev-perl/HTTP-Date-6.0.0
11124 + >=dev-perl/Encode-Locale-1.0.0
11125 + >=dev-perl/LWP-MediaTypes-6.0.0
11126 + >=dev-perl/HTML-Parser-3.33
11127 + >=virtual/perl-IO-Compress-2.021
11128 + >=virtual/perl-MIME-Base64-2.1
11129 +"
11130 +DEPEND="${RDEPEND}"
11131 +
11132 +SRC_TEST=online
11133
11134 diff --git a/dev-perl/IO-AIO/IO-AIO-2.33.ebuild b/dev-perl/IO-AIO/IO-AIO-2.33.ebuild
11135 new file mode 100644
11136 index 0000000..5db62b1
11137 --- /dev/null
11138 +++ b/dev-perl/IO-AIO/IO-AIO-2.33.ebuild
11139 @@ -0,0 +1,18 @@
11140 +# Copyright 1999-2007 Gentoo Foundation
11141 +# Distributed under the terms of the GNU General Public License v2
11142 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-2.33.ebuild,v 1.2 2007/06/15 03:08:33 mcummings Exp $
11143 +
11144 +inherit perl-module
11145 +
11146 +DESCRIPTION="Asynchronous Input/Output"
11147 +HOMEPAGE="http://search.cpan.org/search?query=IO-AIO&mode=dist"
11148 +SRC_URI="mirror://cpan/authors/id/M/ML/MLEHMANN/${P}.tar.gz"
11149 +
11150 +IUSE=""
11151 +
11152 +SLOT="0"
11153 +LICENSE="|| ( Artistic GPL-2 )"
11154 +KEYWORDS="amd64 ~ppc ~x86"
11155 +
11156 +mydoc="Changes README"
11157 +SRC_TEST="do"
11158
11159 diff --git a/dev-perl/IO-AIO/IO-AIO-3.3.1.ebuild b/dev-perl/IO-AIO/IO-AIO-3.3.1.ebuild
11160 new file mode 100644
11161 index 0000000..b708729
11162 --- /dev/null
11163 +++ b/dev-perl/IO-AIO/IO-AIO-3.3.1.ebuild
11164 @@ -0,0 +1,24 @@
11165 +# Copyright 1999-2009 Gentoo Foundation
11166 +# Distributed under the terms of the GNU General Public License v2
11167 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.3.1.ebuild,v 1.1 2009/11/13 02:50:17 robbat2 Exp $
11168 +
11169 +inherit versionator
11170 +MODULE_AUTHOR="MLEHMANN"
11171 +MY_PV="$(get_major_version).$(delete_all_version_separators $(get_after_major_version))"
11172 +MY_P="${PN}-${MY_PV}"
11173 +S=${WORKDIR}/${MY_P}
11174 +inherit perl-module
11175 +
11176 +DESCRIPTION="Asynchronous Input/Output"
11177 +
11178 +IUSE=""
11179 +
11180 +SLOT="0"
11181 +LICENSE="|| ( Artistic GPL-2 )"
11182 +KEYWORDS="~amd64 ~ppc ~x86"
11183 +
11184 +mydoc="Changes README"
11185 +SRC_TEST="do"
11186 +
11187 +DEPEND="dev-perl/common-sense"
11188 +RDEPEND="${DEPEND}"
11189
11190 diff --git a/dev-perl/IO-AIO/IO-AIO-3.3.ebuild b/dev-perl/IO-AIO/IO-AIO-3.3.ebuild
11191 new file mode 100644
11192 index 0000000..6b89766
11193 --- /dev/null
11194 +++ b/dev-perl/IO-AIO/IO-AIO-3.3.ebuild
11195 @@ -0,0 +1,21 @@
11196 +# Copyright 1999-2009 Gentoo Foundation
11197 +# Distributed under the terms of the GNU General Public License v2
11198 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.3.ebuild,v 1.1 2009/08/25 17:49:58 robbat2 Exp $
11199 +
11200 +MODULE_AUTHOR="MLEHMANN"
11201 +inherit perl-module
11202 +
11203 +DESCRIPTION="Asynchronous Input/Output"
11204 +
11205 +IUSE=""
11206 +
11207 +SLOT="0"
11208 +LICENSE="|| ( Artistic GPL-2 )"
11209 +KEYWORDS="~amd64 ~ppc ~x86"
11210 +
11211 +mydoc="Changes README"
11212 +SRC_TEST="do"
11213 +
11214 +DEPEND="dev-lang/perl
11215 + dev-perl/common-sense"
11216 +RDEPEND="${DEPEND}"
11217
11218 diff --git a/dev-perl/IO-AIO/IO-AIO-3.6.5.ebuild b/dev-perl/IO-AIO/IO-AIO-3.6.5.ebuild
11219 new file mode 100644
11220 index 0000000..6639357
11221 --- /dev/null
11222 +++ b/dev-perl/IO-AIO/IO-AIO-3.6.5.ebuild
11223 @@ -0,0 +1,24 @@
11224 +# Copyright 1999-2010 Gentoo Foundation
11225 +# Distributed under the terms of the GNU General Public License v2
11226 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.6.5.ebuild,v 1.1 2010/04/23 18:20:03 robbat2 Exp $
11227 +
11228 +inherit versionator
11229 +MODULE_AUTHOR="MLEHMANN"
11230 +MY_PV="$(get_major_version).$(delete_all_version_separators $(get_after_major_version))"
11231 +MY_P="${PN}-${MY_PV}"
11232 +S=${WORKDIR}/${MY_P}
11233 +inherit perl-module
11234 +
11235 +DESCRIPTION="Asynchronous Input/Output"
11236 +
11237 +IUSE=""
11238 +
11239 +SLOT="0"
11240 +LICENSE="|| ( Artistic GPL-2 )"
11241 +KEYWORDS="~amd64 ~ppc ~x86"
11242 +
11243 +mydoc="Changes README"
11244 +SRC_TEST="do"
11245 +
11246 +DEPEND="dev-perl/common-sense"
11247 +RDEPEND="${DEPEND}"
11248
11249 diff --git a/dev-perl/IO-AIO/IO-AIO-3.6.ebuild b/dev-perl/IO-AIO/IO-AIO-3.6.ebuild
11250 new file mode 100644
11251 index 0000000..7289024
11252 --- /dev/null
11253 +++ b/dev-perl/IO-AIO/IO-AIO-3.6.ebuild
11254 @@ -0,0 +1,24 @@
11255 +# Copyright 1999-2010 Gentoo Foundation
11256 +# Distributed under the terms of the GNU General Public License v2
11257 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.6.ebuild,v 1.1 2010/03/27 21:35:33 robbat2 Exp $
11258 +
11259 +inherit versionator
11260 +MODULE_AUTHOR="MLEHMANN"
11261 +MY_PV="$(get_major_version).$(delete_all_version_separators $(get_after_major_version))"
11262 +MY_P="${PN}-${MY_PV}"
11263 +S=${WORKDIR}/${MY_P}
11264 +inherit perl-module
11265 +
11266 +DESCRIPTION="Asynchronous Input/Output"
11267 +
11268 +IUSE=""
11269 +
11270 +SLOT="0"
11271 +LICENSE="|| ( Artistic GPL-2 )"
11272 +KEYWORDS="~amd64 ~ppc ~x86"
11273 +
11274 +mydoc="Changes README"
11275 +SRC_TEST="do"
11276 +
11277 +DEPEND="dev-perl/common-sense"
11278 +RDEPEND="${DEPEND}"
11279
11280 diff --git a/dev-perl/IO-AIO/IO-AIO-3.650.ebuild b/dev-perl/IO-AIO/IO-AIO-3.650.ebuild
11281 new file mode 100644
11282 index 0000000..f0b52d8
11283 --- /dev/null
11284 +++ b/dev-perl/IO-AIO/IO-AIO-3.650.ebuild
11285 @@ -0,0 +1,20 @@
11286 +# Copyright 1999-2011 Gentoo Foundation
11287 +# Distributed under the terms of the GNU General Public License v2
11288 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.650.ebuild,v 1.1 2011/01/14 09:25:11 tove Exp $
11289 +
11290 +EAPI=3
11291 +
11292 +MODULE_AUTHOR="MLEHMANN"
11293 +MODULE_VERSION=3.65
11294 +inherit perl-module
11295 +
11296 +DESCRIPTION="Asynchronous Input/Output"
11297 +
11298 +SLOT="0"
11299 +KEYWORDS="~amd64 ~ppc ~x86"
11300 +IUSE=""
11301 +
11302 +DEPEND="dev-perl/common-sense"
11303 +RDEPEND="${DEPEND}"
11304 +
11305 +SRC_TEST="do"
11306
11307 diff --git a/dev-perl/IO-AIO/IO-AIO-3.710.ebuild b/dev-perl/IO-AIO/IO-AIO-3.710.ebuild
11308 new file mode 100644
11309 index 0000000..9ac9f2d
11310 --- /dev/null
11311 +++ b/dev-perl/IO-AIO/IO-AIO-3.710.ebuild
11312 @@ -0,0 +1,20 @@
11313 +# Copyright 1999-2011 Gentoo Foundation
11314 +# Distributed under the terms of the GNU General Public License v2
11315 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-AIO/IO-AIO-3.710.ebuild,v 1.2 2011/02/07 18:38:53 robbat2 Exp $
11316 +
11317 +EAPI=3
11318 +
11319 +MODULE_AUTHOR="MLEHMANN"
11320 +MODULE_VERSION=3.71
11321 +inherit perl-module
11322 +
11323 +DESCRIPTION="Asynchronous Input/Output"
11324 +
11325 +SLOT="0"
11326 +KEYWORDS="~amd64 ~ppc ~x86"
11327 +IUSE=""
11328 +
11329 +DEPEND="dev-perl/common-sense"
11330 +RDEPEND="${DEPEND}"
11331 +
11332 +SRC_TEST="do"
11333
11334 diff --git a/dev-perl/IO-Multiplex/IO-Multiplex-1.09.ebuild b/dev-perl/IO-Multiplex/IO-Multiplex-1.09.ebuild
11335 new file mode 100644
11336 index 0000000..5a1de97
11337 --- /dev/null
11338 +++ b/dev-perl/IO-Multiplex/IO-Multiplex-1.09.ebuild
11339 @@ -0,0 +1,18 @@
11340 +# Copyright 1999-2008 Gentoo Foundation
11341 +# Distributed under the terms of the GNU General Public License v2
11342 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-Multiplex/IO-Multiplex-1.09.ebuild,v 1.9 2008/03/28 08:33:46 jer Exp $
11343 +
11344 +inherit perl-module
11345 +
11346 +DESCRIPTION="Manage IO on many file handles "
11347 +HOMEPAGE="http://search.cpan.org/~bbb/"
11348 +SRC_URI="mirror://cpan/authors/id/B/BB/BBB/${P}.tar.gz"
11349 +
11350 +LICENSE="Artistic"
11351 +SLOT="0"
11352 +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
11353 +IUSE=""
11354 +
11355 +SRC_TEST="do"
11356 +
11357 +DEPEND="dev-lang/perl"
11358
11359 diff --git a/dev-perl/IO-Socket-IP/IO-Socket-IP-0.160.0.ebuild b/dev-perl/IO-Socket-IP/IO-Socket-IP-0.160.0.ebuild
11360 new file mode 100644
11361 index 0000000..76ccb21
11362 --- /dev/null
11363 +++ b/dev-perl/IO-Socket-IP/IO-Socket-IP-0.160.0.ebuild
11364 @@ -0,0 +1,32 @@
11365 +# Copyright 1999-2012 Gentoo Foundation
11366 +# Distributed under the terms of the GNU General Public License v2
11367 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-Socket-IP/IO-Socket-IP-0.160.0.ebuild,v 1.1 2012/06/26 19:22:52 tove Exp $
11368 +
11369 +EAPI="4-slot-abi"
11370 +
11371 +MODULE_AUTHOR=PEVANS
11372 +MODULE_VERSION=0.16
11373 +inherit perl-module
11374 +
11375 +DESCRIPTION='A drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6'
11376 +
11377 +SLOT="0"
11378 +KEYWORDS="~amd64 ~x86"
11379 +IUSE="test"
11380 +
11381 +RDEPEND="
11382 + >=virtual/perl-Socket-1.970.0
11383 +"
11384 +DEPEND="${RDEPEND}
11385 + virtual/perl-Module-Build
11386 + test? (
11387 + dev-perl/Test-Pod
11388 + )
11389 +"
11390 +
11391 +SRC_TEST="do"
11392 +
11393 +src_test() {
11394 + rm t/21nonblocking-connect-internet.t || die
11395 + perl-module_src_test
11396 +}
11397
11398 diff --git a/dev-perl/IO-Tty/IO-Tty-1.08.ebuild b/dev-perl/IO-Tty/IO-Tty-1.08.ebuild
11399 new file mode 100644
11400 index 0000000..21b3bfd
11401 --- /dev/null
11402 +++ b/dev-perl/IO-Tty/IO-Tty-1.08.ebuild
11403 @@ -0,0 +1,16 @@
11404 +# Copyright 1999-2010 Gentoo Foundation
11405 +# Distributed under the terms of the GNU General Public License v2
11406 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IO-Tty/IO-Tty-1.08.ebuild,v 1.6 2010/06/27 19:12:15 nixnut Exp $
11407 +
11408 +MODULE_AUTHOR=RGIERSIG
11409 +inherit perl-module
11410 +
11411 +DESCRIPTION="IO::Tty and IO::Pty modules for Perl"
11412 +
11413 +LICENSE="|| ( Artistic GPL-2 )"
11414 +SLOT="0"
11415 +KEYWORDS="alpha amd64 arm ia64 ppc ~ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
11416 +IUSE=""
11417 +
11418 +DEPEND="dev-lang/perl"
11419 +RDEPEND="${DEPEND}"
11420
11421 diff --git a/dev-perl/IP-Country/IP-Country-2.23.ebuild b/dev-perl/IP-Country/IP-Country-2.23.ebuild
11422 new file mode 100644
11423 index 0000000..92250c3
11424 --- /dev/null
11425 +++ b/dev-perl/IP-Country/IP-Country-2.23.ebuild
11426 @@ -0,0 +1,20 @@
11427 +# Copyright 1999-2012 Gentoo Foundation
11428 +# Distributed under the terms of the GNU General Public License v2
11429 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IP-Country/IP-Country-2.23.ebuild,v 1.9 2012/03/25 15:08:52 armin76 Exp $
11430 +
11431 +inherit perl-module
11432 +
11433 +DESCRIPTION="fast lookup of country codes from IP addresses"
11434 +SRC_URI="mirror://cpan/authors/id/N/NW/NWETTERS/${P}.tar.gz"
11435 +HOMEPAGE="http://search.cpan.org/~nwetters/${P}/"
11436 +
11437 +SLOT="0"
11438 +LICENSE="Artistic"
11439 +KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd"
11440 +IUSE=""
11441 +
11442 +SRC_TEST="do"
11443 +
11444 +DEPEND="dev-perl/Geography-Countries
11445 + dev-lang/perl"
11446 +mydoc="TODO"
11447
11448 diff --git a/dev-perl/IPC-Run/IPC-Run-0.89.ebuild b/dev-perl/IPC-Run/IPC-Run-0.89.ebuild
11449 new file mode 100644
11450 index 0000000..fa9cc56
11451 --- /dev/null
11452 +++ b/dev-perl/IPC-Run/IPC-Run-0.89.ebuild
11453 @@ -0,0 +1,21 @@
11454 +# Copyright 1999-2011 Gentoo Foundation
11455 +# Distributed under the terms of the GNU General Public License v2
11456 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IPC-Run/IPC-Run-0.89.ebuild,v 1.5 2011/07/22 14:06:58 jer Exp $
11457 +
11458 +EAPI=2
11459 +
11460 +MODULE_AUTHOR=TODDR
11461 +inherit perl-module
11462 +
11463 +DESCRIPTION="system() and background procs w/ piping, redirs, ptys"
11464 +
11465 +SLOT="0"
11466 +KEYWORDS="alpha amd64 hppa ia64 ~ppc ~ppc64 sparc x86"
11467 +IUSE="test"
11468 +
11469 +RDEPEND=">=dev-perl/IO-Tty-1.08"
11470 +DEPEND="${RDEPEND}
11471 + test? ( dev-perl/Test-Pod
11472 + dev-perl/Test-Pod-Coverage )"
11473 +
11474 +SRC_TEST=do
11475
11476 diff --git a/dev-perl/IPC-Run3/IPC-Run3-0.043.ebuild b/dev-perl/IPC-Run3/IPC-Run3-0.043.ebuild
11477 new file mode 100644
11478 index 0000000..2a339a3
11479 --- /dev/null
11480 +++ b/dev-perl/IPC-Run3/IPC-Run3-0.043.ebuild
11481 @@ -0,0 +1,22 @@
11482 +# Copyright 1999-2010 Gentoo Foundation
11483 +# Distributed under the terms of the GNU General Public License v2
11484 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/IPC-Run3/IPC-Run3-0.043.ebuild,v 1.10 2010/01/10 13:11:35 grobian Exp $
11485 +
11486 +EAPI=2
11487 +
11488 +MODULE_AUTHOR=RJBS
11489 +inherit perl-module
11490 +
11491 +DESCRIPTION="Run a subprocess in batch mode (a la system)"
11492 +
11493 +SLOT="0"
11494 +LICENSE="as-is"
11495 +KEYWORDS="alpha amd64 ~arm hppa ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos"
11496 +IUSE="test"
11497 +
11498 +SRC_TEST="do"
11499 +
11500 +RDEPEND=""
11501 +DEPEND="${RDEPEND}
11502 + test? ( >=dev-perl/Test-Pod-1.00
11503 + >=dev-perl/Test-Pod-Coverage-1.04 )"
11504
11505 diff --git a/dev-perl/IPC-Shareable/files/fix_perl_5.10_compat.patch b/dev-perl/IPC-Shareable/files/fix_perl_5.10_compat.patch
11506 new file mode 100644
11507 index 0000000..c788d58
11508 --- /dev/null
11509 +++ b/dev-perl/IPC-Shareable/files/fix_perl_5.10_compat.patch
11510 @@ -0,0 +1,17 @@
11511 +http://rt.cpan.org/Public/Bug/Display.html?id=41401
11512 +http://bugs.debian.org/507657
11513 +# Getting $# of an already-dereferenced-arrayref is a no-go in Perl 5.10
11514 +Index: libipc-shareable-perl/lib/IPC/Shareable.pm
11515 +===================================================================
11516 +--- libipc-shareable-perl.orig/lib/IPC/Shareable.pm 2008-12-03 10:51:27.000000000 -0600
11517 ++++ libipc-shareable-perl/lib/IPC/Shareable.pm 2008-12-03 10:51:46.000000000 -0600
11518 +@@ -452,7 +452,7 @@
11519 + my $n = shift;
11520 +
11521 + $self->{_data} = _thaw($self->{_shm}) unless $self->{_lock};
11522 +- $#{@{$self->{_data}}} = $n - 1;
11523 ++ $#{$self->{_data}} = $n - 1;
11524 + if ($self->{_lock} & LOCK_EX) {
11525 + $self->{_was_changed} = 1;
11526 + } else {
11527 +
11528
11529 diff --git a/dev-perl/Image-Scale/files/0.80.0-disable_autodetect.patch b/dev-perl/Image-Scale/files/0.80.0-disable_autodetect.patch
11530 new file mode 100644
11531 index 0000000..3611479
11532 --- /dev/null
11533 +++ b/dev-perl/Image-Scale/files/0.80.0-disable_autodetect.patch
11534 @@ -0,0 +1,44 @@
11535 +--- a/Makefile.PL
11536 ++++ b/Makefile.PL
11537 +@@ -13,6 +13,7 @@
11538 +
11539 + my ($help, $jpeg_inc, $jpeg_lib, $png_inc, $png_lib, $gif_inc, $gif_lib, $gif_lib_name);
11540 + my ($jpeg_static, $png_static, $gif_static);
11541 ++my ($disable_jpeg, $disable_png, $disable_gif);
11542 +
11543 + my $DEFINES = '-O2';
11544 + $DEFINES .= ' -Wall' unless $^O =~ /sun|solaris/i;
11545 +@@ -29,6 +30,9 @@
11546 +
11547 + my $result = GetOptions(
11548 + "help|h" => \$help,
11549 ++ "disable-jpeg" => \$disable_jpeg,
11550 ++ "disable-png" => \$disable_png,
11551 ++ "disable-gif" => \$disable_gif,
11552 + "with-jpeg-includes=s" => \$jpeg_inc,
11553 + "with-jpeg-libs=s" => \$jpeg_lib,
11554 + "with-jpeg-static" => \$jpeg_static,
11555 +@@ -75,6 +79,7 @@
11556 +
11557 + # Look for libjpeg
11558 + for my $incdir ( $jpeg_inc, @check ) {
11559 ++ last if $disable_jpeg;
11560 + if ( $incdir && -e catfile($incdir, 'jpeglib.h') ) {
11561 + $JPEG = 1;
11562 + $jpeg_inc = $incdir;
11563 +@@ -111,6 +116,7 @@
11564 +
11565 + # Look for libpng
11566 + for my $incdir ( $png_inc, @check ) {
11567 ++ last if $disable_png;
11568 + if ( $incdir && -e catfile($incdir, 'png.h') ) {
11569 + $PNG = 1;
11570 + $png_inc = $incdir;
11571 +@@ -144,6 +150,7 @@
11572 +
11573 + # Look for libgif
11574 + for my $incdir ( $gif_inc, @check ) {
11575 ++ last if $disable_gif;
11576 + if ( $incdir && -e catfile($incdir, 'gif_lib.h') ) {
11577 + $GIF = 1;
11578 + $gif_inc = $incdir;
11579
11580 diff --git a/dev-perl/Image-Scale/files/libpng-1.5-memcpy.patch b/dev-perl/Image-Scale/files/libpng-1.5-memcpy.patch
11581 new file mode 100644
11582 index 0000000..fa9ad60
11583 --- /dev/null
11584 +++ b/dev-perl/Image-Scale/files/libpng-1.5-memcpy.patch
11585 @@ -0,0 +1,11 @@
11586 +--- a/src/png.c
11587 ++++ b/src/png.c
11588 +@@ -40,7 +40,7 @@
11589 + }
11590 + }
11591 +
11592 +- png_memcpy(data, buffer_ptr(im->buf), len);
11593 ++ memcpy(data, buffer_ptr(im->buf), len);
11594 + buffer_consume(im->buf, len);
11595 +
11596 + goto ok;
11597
11598 diff --git a/dev-perl/Inline/Inline-0.44-r1.ebuild b/dev-perl/Inline/Inline-0.44-r1.ebuild
11599 new file mode 100644
11600 index 0000000..b5f3857
11601 --- /dev/null
11602 +++ b/dev-perl/Inline/Inline-0.44-r1.ebuild
11603 @@ -0,0 +1,37 @@
11604 +# Copyright 1999-2010 Gentoo Foundation
11605 +# Distributed under the terms of the GNU General Public License v2
11606 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Inline/Inline-0.44-r1.ebuild,v 1.28 2010/01/21 13:21:57 tove Exp $
11607 +
11608 +inherit perl-module eutils
11609 +
11610 +DESCRIPTION="Write Perl subroutines in other languages"
11611 +HOMEPAGE="http://search.cpan.org/doc/INGY/Inline-0.43/Inline.pod"
11612 +SRC_URI="mirror://cpan/authors/id/I/IN/INGY/${P}.tar.gz"
11613 +
11614 +LICENSE="Artistic"
11615 +SLOT="0"
11616 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
11617 +IUSE="gtk"
11618 +
11619 +DEPEND="virtual/perl-Digest-MD5
11620 + virtual/perl-File-Spec
11621 + dev-perl/Parse-RecDescent
11622 + virtual/perl-Test-Harness
11623 + dev-lang/perl"
11624 +
11625 +src_unpack() {
11626 + unpack ${P}.tar.gz
11627 + cd ${S}
11628 + #gtk-2 suggested patch
11629 + use gtk && epatch ${FILESDIR}/gtk2-patch.diff
11630 +}
11631 +
11632 +src_compile() {
11633 + echo "y" | perl-module_src_compile
11634 + perl-module_src_test
11635 +}
11636 +
11637 +src_install() {
11638 + perl-module_src_install
11639 + dohtml DT.html
11640 +}
11641
11642 diff --git a/dev-perl/Inline/files/gtk2-patch.diff b/dev-perl/Inline/files/gtk2-patch.diff
11643 new file mode 100644
11644 index 0000000..bf28ec5
11645 --- /dev/null
11646 +++ b/dev-perl/Inline/files/gtk2-patch.diff
11647 @@ -0,0 +1,32 @@
11648 +*** Inline-0.44/lib/Inline/denter.pm-orig 2001-06-13 06:30:50.000000000 +0200
11649 +--- Inline-0.44/lib/Inline/denter.pm 2002-11-13 15:43:41.000000000 +0100
11650 +***************
11651 +*** 177,182 ****
11652 +--- 177,183 ----
11653 + }
11654 +
11655 + sub _next_line {
11656 ++ local ($_);
11657 + my $o = shift;
11658 + $o->{done}++, $o->{level} = -1, return unless @{$o->{lines}};
11659 + $_ = shift @{$o->{lines}};
11660 +***************
11661 +*** 188,193 ****
11662 +--- 189,195 ----
11663 + $o->{done}++, $o->{level} = -1, return unless @{$o->{lines}};
11664 + my ($width, $tabwidth) = @{$o}{qw(width tabwidth)};
11665 + while (1) {
11666 ++ local ($_);
11667 + $_ = $o->{lines}[0];
11668 + # expand tabs in leading whitespace;
11669 + $o->next_line, next if /^(\s*$|\#)/; # skip comments and blank lines
11670 +***************
11671 +*** 221,226 ****
11672 +--- 223,229 ----
11673 +
11674 + sub indent_data {
11675 + my $o = shift;
11676 ++ local ($_);
11677 + $_ = shift;
11678 + return $o->indent_undef($_)
11679 + if not defined;
11680
11681 diff --git a/dev-perl/LWP-MediaTypes/LWP-MediaTypes-6.10.0.ebuild b/dev-perl/LWP-MediaTypes/LWP-MediaTypes-6.10.0.ebuild
11682 new file mode 100644
11683 index 0000000..0d277cc
11684 --- /dev/null
11685 +++ b/dev-perl/LWP-MediaTypes/LWP-MediaTypes-6.10.0.ebuild
11686 @@ -0,0 +1,22 @@
11687 +# Copyright 1999-2011 Gentoo Foundation
11688 +# Distributed under the terms of the GNU General Public License v2
11689 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/LWP-MediaTypes/LWP-MediaTypes-6.10.0.ebuild,v 1.15 2011/12/18 21:32:15 halcy0n Exp $
11690 +
11691 +EAPI=3
11692 +
11693 +MODULE_AUTHOR=GAAS
11694 +MODULE_VERSION=6.01
11695 +inherit perl-module
11696 +
11697 +DESCRIPTION="Media types and mailcap processing"
11698 +
11699 +SLOT="0"
11700 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
11701 +IUSE=""
11702 +
11703 +RDEPEND="
11704 + !<dev-perl/libwww-perl-6
11705 +"
11706 +DEPEND="${RDEPEND}"
11707 +
11708 +SRC_TEST=do
11709
11710 diff --git a/dev-perl/Locale-gettext/files/compatibility-with-POSIX-module.diff b/dev-perl/Locale-gettext/files/compatibility-with-POSIX-module.diff
11711 new file mode 100644
11712 index 0000000..101e9f2
11713 --- /dev/null
11714 +++ b/dev-perl/Locale-gettext/files/compatibility-with-POSIX-module.diff
11715 @@ -0,0 +1,16 @@
11716 +Bug-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=237378
11717 +Bug: http://rt.cpan.org/Public/Bug/Display.html?id=35680
11718 +Bug-Debian: http://bugs.debian.org/479803
11719 +Author: Raphaël Hertzog <hertzog@××××××.org>
11720 +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479803#20
11721 +
11722 +--- a/gettext.pm
11723 ++++ b/gettext.pm
11724 +@@ -32,6 +32,7 @@ to internationalize software.
11725 + =cut
11726 +
11727 + use Carp;
11728 ++use POSIX qw(:locale_h);
11729 +
11730 + require Exporter;
11731 + require DynaLoader;
11732
11733 diff --git a/dev-perl/Log-Log4perl/Log-Log4perl-1.28.ebuild b/dev-perl/Log-Log4perl/Log-Log4perl-1.28.ebuild
11734 new file mode 100644
11735 index 0000000..19a8575
11736 --- /dev/null
11737 +++ b/dev-perl/Log-Log4perl/Log-Log4perl-1.28.ebuild
11738 @@ -0,0 +1,21 @@
11739 +# Copyright 1999-2012 Gentoo Foundation
11740 +# Distributed under the terms of the GNU General Public License v2
11741 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Log-Log4perl/Log-Log4perl-1.28.ebuild,v 1.5 2012/06/16 18:46:36 armin76 Exp $
11742 +
11743 +EAPI=2
11744 +
11745 +MODULE_AUTHOR="MSCHILLI"
11746 +inherit perl-module
11747 +
11748 +DESCRIPTION="Log::Log4perl is a Perl port of the widely popular log4j logging package."
11749 +HOMEPAGE="http://log4perl.sourceforge.net/"
11750 +
11751 +SLOT="0"
11752 +KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
11753 +IUSE="test"
11754 +
11755 +RDEPEND="virtual/perl-Time-HiRes"
11756 +DEPEND="${RDEPEND}
11757 + test? ( virtual/perl-Test-Simple )"
11758 +
11759 +SRC_TEST="do"
11760
11761 diff --git a/dev-perl/Log-TraceMessages/Log-TraceMessages-1.4.ebuild b/dev-perl/Log-TraceMessages/Log-TraceMessages-1.4.ebuild
11762 new file mode 100644
11763 index 0000000..56ec68b
11764 --- /dev/null
11765 +++ b/dev-perl/Log-TraceMessages/Log-TraceMessages-1.4.ebuild
11766 @@ -0,0 +1,16 @@
11767 +# Copyright 1999-2012 Gentoo Foundation
11768 +# Distributed under the terms of the GNU General Public License v2
11769 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Log-TraceMessages/Log-TraceMessages-1.4.ebuild,v 1.13 2012/06/17 14:07:26 armin76 Exp $
11770 +
11771 +inherit perl-module
11772 +
11773 +DESCRIPTION="Logging/debugging aid"
11774 +SRC_URI="mirror://gentoo/${P}.tar.gz"
11775 +HOMEPAGE="http://search.cpan.org/~edavis/"
11776 +IUSE=""
11777 +SLOT="0"
11778 +LICENSE="|| ( Artistic GPL-2 )"
11779 +KEYWORDS="amd64 ppc x86"
11780 +SRC_TEST="do"
11781 +DEPEND=">=dev-perl/HTML-FromText-1.004
11782 + dev-lang/perl"
11783
11784 diff --git a/dev-perl/MIME-Types/MIME-Types-1.29.ebuild b/dev-perl/MIME-Types/MIME-Types-1.29.ebuild
11785 new file mode 100644
11786 index 0000000..6f55d93
11787 --- /dev/null
11788 +++ b/dev-perl/MIME-Types/MIME-Types-1.29.ebuild
11789 @@ -0,0 +1,20 @@
11790 +# Copyright 1999-2010 Gentoo Foundation
11791 +# Distributed under the terms of the GNU General Public License v2
11792 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MIME-Types/MIME-Types-1.29.ebuild,v 1.8 2010/12/03 00:45:02 xmw Exp $
11793 +
11794 +EAPI=2
11795 +
11796 +MODULE_AUTHOR=MARKOV
11797 +inherit perl-module
11798 +
11799 +DESCRIPTION="Definition of MIME types"
11800 +
11801 +SLOT="0"
11802 +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~sparc-solaris ~x86-solaris"
11803 +IUSE="test"
11804 +
11805 +RDEPEND=""
11806 +DEPEND="${RDEPEND}
11807 + test? ( dev-perl/Test-Pod )"
11808 +
11809 +SRC_TEST="do"
11810
11811 diff --git a/dev-perl/MIME-tools/MIME-tools-5.427.ebuild b/dev-perl/MIME-tools/MIME-tools-5.427.ebuild
11812 new file mode 100644
11813 index 0000000..46c5785
11814 --- /dev/null
11815 +++ b/dev-perl/MIME-tools/MIME-tools-5.427.ebuild
11816 @@ -0,0 +1,28 @@
11817 +# Copyright 1999-2010 Gentoo Foundation
11818 +# Distributed under the terms of the GNU General Public License v2
11819 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MIME-tools/MIME-tools-5.427.ebuild,v 1.9 2010/01/29 14:23:26 tove Exp $
11820 +
11821 +EAPI=2
11822 +
11823 +MODULE_AUTHOR=DONEILL
11824 +inherit perl-module
11825 +
11826 +DESCRIPTION="A Perl module for parsing and creating MIME entities"
11827 +
11828 +SLOT="0"
11829 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 ~s390 sparc x86 ~x86-fbsd"
11830 +IUSE=""
11831 +
11832 +RDEPEND=">=dev-perl/IO-stringy-2.108
11833 + >=virtual/perl-MIME-Base64-3.05
11834 + virtual/perl-libnet
11835 + dev-perl/URI
11836 + virtual/perl-Digest-MD5
11837 + dev-perl/libwww-perl
11838 + dev-perl/HTML-Tagset
11839 + dev-perl/HTML-Parser
11840 + dev-perl/MailTools
11841 + virtual/perl-File-Temp"
11842 +DEPEND="${RDEPEND}"
11843 +
11844 +SRC_TEST="do"
11845
11846 diff --git a/dev-perl/MIME-tools/MIME-tools-5.502.0.ebuild b/dev-perl/MIME-tools/MIME-tools-5.502.0.ebuild
11847 new file mode 100644
11848 index 0000000..ddce40a
11849 --- /dev/null
11850 +++ b/dev-perl/MIME-tools/MIME-tools-5.502.0.ebuild
11851 @@ -0,0 +1,32 @@
11852 +# Copyright 1999-2011 Gentoo Foundation
11853 +# Distributed under the terms of the GNU General Public License v2
11854 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MIME-tools/MIME-tools-5.502.0.ebuild,v 1.2 2011/09/07 16:23:28 jlec Exp $
11855 +
11856 +EAPI=3
11857 +
11858 +MODULE_AUTHOR=DSKOLL
11859 +MODULE_VERSION=5.502
11860 +inherit perl-module
11861 +
11862 +DESCRIPTION="A Perl module for parsing and creating MIME entities"
11863 +
11864 +SLOT="0"
11865 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
11866 +IUSE="test"
11867 +
11868 +RDEPEND=">=virtual/perl-MIME-Base64-3.05
11869 + virtual/perl-libnet
11870 + dev-perl/URI
11871 + virtual/perl-Digest-MD5
11872 + dev-perl/libwww-perl
11873 + dev-perl/HTML-Tagset
11874 + dev-perl/HTML-Parser
11875 + dev-perl/MailTools
11876 + virtual/perl-File-Temp"
11877 +DEPEND="${RDEPEND}
11878 + test? (
11879 + dev-perl/Test-Deep
11880 + dev-perl/Test-Pod
11881 + )"
11882 +
11883 +SRC_TEST="do"
11884
11885 diff --git a/dev-perl/MLDBM/MLDBM-2.01.ebuild b/dev-perl/MLDBM/MLDBM-2.01.ebuild
11886 new file mode 100644
11887 index 0000000..bf57502
11888 --- /dev/null
11889 +++ b/dev-perl/MLDBM/MLDBM-2.01.ebuild
11890 @@ -0,0 +1,14 @@
11891 +# Copyright 1999-2010 Gentoo Foundation
11892 +# Distributed under the terms of the GNU General Public License v2
11893 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MLDBM/MLDBM-2.01.ebuild,v 1.20 2010/12/03 02:12:49 xmw Exp $
11894 +
11895 +EAPI=2
11896 +
11897 +MODULE_AUTHOR=CHAMAS
11898 +inherit perl-module
11899 +
11900 +DESCRIPTION="A multidimensional/tied hash Perl Module"
11901 +
11902 +SLOT="0"
11903 +KEYWORDS="alpha amd64 ~arm ia64 ppc ~ppc64 s390 sparc x86"
11904 +IUSE=""
11905
11906 diff --git a/dev-perl/MP3-Tag/files/MP3-Tag-makefile.patch b/dev-perl/MP3-Tag/files/MP3-Tag-makefile.patch
11907 new file mode 100644
11908 index 0000000..1b7873a
11909 --- /dev/null
11910 +++ b/dev-perl/MP3-Tag/files/MP3-Tag-makefile.patch
11911 @@ -0,0 +1,17 @@
11912 +--- Makefile.PL.old 2005-12-15 08:45:16.000000000 +0900
11913 ++++ Makefile.PL 2005-12-15 08:45:49.000000000 +0900
11914 +@@ -35,14 +35,6 @@
11915 + 'clean' => {FILES => 'ID3v2-Data.pod'},
11916 + );
11917 +
11918 +-# Tell MakeMaker about manifying ID3v2-Data.pod
11919 +-package MY;
11920 +-sub manifypods {
11921 +- my $self = shift;
11922 +- $self->{MAN3PODS}->{'ID3v2-Data.pod'} = '$(INST_MAN3DIR)/MP3::Tag::ID3v2-Data.$(MAN3EXT)';
11923 +- $self->SUPER::manifypods(@_);
11924 +-}
11925 +-
11926 + sub postamble { # Not good enough: is done after .pod is moved to INST_LIB...
11927 + '
11928 + ID3v2-Data.pod :: Tag/ID3v2.pm # pm_to_blib
11929
11930 diff --git a/dev-perl/Mail-Builder/files/1.16-escape-at-for-perl-5.8.patch b/dev-perl/Mail-Builder/files/1.16-escape-at-for-perl-5.8.patch
11931 new file mode 100644
11932 index 0000000..f1d01be
11933 --- /dev/null
11934 +++ b/dev-perl/Mail-Builder/files/1.16-escape-at-for-perl-5.8.patch
11935 @@ -0,0 +1,14 @@
11936 +diff --git a/t/008_builder.t b/t/008_builder.t
11937 +index bde82ef..5776ba8 100755
11938 +--- a/t/008_builder.t
11939 ++++ b/t/008_builder.t
11940 +@@ -139,7 +139,7 @@ is($mime->head->get('Subject'),'Testmail'."\n");
11941 + is($mime->head->get('From'),'"me" <from2@××××.com>'."\n");
11942 +
11943 + is($mime->head->get('Content-Language'),'de'."\n");
11944 +-like($mime->head->get('Message-ID'),qr/<[0-9A-Za-z.@-]+>/);
11945 ++like($mime->head->get('Message-ID'),qr/<[0-9A-Za-z.\@-]+>/);
11946 + is($mime->parts,2);
11947 + is($mime->parts(0)->mime_type,'application/pdf');
11948 + is($mime->parts(1)->mime_type,'text/plain');
11949 +\ No newline at end of file
11950
11951 diff --git a/dev-perl/Mail-IMAPClient/files/2.2.9-skiptest.patch b/dev-perl/Mail-IMAPClient/files/2.2.9-skiptest.patch
11952 new file mode 100644
11953 index 0000000..11ccfb2
11954 --- /dev/null
11955 +++ b/dev-perl/Mail-IMAPClient/files/2.2.9-skiptest.patch
11956 @@ -0,0 +1,11 @@
11957 +--- Makefile.PL.orig 2005-01-07 23:17:00.849874616 -0200
11958 ++++ Makefile.PL 2005-01-07 23:18:32.815893656 -0200
11959 +@@ -49,7 +49,7 @@
11960 +
11961 + sub set_test_data {
11962 + unless (-f "./IMAPClient.pm") { warn "ERROR: not in installation directory\n"; return }
11963 +- return if -f "./test.txt";
11964 ++ return if -f "./Makefile.PL";
11965 + print "You have the option of running an extended suite of tests during\n",
11966 + "'make test'. This requires an IMAP server name, user account, and ",
11967 + "password to test with.","\n","\n",
11968
11969 diff --git a/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/24_google_safebrowsing.cf b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/24_google_safebrowsing.cf
11970 new file mode 100644
11971 index 0000000..8209802
11972 --- /dev/null
11973 +++ b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/24_google_safebrowsing.cf
11974 @@ -0,0 +1,18 @@
11975 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/24_google_safebrowsing.cf,v 1.1 2007/10/17 08:47:41 robbat2 Exp $
11976 +ifplugin Mail::SpamAssassin::Plugin::GoogleSafeBrowsing
11977 +
11978 +# Replace DEADBEEF with your API key
11979 +# from http://code.google.com/apis/safebrowsing/key_signup.html
11980 +google_safebrowsing_apikey DEADBEEF
11981 +
11982 +# Change these scores if you want
11983 +google_safebrowsing_blocklist goog-black-hash 0.2
11984 +google_safebrowsing_blocklist goog-malware-hash 0.1
11985 +
11986 +# Do not change these two lines!
11987 +body GOOGLE_SAFEBROWSING eval:check_google_safebrowsing_blocklists()
11988 +google_safebrowsing_dir /var/lib/spamassassin/google_safebrowsing/
11989 +
11990 +endif # Mail::SpamAssassin::Plugin::GoogleSafeBrowsing
11991 +
11992 +# vim: ft=conf:
11993
11994 diff --git a/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/init_google_safebrowsing.pre b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/init_google_safebrowsing.pre
11995 new file mode 100644
11996 index 0000000..be174ff
11997 --- /dev/null
11998 +++ b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/init_google_safebrowsing.pre
11999 @@ -0,0 +1,3 @@
12000 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/init_google_safebrowsing.pre,v 1.1 2007/10/17 08:47:41 robbat2 Exp $
12001 +# You need to uncomment this after you have an API key and the cronjob is active!
12002 +#loadplugin Mail::SpamAssassin::Plugin::GoogleSafeBrowsing
12003
12004 diff --git a/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.cron b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.cron
12005 new file mode 100644
12006 index 0000000..8e902fb
12007 --- /dev/null
12008 +++ b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.cron
12009 @@ -0,0 +1,5 @@
12010 +# Copyright 1999-2007 Gentoo Foundation
12011 +# Distributed under the terms of the GNU General Public License v2
12012 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.cron,v 1.1 2008/07/05 09:46:28 robbat2 Exp $
12013 +#
12014 +*/30 * * * * root /usr/sbin/update_google_safebrowsing.sh
12015
12016 diff --git a/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.sh b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.sh
12017 new file mode 100644
12018 index 0000000..a0f9896
12019 --- /dev/null
12020 +++ b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.sh
12021 @@ -0,0 +1,21 @@
12022 +#!/bin/sh
12023 +# Copyright 1999-2007 Gentoo Foundation
12024 +# Distributed under the terms of the GNU General Public License v2
12025 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/files/update_google_safebrowsing.sh,v 1.2 2008/07/05 09:46:28 robbat2 Exp $
12026 +# This cron script updates the Google SafeBrowsing lists for the use of the
12027 +# Mail-SpamAssassin-Plugin-GoogleSafeBrowsing plugin.
12028 +# It should be run every 25-30 minutes! http://code.google.com/apis/safebrowsing/developers_guide.html#AcceptableUsage
12029 +CONFFILE="/etc/mail/spamassassin/24_google_safebrowsing.cf"
12030 +OUTDIR="$(awk '/^google_safebrowsing_dir/{print $2}' "${CONFFILE}")"
12031 +APIKEY="$(awk '/^google_safebrowsing_apikey/{print $2}' "${CONFFILE}")"
12032 +LISTS="$(awk '/^google_safebrowsing_blocklist/{printf "%s ",$2}' "${CONFFILE}")"
12033 +if [ "$APIKEY" == "DEADBEEF" ]; then
12034 + echo "No API key!" 1>&2
12035 + exit 1
12036 +fi
12037 +# Wait a little while, to avoid hammering the server
12038 +sleep $(($RANDOM % 120))
12039 +# Use LISTS unquoted!
12040 +for LIST in ${LISTS}; do
12041 + blocklist_updater --apikey "$APIKEY" --blocklist ${LIST} --dbfile ${OUTDIR}/${LIST}-db
12042 +done
12043
12044 diff --git a/dev-perl/MailTools/MailTools-2.06.ebuild b/dev-perl/MailTools/MailTools-2.06.ebuild
12045 new file mode 100644
12046 index 0000000..ea05165
12047 --- /dev/null
12048 +++ b/dev-perl/MailTools/MailTools-2.06.ebuild
12049 @@ -0,0 +1,21 @@
12050 +# Copyright 1999-2012 Gentoo Foundation
12051 +# Distributed under the terms of the GNU General Public License v2
12052 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MailTools/MailTools-2.06.ebuild,v 1.7 2012/03/25 16:32:58 armin76 Exp $
12053 +
12054 +EAPI=2
12055 +
12056 +MODULE_AUTHOR=MARKOV
12057 +inherit perl-module
12058 +
12059 +DESCRIPTION="Manipulation of electronic mail addresses"
12060 +
12061 +SLOT="0"
12062 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
12063 +IUSE="test"
12064 +
12065 +RDEPEND=">=virtual/perl-libnet-1.0703
12066 + dev-perl/TimeDate"
12067 +DEPEND="${RDEPEND}
12068 + test? ( dev-perl/Test-Pod )"
12069 +
12070 +SRC_TEST="do"
12071
12072 diff --git a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.24.ebuild b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.24.ebuild
12073 new file mode 100644
12074 index 0000000..623f7f4
12075 --- /dev/null
12076 +++ b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.24.ebuild
12077 @@ -0,0 +1,19 @@
12078 +# Copyright 1999-2010 Gentoo Foundation
12079 +# Distributed under the terms of the GNU General Public License v2
12080 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.24.ebuild,v 1.8 2010/09/06 18:49:11 armin76 Exp $
12081 +
12082 +MODULE_AUTHOR="TELS/math"
12083 +inherit perl-module
12084 +
12085 +DESCRIPTION="Use the GMP library for Math::BigInt routines"
12086 +
12087 +IUSE=""
12088 +
12089 +SLOT="0"
12090 +LICENSE="|| ( Artistic GPL-2 )"
12091 +KEYWORDS="alpha amd64 hppa ppc sparc x86"
12092 +RDEPEND=">=perl-core/Math-BigInt-1.87
12093 + >=dev-libs/gmp-4.0.0"
12094 +DEPEND="${RDEPEND}"
12095 +
12096 +SRC_TEST="do"
12097
12098 diff --git a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.360.0.ebuild b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.360.0.ebuild
12099 new file mode 100644
12100 index 0000000..1f321d6
12101 --- /dev/null
12102 +++ b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.360.0.ebuild
12103 @@ -0,0 +1,21 @@
12104 +# Copyright 1999-2011 Gentoo Foundation
12105 +# Distributed under the terms of the GNU General Public License v2
12106 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.360.0.ebuild,v 1.1 2011/02/26 19:08:50 tove Exp $
12107 +
12108 +EAPI=3
12109 +
12110 +MODULE_AUTHOR=PJACKLAM
12111 +MODULE_VERSION=1.36
12112 +inherit perl-module
12113 +
12114 +DESCRIPTION="Use the GMP library for Math::BigInt routines"
12115 +
12116 +SLOT="0"
12117 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
12118 +IUSE=""
12119 +
12120 +RDEPEND=">=virtual/perl-Math-BigInt-1.993.0
12121 + >=dev-libs/gmp-4.0.0"
12122 +DEPEND="${RDEPEND}"
12123 +
12124 +SRC_TEST="do"
12125
12126 diff --git a/dev-perl/Math-Derivative/files/0.01-pod-1.diff b/dev-perl/Math-Derivative/files/0.01-pod-1.diff
12127 new file mode 100644
12128 index 0000000..acfe83c
12129 --- /dev/null
12130 +++ b/dev-perl/Math-Derivative/files/0.01-pod-1.diff
12131 @@ -0,0 +1,15 @@
12132 +Taken from debian
12133 +--- Derivative.pm
12134 ++++ Derivative.pm
12135 +@@ -1,8 +1,9 @@
12136 + # functions for calculating derivatives of data
12137 + # $Id: Derivative.pm,v 1.1 1995/12/26 16:26:59 willijar Exp $
12138 ++
12139 + =head1 NAME
12140 +
12141 +- Math::Derivative - Numeric 1st and 2nd order differentiation
12142 ++Math::Derivative - Numeric 1st and 2nd order differentiation
12143 +
12144 + =head1 SYNOPSIS
12145 +
12146 +
12147
12148 diff --git a/dev-perl/Math-Spline/files/0.01-pod.diff b/dev-perl/Math-Spline/files/0.01-pod.diff
12149 new file mode 100644
12150 index 0000000..a4b108d
12151 --- /dev/null
12152 +++ b/dev-perl/Math-Spline/files/0.01-pod.diff
12153 @@ -0,0 +1,10 @@
12154 +
12155 +--- libmath-spline-perl-0.01.orig/Spline.pm
12156 ++++ libmath-spline-perl-0.01/Spline.pm
12157 +@@ -1,4 +1,5 @@
12158 + # $Id: Spline.pm,v 1.1 1995/12/26 17:28:17 willijar Exp $
12159 ++
12160 + =head1 NAME
12161 +
12162 + Math::Spline - Cubic Spline Interpolation of data
12163 +
12164
12165 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.08.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.08.ebuild
12166 new file mode 100644
12167 index 0000000..5b29f82
12168 --- /dev/null
12169 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.08.ebuild
12170 @@ -0,0 +1,22 @@
12171 +# Copyright 1999-2007 Gentoo Foundation
12172 +# Distributed under the terms of the GNU General Public License v2
12173 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.08.ebuild,v 1.1 2007/10/27 01:26:30 robbat2 Exp $
12174 +
12175 +MODULE_AUTHOR="BRADFITZ"
12176 +inherit perl-module
12177 +
12178 +DESCRIPTION="Client library for the MogileFS distributed file system"
12179 +
12180 +IUSE=""
12181 +
12182 +SLOT="0"
12183 +LICENSE="|| ( Artistic GPL-2 )"
12184 +KEYWORDS="~amd64 ~ppc ~x86"
12185 +
12186 +DEPEND=">=dev-perl/IO-stringy-2.110
12187 + dev-perl/libwww-perl
12188 + dev-lang/perl"
12189 +
12190 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12191 +#SRC_TEST="do"
12192 +mydoc="CHANGES TODO"
12193
12194 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.09.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.09.ebuild
12195 new file mode 100644
12196 index 0000000..a3e7904
12197 --- /dev/null
12198 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.09.ebuild
12199 @@ -0,0 +1,22 @@
12200 +# Copyright 1999-2009 Gentoo Foundation
12201 +# Distributed under the terms of the GNU General Public License v2
12202 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.09.ebuild,v 1.1 2009/11/04 01:50:55 robbat2 Exp $
12203 +
12204 +MODULE_AUTHOR="DORMANDO"
12205 +inherit perl-module
12206 +
12207 +DESCRIPTION="Client library for the MogileFS distributed file system"
12208 +
12209 +IUSE=""
12210 +
12211 +SLOT="0"
12212 +LICENSE="|| ( Artistic GPL-2 )"
12213 +KEYWORDS="~amd64 ~ppc ~x86"
12214 +
12215 +DEPEND=">=dev-perl/IO-stringy-2.110
12216 + dev-perl/libwww-perl
12217 + dev-lang/perl"
12218 +
12219 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12220 +#SRC_TEST="do"
12221 +mydoc="CHANGES TODO"
12222
12223 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.10.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.10.ebuild
12224 new file mode 100644
12225 index 0000000..afbe96f
12226 --- /dev/null
12227 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.10.ebuild
12228 @@ -0,0 +1,22 @@
12229 +# Copyright 1999-2009 Gentoo Foundation
12230 +# Distributed under the terms of the GNU General Public License v2
12231 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.10.ebuild,v 1.1 2009/12/18 03:23:19 robbat2 Exp $
12232 +
12233 +MODULE_AUTHOR="DORMANDO"
12234 +inherit perl-module
12235 +
12236 +DESCRIPTION="Client library for the MogileFS distributed file system"
12237 +
12238 +IUSE=""
12239 +
12240 +SLOT="0"
12241 +LICENSE="|| ( Artistic GPL-2 )"
12242 +KEYWORDS="~amd64 ~ppc ~x86"
12243 +
12244 +DEPEND=">=dev-perl/IO-stringy-2.110
12245 + dev-perl/libwww-perl
12246 + dev-lang/perl"
12247 +
12248 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12249 +#SRC_TEST="do"
12250 +mydoc="CHANGES TODO"
12251
12252 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.11.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.11.ebuild
12253 new file mode 100644
12254 index 0000000..36a2923
12255 --- /dev/null
12256 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.11.ebuild
12257 @@ -0,0 +1,22 @@
12258 +# Copyright 1999-2010 Gentoo Foundation
12259 +# Distributed under the terms of the GNU General Public License v2
12260 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.11.ebuild,v 1.1 2010/04/02 23:57:32 robbat2 Exp $
12261 +
12262 +MODULE_AUTHOR="DORMANDO"
12263 +inherit perl-module
12264 +
12265 +DESCRIPTION="Client library for the MogileFS distributed file system"
12266 +
12267 +IUSE=""
12268 +
12269 +SLOT="0"
12270 +LICENSE="|| ( Artistic GPL-2 )"
12271 +KEYWORDS="~amd64 ~ppc ~x86"
12272 +
12273 +DEPEND=">=dev-perl/IO-stringy-2.110
12274 + dev-perl/libwww-perl
12275 + dev-lang/perl"
12276 +
12277 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12278 +#SRC_TEST="do"
12279 +mydoc="CHANGES TODO"
12280
12281 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.12.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.12.ebuild
12282 new file mode 100644
12283 index 0000000..ff0c529
12284 --- /dev/null
12285 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.12.ebuild
12286 @@ -0,0 +1,22 @@
12287 +# Copyright 1999-2010 Gentoo Foundation
12288 +# Distributed under the terms of the GNU General Public License v2
12289 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.12.ebuild,v 1.1 2010/08/20 21:13:57 robbat2 Exp $
12290 +
12291 +MODULE_AUTHOR="DORMANDO"
12292 +inherit perl-module
12293 +
12294 +DESCRIPTION="Client library for the MogileFS distributed file system"
12295 +
12296 +IUSE=""
12297 +
12298 +SLOT="0"
12299 +LICENSE="|| ( Artistic GPL-2 )"
12300 +KEYWORDS="~amd64 ~ppc ~x86"
12301 +
12302 +DEPEND=">=dev-perl/IO-stringy-2.110
12303 + dev-perl/libwww-perl
12304 + dev-lang/perl"
12305 +
12306 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12307 +#SRC_TEST="do"
12308 +mydoc="CHANGES TODO"
12309
12310 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.13.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.13.ebuild
12311 new file mode 100644
12312 index 0000000..eeb7fa3
12313 --- /dev/null
12314 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.13.ebuild
12315 @@ -0,0 +1,22 @@
12316 +# Copyright 1999-2010 Gentoo Foundation
12317 +# Distributed under the terms of the GNU General Public License v2
12318 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.13.ebuild,v 1.1 2010/10/29 02:02:37 robbat2 Exp $
12319 +
12320 +MODULE_AUTHOR="DORMANDO"
12321 +inherit perl-module
12322 +
12323 +DESCRIPTION="Client library for the MogileFS distributed file system"
12324 +
12325 +IUSE=""
12326 +
12327 +SLOT="0"
12328 +LICENSE="|| ( Artistic GPL-2 )"
12329 +KEYWORDS="~amd64 ~ppc ~x86"
12330 +
12331 +DEPEND=">=dev-perl/IO-stringy-2.110
12332 + dev-perl/libwww-perl
12333 + dev-lang/perl"
12334 +
12335 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12336 +#SRC_TEST="do"
12337 +mydoc="CHANGES TODO"
12338
12339 diff --git a/dev-perl/MogileFS-Client/MogileFS-Client-1.14.ebuild b/dev-perl/MogileFS-Client/MogileFS-Client-1.14.ebuild
12340 new file mode 100644
12341 index 0000000..90f443e
12342 --- /dev/null
12343 +++ b/dev-perl/MogileFS-Client/MogileFS-Client-1.14.ebuild
12344 @@ -0,0 +1,22 @@
12345 +# Copyright 1999-2011 Gentoo Foundation
12346 +# Distributed under the terms of the GNU General Public License v2
12347 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Client/MogileFS-Client-1.14.ebuild,v 1.1 2011/01/14 03:39:37 robbat2 Exp $
12348 +
12349 +MODULE_AUTHOR="DORMANDO"
12350 +inherit perl-module
12351 +
12352 +DESCRIPTION="Client library for the MogileFS distributed file system"
12353 +
12354 +IUSE=""
12355 +
12356 +SLOT="0"
12357 +LICENSE="|| ( Artistic GPL-2 )"
12358 +KEYWORDS="~amd64 ~ppc ~x86"
12359 +
12360 +DEPEND=">=dev-perl/IO-stringy-2.110
12361 + dev-perl/libwww-perl
12362 + dev-lang/perl"
12363 +
12364 +# Tests only available if you have a local mogilefsd on 127.0.0.1:7001
12365 +#SRC_TEST="do"
12366 +mydoc="CHANGES TODO"
12367
12368 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.13.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.13.ebuild
12369 new file mode 100644
12370 index 0000000..68e8464
12371 --- /dev/null
12372 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.13.ebuild
12373 @@ -0,0 +1,19 @@
12374 +# Copyright 1999-2009 Gentoo Foundation
12375 +# Distributed under the terms of the GNU General Public License v2
12376 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.13.ebuild,v 1.3 2009/07/19 17:40:43 tove Exp $
12377 +
12378 +MODULE_AUTHOR="DORMANDO"
12379 +inherit perl-module
12380 +
12381 +DESCRIPTION="Server for the MogileFS distributed file system"
12382 +
12383 +IUSE=""
12384 +
12385 +SLOT="0"
12386 +LICENSE="|| ( Artistic GPL-2 )"
12387 +KEYWORDS="~amd64 ~ppc ~x86"
12388 +
12389 +DEPEND="virtual/perl-IO-Compress
12390 + dev-perl/libwww-perl
12391 + >=dev-perl/MogileFS-Client-1.07
12392 + dev-lang/perl"
12393
12394 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.14.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.14.ebuild
12395 new file mode 100644
12396 index 0000000..046d70a
12397 --- /dev/null
12398 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.14.ebuild
12399 @@ -0,0 +1,19 @@
12400 +# Copyright 1999-2009 Gentoo Foundation
12401 +# Distributed under the terms of the GNU General Public License v2
12402 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.14.ebuild,v 1.2 2009/07/19 17:40:43 tove Exp $
12403 +
12404 +MODULE_AUTHOR="DORMANDO"
12405 +inherit perl-module
12406 +
12407 +DESCRIPTION="Server for the MogileFS distributed file system"
12408 +
12409 +IUSE=""
12410 +
12411 +SLOT="0"
12412 +LICENSE="|| ( Artistic GPL-2 )"
12413 +KEYWORDS="~amd64 ~ppc ~x86"
12414 +
12415 +DEPEND="virtual/perl-IO-Compress
12416 + dev-perl/libwww-perl
12417 + >=dev-perl/MogileFS-Client-1.07
12418 + dev-lang/perl"
12419
12420 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.15.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.15.ebuild
12421 new file mode 100644
12422 index 0000000..f1589da
12423 --- /dev/null
12424 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.15.ebuild
12425 @@ -0,0 +1,19 @@
12426 +# Copyright 1999-2009 Gentoo Foundation
12427 +# Distributed under the terms of the GNU General Public License v2
12428 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.15.ebuild,v 1.1 2009/12/18 03:23:51 robbat2 Exp $
12429 +
12430 +MODULE_AUTHOR="DORMANDO"
12431 +inherit perl-module
12432 +
12433 +DESCRIPTION="Server for the MogileFS distributed file system"
12434 +
12435 +IUSE=""
12436 +
12437 +SLOT="0"
12438 +LICENSE="|| ( Artistic GPL-2 )"
12439 +KEYWORDS="~amd64 ~ppc ~x86"
12440 +
12441 +DEPEND="virtual/perl-IO-Compress
12442 + dev-perl/libwww-perl
12443 + >=dev-perl/MogileFS-Client-1.07
12444 + dev-lang/perl"
12445
12446 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.16.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.16.ebuild
12447 new file mode 100644
12448 index 0000000..ad1abd1
12449 --- /dev/null
12450 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.16.ebuild
12451 @@ -0,0 +1,18 @@
12452 +# Copyright 1999-2010 Gentoo Foundation
12453 +# Distributed under the terms of the GNU General Public License v2
12454 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.16.ebuild,v 1.1 2010/04/02 23:58:38 robbat2 Exp $
12455 +
12456 +MODULE_AUTHOR="DORMANDO"
12457 +inherit perl-module
12458 +
12459 +DESCRIPTION="Server for the MogileFS distributed file system"
12460 +
12461 +IUSE=""
12462 +
12463 +SLOT="0"
12464 +LICENSE="|| ( Artistic GPL-2 )"
12465 +KEYWORDS="~amd64 ~ppc ~x86"
12466 +
12467 +DEPEND="virtual/perl-IO-Compress
12468 + dev-perl/libwww-perl
12469 + >=dev-perl/MogileFS-Client-1.11"
12470
12471 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.17.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.17.ebuild
12472 new file mode 100644
12473 index 0000000..4f0de9d
12474 --- /dev/null
12475 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.17.ebuild
12476 @@ -0,0 +1,18 @@
12477 +# Copyright 1999-2010 Gentoo Foundation
12478 +# Distributed under the terms of the GNU General Public License v2
12479 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.17.ebuild,v 1.1 2010/08/20 21:14:11 robbat2 Exp $
12480 +
12481 +MODULE_AUTHOR="DORMANDO"
12482 +inherit perl-module
12483 +
12484 +DESCRIPTION="Server for the MogileFS distributed file system"
12485 +
12486 +IUSE=""
12487 +
12488 +SLOT="0"
12489 +LICENSE="|| ( Artistic GPL-2 )"
12490 +KEYWORDS="~amd64 ~ppc ~x86"
12491 +
12492 +DEPEND="virtual/perl-IO-Compress
12493 + dev-perl/libwww-perl
12494 + >=dev-perl/MogileFS-Client-1.11"
12495
12496 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.18.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.18.ebuild
12497 new file mode 100644
12498 index 0000000..582a58b
12499 --- /dev/null
12500 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.18.ebuild
12501 @@ -0,0 +1,18 @@
12502 +# Copyright 1999-2010 Gentoo Foundation
12503 +# Distributed under the terms of the GNU General Public License v2
12504 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.18.ebuild,v 1.1 2010/10/29 02:03:50 robbat2 Exp $
12505 +
12506 +MODULE_AUTHOR="DORMANDO"
12507 +inherit perl-module
12508 +
12509 +DESCRIPTION="Server for the MogileFS distributed file system"
12510 +
12511 +IUSE=""
12512 +
12513 +SLOT="0"
12514 +LICENSE="|| ( Artistic GPL-2 )"
12515 +KEYWORDS="~amd64 ~ppc ~x86"
12516 +
12517 +DEPEND="virtual/perl-IO-Compress
12518 + dev-perl/libwww-perl
12519 + >=dev-perl/MogileFS-Client-1.11"
12520
12521 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.19.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.19.ebuild
12522 new file mode 100644
12523 index 0000000..d060545
12524 --- /dev/null
12525 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.19.ebuild
12526 @@ -0,0 +1,18 @@
12527 +# Copyright 1999-2011 Gentoo Foundation
12528 +# Distributed under the terms of the GNU General Public License v2
12529 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.19.ebuild,v 1.1 2011/01/14 03:40:42 robbat2 Exp $
12530 +
12531 +MODULE_AUTHOR="DORMANDO"
12532 +inherit perl-module
12533 +
12534 +DESCRIPTION="Server for the MogileFS distributed file system"
12535 +
12536 +IUSE=""
12537 +
12538 +SLOT="0"
12539 +LICENSE="|| ( Artistic GPL-2 )"
12540 +KEYWORDS="~amd64 ~ppc ~x86"
12541 +
12542 +DEPEND="virtual/perl-IO-Compress
12543 + dev-perl/libwww-perl
12544 + >=dev-perl/MogileFS-Client-1.14"
12545
12546 diff --git a/dev-perl/MogileFS-Utils/MogileFS-Utils-2.20.ebuild b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.20.ebuild
12547 new file mode 100644
12548 index 0000000..f87c7ea
12549 --- /dev/null
12550 +++ b/dev-perl/MogileFS-Utils/MogileFS-Utils-2.20.ebuild
12551 @@ -0,0 +1,18 @@
12552 +# Copyright 1999-2011 Gentoo Foundation
12553 +# Distributed under the terms of the GNU General Public License v2
12554 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/MogileFS-Utils/MogileFS-Utils-2.20.ebuild,v 1.1 2011/06/16 08:32:13 robbat2 Exp $
12555 +
12556 +MODULE_AUTHOR="DORMANDO"
12557 +inherit perl-module
12558 +
12559 +DESCRIPTION="Server for the MogileFS distributed file system"
12560 +
12561 +IUSE=""
12562 +
12563 +SLOT="0"
12564 +LICENSE="|| ( Artistic GPL-2 )"
12565 +KEYWORDS="~amd64 ~ppc ~x86"
12566 +
12567 +DEPEND="virtual/perl-IO-Compress
12568 + dev-perl/libwww-perl
12569 + >=dev-perl/MogileFS-Client-1.14"
12570
12571 diff --git a/dev-perl/Moo/Moo-0.91.9.ebuild b/dev-perl/Moo/Moo-0.91.9.ebuild
12572 new file mode 100644
12573 index 0000000..b5d586d
12574 --- /dev/null
12575 +++ b/dev-perl/Moo/Moo-0.91.9.ebuild
12576 @@ -0,0 +1,30 @@
12577 +# Copyright 1999-2012 Gentoo Foundation
12578 +# Distributed under the terms of the GNU General Public License v2
12579 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Moo/Moo-0.91.9.ebuild,v 1.1 2012/06/26 19:13:49 tove Exp $
12580 +
12581 +EAPI="4-slot-abi"
12582 +
12583 +MODULE_AUTHOR=MSTROUT
12584 +MODULE_VERSION=0.091009
12585 +inherit perl-module
12586 +
12587 +DESCRIPTION="Minimalist Object Orientation (with Moose compatiblity)"
12588 +
12589 +SLOT="0"
12590 +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x86-solaris"
12591 +IUSE="test"
12592 +
12593 +RDEPEND="
12594 + >=dev-perl/Class-Method-Modifiers-1.40.0
12595 + >=dev-perl/Module-Runtime-0.12.0
12596 + >=dev-perl/Role-Tiny-1.1.3
12597 + >=dev-perl/strictures-1.1.1
12598 +"
12599 +DEPEND="${RDEPEND}
12600 + test? (
12601 + >=dev-perl/Test-Fatal-0.3.0
12602 + >=virtual/perl-Test-Simple-0.96
12603 + )
12604 +"
12605 +
12606 +SRC_TEST=do
12607
12608 diff --git a/dev-perl/Moose/Moose-1.240.ebuild b/dev-perl/Moose/Moose-1.240.ebuild
12609 new file mode 100644
12610 index 0000000..2936d15
12611 --- /dev/null
12612 +++ b/dev-perl/Moose/Moose-1.240.ebuild
12613 @@ -0,0 +1,38 @@
12614 +# Copyright 1999-2012 Gentoo Foundation
12615 +# Distributed under the terms of the GNU General Public License v2
12616 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Moose/Moose-1.240.ebuild,v 1.5 2012/04/10 17:39:20 tove Exp $
12617 +
12618 +EAPI=3
12619 +
12620 +MODULE_AUTHOR=DROLSKY
12621 +MODULE_VERSION=1.24
12622 +inherit perl-module
12623 +
12624 +DESCRIPTION="A postmodern object system for Perl 5"
12625 +
12626 +SLOT="0"
12627 +KEYWORDS="ppc"
12628 +IUSE="test"
12629 +
12630 +RDEPEND="dev-perl/Data-OptList
12631 + >=virtual/perl-Scalar-List-Utils-1.19
12632 + >=dev-perl/Class-MOP-1.11
12633 + >=dev-perl/List-MoreUtils-0.12
12634 + >=dev-perl/Package-DeprecationManager-0.10
12635 + >=dev-perl/Params-Util-1.00
12636 + >=dev-perl/Sub-Exporter-0.980
12637 + dev-perl/Sub-Name
12638 + dev-perl/Try-Tiny
12639 + dev-perl/Devel-GlobalDestruction"
12640 +DEPEND="${RDEPEND}
12641 + test? ( >=virtual/perl-Test-Simple-0.88
12642 + dev-perl/Test-Fatal
12643 + dev-perl/Test-LongString
12644 + >=dev-perl/Test-Output-0.09
12645 + >=dev-perl/Test-Requires-0.05
12646 + >=dev-perl/Test-Warn-0.11
12647 + dev-perl/Test-Deep
12648 + dev-perl/Module-Refresh
12649 + )"
12650 +
12651 +SRC_TEST=do
12652
12653 diff --git a/dev-perl/Mouse/files/0.64-ppport.patch b/dev-perl/Mouse/files/0.64-ppport.patch
12654 new file mode 100644
12655 index 0000000..0374f2f
12656 --- /dev/null
12657 +++ b/dev-perl/Mouse/files/0.64-ppport.patch
12658 @@ -0,0 +1,27 @@
12659 +--- Mouse-0.64/inc/Module/Install/XSUtil.pm
12660 ++++ Mouse-0.64/inc/Module/Install/XSUtil.pm
12661 +@@ -116,24 +116,6 @@
12662 +
12663 + my $filename = 'ppport.h';
12664 +
12665 +- $dppp_version ||= 3.19; # the more, the better
12666 +- $self->configure_requires('Devel::PPPort' => $dppp_version);
12667 +- $self->build_requires('Devel::PPPort' => $dppp_version);
12668 +-
12669 +- print "Writing $filename\n";
12670 +-
12671 +- my $e = do{
12672 +- local $@;
12673 +- eval qq{
12674 +- use Devel::PPPort;
12675 +- Devel::PPPort::WriteFile(q{$filename});
12676 +- };
12677 +- $@;
12678 +- };
12679 +- if($e){
12680 +- print "Cannot create $filename because: $@\n";
12681 +- }
12682 +-
12683 + if(-e $filename){
12684 + $self->clean_files($filename);
12685 + $self->cc_define('-DUSE_PPPORT');
12686
12687 diff --git a/dev-perl/Net-CIDR-Lite/Net-CIDR-Lite-0.20.ebuild b/dev-perl/Net-CIDR-Lite/Net-CIDR-Lite-0.20.ebuild
12688 new file mode 100644
12689 index 0000000..38057e0
12690 --- /dev/null
12691 +++ b/dev-perl/Net-CIDR-Lite/Net-CIDR-Lite-0.20.ebuild
12692 @@ -0,0 +1,14 @@
12693 +# Copyright 1999-2010 Gentoo Foundation
12694 +# Distributed under the terms of the GNU General Public License v2
12695 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-CIDR-Lite/Net-CIDR-Lite-0.20.ebuild,v 1.14 2010/02/04 20:57:03 tove Exp $
12696 +
12697 +EAPI=2
12698 +
12699 +MODULE_AUTHOR=DOUGW
12700 +inherit perl-module
12701 +
12702 +DESCRIPTION="Perl extension for merging IPv4 or IPv6 CIDR addresses "
12703 +
12704 +SLOT="0"
12705 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
12706 +IUSE=""
12707
12708 diff --git a/dev-perl/Net-DNS/files/Net-DNS-0.64-ar.patch b/dev-perl/Net-DNS/files/Net-DNS-0.64-ar.patch
12709 new file mode 100644
12710 index 0000000..5f55edd
12711 --- /dev/null
12712 +++ b/dev-perl/Net-DNS/files/Net-DNS-0.64-ar.patch
12713 @@ -0,0 +1,13 @@
12714 +The linker on Darwin/x86 needs archives with an index, so create one.
12715 +
12716 +--- Makefile.PL
12717 ++++ Makefile.PL
12718 +@@ -260,7 +260,7 @@
12719 + cover
12720 +
12721 + netdns$(LIB_EXT): netdns$(OBJ_EXT)
12722 +- $(AR) '.($^O eq 'MSWin32' && $Config{'cc'} eq 'cl'?'/OUT:':'cr ').
12723 ++ $(AR) '.($^O eq 'MSWin32' && $Config{'cc'} eq 'cl'?'/OUT:':'crs ').
12724 + 'netdns$(LIB_EXT) netdns$(OBJ_EXT)
12725 +
12726 + ';
12727
12728 diff --git a/dev-perl/Net-DNS/files/Net-DNS-0.68-ar.patch b/dev-perl/Net-DNS/files/Net-DNS-0.68-ar.patch
12729 new file mode 100644
12730 index 0000000..cad63fa
12731 --- /dev/null
12732 +++ b/dev-perl/Net-DNS/files/Net-DNS-0.68-ar.patch
12733 @@ -0,0 +1,16 @@
12734 +The linker on Darwin/x86 needs archives with an index, so create one.
12735 +
12736 +Ported-from: files/Net-DNS-0.64-ar.patch
12737 +
12738 +diff -Nuar Net-DNS-0.68.orig/Makefile.PL Net-DNS-0.68/Makefile.PL
12739 +--- Net-DNS-0.68.orig/Makefile.PL 2012-01-27 23:02:34.000000000 +0000
12740 ++++ Net-DNS-0.68/Makefile.PL 2012-02-29 09:03:14.939727214 +0000
12741 +@@ -336,7 +336,7 @@
12742 + use Config qw(%Config);
12743 +
12744 + sub postamble {
12745 +- my $cr = ( $^O eq 'MSWin32' && $Config{'cc'} eq 'cl' ? '/OUT:' : 'cr ' ); # ar action
12746 ++ my $cr = ( $^O eq 'MSWin32' && $Config{'cc'} eq 'cl' ? '/OUT:' : 'crs ' ); # ar action
12747 +
12748 + my $content = '
12749 + test_cover : pure_all
12750
12751 diff --git a/dev-perl/Net-IP/files/initip-0.patch b/dev-perl/Net-IP/files/initip-0.patch
12752 new file mode 100644
12753 index 0000000..7f72638
12754 --- /dev/null
12755 +++ b/dev-perl/Net-IP/files/initip-0.patch
12756 @@ -0,0 +1,12 @@
12757 +diff -Naurp Net-IP-1.25.old/IP.pm Net-IP-1.25/IP.pm
12758 +--- Net-IP-1.25.old/IP.pm 2006-05-22 12:46:40.000000000 -0400
12759 ++++ Net-IP-1.25/IP.pm 2007-03-30 16:50:48.000000000 -0400
12760 +@@ -410,7 +410,7 @@ sub intip {
12761 +
12762 + my $int = ip_bintoint($self->binip());
12763 +
12764 +- if (!$int) {
12765 ++ if (ref($int) ne "Math::BigInt") {
12766 + $self->{error} = $ERROR;
12767 + $self->{errno} = $ERRNO;
12768 + return;
12769
12770 diff --git a/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch b/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch
12771 new file mode 100644
12772 index 0000000..05eac0e
12773 --- /dev/null
12774 +++ b/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch
12775 @@ -0,0 +1,12 @@
12776 +diff --git a/lib/Net/SMTP/TLS.pm b/lib/Net/SMTP/TLS.pm
12777 +index 10f9f19..4936fe5 100644
12778 +--- a/lib/Net/SMTP/TLS.pm
12779 ++++ b/lib/Net/SMTP/TLS.pm
12780 +@@ -367,6 +367,7 @@ sub datasend {
12781 + return undef;
12782 + }
12783 + $len -= $w;
12784 ++ $offset += $w;
12785 + }
12786 + else
12787 + {
12788
12789 diff --git a/dev-perl/Net-Telnet-Cisco/files/1.10-warning.patch b/dev-perl/Net-Telnet-Cisco/files/1.10-warning.patch
12790 new file mode 100644
12791 index 0000000..1ec1172
12792 --- /dev/null
12793 +++ b/dev-perl/Net-Telnet-Cisco/files/1.10-warning.patch
12794 @@ -0,0 +1,15 @@
12795 +https://bugs.gentoo.org/show_bug.cgi?id=192808
12796 +http://rt.cpan.org/Public/Bug/Display.html?id=7796
12797 +
12798 +diff -ru Net-Telnet-Cisco-1.10/Cisco.pm Net-Telnet-Cisco-1.10/Cisco.pm
12799 +--- Net-Telnet-Cisco-1.10/Cisco.pm 2002-06-18 19:17:03.000000000 +0200
12800 ++++ Net-Telnet-Cisco-1.10/Cisco.pm 2008-05-08 20:59:09.000000000 +0200
12801 +@@ -753,7 +753,7 @@
12802 + 1 while s/[^\cH\c?][\cH\c?]//mg; # ^H ^?
12803 + s/^.*\cU//mg; # ^U
12804 +
12805 +- return wantarray ? split /$/mg, $_ : $_; # ORS instead?
12806 ++ return wantarray ? split /$/m, $_ : $_; # ORS instead?
12807 + }
12808 +
12809 + # Lifted from Net::Telnet en toto
12810
12811 diff --git a/dev-perl/Net-XMPP/files/1.02-defined.patch b/dev-perl/Net-XMPP/files/1.02-defined.patch
12812 new file mode 100644
12813 index 0000000..adac59b
12814 --- /dev/null
12815 +++ b/dev-perl/Net-XMPP/files/1.02-defined.patch
12816 @@ -0,0 +1,14 @@
12817 +https://rt.cpan.org/Public/Bug/Display.html?id=58333
12818 +http://github.com/dap/Net-XMPP/commit/2d1164d7c50d7c034f3d1efb03ad9319b24dfd24
12819 +
12820 +--- Net-XMPP-1.02/lib/Net/XMPP/Debug.pm
12821 ++++ Net-XMPP-1.02/lib/Net/XMPP/Debug.pm
12822 +@@ -151,7 +151,7 @@
12823 + my %args;
12824 + while($#_ >= 0) { $args{ lc pop(@_) } = pop(@_); }
12825 +
12826 +- delete($args{file}) if (lc($args{file}) eq "stdout");
12827 ++ delete($args{file}) if (defined $args{file} && lc($args{file}) eq "stdout");
12828 +
12829 + $args{time} = 0 if !exists($args{time});
12830 + $args{setdefault} = 0 if !exists($args{setdefault});
12831
12832 diff --git a/dev-perl/NetAddr-IP/NetAddr-IP-4.028.ebuild b/dev-perl/NetAddr-IP/NetAddr-IP-4.028.ebuild
12833 new file mode 100644
12834 index 0000000..7b0f170
12835 --- /dev/null
12836 +++ b/dev-perl/NetAddr-IP/NetAddr-IP-4.028.ebuild
12837 @@ -0,0 +1,18 @@
12838 +# Copyright 1999-2012 Gentoo Foundation
12839 +# Distributed under the terms of the GNU General Public License v2
12840 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/NetAddr-IP/NetAddr-IP-4.028.ebuild,v 1.9 2012/03/25 16:32:33 armin76 Exp $
12841 +
12842 +EAPI=2
12843 +
12844 +MODULE_AUTHOR="MIKER"
12845 +inherit perl-module
12846 +
12847 +DESCRIPTION="Manipulation and operations on IP addresses"
12848 +
12849 +SLOT="0"
12850 +LICENSE="Artistic"
12851 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sh sparc x86"
12852 +IUSE=""
12853 +
12854 +SRC_TEST="do"
12855 +mydoc="TODO"
12856
12857 diff --git a/dev-perl/Number-Format/Number-Format-1.52.ebuild b/dev-perl/Number-Format/Number-Format-1.52.ebuild
12858 new file mode 100644
12859 index 0000000..646f94c
12860 --- /dev/null
12861 +++ b/dev-perl/Number-Format/Number-Format-1.52.ebuild
12862 @@ -0,0 +1,18 @@
12863 +# Copyright 1999-2007 Gentoo Foundation
12864 +# Distributed under the terms of the GNU General Public License v2
12865 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Number-Format/Number-Format-1.52.ebuild,v 1.5 2007/03/05 12:19:38 ticho Exp $
12866 +
12867 +inherit perl-module
12868 +
12869 +DESCRIPTION="Package for formatting numbers for display"
12870 +SRC_URI="mirror://cpan/authors/id/W/WR/WRW/${P}.tar.gz"
12871 +HOMEPAGE="http://www.cpan.org/modules/by-authors/id/W/WR/WRW/${P}.readme"
12872 +
12873 +SLOT="0"
12874 +LICENSE="|| ( Artistic GPL-2 )"
12875 +KEYWORDS="amd64 ia64 ppc x86"
12876 +IUSE=""
12877 +
12878 +SRC_TEST="do"
12879 +
12880 +DEPEND="dev-lang/perl"
12881
12882 diff --git a/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch b/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch
12883 new file mode 100644
12884 index 0000000..6bdc334
12885 --- /dev/null
12886 +++ b/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch
12887 @@ -0,0 +1,50 @@
12888 +Don't check current display for extensions, build all.
12889 +
12890 +diff -up OpenGL-0.62/Makefile.PL.dist OpenGL-0.62/Makefile.PL
12891 +--- OpenGL-0.62/Makefile.PL.dist 2009-12-11 01:10:00.000000000 +0100
12892 ++++ OpenGL-0.62/Makefile.PL 2010-01-07 13:00:26.000000000 +0100
12893 +@@ -579,9 +579,9 @@ my $build_config =
12894 + {
12895 + FILES =>
12896 + "Config.pm ".
12897 +- "utils/glversion.txt ".
12898 +- "utils/glversion$Config{exe_ext} ".
12899 +- "utils/glversion$Config{obj_ext}"
12900 ++ "utils/glversion.txt "
12901 ++ #"utils/glversion$Config{exe_ext} ".
12902 ++ #"utils/glversion$Config{obj_ext}"
12903 + }
12904 + };
12905 +
12906 +@@ -790,6 +790,7 @@ sub get_extensions
12907 + print "GLUT not found\n";
12908 + }
12909 +
12910 ++=cut
12911 + # Platform-specific makefiles for glversion
12912 + my $make_ver;
12913 + if ($IS_MINGW)
12914 +@@ -848,7 +849,9 @@ sub get_extensions
12915 + print "get_extensions: no extensions found in $glv_file\n" if $verbose;
12916 + return '';
12917 + }
12918 +-
12919 ++=cut
12920 ++ use Config;
12921 ++ my $gldata = { };
12922 +
12923 + # Parse glext_procs.h file
12924 + return '' if (!open(GLEXT,"glext_procs.h"));
12925 +@@ -867,10 +870,12 @@ sub get_extensions
12926 +
12927 + # Create gl_exclude.h
12928 + die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
12929 ++=cut
12930 + print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
12931 + print GLEXC "//\n";
12932 + print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
12933 + print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
12934 ++=cut
12935 +
12936 + # Fix GLUT flags based on results
12937 + if ($gldata->{GLUT} > 0)
12938
12939 diff --git a/dev-perl/PDL/PDL-2.4.3-r1.ebuild b/dev-perl/PDL/PDL-2.4.3-r1.ebuild
12940 new file mode 100644
12941 index 0000000..2f2a098
12942 --- /dev/null
12943 +++ b/dev-perl/PDL/PDL-2.4.3-r1.ebuild
12944 @@ -0,0 +1,92 @@
12945 +# Copyright 1999-2010 Gentoo Foundation
12946 +# Distributed under the terms of the GNU General Public License v2
12947 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.3-r1.ebuild,v 1.16 2010/12/14 03:17:41 mattst88 Exp $
12948 +
12949 +inherit perl-module eutils multilib
12950 +
12951 +DESCRIPTION="PDL Perl Module"
12952 +HOMEPAGE="http://search.cpan.org/~csoe/"
12953 +SRC_URI="mirror://cpan/authors/id/C/CS/CSOE/${P}.tar.gz"
12954 +
12955 +LICENSE="Artistic as-is"
12956 +SLOT="0"
12957 +KEYWORDS="alpha amd64 arm hppa ia64 ppc ~s390 sh sparc x86"
12958 +IUSE="opengl badval gsl"
12959 +
12960 +DEPEND=">=sys-libs/ncurses-5.2
12961 + virtual/perl-Filter
12962 + virtual/perl-File-Spec
12963 + dev-perl/Inline
12964 + dev-perl/Astro-FITS-Header
12965 + >=dev-perl/ExtUtils-F77-1.13
12966 + virtual/perl-Text-Balanced
12967 + opengl? ( virtual/opengl virtual/glu )
12968 + dev-perl/Term-ReadLine-Perl
12969 + gsl? ( sci-libs/gsl )
12970 + >=sys-apps/sed-4"
12971 +
12972 +mydoc="DEPENDENCIES DEVELOPMENT MANIFEST* Release_Notes TODO"
12973 +
12974 +#SRC_TEST="do"
12975 +
12976 +src_unpack() {
12977 + unpack ${A}
12978 + cd "${S}"
12979 +
12980 + epatch "${FILESDIR}/PDL-2.4.2-makemakerfix.patch"
12981 +
12982 + # Unconditional -fPIC for the lib (#55238, #180807)
12983 + epatch "${FILESDIR}/${P}-PIC.patch"
12984 +
12985 + # TODO: everything in this function below this
12986 + # TODO: line really belongs in src_compile() :
12987 +
12988 + # This 'fix' breaks compiles for non-opengl users
12989 + #if ! use opengl ; then
12990 + # sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
12991 + # ${FILESDIR}/perldl.conf > ${S}/perldl.conf
12992 + #fi
12993 +
12994 + if use badval ; then
12995 + sed -i -e "s:WITH_BADVAL => 0:WITH_BADVAL => 1:" "${S}/perldl.conf"
12996 + fi
12997 +
12998 + # Turn off GSL automagic:
12999 + if use gsl ; then
13000 + sed -i -e "s:WITH_GSL => undef:WITH_GSL => 1:" "${S}/perldl.conf"
13001 + else
13002 + sed -i -e "s:WITH_GSL => undef:WITH_GSL => 0:" "${S}/perldl.conf"
13003 + fi
13004 +}
13005 +
13006 +src_install() {
13007 + perl-module_src_install
13008 + dodir /usr/share/doc/${PF}/html
13009 + eval `perl '-V:version'`
13010 + PERLVERSION=${version}
13011 + eval `perl '-V:archname'`
13012 + ARCHVERSION=${archname}
13013 + mv ${D}/usr/$(get_libdir)/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/PDL/HtmlDocs/PDL \
13014 + ${D}/usr/share/doc/${PF}/html
13015 +
13016 + mydir=${D}/usr/share/doc/${PF}/html/PDL
13017 +
13018 + for i in ${mydir}/* ${mydir}/IO/* ${mydir}/Fit/* ${mydir}/Pod/* ${mydir}/Graphics/*
13019 + do
13020 + dosed ${i/${D}}
13021 + done
13022 + cp ${S}/Doc/scantree.pl ${D}/usr/$(get_libdir)/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/PDL/Doc/
13023 + cp ${S}/Doc/mkhtmldoc.pl ${D}/usr/$(get_libdir)/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/PDL/Doc/
13024 +}
13025 +
13026 +pkg_postinst() {
13027 + perl /usr/$(get_libdir)/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/PDL/Doc/scantree.pl
13028 + elog "Building perldl.db done. You can recreate this at any time"
13029 + elog "by running"
13030 + elog "perl /usr/$(get_libdir)/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/PDL/Doc/scantree.pl"
13031 + epause 3
13032 + elog "PDL requires that glx and dri support be enabled in"
13033 + elog "your X configuration for certain parts of the graphics"
13034 + elog "engine to work. See your X's documentation for futher"
13035 + elog "information."
13036 +}
13037
13038 diff --git a/dev-perl/PDL/PDL-2.4.7.ebuild b/dev-perl/PDL/PDL-2.4.7.ebuild
13039 new file mode 100644
13040 index 0000000..2a6dda2
13041 --- /dev/null
13042 +++ b/dev-perl/PDL/PDL-2.4.7.ebuild
13043 @@ -0,0 +1,92 @@
13044 +# Copyright 1999-2010 Gentoo Foundation
13045 +# Distributed under the terms of the GNU General Public License v2
13046 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.7.ebuild,v 1.3 2010/08/23 13:39:54 tove Exp $
13047 +
13048 +EAPI=2
13049 +
13050 +MODULE_AUTHOR=CHM
13051 +inherit perl-module eutils multilib
13052 +
13053 +DESCRIPTION="PDL Perl Module"
13054 +
13055 +LICENSE="Artistic as-is"
13056 +SLOT="0"
13057 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
13058 +IUSE="badval fftw gsl"
13059 +
13060 +DEPEND=">=sys-libs/ncurses-5.2
13061 + virtual/perl-Filter
13062 + virtual/perl-File-Spec
13063 + virtual/perl-PodParser
13064 + dev-perl/Inline
13065 + dev-perl/Astro-FITS-Header
13066 + >=dev-perl/ExtUtils-F77-1.13
13067 + virtual/perl-Text-Balanced
13068 + dev-perl/Term-ReadLine-Perl
13069 + gsl? ( sci-libs/gsl )
13070 + fftw? ( sci-libs/fftw:2.1 )"
13071 + #opengl? ( virtual/opengl virtual/glu )
13072 +
13073 +mydoc="DEPENDENCIES DEVELOPMENT MANIFEST* Release_Notes TODO"
13074 +
13075 +SRC_TEST="do"
13076 +
13077 +MAKEOPTS+=" -j1" #300272
13078 +
13079 +src_prepare() {
13080 + epatch "${FILESDIR}/PDL-2.4.2-makemakerfix.patch"
13081 +
13082 + # Unconditional -fPIC for the lib (#55238, #180807, #250335)
13083 + epatch "${FILESDIR}/${PN}-2.4.4-PIC.patch"
13084 +
13085 + # TODO: everything in this function below this
13086 + # TODO: line really belongs in src_compile() :
13087 +
13088 + # This 'fix' breaks compiles for non-opengl users
13089 + #if ! use opengl ; then
13090 + # sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
13091 + # ${FILESDIR}/perldl.conf > ${S}/perldl.conf
13092 + #fi
13093 + sed -i \
13094 + -e "s:WITH_HDF => undef:WITH_HDF => 0:" \
13095 + -e "s:USE_POGL => undef:USE_POGL => 0:" \
13096 + -e "s:WITH_3D => undef:WITH_3D => 0:" "${S}/perldl.conf" || die
13097 +
13098 + if use badval ; then
13099 + sed -i -e "s:WITH_BADVAL => 0:WITH_BADVAL => 1:" "${S}/perldl.conf" || die
13100 + fi
13101 +
13102 + # Turn off GSL automagic:
13103 + if use gsl ; then
13104 + sed -i -e "s:WITH_GSL => undef:WITH_GSL => 1:" "${S}/perldl.conf" || die
13105 + else
13106 + sed -i -e "s:WITH_GSL => undef:WITH_GSL => 0:" "${S}/perldl.conf" || die
13107 + fi
13108 + # Turn off FFTW automagic too:
13109 + if use fftw ; then
13110 + sed -i -e "s:WITH_FFTW => undef:WITH_FFTW => 1:" "${S}/perldl.conf" || die
13111 + else
13112 + sed -i -e "s:WITH_FFTW => undef:WITH_FFTW => 0:" "${S}/perldl.conf" || die
13113 + fi
13114 +}
13115 +
13116 +src_install() {
13117 + perl-module_src_install
13118 +
13119 + cp "${S}"/Doc/{scantree.pl,mkhtmldoc.pl} "${D}"/${VENDOR_ARCH}/PDL/Doc/ || die
13120 +}
13121 +
13122 +pkg_postinst() {
13123 + if [[ ${ROOT} = / ]] ; then
13124 + perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl
13125 + elog "Building perldl.db done. You can recreate this at any time"
13126 + elog "by running"
13127 + else
13128 + elog "You must create perldl.db by running"
13129 + fi
13130 + elog "perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl"
13131 + elog "PDL requires that glx and dri support be enabled in"
13132 + elog "your X configuration for certain parts of the graphics"
13133 + elog "engine to work. See your X's documentation for futher"
13134 + elog "information."
13135 +}
13136
13137 diff --git a/dev-perl/PDL/files/PDL-2.4.11-fortran.patch b/dev-perl/PDL/files/PDL-2.4.11-fortran.patch
13138 new file mode 100644
13139 index 0000000..5cd08d7
13140 --- /dev/null
13141 +++ b/dev-perl/PDL/files/PDL-2.4.11-fortran.patch
13142 @@ -0,0 +1,22 @@
13143 +--- Lib/Minuit/Makefile.PL
13144 ++++ Lib/Minuit/Makefile.PL
13145 +@@ -149,7 +149,7 @@
13146 + ("
13147 +
13148 + minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f
13149 +- $mycompiler -c $hack_64bit -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
13150 ++ \$(FC) \$(FFLAGS) -fPIC -c -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
13151 + " )} @minuitfiles;
13152 +
13153 + if (!defined($PDL::Config{MINUIT_LIB})){
13154 +--- Lib/Slatec/Makefile.PL
13155 ++++ Lib/Slatec/Makefile.PL
13156 +@@ -136,7 +136,7 @@
13157 + ("
13158 +
13159 + slatec/$_\$(OBJ_EXT): slatec/$_.f
13160 +- $mycompiler -c $hack_64bit -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13161 ++ \$(FC) \$(FFLAGS) -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13162 + " )} @slatecfiles;
13163 +
13164 + }
13165
13166 diff --git a/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch
13167 new file mode 100644
13168 index 0000000..3cf22a3
13169 --- /dev/null
13170 +++ b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch
13171 @@ -0,0 +1,36 @@
13172 +--- IO/HDF/Makefile.PL.orig 2012-06-16 18:43:24.000000000 +0100
13173 ++++ IO/HDF/Makefile.PL 2012-06-16 18:44:51.000000000 +0100
13174 +@@ -63,20 +63,20 @@
13175 + # Look for the libs:
13176 + foreach my $libdir ( @HDF_lib_locations )
13177 + {
13178 +- if (-e "$libdir/libdfalt.a" && !$found_df)
13179 ++ if (-e "$libdir/libdfalt.$Config{so}" && !$found_df)
13180 + {
13181 + $found_df = 1;
13182 + $hdf_lib_path = $libdir;
13183 + $hdf_libs = '-lmfhdfalt -ldfalt';
13184 +- print "Found libdfalt.a at $libdir/libdfalt.a\n";
13185 ++ print "Found libdfalt.$Config{so} at $libdir/libdfalt.$Config{so}\n";
13186 + }
13187 +
13188 +- if (-e "$libdir/libdf.a" && !$found_df)
13189 ++ if (-e "$libdir/libdf.$Config{so}" && !$found_df)
13190 + {
13191 + $found_df = 1;
13192 + $hdf_lib_path = $libdir;
13193 + $hdf_libs = '-lmfhdf -ldf';
13194 +- print "Found libdf.a at $libdir/libdf.a\n";
13195 ++ print "Found libdf.$Config{so} at $libdir/libdf.$Config{so}\n";
13196 + }
13197 +
13198 + # Look for the szip library, which HDF >= 4.2r0 needs, but older versions don't!
13199 +@@ -90,7 +90,7 @@
13200 +
13201 + unless( defined( $hdf_lib_path ) )
13202 + {
13203 +- $msg .= "Cannot find hdf library, libdf.a.\n"
13204 ++ $msg .= "Cannot find hdf library, libdf.$Config{so}.\n"
13205 + . "Please add the correct library path to Makefile.PL or install HDF\n";
13206 +
13207 + }
13208
13209 diff --git a/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch b/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch
13210 new file mode 100644
13211 index 0000000..6cf2c40
13212 --- /dev/null
13213 +++ b/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch
13214 @@ -0,0 +1,20 @@
13215 +--- Demos/BAD2_demo.pm.PL 2006/04/20 07:42:24 1.1
13216 ++++ Demos/BAD2_demo.pm.PL 2006/04/20 07:42:32
13217 +@@ -3,6 +3,7 @@
13218 + # - requires both bad-value support and PGPLOT
13219 + #
13220 +
13221 ++use blib;
13222 + use strict;
13223 +
13224 + use Config;
13225 +--- Demos/BAD_demo.pm.PL 2006/04/20 07:42:17 1.1
13226 ++++ Demos/BAD_demo.pm.PL 2006/04/20 07:42:38
13227 +@@ -3,6 +3,7 @@
13228 + # - needed since we allow bad pixel handling to be switched off
13229 + #
13230 +
13231 ++use blib;
13232 + use strict;
13233 +
13234 + use Config;
13235
13236 diff --git a/dev-perl/PDL/files/PDL-2.4.3-PIC.patch b/dev-perl/PDL/files/PDL-2.4.3-PIC.patch
13237 new file mode 100644
13238 index 0000000..ee6db25
13239 --- /dev/null
13240 +++ b/dev-perl/PDL/files/PDL-2.4.3-PIC.patch
13241 @@ -0,0 +1,11 @@
13242 +--- Lib/Slatec/Makefile.PL 2007-09-11 18:30:14.000000000 +0200
13243 ++++ Lib/Slatec/Makefile.PL 2007-09-11 18:28:55.000000000 +0200
13244 +@@ -136,7 +136,7 @@
13245 + ("
13246 +
13247 + slatec/$_\$(OBJ_EXT): slatec/$_.f
13248 +- $mycompiler -c $hack_64bit -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13249 ++ $mycompiler -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13250 + " )} @slatecfiles;
13251 +
13252 + }
13253
13254 diff --git a/dev-perl/PDL/files/PDL-2.4.4-PIC.patch b/dev-perl/PDL/files/PDL-2.4.4-PIC.patch
13255 new file mode 100644
13256 index 0000000..a0087c9
13257 --- /dev/null
13258 +++ b/dev-perl/PDL/files/PDL-2.4.4-PIC.patch
13259 @@ -0,0 +1,22 @@
13260 +--- Lib/Minuit/Makefile.PL
13261 ++++ Lib/Minuit/Makefile.PL
13262 +@@ -149,7 +149,7 @@
13263 + ("
13264 +
13265 + minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f
13266 +- $mycompiler -c $hack_64bit -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
13267 ++ $mycompiler -c -fPIC -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
13268 + " )} @minuitfiles;
13269 +
13270 + if (!defined($PDL::Config{MINUIT_LIB})){
13271 +--- Lib/Slatec/Makefile.PL
13272 ++++ Lib/Slatec/Makefile.PL
13273 +@@ -136,7 +136,7 @@
13274 + ("
13275 +
13276 + slatec/$_\$(OBJ_EXT): slatec/$_.f
13277 +- $mycompiler -c $hack_64bit -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13278 ++ $mycompiler -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
13279 + " )} @slatecfiles;
13280 +
13281 + }
13282
13283 diff --git a/dev-perl/PDL/files/perldl.conf b/dev-perl/PDL/files/perldl.conf
13284 new file mode 100644
13285 index 0000000..1fe24f3
13286 --- /dev/null
13287 +++ b/dev-perl/PDL/files/perldl.conf
13288 @@ -0,0 +1,110 @@
13289 +# -*-perl-*-
13290 +
13291 +# PDL Configuration options
13292 +
13293 +# You can edit this here or say 'perl Makefile.PL PDLCONF=file'
13294 +# or use ~/.perldl.conf
13295 +
13296 +# Note in general "0" means False, "1" means "True" and "undef"
13297 +# means "Try if possible (e.g. because the library is found)"
13298 +
13299 +%PDL_CONFIG = (
13300 +
13301 +# Use posix threading to make use of multiprocessor machines
13302 +# undef -> try if possible
13303 +# 0 -> don't use
13304 +# true -> force use
13305 +
13306 + WITH_POSIX_THREADS => undef,
13307 +
13308 + MALLOCDBG => undef,
13309 +# {
13310 +# include => '-I/home/csoelle/tmp',
13311 +# libs => '-L/home/csoelle/tmp -lmymalloc',
13312 +# define => << 'EOD',
13313 +##define malloc(n) dbgmalloc(n,__FILE__,__LINE__)
13314 +##define free(p) dbgfree(p)
13315 +#EOD
13316 +# include => '',
13317 +# libs => '-lefence',
13318 +# define => '',
13319 +# },
13320 +
13321 +# Do we want routines to handle bad values?
13322 +# saying no will make PDL a bit faster
13323 +# true -> yes
13324 +# false -> no, undef -> no
13325 +#
13326 + WITH_BADVAL => 0,
13327 +# WITH_BADVAL => 1,
13328 +
13329 +# if WITH_BADVAL == 1, do we use NaN/Inf to represent badvalues
13330 +# (not convinced setting this results in faster code)
13331 +#
13332 + BADVAL_USENAN => 0,
13333 +# BADVAL_USENAN => 1,
13334 +
13335 +# Try to build Graphics/TriD
13336 + WITH_3D => undef,
13337 +#
13338 +# For Mesa 3.2
13339 +#
13340 + OPENGL_LIBS => '-L/usr/lib -lGL -lGLU -L/usr/X11R6/lib -lXext -lX11',
13341 +#
13342 +# Mesa need -DGL_GLEXT_LEGACY for glPolygonOffsetEXT amoung others
13343 +#
13344 + OPENGL_DEFINE => '-DGL_GLEXT_LEGACY',
13345 + OPENGL_INC => '-I/usr/include',
13346 +#
13347 +#
13348 +# For SGI GL
13349 +#
13350 +# OPENGL_LIBS => '-lGL -lGLU -lXext -lX11',
13351 +# OPENGL_INC => '',
13352 +# OPENGL_DEFINE => '',
13353 +#
13354 +# Let perl try to figure it out
13355 +# OPENGL_LIBS => undef,
13356 +# OPENGL_INC => undef,
13357 +# OPENGL_DEFINE => undef,
13358 +# Whether or not to build the Karma interface module
13359 +
13360 + WITH_KARMA => undef, # Leave it up to PDL to decide
13361 + WHERE_KARMA => undef, # you may explicitly specify directory location
13362 +
13363 +# Whether or not to build the PDL::Slatec module
13364 +# 0 -> don't use
13365 +# true -> force use
13366 +
13367 + WITH_SLATEC => undef, # Leave it up to PDL to decide
13368 +
13369 +# Whether or not to build the PDL::GSL module
13370 +# 0 -> don't use
13371 +# true -> force use
13372 +
13373 + WITH_GSL => undef, # Leave it up to PDL to decide
13374 +
13375 +# Location to search for the GSL libs
13376 + GSL_LIBS => [ '/lib','/usr/lib','/usr/local/lib'],
13377 +# Location to find GSL includes:
13378 + GSL_INC => '-I/usr/include/gsl -I/usr/local/include',
13379 +
13380 +# Whether or not to build the PDL::FFTW module
13381 +# 0 -> don't use
13382 +# true -> force use
13383 +
13384 + WITH_FFTW => undef, # Leave it up to PDL to decide
13385 +
13386 +# Location to search for the FFTW libs
13387 + FFTW_LIBS => [ '/lib','/usr/lib','/usr/local/lib'],
13388 +# Location to find FFTW includes:
13389 + FFTW_INC => ['/usr/include/','/usr/local/include'],
13390 +
13391 +# FFTW Numeric Precision Type to link in: (double or single precision)
13392 + FFTW_TYPE => 'double',
13393 +
13394 +);
13395 +
13396 +1; # Return OK status on 'require'
13397 +
13398 +
13399
13400 diff --git a/dev-perl/POE-Test-Loops/POE-Test-Loops-1.035.ebuild b/dev-perl/POE-Test-Loops/POE-Test-Loops-1.035.ebuild
13401 new file mode 100644
13402 index 0000000..00b230c
13403 --- /dev/null
13404 +++ b/dev-perl/POE-Test-Loops/POE-Test-Loops-1.035.ebuild
13405 @@ -0,0 +1,16 @@
13406 +# Copyright 1999-2010 Gentoo Foundation
13407 +# Distributed under the terms of the GNU General Public License v2
13408 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/POE-Test-Loops/POE-Test-Loops-1.035.ebuild,v 1.4 2010/06/27 19:16:35 nixnut Exp $
13409 +
13410 +EAPI=2
13411 +
13412 +MODULE_AUTHOR="RCAPUTO"
13413 +inherit perl-module
13414 +
13415 +DESCRIPTION="Reusable tests for POE::Loop authors"
13416 +
13417 +SLOT="0"
13418 +KEYWORDS="amd64 ppc sparc x86"
13419 +IUSE=""
13420 +
13421 +SRC_TEST="do"
13422
13423 diff --git a/dev-perl/POE/POE-1.289.ebuild b/dev-perl/POE/POE-1.289.ebuild
13424 new file mode 100644
13425 index 0000000..0453ee2
13426 --- /dev/null
13427 +++ b/dev-perl/POE/POE-1.289.ebuild
13428 @@ -0,0 +1,44 @@
13429 +# Copyright 1999-2010 Gentoo Foundation
13430 +# Distributed under the terms of the GNU General Public License v2
13431 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/POE/POE-1.289.ebuild,v 1.4 2010/06/27 19:16:13 nixnut Exp $
13432 +
13433 +EAPI=2
13434 +
13435 +inherit versionator
13436 +MODULE_AUTHOR=RCAPUTO
13437 +MY_P="${PN}-$(delete_version_separator 2)"
13438 +S=${WORKDIR}/${MY_P}
13439 +inherit perl-module
13440 +
13441 +DESCRIPTION="A framework for creating multitasking programs in Perl"
13442 +
13443 +SLOT="0"
13444 +KEYWORDS="amd64 ppc sparc x86"
13445 +IUSE="ipv6 libwww ncurses tk test"
13446 +
13447 +RDEPEND=">=dev-perl/Event-1.09
13448 + >=virtual/perl-File-Spec-0.87
13449 + >=virtual/perl-IO-1.23.01
13450 + >=virtual/perl-IO-Compress-1.33
13451 + >=virtual/perl-Storable-2.12
13452 + >=dev-perl/IO-Tty-1.08
13453 + virtual/perl-Filter
13454 + dev-perl/FreezeThaw
13455 + dev-perl/yaml
13456 + >=dev-perl/TermReadKey-2.21
13457 + >=virtual/perl-Time-HiRes-1.59
13458 + ipv6? ( >=dev-perl/Socket6-0.14 )
13459 + tk? ( >=dev-perl/perl-tk-800.027 )
13460 + libwww? ( >=dev-perl/libwww-perl-5.79
13461 + >=dev-perl/URI-1.30 )
13462 + ncurses? ( >=dev-perl/Curses-1.08 )"
13463 +DEPEND="${RDEPEND}
13464 + test? (
13465 + >=dev-perl/POE-Test-Loops-1.035
13466 + >=virtual/perl-Test-Harness-2.26
13467 + >=virtual/perl-Test-Simple-0.54
13468 + dev-perl/Test-Pod
13469 + dev-perl/Test-Pod-Coverage
13470 + )"
13471 +
13472 +SRC_TEST=do
13473
13474 diff --git a/dev-perl/Package-Stash/Package-Stash-0.250.ebuild b/dev-perl/Package-Stash/Package-Stash-0.250.ebuild
13475 new file mode 100644
13476 index 0000000..835e8b7
13477 --- /dev/null
13478 +++ b/dev-perl/Package-Stash/Package-Stash-0.250.ebuild
13479 @@ -0,0 +1,34 @@
13480 +# Copyright 1999-2011 Gentoo Foundation
13481 +# Distributed under the terms of the GNU General Public License v2
13482 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Package-Stash/Package-Stash-0.250.ebuild,v 1.4 2011/08/13 09:09:09 xarthisius Exp $
13483 +
13484 +EAPI=3
13485 +
13486 +MODULE_AUTHOR=DOY
13487 +MODULE_VERSION=0.25
13488 +inherit perl-module
13489 +
13490 +DESCRIPTION="Routines for manipulating stashes"
13491 +
13492 +SLOT="0"
13493 +KEYWORDS="amd64 ppc x86"
13494 +IUSE="test"
13495 +
13496 +RDEPEND="
13497 + dev-perl/Package-DeprecationManager
13498 + >=dev-perl/Package-Stash-XS-0.190"
13499 +# conflicts:
13500 +# !<=dev-perl/Class-MOP-1.08
13501 +# !<=dev-perl/namespace-clean-0.18
13502 +# !<=dev-perl/MooseX-Role-WithOverloading-0.80
13503 +
13504 +DEPEND="${RDEPEND}
13505 + >=dev-perl/Dist-CheckConflicts-0.10
13506 + >=virtual/perl-ExtUtils-MakeMaker-6.31
13507 + test? (
13508 + dev-perl/Test-Fatal
13509 + dev-perl/Test-Requires
13510 + >=virtual/perl-Test-Simple-0.88
13511 + )"
13512 +
13513 +SRC_TEST="do"
13514
13515 diff --git a/dev-perl/PadWalker/PadWalker-1.940.0.ebuild b/dev-perl/PadWalker/PadWalker-1.940.0.ebuild
13516 new file mode 100644
13517 index 0000000..7c41412
13518 --- /dev/null
13519 +++ b/dev-perl/PadWalker/PadWalker-1.940.0.ebuild
13520 @@ -0,0 +1,17 @@
13521 +# Copyright 1999-2012 Gentoo Foundation
13522 +# Distributed under the terms of the GNU General Public License v2
13523 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PadWalker/PadWalker-1.940.0.ebuild,v 1.1 2012/06/26 19:15:51 tove Exp $
13524 +
13525 +EAPI="4-slot-abi"
13526 +
13527 +MODULE_AUTHOR=ROBIN
13528 +MODULE_VERSION=1.94
13529 +inherit perl-module
13530 +
13531 +DESCRIPTION="play with other peoples' lexical variables"
13532 +
13533 +SLOT="0"
13534 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
13535 +IUSE=""
13536 +
13537 +SRC_TEST="do"
13538
13539 diff --git a/dev-perl/Parse-RecDescent/Parse-RecDescent-1.965.1.ebuild b/dev-perl/Parse-RecDescent/Parse-RecDescent-1.965.1.ebuild
13540 new file mode 100644
13541 index 0000000..f05b633
13542 --- /dev/null
13543 +++ b/dev-perl/Parse-RecDescent/Parse-RecDescent-1.965.1.ebuild
13544 @@ -0,0 +1,28 @@
13545 +# Copyright 1999-2011 Gentoo Foundation
13546 +# Distributed under the terms of the GNU General Public License v2
13547 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Parse-RecDescent/Parse-RecDescent-1.965.1.ebuild,v 1.2 2011/04/24 15:31:04 grobian Exp $
13548 +
13549 +EAPI=3
13550 +
13551 +MODULE_AUTHOR=DCONWAY
13552 +MODULE_VERSION=1.965001
13553 +inherit perl-module
13554 +
13555 +DESCRIPTION="Parse::RecDescent - generate recursive-descent parsers"
13556 +
13557 +SLOT="0"
13558 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
13559 +IUSE="test"
13560 +
13561 +RDEPEND="virtual/perl-Text-Balanced
13562 + virtual/perl-version"
13563 +DEPEND="${RDEPEND}
13564 + virtual/perl-Module-Build
13565 + test? ( dev-perl/Test-Pod )"
13566 +
13567 +SRC_TEST="do"
13568 +
13569 +src_install() {
13570 + perl-module_src_install
13571 + dohtml -r tutorial || die
13572 +}
13573
13574 diff --git a/dev-perl/Parse-Syslog/Parse-Syslog-1.09.ebuild b/dev-perl/Parse-Syslog/Parse-Syslog-1.09.ebuild
13575 new file mode 100644
13576 index 0000000..0927015
13577 --- /dev/null
13578 +++ b/dev-perl/Parse-Syslog/Parse-Syslog-1.09.ebuild
13579 @@ -0,0 +1,18 @@
13580 +# Copyright 1999-2008 Gentoo Foundation
13581 +# Distributed under the terms of the GNU General Public License v2
13582 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Parse-Syslog/Parse-Syslog-1.09.ebuild,v 1.10 2008/04/12 20:33:07 dertobi123 Exp $
13583 +
13584 +inherit perl-module
13585 +DESCRIPTION="Parse::Syslog - Parse Unix syslog files"
13586 +HOMEPAGE="http://search.cpan.org/~dschwei/${P}"
13587 +SRC_URI="mirror://cpan/authors/id/D/DS/DSCHWEI/${P}.tar.gz"
13588 +
13589 +SLOT="0"
13590 +LICENSE="GPL-2"
13591 +KEYWORDS="alpha amd64 ~ppc ppc64 sparc x86"
13592 +IUSE=""
13593 +SRC_TEST="do"
13594 +
13595 +DEPEND="dev-lang/perl
13596 + virtual/perl-Time-Local
13597 + dev-perl/File-Tail"
13598
13599 diff --git a/dev-perl/Path-Class/Path-Class-0.21.ebuild b/dev-perl/Path-Class/Path-Class-0.21.ebuild
13600 new file mode 100644
13601 index 0000000..93f006b
13602 --- /dev/null
13603 +++ b/dev-perl/Path-Class/Path-Class-0.21.ebuild
13604 @@ -0,0 +1,21 @@
13605 +# Copyright 1999-2011 Gentoo Foundation
13606 +# Distributed under the terms of the GNU General Public License v2
13607 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Path-Class/Path-Class-0.21.ebuild,v 1.5 2011/01/13 17:02:02 ranger Exp $
13608 +
13609 +EAPI=3
13610 +
13611 +MODULE_AUTHOR=KWILLIAMS
13612 +inherit perl-module
13613 +
13614 +DESCRIPTION="Cross-platform path specification manipulation"
13615 +
13616 +SLOT="0"
13617 +KEYWORDS="amd64 ~ia64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
13618 +IUSE="test"
13619 +
13620 +RDEPEND=">=virtual/perl-File-Spec-0.87"
13621 +DEPEND="${RDEPEND}
13622 + virtual/perl-Module-Build
13623 + test? ( virtual/perl-Test-Simple )"
13624 +
13625 +SRC_TEST="do"
13626
13627 diff --git a/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch b/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch
13628 new file mode 100644
13629 index 0000000..1ccafb9
13630 --- /dev/null
13631 +++ b/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch
13632 @@ -0,0 +1,34 @@
13633 +From 75b0930eb392c6389f6e96b0c1df067ae917b962 Mon Sep 17 00:00:00 2001
13634 +From: Robin H. Johnson <robbat2@g.o>
13635 +Date: Sat, 12 May 2007 21:32:53 -0700
13636 +Subject: [PATCH perlbal] Use saner name in process listing.
13637 +
13638 +Normally the binary will turn up in the process list as:
13639 +/usr/bin/perl $SCRIPTNAME
13640 +
13641 +By adding a single line, we can make it be simply '$SCRIPTNAME'.
13642 +This makes writing init.d scripts signficently easier.
13643 +
13644 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
13645 +---
13646 + perlbal | 4 ++++
13647 + 1 files changed, 4 insertions(+), 0 deletions(-)
13648 +
13649 +diff --git a/perlbal b/perlbal
13650 +index f0149b3..7a9d28c 100755
13651 +--- a/perlbal
13652 ++++ b/perlbal
13653 +@@ -37,6 +37,10 @@ my $opt_daemonize;
13654 + my $opt_config;
13655 + my $opt_help;
13656 + my $opt_version;
13657 ++
13658 ++# Rename binary in process list to make init scripts saner
13659 ++$0 = $_ = $0;
13660 ++
13661 + usage(1) unless
13662 + Getopt::Long::GetOptions(
13663 + 'daemon' => \$opt_daemonize,
13664 +--
13665 +1.5.1.4
13666 +
13667
13668 diff --git a/dev-perl/Perlbal/files/perlbal_conf.d_1.58 b/dev-perl/Perlbal/files/perlbal_conf.d_1.58
13669 new file mode 100644
13670 index 0000000..f500cb4
13671 --- /dev/null
13672 +++ b/dev-perl/Perlbal/files/perlbal_conf.d_1.58
13673 @@ -0,0 +1,5 @@
13674 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/files/perlbal_conf.d_1.58,v 1.1 2007/05/13 08:18:36 robbat2 Exp $
13675 +# PIDFILE is not yet used, pending upstream still
13676 +#PIDFILE="/var/run/perlbal.pid"
13677 +PERLBAL_OPTS="--daemon --config=/etc/perlbal/perlbal.conf"
13678 +# vim: ft=gentoo-conf-d:
13679
13680 diff --git a/dev-perl/Perlbal/files/perlbal_init.d_1.58 b/dev-perl/Perlbal/files/perlbal_init.d_1.58
13681 new file mode 100755
13682 index 0000000..38f64f4
13683 --- /dev/null
13684 +++ b/dev-perl/Perlbal/files/perlbal_init.d_1.58
13685 @@ -0,0 +1,25 @@
13686 +#!/sbin/runscript
13687 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/files/perlbal_init.d_1.58,v 1.1 2007/05/13 08:18:36 robbat2 Exp $
13688 +
13689 +NAME="perlbal"
13690 +BINARY="/usr/bin/perlbal"
13691 +
13692 +depend() {
13693 + use net
13694 +}
13695 +
13696 +start() {
13697 + ebegin "Starting $NAME"
13698 + # Add --pidfile when upstream supports PIDFILES
13699 + start-stop-daemon --start \
13700 + --exec ${BINARY} -- ${PERLBAL_OPTS}
13701 + eend $?
13702 +}
13703 +
13704 +stop() {
13705 + ebegin "Stopping $NAME"
13706 + start-stop-daemon --stop --exec "${BINARY}"
13707 + eend $?
13708 +}
13709 +
13710 +# vim: ft=gentoo-init-d:
13711
13712 diff --git a/dev-perl/Proc-ProcessTable/files/0.45-fix-format-errors.patch b/dev-perl/Proc-ProcessTable/files/0.45-fix-format-errors.patch
13713 new file mode 100644
13714 index 0000000..c7bbec9
13715 --- /dev/null
13716 +++ b/dev-perl/Proc-ProcessTable/files/0.45-fix-format-errors.patch
13717 @@ -0,0 +1,30 @@
13718 +https://rt.cpan.org/Public/Bug/Display.html?id=48445
13719 +--- Proc-ProcessTable-0.45/os/Linux.c
13720 ++++ Proc-ProcessTable-0.45/os/Linux.c
13721 +@@ -397,7 +397,7 @@
13722 +
13723 + /* copy the path onto our obstack, set the value (somewhere in pts)
13724 + * and free the results of canonicalize_file_name */
13725 +- obstack_printf(mem_pool, link);
13726 ++ obstack_printf(mem_pool, "%s", link);
13727 + obstack_1grow(mem_pool, '\0');
13728 +
13729 + *ptr = (char *) obstack_finish(mem_pool);
13730 +@@ -618,7 +618,7 @@
13731 + bzero(prs, sizeof(struct procstat));
13732 +
13733 + /* intilize the format string */
13734 +- obstack_printf(&mem_pool, get_string(STR_DEFAULT_FORMAT));
13735 ++ obstack_printf(&mem_pool, "%s", get_string(STR_DEFAULT_FORMAT));
13736 + obstack_1grow(&mem_pool, '\0');
13737 + format_str = (char *) obstack_finish(&mem_pool);
13738 +
13739 +--- Proc-ProcessTable-0.45/ProcessTable.xs
13740 ++++ Proc-ProcessTable-0.45/ProcessTable.xs
13741 +@@ -388,5 +388,5 @@
13742 + char* error;
13743 +
13744 + if( (error = OS_initialize()) != NULL ){
13745 +- croak(error);
13746 ++ croak("%s", error);
13747 + }
13748
13749 diff --git a/dev-perl/Proc-ProcessTable/files/0.45-pthread.patch b/dev-perl/Proc-ProcessTable/files/0.45-pthread.patch
13750 new file mode 100644
13751 index 0000000..537e292
13752 --- /dev/null
13753 +++ b/dev-perl/Proc-ProcessTable/files/0.45-pthread.patch
13754 @@ -0,0 +1,15 @@
13755 +https://rt.cpan.org/Public/Bug/Display.html?id=46861
13756 +--- Proc-ProcessTable-0.45/hints/linux.pl
13757 ++++ Proc-ProcessTable-0.45/hints/linux.pl
13758 +@@ -1 +1,11 @@
13759 ++# We might have a non-threading perl, which doesn't add this
13760 ++# necessary link option.
13761 ++use Config;
13762 ++my $thread_lib = "-lpthread";
13763 ++
13764 ++if( $Config{libs} !~ /$thread_lib/ ) {
13765 ++ $self->{LIBS} ||= [];
13766 ++ push @{ $self->{LIBS} }, $thread_lib;
13767 ++}
13768 ++
13769 + symlink "os/Linux.c", "OS.c" || die "Could not link os/Linux.c to os/OS.c\n";
13770
13771 diff --git a/dev-perl/Proc-ProcessTable/files/amd64_canonicalize_file_name_definition.patch b/dev-perl/Proc-ProcessTable/files/amd64_canonicalize_file_name_definition.patch
13772 new file mode 100644
13773 index 0000000..d454b1a
13774 --- /dev/null
13775 +++ b/dev-perl/Proc-ProcessTable/files/amd64_canonicalize_file_name_definition.patch
13776 @@ -0,0 +1,13 @@
13777 +Index: Proc-ProcessTable-0.45/os/Linux.c
13778 +===================================================================
13779 +--- Proc-ProcessTable-0.45.orig/os/Linux.c
13780 ++++ Proc-ProcessTable-0.45/os/Linux.c
13781 +@@ -33,7 +33,7 @@ static unsigned system_hertz;
13782 +
13783 + static bool init_failed = false;
13784 +
13785 +-
13786 ++char *canonicalize_file_name (const char *path);
13787 + /* get_string()
13788 + *
13789 + * Access strings in read only section
13790
13791 diff --git a/dev-perl/Role-Tiny/Role-Tiny-1.1.3.ebuild b/dev-perl/Role-Tiny/Role-Tiny-1.1.3.ebuild
13792 new file mode 100644
13793 index 0000000..08f1107
13794 --- /dev/null
13795 +++ b/dev-perl/Role-Tiny/Role-Tiny-1.1.3.ebuild
13796 @@ -0,0 +1,29 @@
13797 +# Copyright 1999-2012 Gentoo Foundation
13798 +# Distributed under the terms of the GNU General Public License v2
13799 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Role-Tiny/Role-Tiny-1.1.3.ebuild,v 1.1 2012/06/26 19:10:41 tove Exp $
13800 +
13801 +EAPI="4-slot-abi"
13802 +
13803 +MODULE_AUTHOR=MSTROUT
13804 +MODULE_VERSION=1.001003
13805 +inherit perl-module
13806 +
13807 +DESCRIPTION="Roles. Like a nouvelle cuisine portion size slice of Moose"
13808 +
13809 +SLOT="0"
13810 +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x86-solaris"
13811 +IUSE="test"
13812 +
13813 +DEPEND="
13814 + test? (
13815 + dev-perl/strictures
13816 + >=dev-perl/Test-Fatal-0.003
13817 + >=virtual/perl-Test-Simple-0.96
13818 + dev-perl/Class-Method-Modifiers
13819 + )
13820 +"
13821 +RDEPEND="
13822 + !<dev-perl/Moo-0.9.14
13823 +"
13824 +
13825 +SRC_TEST="do"
13826
13827 diff --git a/dev-perl/SOAP-Lite/files/SOAP-Lite-0.60.a.patch b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.60.a.patch
13828 new file mode 100644
13829 index 0000000..14a5038
13830 --- /dev/null
13831 +++ b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.60.a.patch
13832 @@ -0,0 +1,12 @@
13833 +diff -burN SOAP-Lite-0.60/Makefile.PL.old SOAP-Lite-0.60/Makefile.PL
13834 +--- SOAP-Lite-0.60/Makefile.PL.old 2004-10-29 11:07:34.665925280 -0400
13835 ++++ SOAP-Lite-0.60/Makefile.PL 2004-10-29 11:08:02.491695120 -0400
13836 +@@ -22,7 +22,7 @@
13837 + ["MIME messages","SOAP::MIMEParser",{"MIME::Parser" => 0},1],
13838 + ["SSL Support for TCP Transport","SOAP::Transport::TCP",{"IO::Socket::SSL" => 0},0],
13839 + ["Compression support for HTTP","SOAP::Transport::HTTP",{"Compress::Zlib" => 0},0],
13840 +- ["MIME interoperability w/ Axis","SOAP::Lite",{"MIME::Parser" => "6.106"},0],
13841 ++ ["MIME interoperability w/ Axis","SOAP::Lite",{"MIME::Parser" => "5.413"},0],
13842 + );
13843 +
13844 + use Getopt::Long;
13845
13846 diff --git a/dev-perl/SOAP-Lite/files/SOAP-Lite-0.710.08.patch b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.710.08.patch
13847 new file mode 100644
13848 index 0000000..0b1e6e8
13849 --- /dev/null
13850 +++ b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.710.08.patch
13851 @@ -0,0 +1,12 @@
13852 +diff -Nuar SOAP-Lite-0.710.08.orig/Makefile.PL SOAP-Lite-0.710.08/Makefile.PL
13853 +--- SOAP-Lite-0.710.08.orig/Makefile.PL 2008-06-28 11:37:20.000000000 -0700
13854 ++++ SOAP-Lite-0.710.08/Makefile.PL 2008-12-07 23:42:03.341939336 -0800
13855 +@@ -43,7 +43,7 @@
13856 + ["DIME messages","SOAP::Packager::DIME",{"IO::Scalar" => "2.105", "DIME::Tools" => 0.03, "Data::UUID" => "0.11"},0],
13857 + ["SSL Support for TCP Transport","SOAP::Transport::TCP",{"IO::Socket::SSL" => 0},0],
13858 + ["Compression support for HTTP","SOAP::Transport::HTTP",{"Compress::Zlib" => 0},0],
13859 +- ["MIME interoperability w/ Axis","SOAP::Lite",{"MIME::Parser" => "6.106"},0],
13860 ++ ["MIME interoperability w/ Axis","SOAP::Lite",{"MIME::Parser" => "5.413"},0],
13861 + );
13862 +
13863 + use Getopt::Long;
13864
13865 diff --git a/dev-perl/SOAP-Lite/files/SOAP-Lite-0.712_sysread.patch b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.712_sysread.patch
13866 new file mode 100644
13867 index 0000000..85289fc
13868 --- /dev/null
13869 +++ b/dev-perl/SOAP-Lite/files/SOAP-Lite-0.712_sysread.patch
13870 @@ -0,0 +1,38 @@
13871 +From 8f49c0e970261f59bc043a8104a9a730ec69dcf4 Mon Sep 17 00:00:00 2001
13872 +From: Christian Ruppert <idl0r@g.o>
13873 +Date: Wed, 23 Mar 2011 18:04:19 +0100
13874 +Subject: [PATCH] Use read() instead of sysread() when using mod_perl
13875 +
13876 +https://rt.cpan.org/Public/Bug/Display.html?id=58538
13877 +---
13878 + lib/SOAP/Transport/HTTP.pm | 14 +++++++++++---
13879 + 1 files changed, 11 insertions(+), 3 deletions(-)
13880 +
13881 +diff --git a/lib/SOAP/Transport/HTTP.pm b/lib/SOAP/Transport/HTTP.pm
13882 +index f16b990..57ebbf3 100644
13883 +--- a/lib/SOAP/Transport/HTTP.pm
13884 ++++ b/lib/SOAP/Transport/HTTP.pm
13885 +@@ -566,9 +566,17 @@ sub handle {
13886 + if ( !$chunked ) {
13887 + my $buffer;
13888 + binmode(STDIN);
13889 +- while ( sysread( STDIN, $buffer, $length ) ) {
13890 +- $content .= $buffer;
13891 +- last if ( length($content) >= $length );
13892 ++ if ( defined($ENV{"MOD_PERL"}) ) {
13893 ++ while ( read( STDIN, $buffer, $length ) ) {
13894 ++ $content .= $buffer;
13895 ++ last if ( length($content) >= $length );
13896 ++ }
13897 ++ }
13898 ++ else {
13899 ++ while ( sysread( STDIN, $buffer, $length ) ) {
13900 ++ $content .= $buffer;
13901 ++ last if ( length($content) >= $length );
13902 ++ }
13903 + }
13904 + }
13905 +
13906 +--
13907 +1.7.3.4
13908 +
13909
13910 diff --git a/dev-perl/SQL-Abstract/SQL-Abstract-1.63.ebuild b/dev-perl/SQL-Abstract/SQL-Abstract-1.63.ebuild
13911 new file mode 100644
13912 index 0000000..25c3777
13913 --- /dev/null
13914 +++ b/dev-perl/SQL-Abstract/SQL-Abstract-1.63.ebuild
13915 @@ -0,0 +1,24 @@
13916 +# Copyright 1999-2010 Gentoo Foundation
13917 +# Distributed under the terms of the GNU General Public License v2
13918 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/SQL-Abstract/SQL-Abstract-1.63.ebuild,v 1.2 2010/04/17 08:28:22 tove Exp $
13919 +
13920 +EAPI=2
13921 +
13922 +MODULE_AUTHOR="RIBASUSHI"
13923 +#MODULE_AUTHOR="MSTROUT"
13924 +inherit perl-module
13925 +
13926 +DESCRIPTION="Generate SQL from Perl data structures"
13927 +
13928 +SLOT="0"
13929 +KEYWORDS="amd64 ~ppc x86 ~x86-solaris"
13930 +IUSE="test"
13931 +
13932 +RDEPEND="dev-perl/Test-Deep"
13933 +DEPEND="${RDEPEND}
13934 + test? ( dev-perl/Test-Exception
13935 + dev-perl/Test-Pod
13936 + dev-perl/Test-Warn
13937 + >=dev-perl/Clone-0.31 )"
13938 +
13939 +SRC_TEST="do"
13940
13941 diff --git a/dev-perl/SQL-Statement/SQL-Statement-1.31.ebuild b/dev-perl/SQL-Statement/SQL-Statement-1.31.ebuild
13942 new file mode 100644
13943 index 0000000..62cd2e9
13944 --- /dev/null
13945 +++ b/dev-perl/SQL-Statement/SQL-Statement-1.31.ebuild
13946 @@ -0,0 +1,34 @@
13947 +# Copyright 1999-2012 Gentoo Foundation
13948 +# Distributed under the terms of the GNU General Public License v2
13949 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/SQL-Statement/SQL-Statement-1.31.ebuild,v 1.9 2012/02/25 18:04:48 klausman Exp $
13950 +
13951 +EAPI=3
13952 +
13953 +MODULE_AUTHOR=REHSACK
13954 +inherit perl-module
13955 +
13956 +DESCRIPTION="Small SQL parser and engine"
13957 +
13958 +SLOT="0"
13959 +KEYWORDS="alpha amd64 ~arm ia64 ~ppc ~ppc64 sparc x86"
13960 +IUSE="test"
13961 +
13962 +RDEPEND=">=dev-perl/DBI-1.612
13963 + >=dev-perl/Clone-0.30
13964 + >=dev-perl/Params-Util-0.35
13965 + virtual/perl-Scalar-List-Utils"
13966 +DEPEND="${RDEPEND}
13967 + test? ( dev-perl/Test-Pod
13968 + dev-perl/Test-Pod-Coverage )"
13969 +
13970 +SRC_TEST="do"
13971 +
13972 +pkg_setup() {
13973 + export SQL_STATEMENT_WARN_UPDATE=sure
13974 +
13975 + if has_version "<=dev-perl/SQL-Statement-1.20" ; then
13976 + ewarn "Changes include (1.22):"
13977 + ewarn " * behavior for unquoted identifiers modified to lower case them"
13978 + ewarn " * IN and BETWEEN operators are supported native"
13979 + fi
13980 +}
13981
13982 diff --git a/dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild b/dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild
13983 new file mode 100644
13984 index 0000000..0ad96d1
13985 --- /dev/null
13986 +++ b/dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild
13987 @@ -0,0 +1,33 @@
13988 +# Copyright 1999-2011 Gentoo Foundation
13989 +# Distributed under the terms of the GNU General Public License v2
13990 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild,v 1.7 2011/12/04 17:59:39 armin76 Exp $
13991 +
13992 +inherit perl-module
13993 +
13994 +DESCRIPTION="SVN::Mirror - Mirror remote repositories to local subversion repository"
13995 +SRC_URI="mirror://cpan/authors/id/C/CL/CLKAO/${P}.tar.gz"
13996 +HOMEPAGE="http://www.cpan.org/authors/id/C/CL/CLKAO/${P}.readme"
13997 +
13998 +SLOT="0"
13999 +LICENSE="Artistic"
14000 +KEYWORDS="amd64 ppc x86"
14001 +IUSE=""
14002 +
14003 +DEPEND=">=dev-vcs/subversion-1.1.3
14004 + >=dev-perl/URI-1.34
14005 + >=dev-perl/TermReadKey-2.21
14006 + >=dev-perl/SVN-Simple-0.26
14007 + dev-perl/Data-UUID
14008 + dev-perl/Class-Accessor
14009 + dev-perl/TimeDate
14010 + dev-perl/File-chdir
14011 + dev-lang/perl"
14012 +
14013 +pkg_setup() {
14014 + if ! perl -MSVN::Core < /dev/null 2> /dev/null
14015 + then
14016 + eerror "You need subversion-1.0.4+ compiled with Perl bindings."
14017 + eerror "USE=\"perl\" emerge subversion"
14018 + die "Need Subversion compiled with Perl bindings."
14019 + fi
14020 +}
14021
14022 diff --git a/dev-perl/Socket6/Socket6-0.20.ebuild b/dev-perl/Socket6/Socket6-0.20.ebuild
14023 new file mode 100644
14024 index 0000000..85e3ce7
14025 --- /dev/null
14026 +++ b/dev-perl/Socket6/Socket6-0.20.ebuild
14027 @@ -0,0 +1,21 @@
14028 +# Copyright 1999-2011 Gentoo Foundation
14029 +# Distributed under the terms of the GNU General Public License v2
14030 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Socket6/Socket6-0.20.ebuild,v 1.8 2011/04/20 12:56:14 jlec Exp $
14031 +
14032 +MODULE_AUTHOR=UMEMOTO
14033 +inherit perl-module
14034 +
14035 +DESCRIPTION="IPv6 related part of the C socket.h defines and structure manipulators"
14036 +
14037 +LICENSE="|| ( Artistic GPL-2 )"
14038 +SLOT="0"
14039 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
14040 +IUSE=""
14041 +
14042 +SRC_TEST="do"
14043 +
14044 +DEPEND="dev-lang/perl"
14045 +src_unpack() {
14046 + base_src_unpack
14047 + tc-export CC
14048 +}
14049
14050 diff --git a/dev-perl/Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.57.ebuild b/dev-perl/Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.57.ebuild
14051 new file mode 100644
14052 index 0000000..a71e5d4
14053 --- /dev/null
14054 +++ b/dev-perl/Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.57.ebuild
14055 @@ -0,0 +1,29 @@
14056 +# Copyright 1999-2012 Gentoo Foundation
14057 +# Distributed under the terms of the GNU General Public License v2
14058 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.57.ebuild,v 1.5 2012/06/17 17:29:30 armin76 Exp $
14059 +
14060 +EAPI=2
14061 +
14062 +MODULE_AUTHOR=JMCNAMARA
14063 +inherit perl-module
14064 +
14065 +DESCRIPTION="Get information from Excel file"
14066 +
14067 +LICENSE="|| ( Artistic GPL-2 )"
14068 +SLOT="0"
14069 +KEYWORDS="amd64 x86"
14070 +IUSE="test cjk unicode"
14071 +
14072 +RDEPEND=">=dev-perl/OLE-StorageLite-0.19
14073 + dev-perl/IO-stringy
14074 + dev-perl/Text-CSV_XS
14075 + unicode? ( dev-perl/Unicode-Map )
14076 + cjk? ( dev-perl/Jcode )"
14077 +DEPEND="
14078 + test? ( dev-perl/Test-Pod
14079 + dev-perl/Unicode-Map
14080 + dev-perl/Spreadsheet-WriteExcel
14081 + dev-perl/Jcode )
14082 + ${RDEPEND}"
14083 +
14084 +SRC_TEST="do"
14085
14086 diff --git a/dev-perl/Sys-Statistics-Linux/Sys-Statistics-Linux-0.49.ebuild b/dev-perl/Sys-Statistics-Linux/Sys-Statistics-Linux-0.49.ebuild
14087 new file mode 100644
14088 index 0000000..d3569b4
14089 --- /dev/null
14090 +++ b/dev-perl/Sys-Statistics-Linux/Sys-Statistics-Linux-0.49.ebuild
14091 @@ -0,0 +1,22 @@
14092 +# Copyright 1999-2009 Gentoo Foundation
14093 +# Distributed under the terms of the GNU General Public License v2
14094 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sys-Statistics-Linux/Sys-Statistics-Linux-0.49.ebuild,v 1.3 2009/04/29 21:06:32 tcunha Exp $
14095 +
14096 +EAPI=2
14097 +
14098 +MODULE_AUTHOR=BLOONIX
14099 +inherit perl-module
14100 +
14101 +DESCRIPTION="Collect linux system statistics"
14102 +
14103 +SLOT="0"
14104 +KEYWORDS="amd64 sparc x86"
14105 +IUSE="test"
14106 +
14107 +RDEPEND="dev-perl/YAML-Syck"
14108 +DEPEND="
14109 + virtual/perl-Module-Build
14110 + test? ( dev-perl/Test-Pod
14111 + dev-perl/Test-Pod-Coverage )"
14112 +
14113 +SRC_TEST="do"
14114
14115 diff --git a/dev-perl/Template-Latex/files/Makefile.patch b/dev-perl/Template-Latex/files/Makefile.patch
14116 new file mode 100644
14117 index 0000000..9464d14
14118 --- /dev/null
14119 +++ b/dev-perl/Template-Latex/files/Makefile.patch
14120 @@ -0,0 +1,15 @@
14121 +--- Makefile.PL.orig 2006-07-12 09:37:17.753171250 +0200
14122 ++++ Makefile.PL 2006-07-12 09:38:54.031188250 +0200
14123 +@@ -41,9 +41,9 @@
14124 +
14125 + #------------------------------------------------------------------------
14126 +
14127 +-our $LATEX = ttprompt('latex path', find_program($ENV{PATH}, "latex"));
14128 +-our $PDFLATEX = ttprompt('pdflatex path', find_program($ENV{PATH}, "pdflatex"));
14129 +-our $DVIPS = ttprompt('dvips path', find_program($ENV{PATH}, "dvips"));
14130 ++our $LATEX = '/usr/bin/latex';
14131 ++our $PDFLATEX = '/usr/bin/pdflatex';
14132 ++our $DVIPS = '/usr/bin/dvips';
14133 +
14134 + fix_file(catfile('lib','Template','Latex.pm'), '$LATEX', $LATEX);
14135 + fix_file(catfile('lib','Template','Latex.pm'), '$PDFLATEX', $PDFLATEX);
14136
14137 diff --git a/dev-perl/Template-Toolkit/Template-Toolkit-2.22.ebuild b/dev-perl/Template-Toolkit/Template-Toolkit-2.22.ebuild
14138 new file mode 100644
14139 index 0000000..bd22101
14140 --- /dev/null
14141 +++ b/dev-perl/Template-Toolkit/Template-Toolkit-2.22.ebuild
14142 @@ -0,0 +1,46 @@
14143 +# Copyright 1999-2012 Gentoo Foundation
14144 +# Distributed under the terms of the GNU General Public License v2
14145 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Template-Toolkit/Template-Toolkit-2.22.ebuild,v 1.8 2012/03/19 20:40:57 armin76 Exp $
14146 +
14147 +MODULE_AUTHOR=ABW
14148 +inherit perl-module
14149 +
14150 +DESCRIPTION="The Template Toolkit"
14151 +
14152 +SLOT="0"
14153 +LICENSE="|| ( Artistic GPL-2 )"
14154 +KEYWORDS="alpha amd64 ppc ppc64 x86 ~x86-fbsd ~x86-solaris"
14155 +IUSE="xml gd mysql postgres latex"
14156 +
14157 +DEPEND="dev-perl/text-autoformat
14158 + mysql? ( dev-perl/DBD-mysql )
14159 + postgres? ( dev-perl/DBD-Pg )
14160 + >=dev-perl/AppConfig-1.56
14161 + dev-lang/perl"
14162 +PDEPEND="dev-perl/text-autoformat
14163 + xml? ( dev-perl/Template-XML )
14164 + gd? ( dev-perl/Template-GD )
14165 + mysql? ( dev-perl/Template-DBI )
14166 + latex? ( dev-perl/Template-Latex )
14167 + postgres? ( dev-perl/Template-DBI )"
14168 +
14169 +#The installer tries to install to /usr/local/tt2...,
14170 +#and asks for user input, so we change myconf to ensure that
14171 +# 1) make install doesn't violate the sandbox rule
14172 +# 2) perl Makefile.pl just uses reasonable defaults, and doesn't ask for input
14173 +myconf="TT_XS_ENABLE=y TT_ACCEPT=y TT_QUIET=y
14174 + TT_DOCS=y TT_SPLASH_DOCS=y TT_EXAMPLES=y
14175 + TT_PREFIX=${D%/}${EPREFIX}/usr/share/template-toolkit2
14176 + TT_IMAGES=/usr/share/template-toolkit2/images"
14177 +
14178 +mydoc="README"
14179 +
14180 +src_unpack() {
14181 + perl-module_src_unpack
14182 +
14183 + # uncomment these functions
14184 + # do we really want this?
14185 + # splash_images(); html_docs(); html_docstyle();html_examples();
14186 + sed -i 's/^#\(splash_images\|html_\)/\1/' "${S}"/Makefile.PL || die
14187 +}
14188 +SRC_TEST=do
14189
14190 diff --git a/dev-perl/Template-XML/files/bug-144689-branch-2.17.patch b/dev-perl/Template-XML/files/bug-144689-branch-2.17.patch
14191 new file mode 100644
14192 index 0000000..c9c5c1c
14193 --- /dev/null
14194 +++ b/dev-perl/Template-XML/files/bug-144689-branch-2.17.patch
14195 @@ -0,0 +1,13 @@
14196 +--- Template-XML-2.17/lib/Template/Plugin/XML/LibXML.pm 2007-02-09
14197 +09:48:07.000000000 -0600
14198 ++++ Template-XML-2.17-fixed/lib/Template/Plugin/XML/LibXML.pm 2007-02-19
14199 +17:22:29.000000000 -0600
14200 +@@ -112,7 +112,7 @@
14201 + eval { $parser->$method($args->{$method}) };
14202 +
14203 + # if there's a problem throw a Tempalte::Exception
14204 +- $self->throw("option '$method' not supported") if $@;
14205 ++ $class->throw("option '$method' not supported") if $@;
14206 + }
14207 +
14208 + # parse
14209
14210 diff --git a/dev-perl/Test-Class/Test-Class-0.370.0.ebuild b/dev-perl/Test-Class/Test-Class-0.370.0.ebuild
14211 new file mode 100644
14212 index 0000000..45ad3ae
14213 --- /dev/null
14214 +++ b/dev-perl/Test-Class/Test-Class-0.370.0.ebuild
14215 @@ -0,0 +1,24 @@
14216 +# Copyright 1999-2012 Gentoo Foundation
14217 +# Distributed under the terms of the GNU General Public License v2
14218 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Class/Test-Class-0.370.0.ebuild,v 1.1 2012/06/26 19:21:00 tove Exp $
14219 +
14220 +EAPI="4-slot-abi"
14221 +
14222 +MODULE_AUTHOR=ADIE
14223 +MODULE_VERSION=0.37
14224 +inherit perl-module
14225 +
14226 +DESCRIPTION="Easily create test classes in an xUnit style."
14227 +
14228 +SLOT="0"
14229 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
14230 +IUSE="test"
14231 +
14232 +RDEPEND=">=virtual/perl-Storable-2
14233 + >=virtual/perl-Test-Simple-0.78
14234 + dev-perl/MRO-Compat"
14235 +DEPEND="${RDEPEND}
14236 + >=virtual/perl-Module-Build-0.380.0
14237 + test? ( >=dev-perl/Test-Exception-0.25 )"
14238 +
14239 +SRC_TEST="do"
14240
14241 diff --git a/dev-perl/Test-Exception/Test-Exception-0.27.ebuild b/dev-perl/Test-Exception/Test-Exception-0.27.ebuild
14242 new file mode 100644
14243 index 0000000..6916e12
14244 --- /dev/null
14245 +++ b/dev-perl/Test-Exception/Test-Exception-0.27.ebuild
14246 @@ -0,0 +1,22 @@
14247 +# Copyright 1999-2010 Gentoo Foundation
14248 +# Distributed under the terms of the GNU General Public License v2
14249 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Exception/Test-Exception-0.27.ebuild,v 1.9 2010/01/14 14:29:52 grobian Exp $
14250 +
14251 +inherit perl-module
14252 +
14253 +DESCRIPTION="test functions for exception based code"
14254 +HOMEPAGE="http://search.cpan.org/~adie/"
14255 +SRC_URI="mirror://cpan/authors/id/A/AD/ADIE/${P}.tar.gz"
14256 +
14257 +LICENSE="GPL-2"
14258 +SLOT="0"
14259 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris"
14260 +IUSE=""
14261 +SRC_TEST="do"
14262 +
14263 +DEPEND="${RDEPEND}
14264 + >=virtual/perl-Module-Build-0.28"
14265 +
14266 +RDEPEND=">=virtual/perl-Test-Simple-0.64
14267 + >=dev-perl/Sub-Uplevel-0.13
14268 + dev-lang/perl"
14269
14270 diff --git a/dev-perl/Test-Inline/Test-Inline-2.201.ebuild b/dev-perl/Test-Inline/Test-Inline-2.201.ebuild
14271 new file mode 100644
14272 index 0000000..c5ea7ad
14273 --- /dev/null
14274 +++ b/dev-perl/Test-Inline/Test-Inline-2.201.ebuild
14275 @@ -0,0 +1,31 @@
14276 +# Copyright 1999-2012 Gentoo Foundation
14277 +# Distributed under the terms of the GNU General Public License v2
14278 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Inline/Test-Inline-2.201.ebuild,v 1.10 2012/03/19 19:30:07 armin76 Exp $
14279 +
14280 +inherit perl-module
14281 +
14282 +DESCRIPTION="Inline test suite support for Perl"
14283 +HOMEPAGE="http://search.cpan.org/search?dist=Test-Inline"
14284 +SRC_URI="mirror://cpan/authors/id/A/AD/ADAMK/${P}.tar.gz"
14285 +
14286 +LICENSE="|| ( Artistic GPL-2 )"
14287 +SLOT="0"
14288 +KEYWORDS="alpha amd64 hppa ppc x86"
14289 +IUSE=""
14290 +
14291 +SRC_TEST="do"
14292 +
14293 +DEPEND="virtual/perl-Test-Simple
14294 + dev-lang/perl
14295 + virtual/perl-Memoize
14296 + >=dev-perl/Test-ClassAPI-1.02
14297 + virtual/perl-Test-Harness
14298 + >=virtual/perl-File-Spec-0.80
14299 + >=dev-perl/Algorithm-Dependency-1.02
14300 + >=dev-perl/Class-Autouse-1.15
14301 + >=dev-perl/Config-Tiny-2.00
14302 + >=dev-perl/File-Find-Rule-0.26
14303 + >=dev-perl/File-Flat-1.00
14304 + >=dev-perl/File-Slurp-9999.04
14305 + >=dev-perl/Params-Util-0.05
14306 + >=dev-perl/Pod-Tests-0.18"
14307
14308 diff --git a/dev-perl/Test-Inline/Test-Inline-2.208.ebuild b/dev-perl/Test-Inline/Test-Inline-2.208.ebuild
14309 new file mode 100644
14310 index 0000000..caff526
14311 --- /dev/null
14312 +++ b/dev-perl/Test-Inline/Test-Inline-2.208.ebuild
14313 @@ -0,0 +1,33 @@
14314 +# Copyright 1999-2012 Gentoo Foundation
14315 +# Distributed under the terms of the GNU General Public License v2
14316 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Inline/Test-Inline-2.208.ebuild,v 1.9 2012/03/19 19:30:07 armin76 Exp $
14317 +
14318 +MODULE_AUTHOR=ADAMK
14319 +
14320 +inherit perl-module
14321 +
14322 +DESCRIPTION="Inline test suite support for Perl"
14323 +
14324 +LICENSE="|| ( Artistic GPL-2 )"
14325 +SLOT="0"
14326 +KEYWORDS="alpha ~amd64 hppa ~ppc x86"
14327 +IUSE=""
14328 +
14329 +SRC_TEST="do"
14330 +
14331 +DEPEND="virtual/perl-Test-Simple
14332 + dev-lang/perl
14333 + virtual/perl-Memoize
14334 + >=dev-perl/Test-ClassAPI-1.02
14335 + virtual/perl-Test-Harness
14336 + dev-perl/Test-Script
14337 + dev-perl/File-chmod
14338 + >=virtual/perl-File-Spec-0.80
14339 + >=dev-perl/Algorithm-Dependency-1.02
14340 + >=dev-perl/Class-Autouse-1.15
14341 + >=dev-perl/Config-Tiny-2.00
14342 + >=dev-perl/File-Find-Rule-0.26
14343 + >=dev-perl/File-Flat-1.00
14344 + >=dev-perl/File-Slurp-9999.04
14345 + >=dev-perl/Params-Util-0.05
14346 + >=dev-perl/Pod-Tests-0.18"
14347
14348 diff --git a/dev-perl/Test-Output/Test-Output-0.16.ebuild b/dev-perl/Test-Output/Test-Output-0.16.ebuild
14349 new file mode 100644
14350 index 0000000..4b9e476
14351 --- /dev/null
14352 +++ b/dev-perl/Test-Output/Test-Output-0.16.ebuild
14353 @@ -0,0 +1,24 @@
14354 +# Copyright 1999-2010 Gentoo Foundation
14355 +# Distributed under the terms of the GNU General Public License v2
14356 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Output/Test-Output-0.16.ebuild,v 1.4 2010/06/27 17:57:49 nixnut Exp $
14357 +
14358 +EAPI=2
14359 +
14360 +MODULE_AUTHOR=BDFOY
14361 +inherit perl-module
14362 +
14363 +DESCRIPTION="Utilities to test STDOUT and STDERR messages"
14364 +
14365 +SLOT="0"
14366 +KEYWORDS="amd64 ppc x86"
14367 +IUSE="test"
14368 +
14369 +RDEPEND="
14370 + dev-perl/Sub-Exporter
14371 + virtual/perl-Test-Simple"
14372 +DEPEND="${RDEPEND}
14373 + test? ( >=dev-perl/Test-Tester-0.107
14374 + dev-perl/Test-Pod
14375 + dev-perl/Test-Pod-Coverage )"
14376 +
14377 +SRC_TEST=do
14378
14379 diff --git a/dev-perl/Test-WWW-Mechanize/Test-WWW-Mechanize-1.28.ebuild b/dev-perl/Test-WWW-Mechanize/Test-WWW-Mechanize-1.28.ebuild
14380 new file mode 100644
14381 index 0000000..0934e9e
14382 --- /dev/null
14383 +++ b/dev-perl/Test-WWW-Mechanize/Test-WWW-Mechanize-1.28.ebuild
14384 @@ -0,0 +1,25 @@
14385 +# Copyright 1999-2012 Gentoo Foundation
14386 +# Distributed under the terms of the GNU General Public License v2
14387 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-WWW-Mechanize/Test-WWW-Mechanize-1.28.ebuild,v 1.4 2012/03/25 15:33:41 armin76 Exp $
14388 +
14389 +MODULE_AUTHOR=PETDANCE
14390 +inherit perl-module
14391 +
14392 +DESCRIPTION="Testing-specific WWW::Mechanize subclass"
14393 +
14394 +LICENSE="|| ( Artistic GPL-2 )"
14395 +SLOT="0"
14396 +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
14397 +IUSE="test"
14398 +
14399 +RDEPEND=">=dev-perl/WWW-Mechanize-1.24
14400 + dev-perl/Carp-Assert-More
14401 + dev-perl/URI
14402 + >=dev-perl/Test-LongString-0.12
14403 + dev-lang/perl"
14404 +DEPEND="${RDEPEND}
14405 + test? ( >=dev-perl/HTTP-Server-Simple-0.35
14406 + dev-perl/Test-Pod
14407 + dev-perl/Test-Pod-Coverage )"
14408 +
14409 +SRC_TEST="do"
14410
14411 diff --git a/dev-perl/Test-Warn/Test-Warn-0.21.ebuild b/dev-perl/Test-Warn/Test-Warn-0.21.ebuild
14412 new file mode 100644
14413 index 0000000..a7e1953
14414 --- /dev/null
14415 +++ b/dev-perl/Test-Warn/Test-Warn-0.21.ebuild
14416 @@ -0,0 +1,25 @@
14417 +# Copyright 1999-2011 Gentoo Foundation
14418 +# Distributed under the terms of the GNU General Public License v2
14419 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Warn/Test-Warn-0.21.ebuild,v 1.7 2011/10/09 17:00:25 armin76 Exp $
14420 +
14421 +EAPI=2
14422 +
14423 +MODULE_AUTHOR=CHORNY
14424 +MODULE_A=${P}.zip
14425 +inherit perl-module
14426 +
14427 +DESCRIPTION="Perl extension to test methods for warnings"
14428 +
14429 +SLOT="0"
14430 +KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
14431 +IUSE="test"
14432 +
14433 +RDEPEND=">=dev-perl/Sub-Uplevel-0.12
14434 + dev-perl/Tree-DAG_Node
14435 + virtual/perl-Test-Simple
14436 + virtual/perl-File-Spec"
14437 +DEPEND="app-arch/unzip
14438 + test? ( ${RDEPEND}
14439 + dev-perl/Test-Pod )"
14440 +
14441 +SRC_TEST="do"
14442
14443 diff --git a/dev-perl/Test-Warn/Test-Warn-0.230.0.ebuild b/dev-perl/Test-Warn/Test-Warn-0.230.0.ebuild
14444 new file mode 100644
14445 index 0000000..440e5c0
14446 --- /dev/null
14447 +++ b/dev-perl/Test-Warn/Test-Warn-0.230.0.ebuild
14448 @@ -0,0 +1,24 @@
14449 +# Copyright 1999-2012 Gentoo Foundation
14450 +# Distributed under the terms of the GNU General Public License v2
14451 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Warn/Test-Warn-0.230.0.ebuild,v 1.10 2012/06/17 13:51:35 armin76 Exp $
14452 +
14453 +EAPI=3
14454 +
14455 +MODULE_AUTHOR=CHORNY
14456 +MODULE_VERSION=0.23
14457 +inherit perl-module
14458 +
14459 +DESCRIPTION="Perl extension to test methods for warnings"
14460 +
14461 +SLOT="0"
14462 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
14463 +IUSE="test"
14464 +
14465 +RDEPEND=">=dev-perl/Sub-Uplevel-0.12
14466 + dev-perl/Tree-DAG_Node
14467 + virtual/perl-Test-Simple
14468 + virtual/perl-File-Spec"
14469 +DEPEND="test? ( ${RDEPEND}
14470 + dev-perl/Test-Pod )"
14471 +
14472 +SRC_TEST="do"
14473
14474 diff --git a/dev-perl/Text-Kakasi/files/Text-Kakasi-1.05-gentoo.diff b/dev-perl/Text-Kakasi/files/Text-Kakasi-1.05-gentoo.diff
14475 new file mode 100644
14476 index 0000000..17eae7c
14477 --- /dev/null
14478 +++ b/dev-perl/Text-Kakasi/files/Text-Kakasi-1.05-gentoo.diff
14479 @@ -0,0 +1,13 @@
14480 +diff -Naur Text-Kakasi-1.05.orig/Makefile.PL Text-Kakasi-1.05/Makefile.PL
14481 +--- Text-Kakasi-1.05.orig/Makefile.PL 2002-08-24 00:18:28.000000000 +0900
14482 ++++ Text-Kakasi-1.05/Makefile.PL 2002-08-24 00:20:37.000000000 +0900
14483 +@@ -3,7 +3,7 @@
14484 + WriteMakefile(
14485 + 'NAME' => 'Text::Kakasi',
14486 + 'VERSION_FROM' => 'Kakasi.pm',
14487 +- 'INC' => '-I/usr/local/include',
14488 +- 'LIBS' => ['-L/usr/local/lib -lkakasi'],
14489 ++ 'INC' => '-I/usr/include',
14490 ++ 'LIBS' => ['-L/usr/lib -lkakasi'],
14491 + 'DEFINE' => '-DWAKATIGAKI',
14492 + );
14493
14494 diff --git a/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff b/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff
14495 new file mode 100644
14496 index 0000000..5bd45f6
14497 --- /dev/null
14498 +++ b/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff
14499 @@ -0,0 +1,27 @@
14500 +diff -ur Text-Unaccent-1.08/unac.c Text-Unaccent-1.08-mod/unac.c
14501 +--- Text-Unaccent-1.08/unac.c 2004-10-17 12:00:36.000000000 -0700
14502 ++++ Text-Unaccent-1.08-mod/unac.c 2006-08-24 22:37:35.000000000 -0700
14503 +@@ -13881,9 +13881,9 @@
14504 + *out_lengthp = 0;
14505 + } else {
14506 + char* utf16 = 0;
14507 +- int utf16_length = 0;
14508 ++ size_t utf16_length = 0;
14509 + char* utf16_unaccented = 0;
14510 +- int utf16_unaccented_length = 0;
14511 ++ size_t utf16_unaccented_length = 0;
14512 +
14513 + if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) {
14514 + return -1;
14515 +diff -ur Text-Unaccent-1.08/Unaccent.xs Text-Unaccent-1.08-mod/Unaccent.xs
14516 +--- Text-Unaccent-1.08/Unaccent.xs 2004-12-29 03:45:18.000000000 -0800
14517 ++++ Text-Unaccent-1.08-mod/Unaccent.xs 2006-08-24 22:35:57.000000000 -0700
14518 +@@ -35,7 +35,7 @@
14519 + #include "unac.h"
14520 +
14521 + static char* buffer;
14522 +-static int buffer_length;
14523 ++static size_t buffer_length;
14524 +
14525 + static void unac_debug_print(const char* message, void* data)
14526 + {
14527
14528 diff --git a/dev-perl/TimeDate/TimeDate-1.16.ebuild b/dev-perl/TimeDate/TimeDate-1.16.ebuild
14529 new file mode 100644
14530 index 0000000..4c97f7e
14531 --- /dev/null
14532 +++ b/dev-perl/TimeDate/TimeDate-1.16.ebuild
14533 @@ -0,0 +1,16 @@
14534 +# Copyright 1999-2008 Gentoo Foundation
14535 +# Distributed under the terms of the GNU General Public License v2
14536 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/TimeDate/TimeDate-1.16.ebuild,v 1.18 2008/02/23 20:33:15 vapier Exp $
14537 +
14538 +inherit perl-module
14539 +
14540 +DESCRIPTION="A Date/Time Parsing Perl Module"
14541 +HOMEPAGE="http://search.cpan.org/~gbarr/"
14542 +SRC_URI="mirror://cpan/authors/id/G/GB/GBARR/${P}.tar.gz"
14543 +
14544 +LICENSE="Artistic"
14545 +SLOT="0"
14546 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14547 +IUSE=""
14548 +
14549 +DEPEND="dev-lang/perl"
14550
14551 diff --git a/dev-perl/Tk-CursorControl/files/0.4-demo.patch b/dev-perl/Tk-CursorControl/files/0.4-demo.patch
14552 new file mode 100644
14553 index 0000000..8bb70f8
14554 --- /dev/null
14555 +++ b/dev-perl/Tk-CursorControl/files/0.4-demo.patch
14556 @@ -0,0 +1,12 @@
14557 +Collision with perl-tk -- bug 272083
14558 +--- Tk-CursorControl-0.4/Makefile.PL
14559 ++++ Tk-CursorControl-0.4/Makefile.PL
14560 +@@ -16,7 +16,7 @@
14561 + 'trans_cur.mask' => '$(INST_LIB)/Tk/trans_cur.mask',
14562 + 'demos/cursor.pl' => ($] >= 5.005
14563 + ? '$(INST_ARCHLIB)'
14564 +- : '$(INST_LIB)') . '/Tk/demos/widtrib/cursor.pl',
14565 ++ : '$(INST_LIB)') . '/Tk/demos/widtrib/cursor_control.pl',
14566 + },
14567 +
14568 + 'PREREQ_PM' => {
14569
14570 diff --git a/dev-perl/Tk-TableMatrix/files/pTk-1.22.patch b/dev-perl/Tk-TableMatrix/files/pTk-1.22.patch
14571 new file mode 100644
14572 index 0000000..ff99385
14573 --- /dev/null
14574 +++ b/dev-perl/Tk-TableMatrix/files/pTk-1.22.patch
14575 @@ -0,0 +1,18 @@
14576 +--- pTk/Makefile.PL.old 2006-05-01 18:09:31.000000000 -0400
14577 ++++ pTk/Makefile.PL 2006-05-01 18:10:05.000000000 -0400
14578 +@@ -234,11 +234,11 @@ sub MY::postamble {
14579 + my $self = shift;
14580 + my $dep = $self->Tk::MMutil::mTk_postamble;
14581 +
14582 +-$dep .= $self->dir_target(@{$self->{'dir_targets'}});
14583 +-
14584 +-$dep .= "config :: " . join(" \\\n\t",map($self->catfile($_,".exists"),@{$self->{'dir_targets'}})) .
14585 +- "\n\t".$self->{NOECHO}."\$(NOOP)\n";
14586 +
14587 ++if ($Tk::MMutil::IsWin32 or ($win_arch eq 'MSWin32' and $^O eq 'cygwin'))
14588 ++ {
14589 ++ my $cc = $Config{'cc'};
14590 ++ }
14591 +
14592 + $dep . '
14593 +
14594
14595 diff --git a/dev-perl/Tree-DAG_Node/Tree-DAG_Node-1.05.ebuild b/dev-perl/Tree-DAG_Node/Tree-DAG_Node-1.05.ebuild
14596 new file mode 100644
14597 index 0000000..e3934fb
14598 --- /dev/null
14599 +++ b/dev-perl/Tree-DAG_Node/Tree-DAG_Node-1.05.ebuild
14600 @@ -0,0 +1,18 @@
14601 +# Copyright 1999-2012 Gentoo Foundation
14602 +# Distributed under the terms of the GNU General Public License v2
14603 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Tree-DAG_Node/Tree-DAG_Node-1.05.ebuild,v 1.15 2012/03/27 17:22:16 armin76 Exp $
14604 +
14605 +inherit perl-module
14606 +
14607 +DESCRIPTION="(super)class for representing nodes in a tree"
14608 +HOMEPAGE="http://search.cpan.org/~sburke/"
14609 +SRC_URI="mirror://cpan/authors/id/S/SB/SBURKE/${P}.tar.gz"
14610 +
14611 +LICENSE="Artistic"
14612 +SLOT="0"
14613 +KEYWORDS="~alpha amd64 ~arm ia64 ppc ~s390 ~sh sparc x86"
14614 +IUSE=""
14615 +
14616 +SRC_TEST="do"
14617 +
14618 +DEPEND="dev-lang/perl"
14619
14620 diff --git a/dev-perl/URI/URI-1.55.ebuild b/dev-perl/URI/URI-1.55.ebuild
14621 new file mode 100644
14622 index 0000000..572ef4c
14623 --- /dev/null
14624 +++ b/dev-perl/URI/URI-1.55.ebuild
14625 @@ -0,0 +1,21 @@
14626 +# Copyright 1999-2011 Gentoo Foundation
14627 +# Distributed under the terms of the GNU General Public License v2
14628 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/URI/URI-1.55.ebuild,v 1.9 2011/07/30 10:45:59 tove Exp $
14629 +
14630 +EAPI=2
14631 +
14632 +MODULE_AUTHOR=GAAS
14633 +inherit perl-module
14634 +
14635 +DESCRIPTION="A URI Perl Module"
14636 +
14637 +SLOT="0"
14638 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
14639 +IUSE=""
14640 +
14641 +DEPEND="virtual/perl-MIME-Base64"
14642 +RDEPEND="${DEPEND}"
14643 +
14644 +SRC_TEST=no # see ChangeLog
14645 +
14646 +mydoc="rfc2396.txt"
14647
14648 diff --git a/dev-perl/Unicode-Map/files/0.112-no-scripts.patch b/dev-perl/Unicode-Map/files/0.112-no-scripts.patch
14649 new file mode 100644
14650 index 0000000..d762d7d
14651 --- /dev/null
14652 +++ b/dev-perl/Unicode-Map/files/0.112-no-scripts.patch
14653 @@ -0,0 +1,15 @@
14654 +diff -ur Unicode-Map-0.112-orig/Makefile.PL Unicode-Map-0.112/Makefile.PL
14655 +--- Unicode-Map-0.112-orig/Makefile.PL 2001-01-07 22:48:36.000000000 +0100
14656 ++++ Unicode-Map-0.112/Makefile.PL 2009-12-25 09:21:03.251784809 +0100
14657 +@@ -12,11 +12,5 @@
14658 + "COMPRESS" => "gzip",
14659 + "SUFFIX" => "gz"
14660 + },
14661 +- "EXE_FILES" => [
14662 +- "tools/map",
14663 +- "tools/mirrorMappings",
14664 +- "tools/mkCSGB2312",
14665 +- "tools/mkmapfile"
14666 +- ],
14667 + );
14668 +
14669
14670 diff --git a/dev-perl/Unicode-Map8/Unicode-Map8-0.12.ebuild b/dev-perl/Unicode-Map8/Unicode-Map8-0.12.ebuild
14671 new file mode 100644
14672 index 0000000..73040c4
14673 --- /dev/null
14674 +++ b/dev-perl/Unicode-Map8/Unicode-Map8-0.12.ebuild
14675 @@ -0,0 +1,19 @@
14676 +# Copyright 1999-2007 Gentoo Foundation
14677 +# Distributed under the terms of the GNU General Public License v2
14678 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Unicode-Map8/Unicode-Map8-0.12.ebuild,v 1.19 2007/03/21 14:12:36 mcummings Exp $
14679 +
14680 +inherit perl-module
14681 +
14682 +DESCRIPTION="Convert between most 8bit encodings"
14683 +HOMEPAGE="http://search.cpan.org/~gaas/"
14684 +SRC_URI="mirror://cpan/authors/id/G/GA/GAAS/${P}.tar.gz"
14685 +
14686 +LICENSE="Artistic"
14687 +SLOT="0"
14688 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
14689 +IUSE=""
14690 +
14691 +DEPEND=">=dev-perl/Unicode-String-2.06
14692 + dev-lang/perl"
14693 +
14694 +mydoc="TODO"
14695
14696 diff --git a/dev-perl/Variable-Magic/Variable-Magic-0.500.0.ebuild b/dev-perl/Variable-Magic/Variable-Magic-0.500.0.ebuild
14697 new file mode 100644
14698 index 0000000..eb7d8c3
14699 --- /dev/null
14700 +++ b/dev-perl/Variable-Magic/Variable-Magic-0.500.0.ebuild
14701 @@ -0,0 +1,22 @@
14702 +# Copyright 1999-2012 Gentoo Foundation
14703 +# Distributed under the terms of the GNU General Public License v2
14704 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Variable-Magic/Variable-Magic-0.500.0.ebuild,v 1.1 2012/06/26 19:06:06 tove Exp $
14705 +
14706 +EAPI="4-slot-abi"
14707 +
14708 +MODULE_AUTHOR=VPIT
14709 +MODULE_VERSION=0.50
14710 +inherit perl-module
14711 +
14712 +DESCRIPTION="Associate user-defined magic to variables from Perl"
14713 +
14714 +SLOT="0"
14715 +KEYWORDS="~amd64 ~ppc ~x86 ~x64-macos"
14716 +IUSE="test"
14717 +
14718 +RDEPEND=""
14719 +DEPEND="${RDEPEND}
14720 + test? ( dev-perl/Test-Pod
14721 + dev-perl/Test-Pod-Coverage )"
14722 +
14723 +SRC_TEST=do
14724
14725 diff --git a/dev-perl/WWW-Dict-Leo-Org/files/1.34-umlaut.patch b/dev-perl/WWW-Dict-Leo-Org/files/1.34-umlaut.patch
14726 new file mode 100644
14727 index 0000000..accce92
14728 --- /dev/null
14729 +++ b/dev-perl/WWW-Dict-Leo-Org/files/1.34-umlaut.patch
14730 @@ -0,0 +1,41 @@
14731 +From d70ba71c7a0173991cddf9a43b4855864294c203 Mon Sep 17 00:00:00 2001
14732 +From: Slaven Rezic <slaven@×××××.de>
14733 +Date: Fri, 12 Feb 2010 21:47:01 +0100
14734 +Subject: [PATCH] added support for non-iso8859-1 terminals, see
14735 + https://rt.cpan.org/Public/Bug/Display.html?id=35543
14736 +
14737 +---
14738 + leo | 10 ++++++++++
14739 + 1 files changed, 10 insertions(+), 0 deletions(-)
14740 +
14741 +diff --git a/leo b/leo
14742 +index f734249..e65c1b1 100755
14743 +--- a/leo
14744 ++++ b/leo
14745 +@@ -58,6 +58,8 @@ sub debug;
14746 +
14747 + my($o_s, $o_m, $o_c, $o_l, $o_v, $o_h, $o_n, $o_f, $o_d, $o_u, $o_p);
14748 +
14749 ++isatty(1) && eval q{ use open OUT => ':locale'};
14750 ++
14751 + #
14752 + # commandline options
14753 + #
14754 +@@ -95,6 +97,14 @@ if (!$string) {
14755 + $string = <STDIN>;
14756 + chomp $string;
14757 + }
14758 ++if (eval { require I18N::Langinfo; require Encode; 1 }) {
14759 ++ my $codeset = I18N::Langinfo::langinfo(I18N::Langinfo::CODESET());
14760 ++ if ($codeset) {
14761 ++ for ($string) {
14762 ++ $_ = Encode::decode($codeset, $_);
14763 ++ }
14764 ++ }
14765 ++}
14766 +
14767 + #
14768 + # open the config, if any
14769 +--
14770 +1.6.4.3
14771 +
14772
14773 diff --git a/dev-perl/XML-GDOME/files/0.86-includes.patch b/dev-perl/XML-GDOME/files/0.86-includes.patch
14774 new file mode 100644
14775 index 0000000..780bc63
14776 --- /dev/null
14777 +++ b/dev-perl/XML-GDOME/files/0.86-includes.patch
14778 @@ -0,0 +1,22 @@
14779 +--- XML-GDOME-0.86/generate~ 2004-03-30 23:08:48.000000000 +0100
14780 ++++ XML-GDOME-0.86/generate 2010-03-21 12:16:55.000000000 +0000
14781 +@@ -64,6 +64,8 @@
14782 + #include "XSUB.h"
14783 +
14784 + #include <libxml/xmlerror.h>
14785 ++#include <libxml/xinclude.h>
14786 ++#include <libxml/xpath.h>
14787 + #include "gdome.h"
14788 + #include "gdome-xpath.h"
14789 + /*#include "gdome-traversal.h"
14790 +--- XML-GDOME-0.86/GDOME.xs~ 2003-12-02 09:30:40.000000000 +0000
14791 ++++ XML-GDOME-0.86/GDOME.xs 2010-03-21 12:27:30.000000000 +0000
14792 +@@ -9,6 +9,8 @@
14793 +
14794 + /*#include <libxml/hash.h>*/
14795 + #include <libxml/xmlerror.h>
14796 ++#include <libxml/xinclude.h>
14797 ++#include <libxml/xpath.h>
14798 + #include "gdome.h"
14799 + #include "gdome-xpath.h"
14800 + /*#include "gdome-traversal.h"
14801
14802 diff --git a/dev-perl/XML-Mini/XML-Mini-1.2.8.ebuild b/dev-perl/XML-Mini/XML-Mini-1.2.8.ebuild
14803 new file mode 100644
14804 index 0000000..b9c95d0
14805 --- /dev/null
14806 +++ b/dev-perl/XML-Mini/XML-Mini-1.2.8.ebuild
14807 @@ -0,0 +1,19 @@
14808 +# Copyright 1999-2007 Gentoo Foundation
14809 +# Distributed under the terms of the GNU General Public License v2
14810 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-Mini/XML-Mini-1.2.8.ebuild,v 1.5 2007/07/10 23:33:28 mr_bones_ Exp $
14811 +
14812 +inherit perl-module
14813 +
14814 +DESCRIPTION="pure perl API to create and parse XML"
14815 +HOMEPAGE="http://search.cpan.org/~pdeegan/"
14816 +SRC_URI="mirror://cpan/authors/id/P/PD/PDEEGAN/XML-Mini-1.2.8.tar.gz"
14817 +
14818 +IUSE=""
14819 +
14820 +SLOT="0"
14821 +LICENSE="|| ( Artistic GPL-2 )"
14822 +KEYWORDS="amd64 sparc ~x86"
14823 +
14824 +DEPEND="dev-lang/perl"
14825 +
14826 +SRC_TEST="do"
14827
14828 diff --git a/dev-perl/XML-SAX/files/encodings.patch b/dev-perl/XML-SAX/files/encodings.patch
14829 new file mode 100644
14830 index 0000000..0608024
14831 --- /dev/null
14832 +++ b/dev-perl/XML-SAX/files/encodings.patch
14833 @@ -0,0 +1,11 @@
14834 +--- SAX/PurePerl/EncodingDetect.pm.orig 2006-05-08 12:08:40.000000000 -0400
14835 ++++ SAX/PurePerl/EncodingDetect.pm 2006-05-08 12:14:23.000000000 -0400
14836 +@@ -93,7 +93,7 @@ sub encoding_detect {
14837 + return;
14838 + }
14839 +
14840 +- warn("Unable to recognise encoding of this document");
14841 ++ #warn("Unable to recognise encoding of this document");
14842 + return;
14843 + }
14844 +
14845
14846 diff --git a/dev-perl/XML-Stream/XML-Stream-1.22.ebuild b/dev-perl/XML-Stream/XML-Stream-1.22.ebuild
14847 new file mode 100644
14848 index 0000000..d51f5ac
14849 --- /dev/null
14850 +++ b/dev-perl/XML-Stream/XML-Stream-1.22.ebuild
14851 @@ -0,0 +1,22 @@
14852 +# Copyright 1999-2007 Gentoo Foundation
14853 +# Distributed under the terms of the GNU General Public License v2
14854 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-Stream/XML-Stream-1.22.ebuild,v 1.17 2007/12/04 20:37:15 corsair Exp $
14855 +
14856 +inherit perl-module
14857 +
14858 +DESCRIPTION="Creates and XML Stream connection and parses return data"
14859 +SRC_URI="mirror://cpan/authors/id/R/RE/REATMON/${P}.tar.gz"
14860 +HOMEPAGE="http://search.cpan.org/~reatmon/${P}/"
14861 +
14862 +SLOT="0"
14863 +LICENSE="Artistic"
14864 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
14865 +IUSE="ssl"
14866 +
14867 +SRC_TEST="do"
14868 +
14869 +DEPEND="dev-perl/Authen-SASL
14870 + dev-perl/Net-DNS
14871 + ssl? ( dev-perl/IO-Socket-SSL )
14872 + virtual/perl-MIME-Base64
14873 + dev-lang/perl"
14874
14875 diff --git a/dev-perl/YAML-Syck/YAML-Syck-1.05.ebuild b/dev-perl/YAML-Syck/YAML-Syck-1.05.ebuild
14876 new file mode 100644
14877 index 0000000..46bd286
14878 --- /dev/null
14879 +++ b/dev-perl/YAML-Syck/YAML-Syck-1.05.ebuild
14880 @@ -0,0 +1,18 @@
14881 +# Copyright 1999-2010 Gentoo Foundation
14882 +# Distributed under the terms of the GNU General Public License v2
14883 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/YAML-Syck/YAML-Syck-1.05.ebuild,v 1.8 2010/10/21 18:05:32 tove Exp $
14884 +
14885 +MODULE_AUTHOR=AUDREYT
14886 +inherit perl-module
14887 +
14888 +DESCRIPTION="Fast, lightweight YAML loader and dumper"
14889 +
14890 +LICENSE="MIT"
14891 +SLOT="0"
14892 +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~s390 ~sh sparc x86"
14893 +IUSE=""
14894 +
14895 +SRC_TEST="do"
14896 +
14897 +DEPEND="|| ( dev-libs/syck >=dev-lang/ruby-1.8 )
14898 + dev-lang/perl"
14899
14900 diff --git a/dev-perl/cache-mmap/cache-mmap-0.09.ebuild b/dev-perl/cache-mmap/cache-mmap-0.09.ebuild
14901 new file mode 100644
14902 index 0000000..6d95982
14903 --- /dev/null
14904 +++ b/dev-perl/cache-mmap/cache-mmap-0.09.ebuild
14905 @@ -0,0 +1,21 @@
14906 +# Copyright 1999-2008 Gentoo Foundation
14907 +# Distributed under the terms of the GNU General Public License v2
14908 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/cache-mmap/cache-mmap-0.09.ebuild,v 1.9 2008/06/13 16:12:37 armin76 Exp $
14909 +
14910 +inherit perl-module
14911 +
14912 +MY_P=Cache-Mmap-${PV}
14913 +S=${WORKDIR}/${MY_P}
14914 +
14915 +DESCRIPTION="Shared data cache using memory mapped files"
14916 +SRC_URI="mirror://cpan/authors/id/P/PM/PMH/${MY_P}.tar.gz"
14917 +HOMEPAGE="http://search.cpan.org/author/PMH/${MY_P}"
14918 +SLOT="0"
14919 +LICENSE="|| ( Artistic GPL-2 )"
14920 +KEYWORDS="amd64 ia64 ~ppc sparc x86"
14921 +IUSE=""
14922 +SRC_TEST="do"
14923 +
14924 +DEPEND="virtual/perl-Test-Simple
14925 + virtual/perl-Storable
14926 + dev-lang/perl"
14927
14928 diff --git a/dev-perl/cdk-perl/cdk-perl-20031210.ebuild b/dev-perl/cdk-perl/cdk-perl-20031210.ebuild
14929 new file mode 100644
14930 index 0000000..35be151
14931 --- /dev/null
14932 +++ b/dev-perl/cdk-perl/cdk-perl-20031210.ebuild
14933 @@ -0,0 +1,25 @@
14934 +# Copyright 1999-2007 Gentoo Foundation
14935 +# Distributed under the terms of the GNU General Public License v2
14936 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/cdk-perl/cdk-perl-20031210.ebuild,v 1.13 2007/03/13 16:00:50 mcummings Exp $
14937 +
14938 +inherit perl-module
14939 +
14940 +DESCRIPTION="Perl extension for Cdk"
14941 +HOMEPAGE="http://dickey.his.com/cdk/cdk.html"
14942 +SRC_URI="ftp://invisible-island.net/cdk/${P}.tgz"
14943 +
14944 +LICENSE="BSD"
14945 +SLOT="0"
14946 +KEYWORDS="alpha amd64 ia64 ppc s390 sparc x86"
14947 +IUSE=""
14948 +
14949 +DEPEND=">=dev-libs/cdk-4.9.10.20031210
14950 + dev-lang/perl"
14951 +
14952 +mydoc="MANIFEST"
14953 +
14954 +src_unpack() {
14955 + unpack ${P}.tgz
14956 + cd "${S}"
14957 + sed -i -e "s:/usr/local:/usr:g" Makefile.PL
14958 +}
14959
14960 diff --git a/dev-perl/crypt-dsa/crypt-dsa-1.16.ebuild b/dev-perl/crypt-dsa/crypt-dsa-1.16.ebuild
14961 new file mode 100644
14962 index 0000000..6677f3d
14963 --- /dev/null
14964 +++ b/dev-perl/crypt-dsa/crypt-dsa-1.16.ebuild
14965 @@ -0,0 +1,30 @@
14966 +# Copyright 1999-2011 Gentoo Foundation
14967 +# Distributed under the terms of the GNU General Public License v2
14968 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/crypt-dsa/crypt-dsa-1.16.ebuild,v 1.10 2011/04/24 15:57:52 grobian Exp $
14969 +
14970 +EAPI=2
14971 +
14972 +MY_PN=Crypt-DSA
14973 +MY_P=${MY_PN}-${PV}
14974 +MODULE_AUTHOR=ADAMK
14975 +S=${WORKDIR}/${MY_P}
14976 +inherit perl-module
14977 +
14978 +DESCRIPTION="DSA Signatures and Key Generation"
14979 +
14980 +SLOT="0"
14981 +KEYWORDS="alpha amd64 hppa ~ppc sparc x86 ~x86-solaris"
14982 +IUSE="test"
14983 +
14984 +RDEPEND="dev-perl/data-buffer
14985 + dev-perl/Digest-SHA1
14986 + virtual/perl-File-Spec
14987 + dev-perl/File-Which
14988 + virtual/perl-MIME-Base64
14989 + >=virtual/perl-Math-BigInt-1.78"
14990 +DEPEND="test? ( ${RDEPEND}
14991 + dev-perl/Math-BigInt-GMP )"
14992 +
14993 +SRC_TEST="do"
14994 +
14995 +PATCHES=( "${FILESDIR}/${P}-dsaparam.patch" )
14996
14997 diff --git a/dev-perl/crypt-dsa/files/crypt-dsa-1.16-dsaparam.patch b/dev-perl/crypt-dsa/files/crypt-dsa-1.16-dsaparam.patch
14998 new file mode 100644
14999 index 0000000..fe3dfbb
15000 --- /dev/null
15001 +++ b/dev-perl/crypt-dsa/files/crypt-dsa-1.16-dsaparam.patch
15002 @@ -0,0 +1,14 @@
15003 +https://rt.cpan.org/Public/Bug/Display.html?id=49668
15004 +http://cvs.fedoraproject.org/viewvc/rpms/perl-Crypt-DSA/devel/perl-Crypt-DSA-dsaparam.patch?view=log
15005 +
15006 +--- lib/Crypt/DSA/KeyChain.pm
15007 ++++ lib/Crypt/DSA/KeyChain.pm
15008 +@@ -53,7 +53,7 @@
15009 + my $cur_part;
15010 + foreach (@res) {
15011 + if (/^\s+(\w):\s*$/) {
15012 +- $cur_part = $1;
15013 ++ $cur_part = lc($1);
15014 + next;
15015 + }
15016 + if (/^\s*((?:[0-9a-f]{2,2}:?)+)\s*$/) {
15017
15018 diff --git a/dev-perl/gnome2-gconf/gnome2-gconf-1.043.ebuild b/dev-perl/gnome2-gconf/gnome2-gconf-1.043.ebuild
15019 new file mode 100644
15020 index 0000000..fa12cf2
15021 --- /dev/null
15022 +++ b/dev-perl/gnome2-gconf/gnome2-gconf-1.043.ebuild
15023 @@ -0,0 +1,27 @@
15024 +# Copyright 1999-2011 Gentoo Foundation
15025 +# Distributed under the terms of the GNU General Public License v2
15026 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/gnome2-gconf/gnome2-gconf-1.043.ebuild,v 1.12 2011/03/29 10:21:43 angelos Exp $
15027 +
15028 +EAPI=1
15029 +inherit perl-module
15030 +
15031 +MY_P=Gnome2-GConf-${PV}
15032 +
15033 +DESCRIPTION="Perl wrappers for the GConf configuration engine."
15034 +SRC_URI="mirror://cpan/authors/id/E/EB/EBASSI/${MY_P}.tar.gz"
15035 +HOMEPAGE="http://search.cpan.org/~rmcfarla/"
15036 +
15037 +LICENSE="GPL-2"
15038 +SLOT="0"
15039 +KEYWORDS="alpha amd64 ia64 ~ppc sparc x86"
15040 +IUSE=""
15041 +
15042 +S=${WORKDIR}/${MY_P}
15043 +
15044 +RDEPEND="x11-libs/gtk+:2
15045 + gnome-base/gconf:2
15046 + >=dev-perl/glib-perl-1.120
15047 + >=dev-perl/gtk2-perl-1.120"
15048 +DEPEND="${RDEPEND}
15049 + >=dev-perl/extutils-pkgconfig-1.03
15050 + >=dev-perl/extutils-depends-0.202"
15051
15052 diff --git a/dev-perl/gtk2-perl/gtk2-perl-1.222.ebuild b/dev-perl/gtk2-perl/gtk2-perl-1.222.ebuild
15053 new file mode 100644
15054 index 0000000..20b2e5e
15055 --- /dev/null
15056 +++ b/dev-perl/gtk2-perl/gtk2-perl-1.222.ebuild
15057 @@ -0,0 +1,31 @@
15058 +# Copyright 1999-2011 Gentoo Foundation
15059 +# Distributed under the terms of the GNU General Public License v2
15060 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk2-perl/gtk2-perl-1.222.ebuild,v 1.12 2011/03/04 17:20:43 tove Exp $
15061 +
15062 +EAPI=3
15063 +
15064 +MODULE_AUTHOR=TSCH
15065 +MY_PN=Gtk2
15066 +inherit perl-module
15067 +#inherit virtualx
15068 +
15069 +DESCRIPTION="Perl bindings for GTK2"
15070 +
15071 +LICENSE="LGPL-2.1"
15072 +SLOT="0"
15073 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
15074 +IUSE=""
15075 +
15076 +RDEPEND="x11-libs/gtk+:2
15077 + dev-perl/Cairo
15078 + >=dev-perl/glib-perl-1.220
15079 + >=dev-perl/Pango-1.220"
15080 +DEPEND="${RDEPEND}
15081 + >=dev-perl/extutils-depends-0.300
15082 + >=dev-perl/extutils-pkgconfig-1.030"
15083 +
15084 +#RDEPEND+=" || ( <x11-libs/gtk+-2.22.1-r1[jpeg] x11-libs/gdk-pixbuf[jpeg] )"
15085 +#SRC_TEST=do
15086 +#src_test(){
15087 +# Xmake test || die
15088 +#}
15089
15090 diff --git a/dev-perl/gtk2-spell/gtk2-spell-1.30.0.ebuild b/dev-perl/gtk2-spell/gtk2-spell-1.30.0.ebuild
15091 new file mode 100644
15092 index 0000000..42bfb8a
15093 --- /dev/null
15094 +++ b/dev-perl/gtk2-spell/gtk2-spell-1.30.0.ebuild
15095 @@ -0,0 +1,40 @@
15096 +# Copyright 1999-2012 Gentoo Foundation
15097 +# Distributed under the terms of the GNU General Public License v2
15098 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk2-spell/gtk2-spell-1.30.0.ebuild,v 1.3 2012/05/04 04:10:55 jdhore Exp $
15099 +
15100 +EAPI=3
15101 +
15102 +MY_PN=Gtk2-Spell
15103 +MODULE_AUTHOR=MLEHMANN
15104 +MODULE_VERSION=1.03
15105 +inherit perl-module
15106 +
15107 +DESCRIPTION="Bindings for GtkSpell with Gtk2.x"
15108 +HOMEPAGE="http://gtk2-perl.sf.net/ ${HOMEPAGE}"
15109 +SRC_URI+=" mirror://gentoo/gtk2-spell-1.03-caa0ef46.patch.gz"
15110 +
15111 +SLOT="0"
15112 +LICENSE="LGPL-2.1"
15113 +KEYWORDS="alpha amd64 hppa ia64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
15114 +IUSE=""
15115 +
15116 +RDEPEND="x11-libs/gtk+:2
15117 + >=app-text/gtkspell-2:2
15118 + >=dev-perl/glib-perl-1.012
15119 + >=dev-perl/gtk2-perl-1.012"
15120 +DEPEND="${RDEPEND}
15121 + dev-perl/extutils-depends
15122 + dev-perl/extutils-pkgconfig
15123 + virtual/pkgconfig"
15124 +
15125 +PATCHES=( "${DISTDIR}"/gtk2-spell-1.03-caa0ef46.patch.gz )
15126 +
15127 +src_unpack() {
15128 + unpack ${MY_PN}-${MODULE_VERSION}.tar.gz
15129 +}
15130 +
15131 +src_prepare() {
15132 + # Without this it cannot find gtkspell <rigo@××××.nl>
15133 + sed -ie "s:\#my:my:g" "${S}"/Makefile.PL || die "sed failed"
15134 + perl-module_src_prepare
15135 +}
15136
15137 diff --git a/dev-perl/libwww-perl/files/ca-certs.patch b/dev-perl/libwww-perl/files/ca-certs.patch
15138 new file mode 100644
15139 index 0000000..b0565f0
15140 --- /dev/null
15141 +++ b/dev-perl/libwww-perl/files/ca-certs.patch
15142 @@ -0,0 +1,30 @@
15143 +X-Bugs-Gentoo: https://bugs.gentoo.org/358081
15144 +--- libwww-perl-6.01/lib/LWP/Protocol/https.pm
15145 ++++ libwww-perl-6.01/lib/LWP/Protocol/https.pm
15146 +@@ -21,25 +21,7 @@
15147 + }
15148 + if ($ssl_opts{SSL_verify_mode}) {
15149 + unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
15150 +- eval {
15151 +- require Mozilla::CA;
15152 +- };
15153 +- if ($@) {
15154 +- if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
15155 +- $@ = <<'EOT';
15156 +-Can't verify SSL peers without knowning which Certificate Authorities to trust
15157 +-
15158 +-This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
15159 +-envirionment variable or by installing the Mozilla::CA module.
15160 +-
15161 +-To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
15162 +-envirionment variable to 0. If you do this you can't be sure that you
15163 +-communicate with the expected peer.
15164 +-EOT
15165 +- }
15166 +- die $@;
15167 +- }
15168 +- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
15169 ++ $ssl_opts{SSL_ca_path} = '/etc/ssl/certs';
15170 + }
15171 + }
15172 + $self->{ssl_opts} = \%ssl_opts;
15173
15174 diff --git a/dev-perl/log-dispatch/log-dispatch-2.290.0.ebuild b/dev-perl/log-dispatch/log-dispatch-2.290.0.ebuild
15175 new file mode 100644
15176 index 0000000..cbebc9e
15177 --- /dev/null
15178 +++ b/dev-perl/log-dispatch/log-dispatch-2.290.0.ebuild
15179 @@ -0,0 +1,24 @@
15180 +# Copyright 1999-2011 Gentoo Foundation
15181 +# Distributed under the terms of the GNU General Public License v2
15182 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/log-dispatch/log-dispatch-2.290.0.ebuild,v 1.4 2011/12/18 20:19:49 phajdan.jr Exp $
15183 +
15184 +EAPI=3
15185 +
15186 +MY_PN=Log-Dispatch
15187 +MODULE_AUTHOR=DROLSKY
15188 +MODULE_VERSION=2.29
15189 +inherit perl-module
15190 +
15191 +DESCRIPTION="Dispatches messages to multiple Log::Dispatch::* objects"
15192 +
15193 +LICENSE="Artistic-2"
15194 +SLOT="0"
15195 +KEYWORDS="amd64 ~ppc x86"
15196 +IUSE=""
15197 +
15198 +RDEPEND="dev-perl/Params-Validate
15199 + >=virtual/perl-Sys-Syslog-0.16"
15200 +DEPEND="${RDEPEND}
15201 + >=virtual/perl-ExtUtils-MakeMaker-6.31"
15202 +
15203 +SRC_TEST="do"
15204
15205 diff --git a/dev-perl/math-pari/math-pari-2.01080604.ebuild b/dev-perl/math-pari/math-pari-2.01080604.ebuild
15206 new file mode 100644
15207 index 0000000..f846c27
15208 --- /dev/null
15209 +++ b/dev-perl/math-pari/math-pari-2.01080604.ebuild
15210 @@ -0,0 +1,60 @@
15211 +# Copyright 1999-2010 Gentoo Foundation
15212 +# Distributed under the terms of the GNU General Public License v2
15213 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/math-pari/math-pari-2.01080604.ebuild,v 1.5 2010/06/26 17:10:47 nixnut Exp $
15214 +
15215 +EAPI=2
15216 +
15217 +MODULE_AUTHOR=ILYAZ
15218 +MODULE_SECTION=modules
15219 +MY_PN=Math-Pari
15220 +MY_P=${MY_PN}-${PV}
15221 +inherit perl-module
15222 +
15223 +PARI_VER=2.3.4
15224 +
15225 +DESCRIPTION="Perl interface to PARI"
15226 +SRC_URI="${SRC_URI}
15227 + http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${PARI_VER}.tar.gz"
15228 +
15229 +LICENSE="|| ( Artistic GPL-2 )"
15230 +SLOT="0"
15231 +KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15232 +IUSE=""
15233 +
15234 +# Math::Pari requires that a copy of the pari source in a parallel
15235 +# directory to where you build it. It does not need to compile it, but
15236 +# it does need to be the same version as is installed, hence the hard
15237 +# DEPEND below
15238 +RDEPEND="~sci-mathematics/pari-${PARI_VER}"
15239 +DEPEND="${RDEPEND}"
15240 +
15241 +S=${WORKDIR}/${MY_P}
15242 +S_PARI=${WORKDIR}/pari-${PARI_VER}
15243 +SRC_TEST=do
15244 +
15245 +src_prepare() {
15246 + # On 64-bit hardware, these files are needed in both the 64/ and 32/
15247 + # directories for the testsuite to pass.
15248 + cd "${S_PARI}"/src/test/
15249 + for t in analyz compat ellglobalred elliptic galois graph intnum kernel \
15250 + linear nfields number objets ploth polyser program qfbsolve rfrac \
15251 + round4 stark sumiter trans ; do
15252 + i="in/${t}"
15253 + o32="32/${t}"
15254 + o64="64/${t}"
15255 + [ -f "$i" -a ! -f "$o32" ] && cp -al "$i" "$o32"
15256 + [ -f "$i" -a ! -f "$o64" ] && cp -al "$i" "$o64"
15257 + done
15258 + perl-module_src_prepare
15259 +}
15260 +
15261 +src_configure() {
15262 + # Unfortunately the assembly routines math-pari has for SPARC do not appear
15263 + # to be working at current. Perl cannot test math-pari or anything that
15264 + # pulls in the math-pari module as DynaLoader cannot load the resulting
15265 + # .so files math-pari generates. As such, we have to use the generic
15266 + # non-machine specific assembly methods here.
15267 + use sparc && myconf="${myconf} machine=none"
15268 +
15269 + perl-module_src_configure
15270 +}
15271
15272 diff --git a/dev-perl/mogilefs-server/files/mogautomount-init.d-2.50 b/dev-perl/mogilefs-server/files/mogautomount-init.d-2.50
15273 new file mode 100644
15274 index 0000000..dabf123
15275 --- /dev/null
15276 +++ b/dev-perl/mogilefs-server/files/mogautomount-init.d-2.50
15277 @@ -0,0 +1,22 @@
15278 +#!/sbin/runscript
15279 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogautomount-init.d-2.50,v 1.1 2011/06/16 08:39:15 robbat2 Exp $
15280 +
15281 +NAME="mogautomount"
15282 +BINARY="/usr/bin/mogautomount"
15283 +
15284 +depend() {
15285 + use net
15286 + before mogstored
15287 +}
15288 +
15289 +start() {
15290 + ebegin "Mounting MogileFS disks"
15291 + ${BINARY} --chmod-mountpoints
15292 + eend $?
15293 +}
15294 +
15295 +stop() {
15296 + :
15297 +}
15298 +
15299 +# vim: ft=gentoo-init-d:
15300
15301 diff --git a/dev-perl/mogilefs-server/files/mogilefsd-conf.d-2.16 b/dev-perl/mogilefs-server/files/mogilefsd-conf.d-2.16
15302 new file mode 100644
15303 index 0000000..871c430
15304 --- /dev/null
15305 +++ b/dev-perl/mogilefs-server/files/mogilefsd-conf.d-2.16
15306 @@ -0,0 +1,4 @@
15307 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd-conf.d-2.16,v 1.1 2007/05/16 11:11:17 robbat2 Exp $
15308 +PIDFILE="/var/run/mogile/mogilefsd.pid"
15309 +MOGILEFSD_OPTS="--daemonize --pidfile=${PIDFILE}"
15310 +# vim: ft=gentoo-conf-d:
15311
15312 diff --git a/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16 b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16
15313 new file mode 100644
15314 index 0000000..af9d298
15315 --- /dev/null
15316 +++ b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16
15317 @@ -0,0 +1,28 @@
15318 +#!/sbin/runscript
15319 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16,v 1.2 2009/11/04 02:29:23 robbat2 Exp $
15320 +
15321 +NAME="mogilefsd"
15322 +BINARY="/usr/bin/mogilefsd"
15323 +MOGILE_UID="mogile"
15324 +MOGILE_GID="mogile"
15325 +
15326 +depend() {
15327 + use net mysql postgresql
15328 + after mysql postgresql
15329 +}
15330 +
15331 +start() {
15332 + ebegin "Starting $NAME"
15333 + start-stop-daemon --chuid ${MOGILE_UID}:${MOGILE_GID} --start \
15334 + --pidfile ${PIDFILE} --exec ${BINARY} \
15335 + -- ${MOGILEFSD_OPTS}
15336 + eend $?
15337 +}
15338 +
15339 +stop() {
15340 + ebegin "Stopping $NAME"
15341 + start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
15342 + eend $?
15343 +}
15344 +
15345 +# vim: ft=gentoo-init-d:
15346
15347 diff --git a/dev-perl/mogilefs-server/files/mogilefsd.conf-2.30 b/dev-perl/mogilefs-server/files/mogilefsd.conf-2.30
15348 new file mode 100644
15349 index 0000000..4ff4763
15350 --- /dev/null
15351 +++ b/dev-perl/mogilefs-server/files/mogilefsd.conf-2.30
15352 @@ -0,0 +1,36 @@
15353 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd.conf-2.30,v 1.1 2009/02/23 09:59:21 robbat2 Exp $
15354 +
15355 +# System user
15356 +user = mogile
15357 +# These are set inside the Gentoo conf.d/mogilefsd
15358 +#pidfile = /var/run/mogile/mogilefsd.pid
15359 +#daemonize = 1
15360 +
15361 +# Database settings
15362 +db_dsn = DBI:mysql:mogilefs
15363 +db_user = mogile
15364 +# You must insert your password here!
15365 +db_pass = __PASSWORD__
15366 +
15367 +# Network settings
15368 +#conf_port = 7001
15369 +#listen = 10.0.0.1:7001,
15370 +
15371 +# Storage
15372 +#mog_root = /mnt/mogilefs
15373 +
15374 +# Plugins
15375 +#plugins = ...
15376 +
15377 +# Tuning knobs
15378 +#query_jobs = 20
15379 +#delete_jobs = 1
15380 +#replicate_jobs = 1
15381 +#monitor_jobs = 1
15382 +#reaper_jobs = 1
15383 +#min_free_space = 100
15384 +#max_disk_age = 5
15385 +#node_timeout = 2
15386 +#old_repl_compat = 1
15387 +#default_mindevcount = 2
15388 +#no_unreachable_tracking = 1
15389
15390 diff --git a/dev-perl/mogilefs-server/files/mogstored-conf.d-2.30 b/dev-perl/mogilefs-server/files/mogstored-conf.d-2.30
15391 new file mode 100644
15392 index 0000000..96b2951
15393 --- /dev/null
15394 +++ b/dev-perl/mogilefs-server/files/mogstored-conf.d-2.30
15395 @@ -0,0 +1,4 @@
15396 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored-conf.d-2.30,v 1.2 2011/12/16 19:53:23 swegener Exp $
15397 +PIDFILE="/var/run/mogile/mogstored.pid"
15398 +MOGSTORED_OPTS=""
15399 +# vim: ft=gentoo-conf-d:
15400
15401 diff --git a/dev-perl/mogilefs-server/files/mogstored-init.d-2.30 b/dev-perl/mogilefs-server/files/mogstored-init.d-2.30
15402 new file mode 100644
15403 index 0000000..59090a7
15404 --- /dev/null
15405 +++ b/dev-perl/mogilefs-server/files/mogstored-init.d-2.30
15406 @@ -0,0 +1,26 @@
15407 +#!/sbin/runscript
15408 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored-init.d-2.30,v 1.2 2009/11/04 02:29:23 robbat2 Exp $
15409 +
15410 +NAME="mogstored"
15411 +BINARY="/usr/bin/mogstored"
15412 +
15413 +depend() {
15414 + use net
15415 + before mogilefsd
15416 +}
15417 +
15418 +start() {
15419 + ebegin "Starting $NAME"
15420 + start-stop-daemon --start --quiet \
15421 + --pidfile ${PIDFILE} \
15422 + --exec ${BINARY} -- ${MOGSTORED_OPTS}
15423 + eend $?
15424 +}
15425 +
15426 +stop() {
15427 + ebegin "Stopping $NAME"
15428 + start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
15429 + eend $?
15430 +}
15431 +
15432 +# vim: ft=gentoo-init-d:
15433
15434 diff --git a/dev-perl/mogilefs-server/files/mogstored-init.d-2.50 b/dev-perl/mogilefs-server/files/mogstored-init.d-2.50
15435 new file mode 100644
15436 index 0000000..cdc015d
15437 --- /dev/null
15438 +++ b/dev-perl/mogilefs-server/files/mogstored-init.d-2.50
15439 @@ -0,0 +1,27 @@
15440 +#!/sbin/runscript
15441 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored-init.d-2.50,v 1.2 2011/12/16 19:53:23 swegener Exp $
15442 +
15443 +NAME="mogstored"
15444 +BINARY="/usr/bin/mogstored"
15445 +
15446 +depend() {
15447 + use net
15448 + before mogilefsd
15449 + need mogautomount
15450 +}
15451 +
15452 +start() {
15453 + ebegin "Starting $NAME"
15454 + start-stop-daemon --start --quiet \
15455 + --pidfile=${PIDFILE} --exec ${BINARY} \
15456 + -- --daemonize --pidfile=${PIDFILE} ${MOGSTORED_OPTS}
15457 + eend $?
15458 +}
15459 +
15460 +stop() {
15461 + ebegin "Stopping $NAME"
15462 + start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
15463 + eend $?
15464 +}
15465 +
15466 +# vim: ft=gentoo-init-d:
15467
15468 diff --git a/dev-perl/mogilefs-server/files/mogstored.conf-2.16 b/dev-perl/mogilefs-server/files/mogstored.conf-2.16
15469 new file mode 100644
15470 index 0000000..834391d
15471 --- /dev/null
15472 +++ b/dev-perl/mogilefs-server/files/mogstored.conf-2.16
15473 @@ -0,0 +1,23 @@
15474 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored.conf-2.16,v 1.1 2007/05/16 11:11:17 robbat2 Exp $
15475 +
15476 +# These are set inside the Gentoo conf.d/mogilefsd
15477 +#pidfile = /var/run/mogile/mogstored.pid
15478 +#daemonize = 1
15479 +
15480 +# Network settings
15481 +#httplisten = 0.0.0.0:7500
15482 +#mgmtlisten = 0.0.0.0:7501
15483 +
15484 +# Storage
15485 +#docroot = /var/mogdata
15486 +
15487 +# Server type
15488 +# Perlbal is the default
15489 +#server = perlbal
15490 +# But lighttpd is supported too
15491 +#server = lighttpd
15492 +#serverbin = /usr/sbin/lighttpd
15493 +
15494 +# Tuning knobs
15495 +#max_conns = 10000
15496 +#opt_iostat 1
15497
15498 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild
15499 new file mode 100644
15500 index 0000000..14f8866
15501 --- /dev/null
15502 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild
15503 @@ -0,0 +1,98 @@
15504 +# Copyright 1999-2012 Gentoo Foundation
15505 +# Distributed under the terms of the GNU General Public License v2
15506 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild,v 1.4 2012/06/03 16:31:19 tove Exp $
15507 +
15508 +EAPI=2
15509 +MODULE_AUTHOR="DORMANDO"
15510 +MY_PN=mogilefs-server
15511 +MY_P="${MY_PN}-${PV}"
15512 +MODULE_A="${MY_P}.tar.gz"
15513 +inherit user perl-module
15514 +
15515 +DESCRIPTION="Server for the MogileFS distributed file system"
15516 +HOMEPAGE="http://www.danga.com/mogilefs/"
15517 +
15518 +IUSE="mysql sqlite postgres"
15519 +
15520 +SLOT="0"
15521 +LICENSE="|| ( Artistic GPL-2 )"
15522 +KEYWORDS="~amd64 ~ppc ~x86"
15523 +
15524 +# Upstream site recommends this,
15525 +# but it breaks Perlbal
15526 +# dev-perl/Perlbal-XS-HTTPHeaders
15527 +RDEPEND="dev-perl/Net-Netmask
15528 + >=dev-perl/Danga-Socket-1.61
15529 + >=dev-perl/Sys-Syscall-0.22
15530 + >=dev-perl/Perlbal-1.74
15531 + dev-perl/IO-AIO
15532 + dev-perl/libwww-perl
15533 + >=dev-perl/MogileFS-Client-1.11
15534 + >=dev-perl/MogileFS-Utils-2.16
15535 + dev-perl/Cache-Memcached
15536 + mysql? ( dev-perl/DBD-mysql )
15537 + postgres? ( dev-perl/DBD-Pg )
15538 + sqlite? ( dev-perl/DBD-SQLite )"
15539 +DEPEND="${RDEPEND}"
15540 +mydoc="CHANGES TODO"
15541 +
15542 +# You need a local MySQL or Postgresql server for this
15543 +#SRC_TEST="do"
15544 +
15545 +#PATCHES=( )
15546 +
15547 +MOGILE_USER="mogile"
15548 +
15549 +pkg_setup() {
15550 + # Warning! It is important that the uid is constant over Gentoo machines
15551 + # As mogilefs may be used with non-local block devices that move!
15552 + enewuser ${MOGILE_USER} 460 -1 -1
15553 +}
15554 +
15555 +src_prepare() {
15556 + for f in Makefile.PL MANIFEST ; do
15557 + if [ -f "${S}"/${f}.orig ]; then
15558 + cp -f "${S}"/${f}{.orig,}
15559 + else
15560 + cp -f "${S}"/${f}{,.orig}
15561 + fi
15562 + done
15563 + # If we are not in a cutting edge Git source, we would prefer to not install
15564 + # duplicates of these.
15565 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
15566 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
15567 + mv -f "${S}/lib/mogdeps" "${S}"
15568 +}
15569 +
15570 +src_compile() {
15571 + export MOGILE_NO_BUILTIN_DEPS=1
15572 + perl-module_src_compile || die "perl-module_src_compile failed"
15573 +}
15574 +
15575 +src_install() {
15576 + export MOGILE_NO_BUILTIN_DEPS=1
15577 + perl-module_src_install || die "perl-module_src_install failed"
15578 + cd "${S}"
15579 +
15580 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
15581 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
15582 +
15583 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
15584 + newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored
15585 +
15586 + diropts -m 700 -o ${MOGILE_USER}
15587 + keepdir /var/run/mogile
15588 + keepdir /var/mogdata
15589 + diropts -m 755 -o root
15590 +
15591 + dodir /etc/mogilefs
15592 + insinto /etc/mogilefs
15593 + insopts -m 600 -o root -g ${MOGILE_USER}
15594 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
15595 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
15596 +}
15597 +
15598 +pkg_postinst() {
15599 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15600 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15601 +}
15602
15603 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild
15604 new file mode 100644
15605 index 0000000..4fb4b79
15606 --- /dev/null
15607 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild
15608 @@ -0,0 +1,99 @@
15609 +# Copyright 1999-2012 Gentoo Foundation
15610 +# Distributed under the terms of the GNU General Public License v2
15611 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild,v 1.3 2012/06/03 16:31:18 tove Exp $
15612 +
15613 +EAPI=2
15614 +MODULE_AUTHOR="DORMANDO"
15615 +MY_PN=MogileFS-Server
15616 +MY_P="${MY_PN}-${PV}"
15617 +MODULE_A="${MY_P}.tar.gz"
15618 +S="${WORKDIR}/${MY_P}"
15619 +inherit user perl-module
15620 +
15621 +DESCRIPTION="Server for the MogileFS distributed file system"
15622 +HOMEPAGE="http://www.danga.com/mogilefs/"
15623 +
15624 +IUSE="mysql sqlite postgres"
15625 +
15626 +SLOT="0"
15627 +LICENSE="|| ( Artistic GPL-2 )"
15628 +KEYWORDS="~amd64 ~ppc ~x86"
15629 +
15630 +# Upstream site recommends this,
15631 +# but it breaks Perlbal
15632 +# dev-perl/Perlbal-XS-HTTPHeaders
15633 +RDEPEND="dev-perl/Net-Netmask
15634 + >=dev-perl/Danga-Socket-1.61
15635 + >=dev-perl/Sys-Syscall-0.22
15636 + >=dev-perl/Perlbal-1.74
15637 + dev-perl/IO-AIO
15638 + dev-perl/libwww-perl
15639 + >=dev-perl/MogileFS-Client-1.11
15640 + >=dev-perl/MogileFS-Utils-2.16
15641 + dev-perl/Cache-Memcached
15642 + mysql? ( dev-perl/DBD-mysql )
15643 + postgres? ( dev-perl/DBD-Pg )
15644 + sqlite? ( dev-perl/DBD-SQLite )"
15645 +DEPEND="${RDEPEND}"
15646 +mydoc="CHANGES TODO"
15647 +
15648 +# You need a local MySQL or Postgresql server for this
15649 +#SRC_TEST="do"
15650 +
15651 +#PATCHES=( )
15652 +
15653 +MOGILE_USER="mogile"
15654 +
15655 +pkg_setup() {
15656 + # Warning! It is important that the uid is constant over Gentoo machines
15657 + # As mogilefs may be used with non-local block devices that move!
15658 + enewuser ${MOGILE_USER} 460 -1 -1
15659 +}
15660 +
15661 +src_prepare() {
15662 + for f in Makefile.PL MANIFEST ; do
15663 + if [ -f "${S}"/${f}.orig ]; then
15664 + cp -f "${S}"/${f}{.orig,}
15665 + else
15666 + cp -f "${S}"/${f}{,.orig}
15667 + fi
15668 + done
15669 + # If we are not in a cutting edge Git source, we would prefer to not install
15670 + # duplicates of these.
15671 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
15672 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
15673 + mv -f "${S}/lib/mogdeps" "${S}"
15674 +}
15675 +
15676 +src_compile() {
15677 + export MOGILE_NO_BUILTIN_DEPS=1
15678 + perl-module_src_compile || die "perl-module_src_compile failed"
15679 +}
15680 +
15681 +src_install() {
15682 + export MOGILE_NO_BUILTIN_DEPS=1
15683 + perl-module_src_install || die "perl-module_src_install failed"
15684 + cd "${S}"
15685 +
15686 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
15687 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
15688 +
15689 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
15690 + newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored
15691 +
15692 + diropts -m 700 -o ${MOGILE_USER}
15693 + keepdir /var/run/mogile
15694 + keepdir /var/mogdata
15695 + diropts -m 755 -o root
15696 +
15697 + dodir /etc/mogilefs
15698 + insinto /etc/mogilefs
15699 + insopts -m 600 -o root -g ${MOGILE_USER}
15700 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
15701 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
15702 +}
15703 +
15704 +pkg_postinst() {
15705 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15706 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15707 +}
15708
15709 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.46.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.46.ebuild
15710 new file mode 100644
15711 index 0000000..d8c107f
15712 --- /dev/null
15713 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.46.ebuild
15714 @@ -0,0 +1,99 @@
15715 +# Copyright 1999-2012 Gentoo Foundation
15716 +# Distributed under the terms of the GNU General Public License v2
15717 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.46.ebuild,v 1.4 2012/06/03 16:31:19 tove Exp $
15718 +
15719 +EAPI=2
15720 +MODULE_AUTHOR="DORMANDO"
15721 +MY_PN=MogileFS-Server
15722 +MY_P="${MY_PN}-${PV}"
15723 +MODULE_A="${MY_P}.tar.gz"
15724 +S="${WORKDIR}/${MY_P}"
15725 +inherit user perl-module
15726 +
15727 +DESCRIPTION="Server for the MogileFS distributed file system"
15728 +HOMEPAGE="http://www.danga.com/mogilefs/"
15729 +
15730 +IUSE="mysql sqlite postgres"
15731 +
15732 +SLOT="0"
15733 +LICENSE="|| ( Artistic GPL-2 )"
15734 +KEYWORDS="~amd64 ~ppc ~x86"
15735 +
15736 +# Upstream site recommends this,
15737 +# but it breaks Perlbal
15738 +# dev-perl/Perlbal-XS-HTTPHeaders
15739 +RDEPEND="dev-perl/Net-Netmask
15740 + >=dev-perl/Danga-Socket-1.61
15741 + >=dev-perl/Sys-Syscall-0.22
15742 + >=dev-perl/Perlbal-1.76
15743 + dev-perl/IO-AIO
15744 + dev-perl/libwww-perl
15745 + >=dev-perl/MogileFS-Client-1.11
15746 + >=dev-perl/MogileFS-Utils-2.16
15747 + dev-perl/Cache-Memcached
15748 + mysql? ( dev-perl/DBD-mysql )
15749 + postgres? ( dev-perl/DBD-Pg )
15750 + sqlite? ( dev-perl/DBD-SQLite )"
15751 +DEPEND="${RDEPEND}"
15752 +mydoc="CHANGES TODO"
15753 +
15754 +# You need a local MySQL or Postgresql server for this
15755 +#SRC_TEST="do"
15756 +
15757 +#PATCHES=( )
15758 +
15759 +MOGILE_USER="mogile"
15760 +
15761 +pkg_setup() {
15762 + # Warning! It is important that the uid is constant over Gentoo machines
15763 + # As mogilefs may be used with non-local block devices that move!
15764 + enewuser ${MOGILE_USER} 460 -1 -1
15765 +}
15766 +
15767 +src_prepare() {
15768 + for f in Makefile.PL MANIFEST ; do
15769 + if [ -f "${S}"/${f}.orig ]; then
15770 + cp -f "${S}"/${f}{.orig,}
15771 + else
15772 + cp -f "${S}"/${f}{,.orig}
15773 + fi
15774 + done
15775 + # If we are not in a cutting edge Git source, we would prefer to not install
15776 + # duplicates of these.
15777 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
15778 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
15779 + mv -f "${S}/lib/mogdeps" "${S}"
15780 +}
15781 +
15782 +src_compile() {
15783 + export MOGILE_NO_BUILTIN_DEPS=1
15784 + perl-module_src_compile || die "perl-module_src_compile failed"
15785 +}
15786 +
15787 +src_install() {
15788 + export MOGILE_NO_BUILTIN_DEPS=1
15789 + perl-module_src_install || die "perl-module_src_install failed"
15790 + cd "${S}"
15791 +
15792 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
15793 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
15794 +
15795 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
15796 + newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored
15797 +
15798 + diropts -m 700 -o ${MOGILE_USER}
15799 + keepdir /var/run/mogile
15800 + keepdir /var/mogdata
15801 + diropts -m 755 -o root
15802 +
15803 + dodir /etc/mogilefs
15804 + insinto /etc/mogilefs
15805 + insopts -m 600 -o root -g ${MOGILE_USER}
15806 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
15807 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
15808 +}
15809 +
15810 +pkg_postinst() {
15811 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15812 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15813 +}
15814
15815 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.50.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.50.ebuild
15816 new file mode 100644
15817 index 0000000..a45d175
15818 --- /dev/null
15819 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.50.ebuild
15820 @@ -0,0 +1,101 @@
15821 +# Copyright 1999-2012 Gentoo Foundation
15822 +# Distributed under the terms of the GNU General Public License v2
15823 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.50.ebuild,v 1.3 2012/06/03 16:31:19 tove Exp $
15824 +
15825 +EAPI=2
15826 +MODULE_AUTHOR="DORMANDO"
15827 +MY_PN=MogileFS-Server
15828 +MY_P="${MY_PN}-${PV}"
15829 +MODULE_A="${MY_P}.tar.gz"
15830 +S="${WORKDIR}/${MY_P}"
15831 +inherit user perl-module
15832 +
15833 +DESCRIPTION="Server for the MogileFS distributed file system"
15834 +HOMEPAGE="http://www.danga.com/mogilefs/"
15835 +
15836 +IUSE="mysql sqlite postgres"
15837 +
15838 +SLOT="0"
15839 +LICENSE="|| ( Artistic GPL-2 )"
15840 +KEYWORDS="~amd64 ~ppc ~x86"
15841 +
15842 +# Upstream site recommends this,
15843 +# but it breaks Perlbal
15844 +# dev-perl/Perlbal-XS-HTTPHeaders
15845 +RDEPEND="dev-perl/Net-Netmask
15846 + >=dev-perl/Danga-Socket-1.61
15847 + >=dev-perl/Sys-Syscall-0.22
15848 + >=dev-perl/Perlbal-1.790
15849 + dev-perl/IO-AIO
15850 + dev-perl/libwww-perl
15851 + >=dev-perl/MogileFS-Client-1.14
15852 + >=dev-perl/MogileFS-Utils-2.20
15853 + dev-perl/Cache-Memcached
15854 + mysql? ( dev-perl/DBD-mysql )
15855 + postgres? ( dev-perl/DBD-Pg )
15856 + sqlite? ( dev-perl/DBD-SQLite )"
15857 +DEPEND="${RDEPEND}"
15858 +mydoc="CHANGES TODO"
15859 +
15860 +# You need a local MySQL or Postgresql server for this
15861 +#SRC_TEST="do"
15862 +
15863 +#PATCHES=( )
15864 +
15865 +MOGILE_USER="mogile"
15866 +
15867 +pkg_setup() {
15868 + # Warning! It is important that the uid is constant over Gentoo machines
15869 + # As mogilefs may be used with non-local block devices that move!
15870 + enewuser ${MOGILE_USER} 460 -1 -1
15871 +}
15872 +
15873 +src_prepare() {
15874 + for f in Makefile.PL MANIFEST ; do
15875 + if [ -f "${S}"/${f}.orig ]; then
15876 + cp -f "${S}"/${f}{.orig,}
15877 + else
15878 + cp -f "${S}"/${f}{,.orig}
15879 + fi
15880 + done
15881 + # If we are not in a cutting edge Git source, we would prefer to not install
15882 + # duplicates of these.
15883 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
15884 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
15885 + mv -f "${S}/lib/mogdeps" "${S}"
15886 +}
15887 +
15888 +src_compile() {
15889 + export MOGILE_NO_BUILTIN_DEPS=1
15890 + perl-module_src_compile || die "perl-module_src_compile failed"
15891 +}
15892 +
15893 +src_install() {
15894 + export MOGILE_NO_BUILTIN_DEPS=1
15895 + perl-module_src_install || die "perl-module_src_install failed"
15896 + cd "${S}"
15897 +
15898 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
15899 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
15900 +
15901 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
15902 + newinitd "${FILESDIR}"/mogstored-init.d-2.50 mogstored
15903 +
15904 + newinitd "${FILESDIR}"/mogautomount-init.d-2.50 mogautomount
15905 +
15906 + diropts -m 700 -o ${MOGILE_USER}
15907 + keepdir /var/run/mogile
15908 + keepdir /var/mogdata
15909 + diropts -m 755 -o root
15910 +
15911 + dodir /etc/mogilefs
15912 + insinto /etc/mogilefs
15913 + insopts -m 600 -o root -g ${MOGILE_USER}
15914 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
15915 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
15916 +}
15917 +
15918 +pkg_postinst() {
15919 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15920 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
15921 +}
15922
15923 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.51.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.51.ebuild
15924 new file mode 100644
15925 index 0000000..848962a
15926 --- /dev/null
15927 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.51.ebuild
15928 @@ -0,0 +1,101 @@
15929 +# Copyright 1999-2012 Gentoo Foundation
15930 +# Distributed under the terms of the GNU General Public License v2
15931 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.51.ebuild,v 1.3 2012/06/03 16:31:18 tove Exp $
15932 +
15933 +EAPI=2
15934 +MODULE_AUTHOR="DORMANDO"
15935 +MY_PN=MogileFS-Server
15936 +MY_P="${MY_PN}-${PV}"
15937 +MODULE_A="${MY_P}.tar.gz"
15938 +S="${WORKDIR}/${MY_P}"
15939 +inherit user perl-module
15940 +
15941 +DESCRIPTION="Server for the MogileFS distributed file system"
15942 +HOMEPAGE="http://www.danga.com/mogilefs/"
15943 +
15944 +IUSE="mysql sqlite postgres"
15945 +
15946 +SLOT="0"
15947 +LICENSE="|| ( Artistic GPL-2 )"
15948 +KEYWORDS="~amd64 ~ppc ~x86"
15949 +
15950 +# Upstream site recommends this,
15951 +# but it breaks Perlbal
15952 +# dev-perl/Perlbal-XS-HTTPHeaders
15953 +RDEPEND="dev-perl/Net-Netmask
15954 + >=dev-perl/Danga-Socket-1.61
15955 + >=dev-perl/Sys-Syscall-0.22
15956 + >=dev-perl/Perlbal-1.790
15957 + dev-perl/IO-AIO
15958 + dev-perl/libwww-perl
15959 + >=dev-perl/MogileFS-Client-1.14
15960 + >=dev-perl/MogileFS-Utils-2.20
15961 + dev-perl/Cache-Memcached
15962 + mysql? ( dev-perl/DBD-mysql )
15963 + postgres? ( dev-perl/DBD-Pg )
15964 + sqlite? ( dev-perl/DBD-SQLite )"
15965 +DEPEND="${RDEPEND}"
15966 +mydoc="CHANGES TODO"
15967 +
15968 +# You need a local MySQL or Postgresql server for this
15969 +#SRC_TEST="do"
15970 +
15971 +#PATCHES=( )
15972 +
15973 +MOGILE_USER="mogile"
15974 +
15975 +pkg_setup() {
15976 + # Warning! It is important that the uid is constant over Gentoo machines
15977 + # As mogilefs may be used with non-local block devices that move!
15978 + enewuser ${MOGILE_USER} 460 -1 -1
15979 +}
15980 +
15981 +src_prepare() {
15982 + for f in Makefile.PL MANIFEST ; do
15983 + if [ -f "${S}"/${f}.orig ]; then
15984 + cp -f "${S}"/${f}{.orig,}
15985 + else
15986 + cp -f "${S}"/${f}{,.orig}
15987 + fi
15988 + done
15989 + # If we are not in a cutting edge Git source, we would prefer to not install
15990 + # duplicates of these.
15991 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
15992 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
15993 + mv -f "${S}/lib/mogdeps" "${S}"
15994 +}
15995 +
15996 +src_compile() {
15997 + export MOGILE_NO_BUILTIN_DEPS=1
15998 + perl-module_src_compile || die "perl-module_src_compile failed"
15999 +}
16000 +
16001 +src_install() {
16002 + export MOGILE_NO_BUILTIN_DEPS=1
16003 + perl-module_src_install || die "perl-module_src_install failed"
16004 + cd "${S}"
16005 +
16006 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
16007 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
16008 +
16009 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
16010 + newinitd "${FILESDIR}"/mogstored-init.d-2.50 mogstored
16011 +
16012 + newinitd "${FILESDIR}"/mogautomount-init.d-2.50 mogautomount
16013 +
16014 + diropts -m 700 -o ${MOGILE_USER}
16015 + keepdir /var/run/mogile
16016 + keepdir /var/mogdata
16017 + diropts -m 755 -o root
16018 +
16019 + dodir /etc/mogilefs
16020 + insinto /etc/mogilefs
16021 + insopts -m 600 -o root -g ${MOGILE_USER}
16022 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
16023 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
16024 +}
16025 +
16026 +pkg_postinst() {
16027 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
16028 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
16029 +}
16030
16031 diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.53.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.53.ebuild
16032 new file mode 100644
16033 index 0000000..3a39164
16034 --- /dev/null
16035 +++ b/dev-perl/mogilefs-server/mogilefs-server-2.53.ebuild
16036 @@ -0,0 +1,101 @@
16037 +# Copyright 1999-2012 Gentoo Foundation
16038 +# Distributed under the terms of the GNU General Public License v2
16039 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.53.ebuild,v 1.3 2012/06/03 16:31:19 tove Exp $
16040 +
16041 +EAPI=2
16042 +MODULE_AUTHOR="DORMANDO"
16043 +MY_PN=MogileFS-Server
16044 +MY_P="${MY_PN}-${PV}"
16045 +MODULE_A="${MY_P}.tar.gz"
16046 +S="${WORKDIR}/${MY_P}"
16047 +inherit user perl-module
16048 +
16049 +DESCRIPTION="Server for the MogileFS distributed file system"
16050 +HOMEPAGE="http://www.danga.com/mogilefs/"
16051 +
16052 +IUSE="mysql sqlite postgres"
16053 +
16054 +SLOT="0"
16055 +LICENSE="|| ( Artistic GPL-2 )"
16056 +KEYWORDS="~amd64 ~ppc ~x86"
16057 +
16058 +# Upstream site recommends this,
16059 +# but it breaks Perlbal
16060 +# dev-perl/Perlbal-XS-HTTPHeaders
16061 +RDEPEND="dev-perl/Net-Netmask
16062 + >=dev-perl/Danga-Socket-1.61
16063 + >=dev-perl/Sys-Syscall-0.22
16064 + >=dev-perl/Perlbal-1.790
16065 + dev-perl/IO-AIO
16066 + dev-perl/libwww-perl
16067 + >=dev-perl/MogileFS-Client-1.14
16068 + >=dev-perl/MogileFS-Utils-2.20
16069 + dev-perl/Cache-Memcached
16070 + mysql? ( dev-perl/DBD-mysql )
16071 + postgres? ( dev-perl/DBD-Pg )
16072 + sqlite? ( dev-perl/DBD-SQLite )"
16073 +DEPEND="${RDEPEND}"
16074 +mydoc="CHANGES TODO"
16075 +
16076 +# You need a local MySQL or Postgresql server for this
16077 +#SRC_TEST="do"
16078 +
16079 +#PATCHES=( )
16080 +
16081 +MOGILE_USER="mogile"
16082 +
16083 +pkg_setup() {
16084 + # Warning! It is important that the uid is constant over Gentoo machines
16085 + # As mogilefs may be used with non-local block devices that move!
16086 + enewuser ${MOGILE_USER} 460 -1 -1
16087 +}
16088 +
16089 +src_prepare() {
16090 + for f in Makefile.PL MANIFEST ; do
16091 + if [ -f "${S}"/${f}.orig ]; then
16092 + cp -f "${S}"/${f}{.orig,}
16093 + else
16094 + cp -f "${S}"/${f}{,.orig}
16095 + fi
16096 + done
16097 + # If we are not in a cutting edge Git source, we would prefer to not install
16098 + # duplicates of these.
16099 + sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
16100 + sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
16101 + mv -f "${S}/lib/mogdeps" "${S}"
16102 +}
16103 +
16104 +src_compile() {
16105 + export MOGILE_NO_BUILTIN_DEPS=1
16106 + perl-module_src_compile || die "perl-module_src_compile failed"
16107 +}
16108 +
16109 +src_install() {
16110 + export MOGILE_NO_BUILTIN_DEPS=1
16111 + perl-module_src_install || die "perl-module_src_install failed"
16112 + cd "${S}"
16113 +
16114 + newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
16115 + newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
16116 +
16117 + newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
16118 + newinitd "${FILESDIR}"/mogstored-init.d-2.50 mogstored
16119 +
16120 + newinitd "${FILESDIR}"/mogautomount-init.d-2.50 mogautomount
16121 +
16122 + diropts -m 700 -o ${MOGILE_USER}
16123 + keepdir /var/run/mogile
16124 + keepdir /var/mogdata
16125 + diropts -m 755 -o root
16126 +
16127 + dodir /etc/mogilefs
16128 + insinto /etc/mogilefs
16129 + insopts -m 600 -o root -g ${MOGILE_USER}
16130 + newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
16131 + newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
16132 +}
16133 +
16134 +pkg_postinst() {
16135 + chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
16136 + chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
16137 +}
16138
16139 diff --git a/dev-perl/net-server/net-server-0.97.ebuild b/dev-perl/net-server/net-server-0.97.ebuild
16140 new file mode 100644
16141 index 0000000..aba8aed
16142 --- /dev/null
16143 +++ b/dev-perl/net-server/net-server-0.97.ebuild
16144 @@ -0,0 +1,23 @@
16145 +# Copyright 1999-2010 Gentoo Foundation
16146 +# Distributed under the terms of the GNU General Public License v2
16147 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/net-server/net-server-0.97.ebuild,v 1.7 2010/02/18 20:32:37 darkside Exp $
16148 +
16149 +inherit perl-module
16150 +
16151 +MY_P=Net-Server-${PV}
16152 +S=${WORKDIR}/${MY_P}
16153 +DESCRIPTION="Extensible, general Perl server engine"
16154 +HOMEPAGE="http://search.cpan.org/~rhandom/"
16155 +SRC_URI="mirror://cpan/authors/id/R/RH/RHANDOM/${MY_P}.tar.gz"
16156 +
16157 +LICENSE="|| ( Artistic GPL-2 )"
16158 +SLOT="0"
16159 +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
16160 +IUSE=""
16161 +
16162 +SRC_TEST="do"
16163 +
16164 +mydoc="README"
16165 +
16166 +DEPEND="dev-perl/IO-Multiplex
16167 + dev-lang/perl"
16168
16169 diff --git a/dev-perl/perl-ldap/perl-ldap-0.400.100.ebuild b/dev-perl/perl-ldap/perl-ldap-0.400.100.ebuild
16170 new file mode 100644
16171 index 0000000..aea2a53
16172 --- /dev/null
16173 +++ b/dev-perl/perl-ldap/perl-ldap-0.400.100.ebuild
16174 @@ -0,0 +1,26 @@
16175 +# Copyright 1999-2011 Gentoo Foundation
16176 +# Distributed under the terms of the GNU General Public License v2
16177 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/perl-ldap/perl-ldap-0.400.100.ebuild,v 1.1 2011/01/14 13:41:10 tove Exp $
16178 +
16179 +EAPI=2
16180 +
16181 +MODULE_AUTHOR=GBARR
16182 +MODULE_VERSION=0.4001
16183 +inherit perl-module
16184 +
16185 +DESCRIPTION="A collection of perl modules which provide an object-oriented interface to LDAP servers."
16186 +
16187 +SLOT="0"
16188 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16189 +IUSE="sasl xml ssl"
16190 +
16191 +RDEPEND="dev-perl/Convert-ASN1
16192 + dev-perl/URI
16193 + sasl? ( virtual/perl-Digest-MD5 dev-perl/Authen-SASL )
16194 + xml? ( dev-perl/XML-Parser
16195 + dev-perl/XML-SAX
16196 + dev-perl/XML-SAX-Writer )
16197 + ssl? ( >=dev-perl/IO-Socket-SSL-0.93 )"
16198 +DEPEND="${RDEPEND}"
16199 +
16200 +#SRC_TEST=do
16201
16202 diff --git a/dev-perl/perl-tk/files/804.028-path.patch b/dev-perl/perl-tk/files/804.028-path.patch
16203 new file mode 100644
16204 index 0000000..8a3689c
16205 --- /dev/null
16206 +++ b/dev-perl/perl-tk/files/804.028-path.patch
16207 @@ -0,0 +1,24 @@
16208 +--- perl-tk-804.028/pTk/Tcl-pTk
16209 ++++ perl-tk-804.028/pTk/Tcl-pTk
16210 +@@ -1,4 +1,4 @@
16211 +-#!/usr/local/bin/perl -w
16212 ++#!/usr/bin/perl -w
16213 + use open IO => ':bytes'; # Avoid UTF-8 issues with some perl5.8.0 (RedHat)
16214 + use Carp;
16215 + my $verbose = 0;
16216 +--- perl-tk-804.028.orig/pTk/mkVFunc
16217 ++++ perl-tk-804.028/pTk/mkVFunc
16218 +@@ -1,4 +1,4 @@
16219 +-#!/usr/local/bin/perl -w
16220 ++#!/usr/bin/perl -w
16221 + use strict;
16222 +
16223 +
16224 +--- perl-tk-804.028/TextList/reindex.pl
16225 ++++ perl-tk-804.028/TextList/reindex.pl
16226 +@@ -1,4 +1,4 @@
16227 +-#!/bin/perl
16228 ++#!/usr/bin/perl
16229 +
16230 + use lib qw(/home1/gbartels/textlist);
16231 + use Tk;
16232
16233 diff --git a/dev-perl/perl-tk/files/804.029-X11_XLIB_H.patch b/dev-perl/perl-tk/files/804.029-X11_XLIB_H.patch
16234 new file mode 100644
16235 index 0000000..7a43a7a
16236 --- /dev/null
16237 +++ b/dev-perl/perl-tk/files/804.029-X11_XLIB_H.patch
16238 @@ -0,0 +1,19 @@
16239 +https://bugs.gentoo.org/show_bug.cgi?id=345987
16240 +--- Tk-804.029/pTk/Xlib.h
16241 ++++ Tk-804.029/pTk/Xlib.h
16242 +@@ -1,6 +1,7 @@
16243 + #ifndef _XLIB
16244 + #define _XLIB
16245 + #ifndef _XLIB_H_
16246 ++#ifndef _X11_XLIB_H_
16247 + extern XFontStruct *XLoadQueryFont _ANSI_ARGS_((Display *, const char *));
16248 + extern XModifierKeymap *XGetModifierMapping _ANSI_ARGS_((Display *));
16249 + extern XImage *XCreateImage _ANSI_ARGS_((Display *, Visual *, unsigned int, int, int, char *, unsigned int, unsigned int, int, int));
16250 +@@ -143,6 +144,7 @@
16251 + extern Window XGetSelectionOwner _ANSI_ARGS_((Display *, Atom));
16252 + extern int XRectInRegion _ANSI_ARGS_((Region,int,int,unsigned,unsigned));
16253 + extern int XSubtractRegion _ANSI_ARGS_((Region, Region, Region));
16254 ++#endif /* _X11_XLIB_H_ */
16255 + #endif /* _XLIB_H_ */
16256 + extern int _XInitImageFuncPtrs _ANSI_ARGS_((XImage *image));
16257 + #endif /* _XLIB */
16258
16259 diff --git a/dev-perl/perl-tk/files/xorg.patch b/dev-perl/perl-tk/files/xorg.patch
16260 new file mode 100644
16261 index 0000000..998f3c7
16262 --- /dev/null
16263 +++ b/dev-perl/perl-tk/files/xorg.patch
16264 @@ -0,0 +1,50 @@
16265 +diff -Naurp Tk-804.027/Tk/MakeDepend.pm Tk-804.027.new/Tk/MakeDepend.pm
16266 +--- Tk-804.027/Tk/MakeDepend.pm 2003-12-13 07:28:22.000000000 -0500
16267 ++++ Tk-804.027.new/Tk/MakeDepend.pm 2006-06-13 22:34:21.000000000 -0400
16268 +@@ -248,6 +248,7 @@ sub command_line
16269 + # force /usr/include to be last element of @include
16270 + push @include, $Config{'usrinc'}
16271 + if (defined $Config{'usrinc'} and $Config{'usrinc'} ne '');
16272 ++ push @include, "/usr/include";
16273 + # warn "Include:@include\n";
16274 + while (@files)
16275 + {
16276 +diff -Naurp Tk-804.027/myConfig Tk-804.027.new/myConfig
16277 +--- Tk-804.027/myConfig 2004-02-28 11:59:28.000000000 -0500
16278 ++++ Tk-804.027.new/myConfig 2006-06-13 22:27:53.000000000 -0400
16279 +@@ -253,7 +253,7 @@ if ($win_arch eq 'x') {
16280 + }
16281 + close(XMKMF);
16282 + while (defined $uidir) {
16283 +- last unless ($uidir =~ s!^.*-I(\S+)/lib/X11/config!!o);
16284 ++ last unless ($uidir =~ s!^.*-I(\S+)/lib(64)/X11/config!!o);
16285 + $try = $1;
16286 + $try =~ s/'x11root'/$ENV{X11ROOT}/;
16287 + push(@xdirs,$try);
16288 +@@ -294,7 +294,7 @@ if ($win_arch eq 'x') {
16289 + #
16290 + unless (defined $xlib)
16291 + {
16292 +- $xlib = &lX11(0,chooseX11(</usr/X11*/lib>),chooseX11(</usr/lib/X11*>),</usr/Xfree*/lib>,'/usr/X386/lib')
16293 ++ $xlib = &lX11(0,chooseX11(</usr/X11*/lib>),chooseX11(</usr/lib/X11*>),</usr/Xfree*/lib>,'/usr/X386/lib','/usr/lib64')
16294 + }
16295 +
16296 + #
16297 +@@ -309,7 +309,7 @@ if ($win_arch eq 'x') {
16298 +
16299 + die "Cannot find -lX11 anywhere" unless(defined $xlib);
16300 +
16301 +- ($base) = $xlib =~ m#-L(.*)(?:/lib)$#x;
16302 ++ ($base) = $xlib =~ m#-L(.*)(?:/lib(64))$#x;
16303 + if (defined $X11INC)
16304 + {
16305 + $xinc = &IX11("$X11INC");
16306 +@@ -321,6 +321,8 @@ if ($win_arch eq 'x') {
16307 + {
16308 + warn "Cannot find X include files via $base/include\n";
16309 + $xinc = &IX11(map("$_/include",@xdirs),
16310 ++ chooseX11(</usr/include/X11*>),
16311 ++ '/usr/include',
16312 + '/usr/openwin/include',
16313 + chooseX11(</usr/X11*/include>),
16314 + chooseX11(</usr/include/X11*>),
16315
16316 diff --git a/dev-perl/yaml/yaml-0.71.ebuild b/dev-perl/yaml/yaml-0.71.ebuild
16317 new file mode 100644
16318 index 0000000..64e62dd
16319 --- /dev/null
16320 +++ b/dev-perl/yaml/yaml-0.71.ebuild
16321 @@ -0,0 +1,19 @@
16322 +# Copyright 1999-2011 Gentoo Foundation
16323 +# Distributed under the terms of the GNU General Public License v2
16324 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/yaml/yaml-0.71.ebuild,v 1.9 2011/07/30 10:50:33 tove Exp $
16325 +
16326 +EAPI=2
16327 +
16328 +MODULE_AUTHOR=ADAMK
16329 +MY_PN="YAML"
16330 +MY_P="${MY_PN}-${PV}"
16331 +S=${WORKDIR}/${MY_P}
16332 +inherit perl-module
16333 +
16334 +DESCRIPTION="YAML Ain't Markup Language (tm)"
16335 +
16336 +SLOT="0"
16337 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16338 +IUSE=""
16339 +
16340 +SRC_TEST="do"
16341
16342 diff --git a/dev-vcs/git/files/50git-gentoo.el b/dev-vcs/git/files/50git-gentoo.el
16343 new file mode 100644
16344 index 0000000..1646a39
16345 --- /dev/null
16346 +++ b/dev-vcs/git/files/50git-gentoo.el
16347 @@ -0,0 +1,13 @@
16348 +
16349 +;;; dev-vcs/git site-lisp configuration
16350 +
16351 +(add-to-list 'load-path "@SITELISP@")
16352 +(autoload 'git-status "git" "Entry point into git-status mode." t)
16353 +;;(autoload 'git-blame-mode "git-blame"
16354 +;; "Minor mode for incremental blame for Git." t)
16355 +
16356 +;; GNU Emacs >=22.2 already includes vc-git.el.
16357 +;; Enable the following only if Emacs has no GIT support.
16358 +(unless (fboundp 'vc-git-registered)
16359 + (add-to-list 'load-path "@SITELISP@/compat")
16360 + (add-to-list 'vc-handled-backends 'GIT))
16361
16362 diff --git a/dev-vcs/git/files/git-1.6.6.1-interix6.patch b/dev-vcs/git/files/git-1.6.6.1-interix6.patch
16363 new file mode 100644
16364 index 0000000..0a8db37
16365 --- /dev/null
16366 +++ b/dev-vcs/git/files/git-1.6.6.1-interix6.patch
16367 @@ -0,0 +1,17 @@
16368 +diff -ru git-1.6.6.1.orig/compat/inet_ntop.c git-1.6.6.1/compat/inet_ntop.c
16369 +--- git-1.6.6.1.orig/compat/inet_ntop.c 2010-03-09 04:39:03 -0800
16370 ++++ git-1.6.6.1/compat/inet_ntop.c 2010-03-09 04:40:50 -0800
16371 +@@ -169,6 +169,8 @@
16372 + }
16373 + #endif
16374 +
16375 ++/* conflicts with interix' headers... */
16376 ++#ifndef __INTERIX
16377 + /* char *
16378 + * inet_ntop(af, src, dst, size)
16379 + * convert a network format address to presentation format.
16380 +@@ -197,3 +199,4 @@
16381 + }
16382 + /* NOTREACHED */
16383 + }
16384 ++#endif
16385
16386 diff --git a/dev-vcs/git/files/git-1.7.1-interix.patch b/dev-vcs/git/files/git-1.7.1-interix.patch
16387 new file mode 100644
16388 index 0000000..130d808
16389 --- /dev/null
16390 +++ b/dev-vcs/git/files/git-1.7.1-interix.patch
16391 @@ -0,0 +1,100 @@
16392 +patch reported upstream at the mailing list.
16393 +mail reference is: http://marc.info/?l=git&m=126813299716136&w=2
16394 +
16395 +--- builtin/upload-archive.c
16396 ++++ builtin/upload-archive.c
16397 +@@ -132,8 +132,9 @@
16398 + packet_flush(1);
16399 +
16400 + while (1) {
16401 +- struct pollfd pfd[2];
16402 + int status;
16403 ++#ifndef __INTERIX
16404 ++ struct pollfd pfd[2];
16405 +
16406 + pfd[0].fd = fd1[0];
16407 + pfd[0].events = POLLIN;
16408 +@@ -156,6 +157,8 @@
16409 + if (process_input(pfd[0].fd, 1))
16410 + continue;
16411 +
16412 ++#endif
16413 ++
16414 + if (waitpid(writer, &status, 0) < 0)
16415 + error_clnt("%s", lostchild);
16416 + else if (!WIFEXITED(status) || WEXITSTATUS(status) > 0)
16417 +--- daemon.c
16418 ++++ daemon.c
16419 +@@ -14,6 +14,8 @@
16420 + #define NI_MAXSERV 32
16421 + #endif
16422 +
16423 ++#ifndef __INTERIX /* not available on interix! */
16424 ++
16425 + static int log_syslog;
16426 + static int verbose;
16427 + static int reuseaddr;
16428 +@@ -922,8 +924,13 @@
16429 + return service_loop(socknum, socklist);
16430 + }
16431 +
16432 ++#endif /* __INTERIX */
16433 ++
16434 + int main(int argc, char **argv)
16435 + {
16436 ++#ifdef __INTERIX
16437 ++ die("not implemented on interix!");
16438 ++#else /* !__INTERIX */
16439 + int listen_port = 0;
16440 + char *listen_addr = NULL;
16441 + int inetd_mode = 0;
16442 +@@ -1121,4 +1128,5 @@
16443 + store_pid(pid_file);
16444 +
16445 + return serve(listen_addr, listen_port, pass, gid);
16446 ++#endif /* __INTERIX */
16447 + }
16448 +--- git-compat-util.h
16449 ++++ git-compat-util.h
16450 +@@ -93,7 +93,9 @@
16451 + #include <utime.h>
16452 + #ifndef __MINGW32__
16453 + #include <sys/wait.h>
16454 ++#ifndef __INTERIX
16455 + #include <sys/poll.h>
16456 ++#endif
16457 + #include <sys/socket.h>
16458 + #include <sys/ioctl.h>
16459 + #ifndef NO_SYS_SELECT_H
16460 +@@ -104,7 +106,11 @@
16461 + #include <arpa/inet.h>
16462 + #include <netdb.h>
16463 + #include <pwd.h>
16464 ++#ifndef __INTERIX
16465 + #include <inttypes.h>
16466 ++#else
16467 ++#include <stdint.h>
16468 ++#endif
16469 + #if defined(__CYGWIN__)
16470 + #undef _XOPEN_SOURCE
16471 + #include <grp.h>
16472 +--- upload-pack.c
16473 ++++ upload-pack.c
16474 +@@ -150,6 +150,7 @@
16475 +
16476 + static void create_pack_file(void)
16477 + {
16478 ++#ifndef __INTERIX
16479 + struct async rev_list;
16480 + struct child_process pack_objects;
16481 + int create_full_pack = (nr_our_refs == want_obj.nr && !have_obj.nr);
16482 +@@ -328,6 +329,9 @@
16483 + fail:
16484 + send_client_data(3, abort_msg, sizeof(abort_msg));
16485 + die("git upload-pack: %s", abort_msg);
16486 ++#else /* __INTERIX */
16487 ++ die("git upload-pack: not implemented on interix!");
16488 ++#endif /* __INTERIX */
16489 + }
16490 +
16491 + static int got_sha1(char *hex, unsigned char *sha1)
16492
16493 diff --git a/dev-vcs/git/files/git-1.7.10.2-optional-cvs.patch b/dev-vcs/git/files/git-1.7.10.2-optional-cvs.patch
16494 new file mode 100644
16495 index 0000000..6b8a6a6
16496 --- /dev/null
16497 +++ b/dev-vcs/git/files/git-1.7.10.2-optional-cvs.patch
16498 @@ -0,0 +1,375 @@
16499 +From eadb20b065c33d46b49c8c95d8cde0c9fe7c62a4 Mon Sep 17 00:00:00 2001
16500 +From: Robin Johnson <robbat2@g.o>
16501 +Date: Sat, 19 May 2012 20:16:01 +0200
16502 +Subject: [PATCH] Makefile: Add NO_CVS define to disable all CVS interface
16503 + utilities
16504 +
16505 +Forward-ported from 1.7.3.5 to current git.git v1.7.10.2 tag.
16506 +
16507 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/Makefile git-1.7.10.2/Makefile
16508 +--- git-1.7.10.2.orig/Makefile 2012-05-11 20:25:45.000000000 +0000
16509 ++++ git-1.7.10.2/Makefile 2012-05-20 04:16:31.257289982 +0000
16510 +@@ -224,6 +224,8 @@
16511 + #
16512 + # Define NO_TCLTK if you do not want Tcl/Tk GUI.
16513 + #
16514 ++# Define NO_CVS if you do not want any CVS interface utilities.
16515 ++#
16516 + # The TCL_PATH variable governs the location of the Tcl interpreter
16517 + # used to optimize git-gui for your system. Only used if NO_TCLTK
16518 + # is not set. Defaults to the bare 'tclsh'.
16519 +@@ -392,6 +394,7 @@
16520 + PROGRAM_OBJS =
16521 + PROGRAMS =
16522 + SCRIPT_PERL =
16523 ++SCRIPT_PERL_CVS =
16524 + SCRIPT_PYTHON =
16525 + SCRIPT_SH =
16526 + SCRIPT_LIB =
16527 +@@ -432,17 +435,18 @@
16528 + SCRIPT_PERL += git-add--interactive.perl
16529 + SCRIPT_PERL += git-difftool.perl
16530 + SCRIPT_PERL += git-archimport.perl
16531 +-SCRIPT_PERL += git-cvsexportcommit.perl
16532 +-SCRIPT_PERL += git-cvsimport.perl
16533 +-SCRIPT_PERL += git-cvsserver.perl
16534 + SCRIPT_PERL += git-relink.perl
16535 + SCRIPT_PERL += git-send-email.perl
16536 + SCRIPT_PERL += git-svn.perl
16537 +
16538 ++SCRIPT_PERL_CVS += git-cvsexportcommit.perl
16539 ++SCRIPT_PERL_CVS += git-cvsimport.perl
16540 ++SCRIPT_PERL_CVS += git-cvsserver.perl
16541 ++
16542 + SCRIPT_PYTHON += git-remote-testgit.py
16543 +
16544 + SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
16545 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
16546 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
16547 + $(patsubst %.py,%,$(SCRIPT_PYTHON)) \
16548 + git-instaweb
16549 +
16550 +@@ -1946,13 +1950,25 @@
16551 + $(QUIET_GEN)$(cmd_munge_script) && \
16552 + mv $@+ $@
16553 +
16554 ++_SCRIPT_PERL_BUILD =
16555 ++_SCRIPT_PERL_NOBUILD =
16556 ++
16557 + ifndef NO_PERL
16558 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
16559 ++
16560 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL)
16561 ++
16562 ++ifndef NO_CVS
16563 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS)
16564 ++else # NO_CVS
16565 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS)
16566 ++endif # NO_CVS
16567 ++
16568 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): perl/perl.mak
16569 +
16570 + perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
16571 + $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F)
16572 +
16573 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
16574 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl
16575 + $(QUIET_GEN)$(RM) $@ $@+ && \
16576 + INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \
16577 + sed -e '1{' \
16578 +@@ -1983,14 +1999,17 @@
16579 + chmod +x $@+ && \
16580 + mv $@+ $@
16581 + else # NO_PERL
16582 +-$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
16583 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb
16584 ++endif # NO_PERL
16585 ++
16586 ++# This is any perl scripts that were disabled it might be empty...
16587 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh
16588 + $(QUIET_GEN)$(RM) $@ $@+ && \
16589 + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
16590 + -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
16591 + unimplemented.sh >$@+ && \
16592 + chmod +x $@+ && \
16593 + mv $@+ $@
16594 +-endif # NO_PERL
16595 +
16596 + ifndef NO_PYTHON
16597 + $(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS
16598 +@@ -2025,7 +2044,7 @@
16599 + # These can record GIT_VERSION
16600 + git.o git.spec \
16601 + $(patsubst %.sh,%,$(SCRIPT_SH)) \
16602 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
16603 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
16604 + : GIT-VERSION-FILE
16605 +
16606 + TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
16607 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9200-git-cvsexportcommit.sh git-1.7.10.2/t/t9200-git-cvsexportcommit.sh
16608 +--- git-1.7.10.2.orig/t/t9200-git-cvsexportcommit.sh 2012-05-11 20:25:45.000000000 +0000
16609 ++++ git-1.7.10.2/t/t9200-git-cvsexportcommit.sh 2012-05-20 04:16:31.257289982 +0000
16610 +@@ -12,6 +12,11 @@
16611 + test_done
16612 + fi
16613 +
16614 ++if ! test_have_prereq CVS; then
16615 ++ skip_all='skipping git cvsexportcommit tests, cvs not available'
16616 ++ test_done
16617 ++fi
16618 ++
16619 + cvs >/dev/null 2>&1
16620 + if test $? -ne 1
16621 + then
16622 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9400-git-cvsserver-server.sh git-1.7.10.2/t/t9400-git-cvsserver-server.sh
16623 +--- git-1.7.10.2.orig/t/t9400-git-cvsserver-server.sh 2012-05-11 20:25:45.000000000 +0000
16624 ++++ git-1.7.10.2/t/t9400-git-cvsserver-server.sh 2012-05-20 04:16:31.257289982 +0000
16625 +@@ -11,9 +11,15 @@
16626 + . ./test-lib.sh
16627 +
16628 + if ! test_have_prereq PERL; then
16629 +- skip_all='skipping git cvsserver tests, perl not available'
16630 ++ skip_all='skipping git-cvsserver tests, perl not available'
16631 + test_done
16632 + fi
16633 ++
16634 ++if ! test_have_prereq CVS; then
16635 ++ skip_all='skipping git-cvsserver tests, cvs not available'
16636 ++ test_done
16637 ++fi
16638 ++
16639 + cvs >/dev/null 2>&1
16640 + if test $? -ne 1
16641 + then
16642 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9401-git-cvsserver-crlf.sh git-1.7.10.2/t/t9401-git-cvsserver-crlf.sh
16643 +--- git-1.7.10.2.orig/t/t9401-git-cvsserver-crlf.sh 2012-05-11 20:25:45.000000000 +0000
16644 ++++ git-1.7.10.2/t/t9401-git-cvsserver-crlf.sh 2012-05-20 04:16:31.257289982 +0000
16645 +@@ -38,15 +38,20 @@
16646 + fi
16647 + }
16648 +
16649 +-cvs >/dev/null 2>&1
16650 +-if test $? -ne 1
16651 ++if ! test_have_prereq PERL
16652 + then
16653 +- skip_all='skipping git-cvsserver tests, cvs not found'
16654 ++ skip_all='skipping git-cvsserver tests, perl not available'
16655 + test_done
16656 + fi
16657 +-if ! test_have_prereq PERL
16658 ++if ! test_have_prereq CVS
16659 + then
16660 +- skip_all='skipping git-cvsserver tests, perl not available'
16661 ++ skip_all='skipping git-cvsserver tests, cvs not available'
16662 ++ test_done
16663 ++fi
16664 ++cvs >/dev/null 2>&1
16665 ++if test $? -ne 1
16666 ++then
16667 ++ skip_all='skipping git-cvsserver tests, cvs not found'
16668 + test_done
16669 + fi
16670 + "$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
16671 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9600-cvsimport.sh git-1.7.10.2/t/t9600-cvsimport.sh
16672 +--- git-1.7.10.2.orig/t/t9600-cvsimport.sh 2012-05-11 20:25:45.000000000 +0000
16673 ++++ git-1.7.10.2/t/t9600-cvsimport.sh 2012-05-20 04:16:31.260623323 +0000
16674 +@@ -3,14 +3,25 @@
16675 + test_description='git cvsimport basic tests'
16676 + . ./lib-cvs.sh
16677 +
16678 +-test_expect_success PERL 'setup cvsroot environment' '
16679 ++if ! test_have_prereq PERL
16680 ++then
16681 ++ skip_all='skipping git cvsimport tests, perl not available'
16682 ++ test_done
16683 ++fi
16684 ++if ! test_have_prereq CVS
16685 ++then
16686 ++ skip_all='skipping git cvsimport tests, cvs not available'
16687 ++ test_done
16688 ++fi
16689 ++
16690 ++test_expect_success 'setup cvsroot environment' '
16691 + CVSROOT=$(pwd)/cvsroot &&
16692 + export CVSROOT
16693 + '
16694 +
16695 +-test_expect_success PERL 'setup cvsroot' '$CVS init'
16696 ++test_expect_success 'setup cvsroot' '$CVS init'
16697 +
16698 +-test_expect_success PERL 'setup a cvs module' '
16699 ++test_expect_success 'setup a cvs module' '
16700 +
16701 + mkdir "$CVSROOT/module" &&
16702 + $CVS co -d module-cvs module &&
16703 +@@ -42,23 +53,23 @@
16704 + )
16705 + '
16706 +
16707 +-test_expect_success PERL 'import a trivial module' '
16708 ++test_expect_success 'import a trivial module' '
16709 +
16710 + git cvsimport -a -R -z 0 -C module-git module &&
16711 + test_cmp module-cvs/o_fortuna module-git/o_fortuna
16712 +
16713 + '
16714 +
16715 +-test_expect_success PERL 'pack refs' '(cd module-git && git gc)'
16716 ++test_expect_success 'pack refs' '(cd module-git && git gc)'
16717 +
16718 +-test_expect_success PERL 'initial import has correct .git/cvs-revisions' '
16719 ++test_expect_success 'initial import has correct .git/cvs-revisions' '
16720 +
16721 + (cd module-git &&
16722 + git log --format="o_fortuna 1.1 %H" -1) > expected &&
16723 + test_cmp expected module-git/.git/cvs-revisions
16724 + '
16725 +
16726 +-test_expect_success PERL 'update cvs module' '
16727 ++test_expect_success 'update cvs module' '
16728 + (cd module-cvs &&
16729 + cat <<EOF >o_fortuna &&
16730 + O Fortune,
16731 +@@ -86,7 +97,7 @@
16732 + )
16733 + '
16734 +
16735 +-test_expect_success PERL 'update git module' '
16736 ++test_expect_success 'update git module' '
16737 +
16738 + (cd module-git &&
16739 + git config cvsimport.trackRevisions true &&
16740 +@@ -97,7 +108,7 @@
16741 +
16742 + '
16743 +
16744 +-test_expect_success PERL 'update has correct .git/cvs-revisions' '
16745 ++test_expect_success 'update has correct .git/cvs-revisions' '
16746 +
16747 + (cd module-git &&
16748 + git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
16749 +@@ -105,7 +116,7 @@
16750 + test_cmp expected module-git/.git/cvs-revisions
16751 + '
16752 +
16753 +-test_expect_success PERL 'update cvs module' '
16754 ++test_expect_success 'update cvs module' '
16755 +
16756 + (cd module-cvs &&
16757 + echo 1 >tick &&
16758 +@@ -114,7 +125,7 @@
16759 + )
16760 + '
16761 +
16762 +-test_expect_success PERL 'cvsimport.module config works' '
16763 ++test_expect_success 'cvsimport.module config works' '
16764 +
16765 + (cd module-git &&
16766 + git config cvsimport.module module &&
16767 +@@ -126,7 +137,7 @@
16768 +
16769 + '
16770 +
16771 +-test_expect_success PERL 'second update has correct .git/cvs-revisions' '
16772 ++test_expect_success 'second update has correct .git/cvs-revisions' '
16773 +
16774 + (cd module-git &&
16775 + git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
16776 +@@ -135,7 +146,7 @@
16777 + test_cmp expected module-git/.git/cvs-revisions
16778 + '
16779 +
16780 +-test_expect_success PERL 'import from a CVS working tree' '
16781 ++test_expect_success 'import from a CVS working tree' '
16782 +
16783 + $CVS co -d import-from-wt module &&
16784 + (cd import-from-wt &&
16785 +@@ -148,12 +159,12 @@
16786 +
16787 + '
16788 +
16789 +-test_expect_success PERL 'no .git/cvs-revisions created by default' '
16790 ++test_expect_success 'no .git/cvs-revisions created by default' '
16791 +
16792 + ! test -e import-from-wt/.git/cvs-revisions
16793 +
16794 + '
16795 +
16796 +-test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master'
16797 ++test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master'
16798 +
16799 + test_done
16800 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9601-cvsimport-vendor-branch.sh git-1.7.10.2/t/t9601-cvsimport-vendor-branch.sh
16801 +--- git-1.7.10.2.orig/t/t9601-cvsimport-vendor-branch.sh 2012-05-11 20:25:45.000000000 +0000
16802 ++++ git-1.7.10.2/t/t9601-cvsimport-vendor-branch.sh 2012-05-20 04:16:31.260623323 +0000
16803 +@@ -34,6 +34,17 @@
16804 + test_description='git cvsimport handling of vendor branches'
16805 + . ./lib-cvs.sh
16806 +
16807 ++if ! test_have_prereq PERL
16808 ++then
16809 ++ skip_all='skipping git cvsimport tests, perl not available'
16810 ++ test_done
16811 ++fi
16812 ++if ! test_have_prereq CVS
16813 ++then
16814 ++ skip_all='skipping git cvsimport tests, cvs not available'
16815 ++ test_done
16816 ++fi
16817 ++
16818 + setup_cvs_test_repository t9601
16819 +
16820 + test_expect_success PERL 'import a module with a vendor branch' '
16821 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9602-cvsimport-branches-tags.sh git-1.7.10.2/t/t9602-cvsimport-branches-tags.sh
16822 +--- git-1.7.10.2.orig/t/t9602-cvsimport-branches-tags.sh 2012-05-11 20:25:45.000000000 +0000
16823 ++++ git-1.7.10.2/t/t9602-cvsimport-branches-tags.sh 2012-05-20 04:16:31.260623323 +0000
16824 +@@ -6,6 +6,17 @@
16825 + test_description='git cvsimport handling of branches and tags'
16826 + . ./lib-cvs.sh
16827 +
16828 ++if ! test_have_prereq PERL
16829 ++then
16830 ++ skip_all='skipping git cvsimport tests, perl not available'
16831 ++ test_done
16832 ++fi
16833 ++if ! test_have_prereq CVS
16834 ++then
16835 ++ skip_all='skipping git cvsimport tests, cvs not available'
16836 ++ test_done
16837 ++fi
16838 ++
16839 + setup_cvs_test_repository t9602
16840 +
16841 + test_expect_success PERL 'import module' '
16842 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/t9603-cvsimport-patchsets.sh git-1.7.10.2/t/t9603-cvsimport-patchsets.sh
16843 +--- git-1.7.10.2.orig/t/t9603-cvsimport-patchsets.sh 2012-05-11 20:25:45.000000000 +0000
16844 ++++ git-1.7.10.2/t/t9603-cvsimport-patchsets.sh 2012-05-20 04:16:31.260623323 +0000
16845 +@@ -14,6 +14,17 @@
16846 + test_description='git cvsimport testing for correct patchset estimation'
16847 + . ./lib-cvs.sh
16848 +
16849 ++if ! test_have_prereq PERL
16850 ++then
16851 ++ skip_all='skipping git cvsimport tests, perl not available'
16852 ++ test_done
16853 ++fi
16854 ++if ! test_have_prereq CVS
16855 ++then
16856 ++ skip_all='skipping git cvsimport tests, cvs not available'
16857 ++ test_done
16858 ++fi
16859 ++
16860 + setup_cvs_test_repository t9603
16861 +
16862 + test_expect_failure 'import with criss cross times on revisions' '
16863 +diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.7.10.2.orig/t/test-lib.sh git-1.7.10.2/t/test-lib.sh
16864 +--- git-1.7.10.2.orig/t/test-lib.sh 2012-05-11 20:25:45.000000000 +0000
16865 ++++ git-1.7.10.2/t/test-lib.sh 2012-05-20 04:16:54.310680942 +0000
16866 +@@ -616,6 +616,7 @@
16867 + esac
16868 +
16869 + ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
16870 ++test -z "$NO_CVS" && test_set_prereq CVS
16871 + test -z "$NO_PERL" && test_set_prereq PERL
16872 + test -z "$NO_PYTHON" && test_set_prereq PYTHON
16873 + test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE
16874
16875 diff --git a/dev-vcs/git/files/git-1.7.11-optional-cvs.patch b/dev-vcs/git/files/git-1.7.11-optional-cvs.patch
16876 new file mode 100644
16877 index 0000000..fb95626
16878 --- /dev/null
16879 +++ b/dev-vcs/git/files/git-1.7.11-optional-cvs.patch
16880 @@ -0,0 +1,400 @@
16881 +From eadb20b065c33d46b49c8c95d8cde0c9fe7c62a4 Mon Sep 17 00:00:00 2001
16882 +From: Robin Johnson <robbat2@g.o>
16883 +Date: Sat, 19 May 2012 20:16:01 +0200
16884 +Subject: [PATCH] Makefile: Add NO_CVS define to disable all CVS interface
16885 + utilities
16886 +
16887 +Forward-ported from 1.7.3.5 to current git.git master HEAD, commit
16888 +9de96815493b577ae791d5113a3e354142ffbcae
16889 +---
16890 + Makefile | 37 ++++++++++++++++++++++++--------
16891 + t/t9200-git-cvsexportcommit.sh | 5 ++++
16892 + t/t9400-git-cvsserver-server.sh | 8 ++++++-
16893 + t/t9401-git-cvsserver-crlf.sh | 15 ++++++++----
16894 + t/t9600-cvsimport.sh | 41 ++++++++++++++++++++++-------------
16895 + t/t9601-cvsimport-vendor-branch.sh | 11 +++++++++
16896 + t/t9602-cvsimport-branches-tags.sh | 11 +++++++++
16897 + t/t9603-cvsimport-patchsets.sh | 11 +++++++++
16898 + t/test-lib.sh | 1 +
16899 + 9 files changed, 110 insertions(+), 30 deletions(-)
16900 +
16901 +diff --git a/Makefile b/Makefile
16902 +index 96ebcf9..db74648 100644
16903 +--- a/Makefile
16904 ++++ b/Makefile
16905 +@@ -224,6 +224,8 @@ all::
16906 + #
16907 + # Define NO_TCLTK if you do not want Tcl/Tk GUI.
16908 + #
16909 ++# Define NO_CVS if you do not want any CVS interface utilities.
16910 ++#
16911 + # The TCL_PATH variable governs the location of the Tcl interpreter
16912 + # used to optimize git-gui for your system. Only used if NO_TCLTK
16913 + # is not set. Defaults to the bare 'tclsh'.
16914 +@@ -401,6 +403,7 @@ LIB_OBJS =
16915 + PROGRAM_OBJS =
16916 + PROGRAMS =
16917 + SCRIPT_PERL =
16918 ++SCRIPT_PERL_CVS =
16919 + SCRIPT_PYTHON =
16920 + SCRIPT_SH =
16921 + SCRIPT_LIB =
16922 +@@ -441,18 +444,19 @@ SCRIPT_LIB += git-sh-i18n
16923 + SCRIPT_PERL += git-add--interactive.perl
16924 + SCRIPT_PERL += git-difftool.perl
16925 + SCRIPT_PERL += git-archimport.perl
16926 +-SCRIPT_PERL += git-cvsexportcommit.perl
16927 +-SCRIPT_PERL += git-cvsimport.perl
16928 +-SCRIPT_PERL += git-cvsserver.perl
16929 + SCRIPT_PERL += git-relink.perl
16930 + SCRIPT_PERL += git-send-email.perl
16931 + SCRIPT_PERL += git-svn.perl
16932 +
16933 ++SCRIPT_PERL_CVS += git-cvsexportcommit.perl
16934 ++SCRIPT_PERL_CVS += git-cvsimport.perl
16935 ++SCRIPT_PERL_CVS += git-cvsserver.perl
16936 ++
16937 + SCRIPT_PYTHON += git-remote-testgit.py
16938 + SCRIPT_PYTHON += git-p4.py
16939 +
16940 + SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
16941 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
16942 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
16943 + $(patsubst %.py,%,$(SCRIPT_PYTHON)) \
16944 + git-instaweb
16945 +
16946 +@@ -2012,13 +2016,25 @@ $(SCRIPT_LIB) : % : %.sh
16947 + $(QUIET_GEN)$(cmd_munge_script) && \
16948 + mv $@+ $@
16949 +
16950 ++_SCRIPT_PERL_BUILD =
16951 ++_SCRIPT_PERL_NOBUILD =
16952 ++
16953 + ifndef NO_PERL
16954 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
16955 ++
16956 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL)
16957 ++
16958 ++ifndef NO_CVS
16959 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS)
16960 ++else # NO_CVS
16961 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS)
16962 ++endif # NO_CVS
16963 ++
16964 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): perl/perl.mak
16965 +
16966 + perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
16967 + $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F)
16968 +
16969 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
16970 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl
16971 + $(QUIET_GEN)$(RM) $@ $@+ && \
16972 + INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \
16973 + sed -e '1{' \
16974 +@@ -2049,14 +2065,17 @@ git-instaweb: git-instaweb.sh gitweb
16975 + chmod +x $@+ && \
16976 + mv $@+ $@
16977 + else # NO_PERL
16978 +-$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
16979 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb
16980 ++endif # NO_PERL
16981 ++
16982 ++# This is any perl scripts that were disabled it might be empty...
16983 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh
16984 + $(QUIET_GEN)$(RM) $@ $@+ && \
16985 + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
16986 + -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
16987 + unimplemented.sh >$@+ && \
16988 + chmod +x $@+ && \
16989 + mv $@+ $@
16990 +-endif # NO_PERL
16991 +
16992 + ifndef NO_PYTHON
16993 + $(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS
16994 +@@ -2091,7 +2110,7 @@ configure: configure.ac
16995 + # These can record GIT_VERSION
16996 + git.o git.spec \
16997 + $(patsubst %.sh,%,$(SCRIPT_SH)) \
16998 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
16999 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
17000 + : GIT-VERSION-FILE
17001 +
17002 + TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
17003 +diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
17004 +index b59be9a..0cac2f6 100755
17005 +--- a/t/t9200-git-cvsexportcommit.sh
17006 ++++ b/t/t9200-git-cvsexportcommit.sh
17007 +@@ -12,6 +12,11 @@ if ! test_have_prereq PERL; then
17008 + test_done
17009 + fi
17010 +
17011 ++if ! test_have_prereq CVS; then
17012 ++ skip_all='skipping git cvsexportcommit tests, cvs not available'
17013 ++ test_done
17014 ++fi
17015 ++
17016 + cvs >/dev/null 2>&1
17017 + if test $? -ne 1
17018 + then
17019 +diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh
17020 +index 806623e..60ed038 100755
17021 +--- a/t/t9400-git-cvsserver-server.sh
17022 ++++ b/t/t9400-git-cvsserver-server.sh
17023 +@@ -11,9 +11,15 @@ cvs CLI client via git-cvsserver server'
17024 + . ./test-lib.sh
17025 +
17026 + if ! test_have_prereq PERL; then
17027 +- skip_all='skipping git cvsserver tests, perl not available'
17028 ++ skip_all='skipping git-cvsserver tests, perl not available'
17029 + test_done
17030 + fi
17031 ++
17032 ++if ! test_have_prereq CVS; then
17033 ++ skip_all='skipping git-cvsserver tests, cvs not available'
17034 ++ test_done
17035 ++fi
17036 ++
17037 + cvs >/dev/null 2>&1
17038 + if test $? -ne 1
17039 + then
17040 +diff --git a/t/t9401-git-cvsserver-crlf.sh b/t/t9401-git-cvsserver-crlf.sh
17041 +index ff6d6fb..f0d7aad 100755
17042 +--- a/t/t9401-git-cvsserver-crlf.sh
17043 ++++ b/t/t9401-git-cvsserver-crlf.sh
17044 +@@ -38,15 +38,20 @@ not_present() {
17045 + fi
17046 + }
17047 +
17048 +-cvs >/dev/null 2>&1
17049 +-if test $? -ne 1
17050 ++if ! test_have_prereq PERL
17051 + then
17052 +- skip_all='skipping git-cvsserver tests, cvs not found'
17053 ++ skip_all='skipping git-cvsserver tests, perl not available'
17054 + test_done
17055 + fi
17056 +-if ! test_have_prereq PERL
17057 ++if ! test_have_prereq CVS
17058 + then
17059 +- skip_all='skipping git-cvsserver tests, perl not available'
17060 ++ skip_all='skipping git-cvsserver tests, cvs not available'
17061 ++ test_done
17062 ++fi
17063 ++cvs >/dev/null 2>&1
17064 ++if test $? -ne 1
17065 ++then
17066 ++ skip_all='skipping git-cvsserver tests, cvs not found'
17067 + test_done
17068 + fi
17069 + "$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
17070 +diff --git a/t/t9600-cvsimport.sh b/t/t9600-cvsimport.sh
17071 +index 4c384ff..d601f32 100755
17072 +--- a/t/t9600-cvsimport.sh
17073 ++++ b/t/t9600-cvsimport.sh
17074 +@@ -3,14 +3,25 @@
17075 + test_description='git cvsimport basic tests'
17076 + . ./lib-cvs.sh
17077 +
17078 +-test_expect_success PERL 'setup cvsroot environment' '
17079 ++if ! test_have_prereq PERL
17080 ++then
17081 ++ skip_all='skipping git cvsimport tests, perl not available'
17082 ++ test_done
17083 ++fi
17084 ++if ! test_have_prereq CVS
17085 ++then
17086 ++ skip_all='skipping git cvsimport tests, cvs not available'
17087 ++ test_done
17088 ++fi
17089 ++
17090 ++test_expect_success 'setup cvsroot environment' '
17091 + CVSROOT=$(pwd)/cvsroot &&
17092 + export CVSROOT
17093 + '
17094 +
17095 +-test_expect_success PERL 'setup cvsroot' '$CVS init'
17096 ++test_expect_success 'setup cvsroot' '$CVS init'
17097 +
17098 +-test_expect_success PERL 'setup a cvs module' '
17099 ++test_expect_success 'setup a cvs module' '
17100 +
17101 + mkdir "$CVSROOT/module" &&
17102 + $CVS co -d module-cvs module &&
17103 +@@ -42,23 +53,23 @@ EOF
17104 + )
17105 + '
17106 +
17107 +-test_expect_success PERL 'import a trivial module' '
17108 ++test_expect_success 'import a trivial module' '
17109 +
17110 + git cvsimport -a -R -z 0 -C module-git module &&
17111 + test_cmp module-cvs/o_fortuna module-git/o_fortuna
17112 +
17113 + '
17114 +
17115 +-test_expect_success PERL 'pack refs' '(cd module-git && git gc)'
17116 ++test_expect_success 'pack refs' '(cd module-git && git gc)'
17117 +
17118 +-test_expect_success PERL 'initial import has correct .git/cvs-revisions' '
17119 ++test_expect_success 'initial import has correct .git/cvs-revisions' '
17120 +
17121 + (cd module-git &&
17122 + git log --format="o_fortuna 1.1 %H" -1) > expected &&
17123 + test_cmp expected module-git/.git/cvs-revisions
17124 + '
17125 +
17126 +-test_expect_success PERL 'update cvs module' '
17127 ++test_expect_success 'update cvs module' '
17128 + (cd module-cvs &&
17129 + cat <<EOF >o_fortuna &&
17130 + O Fortune,
17131 +@@ -86,7 +97,7 @@ EOF
17132 + )
17133 + '
17134 +
17135 +-test_expect_success PERL 'update git module' '
17136 ++test_expect_success 'update git module' '
17137 +
17138 + (cd module-git &&
17139 + git config cvsimport.trackRevisions true &&
17140 +@@ -97,7 +108,7 @@ test_expect_success PERL 'update git module' '
17141 +
17142 + '
17143 +
17144 +-test_expect_success PERL 'update has correct .git/cvs-revisions' '
17145 ++test_expect_success 'update has correct .git/cvs-revisions' '
17146 +
17147 + (cd module-git &&
17148 + git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
17149 +@@ -105,7 +116,7 @@ test_expect_success PERL 'update has correct .git/cvs-revisions' '
17150 + test_cmp expected module-git/.git/cvs-revisions
17151 + '
17152 +
17153 +-test_expect_success PERL 'update cvs module' '
17154 ++test_expect_success 'update cvs module' '
17155 +
17156 + (cd module-cvs &&
17157 + echo 1 >tick &&
17158 +@@ -114,7 +125,7 @@ test_expect_success PERL 'update cvs module' '
17159 + )
17160 + '
17161 +
17162 +-test_expect_success PERL 'cvsimport.module config works' '
17163 ++test_expect_success 'cvsimport.module config works' '
17164 +
17165 + (cd module-git &&
17166 + git config cvsimport.module module &&
17167 +@@ -126,7 +137,7 @@ test_expect_success PERL 'cvsimport.module config works' '
17168 +
17169 + '
17170 +
17171 +-test_expect_success PERL 'second update has correct .git/cvs-revisions' '
17172 ++test_expect_success 'second update has correct .git/cvs-revisions' '
17173 +
17174 + (cd module-git &&
17175 + git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
17176 +@@ -135,7 +146,7 @@ test_expect_success PERL 'second update has correct .git/cvs-revisions' '
17177 + test_cmp expected module-git/.git/cvs-revisions
17178 + '
17179 +
17180 +-test_expect_success PERL 'import from a CVS working tree' '
17181 ++test_expect_success 'import from a CVS working tree' '
17182 +
17183 + $CVS co -d import-from-wt module &&
17184 + (cd import-from-wt &&
17185 +@@ -148,12 +159,12 @@ test_expect_success PERL 'import from a CVS working tree' '
17186 +
17187 + '
17188 +
17189 +-test_expect_success PERL 'no .git/cvs-revisions created by default' '
17190 ++test_expect_success 'no .git/cvs-revisions created by default' '
17191 +
17192 + ! test -e import-from-wt/.git/cvs-revisions
17193 +
17194 + '
17195 +
17196 +-test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master'
17197 ++test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master'
17198 +
17199 + test_done
17200 +diff --git a/t/t9601-cvsimport-vendor-branch.sh b/t/t9601-cvsimport-vendor-branch.sh
17201 +index 827d39f..d730a41 100755
17202 +--- a/t/t9601-cvsimport-vendor-branch.sh
17203 ++++ b/t/t9601-cvsimport-vendor-branch.sh
17204 +@@ -34,6 +34,17 @@
17205 + test_description='git cvsimport handling of vendor branches'
17206 + . ./lib-cvs.sh
17207 +
17208 ++if ! test_have_prereq PERL
17209 ++then
17210 ++ skip_all='skipping git cvsimport tests, perl not available'
17211 ++ test_done
17212 ++fi
17213 ++if ! test_have_prereq CVS
17214 ++then
17215 ++ skip_all='skipping git cvsimport tests, cvs not available'
17216 ++ test_done
17217 ++fi
17218 ++
17219 + setup_cvs_test_repository t9601
17220 +
17221 + test_expect_success PERL 'import a module with a vendor branch' '
17222 +diff --git a/t/t9602-cvsimport-branches-tags.sh b/t/t9602-cvsimport-branches-tags.sh
17223 +index e1db323..68f0974 100755
17224 +--- a/t/t9602-cvsimport-branches-tags.sh
17225 ++++ b/t/t9602-cvsimport-branches-tags.sh
17226 +@@ -6,6 +6,17 @@
17227 + test_description='git cvsimport handling of branches and tags'
17228 + . ./lib-cvs.sh
17229 +
17230 ++if ! test_have_prereq PERL
17231 ++then
17232 ++ skip_all='skipping git cvsimport tests, perl not available'
17233 ++ test_done
17234 ++fi
17235 ++if ! test_have_prereq CVS
17236 ++then
17237 ++ skip_all='skipping git cvsimport tests, cvs not available'
17238 ++ test_done
17239 ++fi
17240 ++
17241 + setup_cvs_test_repository t9602
17242 +
17243 + test_expect_success PERL 'import module' '
17244 +diff --git a/t/t9603-cvsimport-patchsets.sh b/t/t9603-cvsimport-patchsets.sh
17245 +index 52034c8..db4d682 100755
17246 +--- a/t/t9603-cvsimport-patchsets.sh
17247 ++++ b/t/t9603-cvsimport-patchsets.sh
17248 +@@ -14,6 +14,17 @@
17249 + test_description='git cvsimport testing for correct patchset estimation'
17250 + . ./lib-cvs.sh
17251 +
17252 ++if ! test_have_prereq PERL
17253 ++then
17254 ++ skip_all='skipping git cvsimport tests, perl not available'
17255 ++ test_done
17256 ++fi
17257 ++if ! test_have_prereq CVS
17258 ++then
17259 ++ skip_all='skipping git cvsimport tests, cvs not available'
17260 ++ test_done
17261 ++fi
17262 ++
17263 + setup_cvs_test_repository t9603
17264 +
17265 + test_expect_failure 'import with criss cross times on revisions' '
17266 +diff --git a/t/test-lib.sh b/t/test-lib.sh
17267 +index 9e2b711..0310fba 100644
17268 +--- a/t/test-lib.sh
17269 ++++ b/t/test-lib.sh
17270 +@@ -616,6 +616,7 @@ case $(uname -s) in
17271 + esac
17272 +
17273 + ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
17274 ++test -z "$NO_CVS" && test_set_prereq CVS
17275 + test -z "$NO_PERL" && test_set_prereq PERL
17276 + test -z "$NO_PYTHON" && test_set_prereq PYTHON
17277 + test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE
17278 +--
17279 +1.7.4.1.343.ga91df.dirty
17280 +
17281
17282 diff --git a/dev-vcs/git/files/git-1.7.2-always-install-js.patch b/dev-vcs/git/files/git-1.7.2-always-install-js.patch
17283 new file mode 100644
17284 index 0000000..fea661b
17285 --- /dev/null
17286 +++ b/dev-vcs/git/files/git-1.7.2-always-install-js.patch
17287 @@ -0,0 +1,31 @@
17288 +diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.2.orig/Makefile git-1.7.2/Makefile
17289 +--- git-1.7.2.orig/Makefile 2010-07-21 21:35:25.000000000 +0000
17290 ++++ git-1.7.2/Makefile 2010-07-22 16:52:22.994872806 +0000
17291 +@@ -1650,17 +1650,16 @@
17292 + $(QUIET_SUBDIR0)gitweb $(QUIET_SUBDIR1) all
17293 +
17294 + ifdef JSMIN
17295 +-GITWEB_PROGRAMS += gitweb/static/gitweb.min.js
17296 + GITWEB_JS = gitweb/static/gitweb.min.js
17297 + else
17298 + GITWEB_JS = gitweb/static/gitweb.js
17299 + endif
17300 + ifdef CSSMIN
17301 +-GITWEB_PROGRAMS += gitweb/static/gitweb.min.css
17302 + GITWEB_CSS = gitweb/static/gitweb.min.css
17303 + else
17304 + GITWEB_CSS = gitweb/static/gitweb.css
17305 + endif
17306 ++GITWEB_PROGRAMS += $(GITWEB_JS) $(GITWEB_CSS)
17307 + OTHER_PROGRAMS += gitweb/gitweb.cgi $(GITWEB_PROGRAMS)
17308 + gitweb/gitweb.cgi: gitweb/gitweb.perl $(GITWEB_PROGRAMS)
17309 + $(QUIET_SUBDIR0)gitweb $(QUIET_SUBDIR1) $(patsubst gitweb/%,%,$@)
17310 +@@ -1675,7 +1674,7 @@
17311 + endif # CSSMIN
17312 +
17313 +
17314 +-git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/static/gitweb.css gitweb/static/gitweb.js
17315 ++git-instaweb: git-instaweb.sh gitweb/gitweb.cgi $(GITWEB_CSS) $(GITWEB_JS)
17316 + $(QUIET_GEN)$(RM) $@ $@+ && \
17317 + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
17318 + -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
17319
17320 diff --git a/dev-vcs/git/files/git-1.7.3.2-interix.patch b/dev-vcs/git/files/git-1.7.3.2-interix.patch
17321 new file mode 100644
17322 index 0000000..2e333b5
17323 --- /dev/null
17324 +++ b/dev-vcs/git/files/git-1.7.3.2-interix.patch
17325 @@ -0,0 +1,90 @@
17326 +upstream report: http://marc.info/?l=git&m=128774216918941&w=2
17327 +
17328 +diff -ru git-1.7.3.1.orig/Makefile git-1.7.3.1/Makefile
17329 +--- git-1.7.3.1.orig/Makefile 2010-10-22 10:58:17 +0200
17330 ++++ git-1.7.3.1/Makefile 2010-10-22 11:17:28 +0200
17331 +@@ -1091,6 +1091,25 @@
17332 + endif
17333 + X = .exe
17334 + endif
17335 ++ifeq ($(uname_S),Interix)
17336 ++ NO_SYS_POLL_H = YesPlease
17337 ++ NO_INTTYPES_H = YesPlease
17338 ++ NO_INITGROUPS = YesPlease
17339 ++ NO_IPV6 = YesPlease
17340 ++ NO_MEMMEM = YesPlease
17341 ++ NO_MKDTEMP = YesPlease
17342 ++ NO_STRTOUMAX = YesPlease
17343 ++ NO_NSEC = YesPlease
17344 ++ NO_MKSTEMPS = YesPlease
17345 ++ ifeq ($(uname_R),3.5)
17346 ++ NO_INET_NTOP = YesPlease
17347 ++ NO_INET_PTON = YesPlease
17348 ++ endif
17349 ++ ifeq ($(uname_R),5.2)
17350 ++ NO_INET_NTOP = YesPlease
17351 ++ NO_INET_PTON = YesPlease
17352 ++ endif
17353 ++endif
17354 + ifneq (,$(findstring MINGW,$(uname_S)))
17355 + pathsep = ;
17356 + NO_PREAD = YesPlease
17357 +@@ -1354,6 +1373,15 @@
17358 + ifdef NO_SYS_SELECT_H
17359 + BASIC_CFLAGS += -DNO_SYS_SELECT_H
17360 + endif
17361 ++ifdef NO_SYS_POLL_H
17362 ++ BASIC_CFLAGS += -DNO_SYS_POLL_H
17363 ++endif
17364 ++ifdef NO_INTTYPES_H
17365 ++ BASIC_CFLAGS += -DNO_INTTYPES_H
17366 ++endif
17367 ++ifdef NO_INITGROUPS
17368 ++ BASIC_CFLAGS += -DNO_INITGROUPS
17369 ++endif
17370 + ifdef NO_MMAP
17371 + COMPAT_CFLAGS += -DNO_MMAP
17372 + COMPAT_OBJS += compat/mmap.o
17373 +diff -ru git-1.7.3.1.orig/daemon.c git-1.7.3.1/daemon.c
17374 +--- git-1.7.3.1.orig/daemon.c 2010-10-22 10:58:11 +0200
17375 ++++ git-1.7.3.1/daemon.c 2010-10-22 11:10:21 +0200
17376 +@@ -956,7 +956,11 @@
17377 + listen_addr, listen_port);
17378 +
17379 + if (pass && gid &&
17380 +- (initgroups(pass->pw_name, gid) || setgid (gid) ||
17381 ++ (
17382 ++#ifndef NO_INITGROUPS
17383 ++ initgroups(pass->pw_name, gid) ||
17384 ++#endif
17385 ++ setgid (gid) ||
17386 + setuid(pass->pw_uid)))
17387 + die("cannot drop privileges");
17388 +
17389 +diff -ru git-1.7.3.1.orig/git-compat-util.h git-1.7.3.1/git-compat-util.h
17390 +--- git-1.7.3.1.orig/git-compat-util.h 2010-10-22 10:58:16 +0200
17391 ++++ git-1.7.3.1/git-compat-util.h 2010-10-22 11:12:22 +0200
17392 +@@ -94,7 +94,11 @@
17393 + #include <utime.h>
17394 + #ifndef __MINGW32__
17395 + #include <sys/wait.h>
17396 ++#ifndef NO_SYS_POLL_H
17397 + #include <sys/poll.h>
17398 ++#else
17399 ++#include <poll.h>
17400 ++#endif
17401 + #include <sys/socket.h>
17402 + #include <sys/ioctl.h>
17403 + #include <termios.h>
17404 +@@ -106,7 +110,11 @@
17405 + #include <arpa/inet.h>
17406 + #include <netdb.h>
17407 + #include <pwd.h>
17408 ++#ifndef NO_INTTYPES_H
17409 + #include <inttypes.h>
17410 ++#else
17411 ++#include <stdint.h>
17412 ++#endif
17413 + #if defined(__CYGWIN__)
17414 + #undef _XOPEN_SOURCE
17415 + #include <grp.h>
17416
17417 diff --git a/dev-vcs/git/files/git-1.7.3.4-avoid-shell-issues.patch b/dev-vcs/git/files/git-1.7.3.4-avoid-shell-issues.patch
17418 new file mode 100644
17419 index 0000000..993f516
17420 --- /dev/null
17421 +++ b/dev-vcs/git/files/git-1.7.3.4-avoid-shell-issues.patch
17422 @@ -0,0 +1,26 @@
17423 +Fix false positives in t3404 due to SHELL=/bin/false
17424 +
17425 +If the user's shell in NSS passwd is /bin/false (eg as found during Gentoo's
17426 +package building), the git-rebase exec tests will fail, because they call
17427 +$SHELL around the command, and in the existing testcase, $SHELL was not being
17428 +cleared sufficently.
17429 +
17430 +This lead to false positive failures of t3404 on systems where the package
17431 +build user was locked down as noted above.
17432 +
17433 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
17434 +
17435 +diff -Nuar git-1.7.3.4.orig/t/t3404-rebase-interactive.sh git-1.7.3.4/t/t3404-rebase-interactive.sh
17436 +--- git-1.7.3.4.orig/t/t3404-rebase-interactive.sh 2010-12-16 02:52:11.000000000 +0000
17437 ++++ git-1.7.3.4/t/t3404-rebase-interactive.sh 2010-12-26 22:30:47.826421313 +0000
17438 +@@ -67,8 +67,8 @@
17439 + # "exec" commands are ran with the user shell by default, but this may
17440 + # be non-POSIX. For example, if SHELL=zsh then ">file" doesn't work
17441 + # to create a file. Unseting SHELL avoids such non-portable behavior
17442 +-# in tests.
17443 +-SHELL=
17444 ++# in tests. It must be exported for it to take effect where needed.
17445 ++export SHELL=
17446 +
17447 + test_expect_success 'rebase -i with the exec command' '
17448 + git checkout master &&
17449
17450 diff --git a/dev-vcs/git/files/git-1.7.3.4-fix-perl-test-prereq.patch b/dev-vcs/git/files/git-1.7.3.4-fix-perl-test-prereq.patch
17451 new file mode 100644
17452 index 0000000..90a7589
17453 --- /dev/null
17454 +++ b/dev-vcs/git/files/git-1.7.3.4-fix-perl-test-prereq.patch
17455 @@ -0,0 +1,37 @@
17456 +From e8725dd4b11c487c138ff0b68cd647265f24a105 Mon Sep 17 00:00:00 2001
17457 +From: Robin H. Johnson <robbat2@g.o>
17458 +Date: Wed, 29 Dec 2010 20:59:22 +0000
17459 +Subject: [PATCH] t9001: Fix test prerequisites
17460 +
17461 +Add in missing Perl prerequisites for new tests of send-email.
17462 +
17463 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
17464 +---
17465 + t/t9001-send-email.sh | 4 ++--
17466 + 1 files changed, 2 insertions(+), 2 deletions(-)
17467 +
17468 +diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
17469 +index 1dc4a92..3271426 100755
17470 +--- a/t/t9001-send-email.sh
17471 ++++ b/t/t9001-send-email.sh
17472 +@@ -1135,7 +1135,7 @@ test_expect_success $PREREQ '--8bit-encoding also treats subject' '
17473 + # Note that the patches in this test are deliberately out of order; we
17474 + # want to make sure it works even if the cover-letter is not in the
17475 + # first mail.
17476 +-test_expect_success 'refusing to send cover letter template' '
17477 ++test_expect_success $PREREQ 'refusing to send cover letter template' '
17478 + clean_fake_sendmail &&
17479 + rm -fr outdir &&
17480 + git format-patch --cover-letter -2 -o outdir &&
17481 +@@ -1151,7 +1151,7 @@ test_expect_success 'refusing to send cover letter template' '
17482 + test -z "$(ls msgtxt*)"
17483 + '
17484 +
17485 +-test_expect_success '--force sends cover letter template anyway' '
17486 ++test_expect_success $PREREQ '--force sends cover letter template anyway' '
17487 + clean_fake_sendmail &&
17488 + rm -fr outdir &&
17489 + git format-patch --cover-letter -2 -o outdir &&
17490 +--
17491 +1.7.3.2
17492 +
17493
17494 diff --git a/dev-vcs/git/files/git-1.7.3.5-optional-cvs.patch b/dev-vcs/git/files/git-1.7.3.5-optional-cvs.patch
17495 new file mode 100644
17496 index 0000000..f55b4ec
17497 --- /dev/null
17498 +++ b/dev-vcs/git/files/git-1.7.3.5-optional-cvs.patch
17499 @@ -0,0 +1,366 @@
17500 +--- git-1.7.3.5.orig/Makefile 2011-01-06 20:32:54.512331834 +0000
17501 ++++ git-1.7.3.5/Makefile 2011-01-07 08:22:04.682967076 +0000
17502 +@@ -183,6 +183,8 @@ all::
17503 + #
17504 + # Define NO_TCLTK if you do not want Tcl/Tk GUI.
17505 + #
17506 ++# Define NO_CVS if you do not want any CVS interface utilities.
17507 ++#
17508 + # The TCL_PATH variable governs the location of the Tcl interpreter
17509 + # used to optimize git-gui for your system. Only used if NO_TCLTK
17510 + # is not set. Defaults to the bare 'tclsh'.
17511 +@@ -339,6 +341,7 @@ LIB_OBJS =
17512 + PROGRAM_OBJS =
17513 + PROGRAMS =
17514 + SCRIPT_PERL =
17515 ++SCRIPT_PERL_CVS =
17516 + SCRIPT_PYTHON =
17517 + SCRIPT_SH =
17518 + SCRIPT_LIB =
17519 +@@ -376,17 +379,18 @@ SCRIPT_LIB += git-sh-setup
17520 + SCRIPT_PERL += git-add--interactive.perl
17521 + SCRIPT_PERL += git-difftool.perl
17522 + SCRIPT_PERL += git-archimport.perl
17523 +-SCRIPT_PERL += git-cvsexportcommit.perl
17524 +-SCRIPT_PERL += git-cvsimport.perl
17525 +-SCRIPT_PERL += git-cvsserver.perl
17526 + SCRIPT_PERL += git-relink.perl
17527 + SCRIPT_PERL += git-send-email.perl
17528 + SCRIPT_PERL += git-svn.perl
17529 +
17530 ++SCRIPT_PERL_CVS += git-cvsexportcommit.perl
17531 ++SCRIPT_PERL_CVS += git-cvsimport.perl
17532 ++SCRIPT_PERL_CVS += git-cvsserver.perl
17533 ++
17534 + SCRIPT_PYTHON += git-remote-testgit.py
17535 +
17536 + SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
17537 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
17538 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
17539 + $(patsubst %.py,%,$(SCRIPT_PYTHON)) \
17540 + git-instaweb
17541 +
17542 +@@ -1676,13 +1680,25 @@ $(SCRIPT_LIB) : % : %.sh
17543 + $(QUIET_GEN)$(cmd_munge_script) && \
17544 + mv $@+ $@
17545 +
17546 ++_SCRIPT_PERL_BUILD =
17547 ++_SCRIPT_PERL_NOBUILD =
17548 ++
17549 + ifndef NO_PERL
17550 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
17551 ++
17552 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL)
17553 ++
17554 ++ifndef NO_CVS
17555 ++_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS)
17556 ++else # NO_CVS
17557 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS)
17558 ++endif # NO_CVS
17559 ++
17560 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): perl/perl.mak
17561 +
17562 + perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
17563 + $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F)
17564 +
17565 +-$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
17566 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl
17567 + $(QUIET_GEN)$(RM) $@ $@+ && \
17568 + INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \
17569 + sed -e '1{' \
17570 +@@ -1738,14 +1754,17 @@ git-instaweb: git-instaweb.sh gitweb/git
17571 + chmod +x $@+ && \
17572 + mv $@+ $@
17573 + else # NO_PERL
17574 +-$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
17575 ++_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb
17576 ++endif # NO_PERL
17577 ++
17578 ++# This is any perl scripts that were disabled it might be empty...
17579 ++$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh
17580 + $(QUIET_GEN)$(RM) $@ $@+ && \
17581 + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
17582 + -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
17583 + unimplemented.sh >$@+ && \
17584 + chmod +x $@+ && \
17585 + mv $@+ $@
17586 +-endif # NO_PERL
17587 +
17588 + ifndef NO_PYTHON
17589 + $(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS
17590 +@@ -1780,7 +1799,7 @@ configure: configure.ac
17591 + # These can record GIT_VERSION
17592 + git.o git.spec \
17593 + $(patsubst %.sh,%,$(SCRIPT_SH)) \
17594 +- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
17595 ++ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
17596 + : GIT-VERSION-FILE
17597 +
17598 + TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
17599 +diff -Nuarp git-1.7.3.5.orig/t/t9200-git-cvsexportcommit.sh git-1.7.3.5/t/t9200-git-cvsexportcommit.sh
17600 +--- git-1.7.3.5.orig/t/t9200-git-cvsexportcommit.sh 2011-01-06 00:08:33.000000000 +0000
17601 ++++ git-1.7.3.5/t/t9200-git-cvsexportcommit.sh 2011-01-07 08:41:46.478972459 +0000
17602 +@@ -12,6 +12,11 @@ if ! test_have_prereq PERL; then
17603 + test_done
17604 + fi
17605 +
17606 ++if ! test_have_prereq CVS; then
17607 ++ skip_all='skipping git cvsexportcommit tests, cvs not available'
17608 ++ test_done
17609 ++fi
17610 ++
17611 + cvs >/dev/null 2>&1
17612 + if test $? -ne 1
17613 + then
17614 +diff -Nuarp git-1.7.3.5.orig/t/t9400-git-cvsserver-server.sh git-1.7.3.5/t/t9400-git-cvsserver-server.sh
17615 +--- git-1.7.3.5.orig/t/t9400-git-cvsserver-server.sh 2011-01-06 00:08:33.000000000 +0000
17616 ++++ git-1.7.3.5/t/t9400-git-cvsserver-server.sh 2011-01-07 08:42:28.033449530 +0000
17617 +@@ -11,9 +11,15 @@ cvs CLI client via git-cvsserver server'
17618 + . ./test-lib.sh
17619 +
17620 + if ! test_have_prereq PERL; then
17621 +- skip_all='skipping git cvsserver tests, perl not available'
17622 ++ skip_all='skipping git-cvsserver tests, perl not available'
17623 + test_done
17624 + fi
17625 ++
17626 ++if ! test_have_prereq CVS; then
17627 ++ skip_all='skipping git-cvsserver tests, cvs not available'
17628 ++ test_done
17629 ++fi
17630 ++
17631 + cvs >/dev/null 2>&1
17632 + if test $? -ne 1
17633 + then
17634 +diff -Nuarp git-1.7.3.5.orig/t/t9401-git-cvsserver-crlf.sh git-1.7.3.5/t/t9401-git-cvsserver-crlf.sh
17635 +--- git-1.7.3.5.orig/t/t9401-git-cvsserver-crlf.sh 2011-01-06 00:08:33.000000000 +0000
17636 ++++ git-1.7.3.5/t/t9401-git-cvsserver-crlf.sh 2011-01-07 08:42:59.907660136 +0000
17637 +@@ -38,15 +38,20 @@ not_present() {
17638 + fi
17639 + }
17640 +
17641 +-cvs >/dev/null 2>&1
17642 +-if test $? -ne 1
17643 ++if ! test_have_prereq PERL
17644 + then
17645 +- skip_all='skipping git-cvsserver tests, cvs not found'
17646 ++ skip_all='skipping git-cvsserver tests, perl not available'
17647 + test_done
17648 + fi
17649 +-if ! test_have_prereq PERL
17650 ++if ! test_have_prereq CVS
17651 + then
17652 +- skip_all='skipping git-cvsserver tests, perl not available'
17653 ++ skip_all='skipping git-cvsserver tests, cvs not available'
17654 ++ test_done
17655 ++fi
17656 ++cvs >/dev/null 2>&1
17657 ++if test $? -ne 1
17658 ++then
17659 ++ skip_all='skipping git-cvsserver tests, cvs not found'
17660 + test_done
17661 + fi
17662 + "$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
17663 +diff -Nuarp git-1.7.3.5.orig/t/t9600-cvsimport.sh git-1.7.3.5/t/t9600-cvsimport.sh
17664 +--- git-1.7.3.5.orig/t/t9600-cvsimport.sh 2011-01-06 00:08:33.000000000 +0000
17665 ++++ git-1.7.3.5/t/t9600-cvsimport.sh 2011-01-07 08:44:34.960276512 +0000
17666 +@@ -3,14 +3,25 @@
17667 + test_description='git cvsimport basic tests'
17668 + . ./lib-cvs.sh
17669 +
17670 +-test_expect_success PERL 'setup cvsroot environment' '
17671 ++if ! test_have_prereq PERL
17672 ++then
17673 ++ skip_all='skipping git cvsimport tests, perl not available'
17674 ++ test_done
17675 ++fi
17676 ++if ! test_have_prereq CVS
17677 ++then
17678 ++ skip_all='skipping git cvsimport tests, cvs not available'
17679 ++ test_done
17680 ++fi
17681 ++
17682 ++test_expect_success 'setup cvsroot environment' '
17683 + CVSROOT=$(pwd)/cvsroot &&
17684 + export CVSROOT
17685 + '
17686 +
17687 +-test_expect_success PERL 'setup cvsroot' '$CVS init'
17688 ++test_expect_success 'setup cvsroot' '$CVS init'
17689 +
17690 +-test_expect_success PERL 'setup a cvs module' '
17691 ++test_expect_success 'setup a cvs module' '
17692 +
17693 + mkdir "$CVSROOT/module" &&
17694 + $CVS co -d module-cvs module &&
17695 +@@ -42,23 +53,23 @@ EOF
17696 + )
17697 + '
17698 +
17699 +-test_expect_success PERL 'import a trivial module' '
17700 ++test_expect_success 'import a trivial module' '
17701 +
17702 + git cvsimport -a -R -z 0 -C module-git module &&
17703 + test_cmp module-cvs/o_fortuna module-git/o_fortuna
17704 +
17705 + '
17706 +
17707 +-test_expect_success PERL 'pack refs' '(cd module-git && git gc)'
17708 ++test_expect_success 'pack refs' '(cd module-git && git gc)'
17709 +
17710 +-test_expect_success PERL 'initial import has correct .git/cvs-revisions' '
17711 ++test_expect_success 'initial import has correct .git/cvs-revisions' '
17712 +
17713 + (cd module-git &&
17714 + git log --format="o_fortuna 1.1 %H" -1) > expected &&
17715 + test_cmp expected module-git/.git/cvs-revisions
17716 + '
17717 +
17718 +-test_expect_success PERL 'update cvs module' '
17719 ++test_expect_success 'update cvs module' '
17720 + (cd module-cvs &&
17721 + cat <<EOF >o_fortuna &&
17722 + O Fortune,
17723 +@@ -86,7 +97,7 @@ EOF
17724 + )
17725 + '
17726 +
17727 +-test_expect_success PERL 'update git module' '
17728 ++test_expect_success 'update git module' '
17729 +
17730 + (cd module-git &&
17731 + git cvsimport -a -R -z 0 module &&
17732 +@@ -96,7 +107,7 @@ test_expect_success PERL 'update git mod
17733 +
17734 + '
17735 +
17736 +-test_expect_success PERL 'update has correct .git/cvs-revisions' '
17737 ++test_expect_success 'update has correct .git/cvs-revisions' '
17738 +
17739 + (cd module-git &&
17740 + git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
17741 +@@ -104,7 +115,7 @@ test_expect_success PERL 'update has cor
17742 + test_cmp expected module-git/.git/cvs-revisions
17743 + '
17744 +
17745 +-test_expect_success PERL 'update cvs module' '
17746 ++test_expect_success 'update cvs module' '
17747 +
17748 + (cd module-cvs &&
17749 + echo 1 >tick &&
17750 +@@ -113,7 +124,7 @@ test_expect_success PERL 'update cvs mod
17751 + )
17752 + '
17753 +
17754 +-test_expect_success PERL 'cvsimport.module config works' '
17755 ++test_expect_success 'cvsimport.module config works' '
17756 +
17757 + (cd module-git &&
17758 + git config cvsimport.module module &&
17759 +@@ -124,7 +135,7 @@ test_expect_success PERL 'cvsimport.modu
17760 +
17761 + '
17762 +
17763 +-test_expect_success PERL 'second update has correct .git/cvs-revisions' '
17764 ++test_expect_success 'second update has correct .git/cvs-revisions' '
17765 +
17766 + (cd module-git &&
17767 + git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
17768 +@@ -133,7 +144,7 @@ test_expect_success PERL 'second update
17769 + test_cmp expected module-git/.git/cvs-revisions
17770 + '
17771 +
17772 +-test_expect_success PERL 'import from a CVS working tree' '
17773 ++test_expect_success 'import from a CVS working tree' '
17774 +
17775 + $CVS co -d import-from-wt module &&
17776 + (cd import-from-wt &&
17777 +@@ -145,12 +156,12 @@ test_expect_success PERL 'import from a
17778 +
17779 + '
17780 +
17781 +-test_expect_success PERL 'no .git/cvs-revisions created by default' '
17782 ++test_expect_success 'no .git/cvs-revisions created by default' '
17783 +
17784 + ! test -e import-from-wt/.git/cvs-revisions
17785 +
17786 + '
17787 +
17788 +-test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master'
17789 ++test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master'
17790 +
17791 + test_done
17792 +diff -Nuarp git-1.7.3.5.orig/t/t9601-cvsimport-vendor-branch.sh git-1.7.3.5/t/t9601-cvsimport-vendor-branch.sh
17793 +--- git-1.7.3.5.orig/t/t9601-cvsimport-vendor-branch.sh 2011-01-06 00:08:33.000000000 +0000
17794 ++++ git-1.7.3.5/t/t9601-cvsimport-vendor-branch.sh 2011-01-07 08:45:11.251279877 +0000
17795 +@@ -34,6 +34,17 @@
17796 + test_description='git cvsimport handling of vendor branches'
17797 + . ./lib-cvs.sh
17798 +
17799 ++if ! test_have_prereq PERL
17800 ++then
17801 ++ skip_all='skipping git cvsimport tests, perl not available'
17802 ++ test_done
17803 ++fi
17804 ++if ! test_have_prereq CVS
17805 ++then
17806 ++ skip_all='skipping git cvsimport tests, cvs not available'
17807 ++ test_done
17808 ++fi
17809 ++
17810 + setup_cvs_test_repository t9601
17811 +
17812 + test_expect_success PERL 'import a module with a vendor branch' '
17813 +diff -Nuarp git-1.7.3.5.orig/t/t9602-cvsimport-branches-tags.sh git-1.7.3.5/t/t9602-cvsimport-branches-tags.sh
17814 +--- git-1.7.3.5.orig/t/t9602-cvsimport-branches-tags.sh 2011-01-06 00:08:33.000000000 +0000
17815 ++++ git-1.7.3.5/t/t9602-cvsimport-branches-tags.sh 2011-01-07 08:45:17.234778646 +0000
17816 +@@ -6,6 +6,17 @@
17817 + test_description='git cvsimport handling of branches and tags'
17818 + . ./lib-cvs.sh
17819 +
17820 ++if ! test_have_prereq PERL
17821 ++then
17822 ++ skip_all='skipping git cvsimport tests, perl not available'
17823 ++ test_done
17824 ++fi
17825 ++if ! test_have_prereq CVS
17826 ++then
17827 ++ skip_all='skipping git cvsimport tests, cvs not available'
17828 ++ test_done
17829 ++fi
17830 ++
17831 + setup_cvs_test_repository t9602
17832 +
17833 + test_expect_success PERL 'import module' '
17834 +diff -Nuarp git-1.7.3.5.orig/t/t9603-cvsimport-patchsets.sh git-1.7.3.5/t/t9603-cvsimport-patchsets.sh
17835 +--- git-1.7.3.5.orig/t/t9603-cvsimport-patchsets.sh 2011-01-06 00:08:33.000000000 +0000
17836 ++++ git-1.7.3.5/t/t9603-cvsimport-patchsets.sh 2011-01-07 08:45:24.371642637 +0000
17837 +@@ -14,6 +14,17 @@
17838 + test_description='git cvsimport testing for correct patchset estimation'
17839 + . ./lib-cvs.sh
17840 +
17841 ++if ! test_have_prereq PERL
17842 ++then
17843 ++ skip_all='skipping git cvsimport tests, perl not available'
17844 ++ test_done
17845 ++fi
17846 ++if ! test_have_prereq CVS
17847 ++then
17848 ++ skip_all='skipping git cvsimport tests, cvs not available'
17849 ++ test_done
17850 ++fi
17851 ++
17852 + setup_cvs_test_repository t9603
17853 +
17854 + test_expect_failure 'import with criss cross times on revisions' '
17855 +diff -Nuarp git-1.7.3.5.orig/t/test-lib.sh git-1.7.3.5/t/test-lib.sh
17856 +--- git-1.7.3.5.orig/t/test-lib.sh 2011-01-06 00:08:33.000000000 +0000
17857 ++++ git-1.7.3.5/t/test-lib.sh 2011-01-07 08:40:05.006179654 +0000
17858 +@@ -1015,6 +1015,7 @@ case $(uname -s) in
17859 + ;;
17860 + esac
17861 +
17862 ++test -z "$NO_CVS" && test_set_prereq CVS
17863 + test -z "$NO_PERL" && test_set_prereq PERL
17864 + test -z "$NO_PYTHON" && test_set_prereq PYTHON
17865 +
17866
17867 diff --git a/dev-vcs/git/files/git-1.7.5-interix.patch b/dev-vcs/git/files/git-1.7.5-interix.patch
17868 new file mode 100644
17869 index 0000000..6eaaf65
17870 --- /dev/null
17871 +++ b/dev-vcs/git/files/git-1.7.5-interix.patch
17872 @@ -0,0 +1,43 @@
17873 +reported upstream: http://thread.gmane.org/gmane.comp.version-control.git/174407/focus=174438
17874 +
17875 +diff -ru git-1.7.5.rc3.orig/Makefile git-1.7.5.rc3/Makefile
17876 +--- git-1.7.5.rc3.orig/Makefile 2011-05-27 08:40:59 +0200
17877 ++++ git-1.7.5.rc3/Makefile 2011-05-27 09:00:58 +0200
17878 +@@ -1121,8 +1121,6 @@
17879 + X = .exe
17880 + endif
17881 + ifeq ($(uname_S),Interix)
17882 +- NO_SYS_POLL_H = YesPlease
17883 +- NO_INTTYPES_H = YesPlease
17884 + NO_INITGROUPS = YesPlease
17885 + NO_IPV6 = YesPlease
17886 + NO_MEMMEM = YesPlease
17887 +@@ -1133,10 +1131,14 @@
17888 + ifeq ($(uname_R),3.5)
17889 + NO_INET_NTOP = YesPlease
17890 + NO_INET_PTON = YesPlease
17891 ++ NO_SOCKADDR_STORAGE = YesPlease
17892 ++ NO_FNMATCH_CASEFOLD = YesPlease
17893 + endif
17894 + ifeq ($(uname_R),5.2)
17895 + NO_INET_NTOP = YesPlease
17896 + NO_INET_PTON = YesPlease
17897 ++ NO_SOCKADDR_STORAGE = YesPlease
17898 ++ NO_FNMATCH_CASEFOLD = YesPlease
17899 + endif
17900 + endif
17901 + ifneq (,$(findstring MINGW,$(uname_S)))
17902 +diff -ru git-1.7.5.rc3.orig/compat/fnmatch/fnmatch.c git-1.7.5.rc3/compat/fnmatch/fnmatch.c
17903 +--- git-1.7.5.rc3.orig/compat/fnmatch/fnmatch.c 2011-05-27 08:40:57 +0200
17904 ++++ git-1.7.5.rc3/compat/fnmatch/fnmatch.c 2011-05-27 09:01:47 +0200
17905 +@@ -127,6 +127,10 @@
17906 + extern int errno;
17907 + # endif
17908 +
17909 ++# ifndef NULL
17910 ++# define NULL 0
17911 ++# endif
17912 ++
17913 + /* This function doesn't exist on most systems. */
17914 +
17915 + # if !defined HAVE___STRCHRNUL && !defined _LIBC
17916
17917 diff --git a/dev-vcs/git/files/git-1.7.6-interix.patch b/dev-vcs/git/files/git-1.7.6-interix.patch
17918 new file mode 100644
17919 index 0000000..575b0e3
17920 --- /dev/null
17921 +++ b/dev-vcs/git/files/git-1.7.6-interix.patch
17922 @@ -0,0 +1,29 @@
17923 +reported upstream: http://thread.gmane.org/gmane.comp.version-control.git/174407/focus=174438
17924 +
17925 +diff -ru git-1.7.5.rc3.orig/Makefile git-1.7.5.rc3/Makefile
17926 +--- git-1.7.5.rc3.orig/Makefile 2011-05-27 08:40:59 +0200
17927 ++++ git-1.7.5.rc3/Makefile 2011-05-27 09:00:58 +0200
17928 +@@ -1121,8 +1121,6 @@
17929 + X = .exe
17930 + endif
17931 + ifeq ($(uname_S),Interix)
17932 +- NO_SYS_POLL_H = YesPlease
17933 +- NO_INTTYPES_H = YesPlease
17934 + NO_INITGROUPS = YesPlease
17935 + NO_IPV6 = YesPlease
17936 + NO_MEMMEM = YesPlease
17937 +@@ -1133,10 +1131,14 @@
17938 + ifeq ($(uname_R),3.5)
17939 + NO_INET_NTOP = YesPlease
17940 + NO_INET_PTON = YesPlease
17941 ++ NO_SOCKADDR_STORAGE = YesPlease
17942 ++ NO_FNMATCH_CASEFOLD = YesPlease
17943 + endif
17944 + ifeq ($(uname_R),5.2)
17945 + NO_INET_NTOP = YesPlease
17946 + NO_INET_PTON = YesPlease
17947 ++ NO_SOCKADDR_STORAGE = YesPlease
17948 ++ NO_FNMATCH_CASEFOLD = YesPlease
17949 + endif
17950 + endif
17951 + ifneq (,$(findstring MINGW,$(uname_S)))
17952
17953 diff --git a/dev-vcs/git/files/git-1.7.8-git-svn-1.7-canonical-path.patch b/dev-vcs/git/files/git-1.7.8-git-svn-1.7-canonical-path.patch
17954 new file mode 100644
17955 index 0000000..5b169a1
17956 --- /dev/null
17957 +++ b/dev-vcs/git/files/git-1.7.8-git-svn-1.7-canonical-path.patch
17958 @@ -0,0 +1,63 @@
17959 +diff --git a/git-svn.perl b/git-svn.perl
17960 +index eeb83d3..ae77c6a 100755
17961 +--- a/git-svn.perl
17962 ++++ b/git-svn.perl
17963 +@@ -1248,6 +1248,7 @@ sub canonicalize_path {
17964 + $path =~ s#^\./## if $dot_slash_added;
17965 + $path =~ s#^/##;
17966 + $path =~ s#^\.$##;
17967 ++ #$path =~ s# #%20#;
17968 + return $path;
17969 + }
17970 +
17971 +@@ -2134,6 +2135,7 @@ sub fetch_all {
17972 + die "[svn-remote \"$repo_id\"] unknown\n";
17973 + my $fetch = $remote->{fetch};
17974 + my $url = $remote->{url} or die "svn-remote.$repo_id.url not defined\n";
17975 ++ #$url = main::canonicalize_url($url);
17976 + my (@gs, @globs);
17977 + my $ra = Git::SVN::Ra->new($url);
17978 + my $uuid = $ra->get_uuid;
17979 +@@ -2285,6 +2287,7 @@ sub find_existing_remote {
17980 +
17981 + sub init_remote_config {
17982 + my ($self, $url, $no_write) = @_;
17983 ++ #$url = main::canonicalize_url($url);
17984 + $url =~ s!/+$!!; # strip trailing slash
17985 + my $r = read_all_remotes();
17986 + my $existing = find_existing_remote($url, $r);
17987 +@@ -2325,6 +2328,7 @@ sub init_remote_config {
17988 + command_oneline('config', '--get',
17989 + "svn-remote.$self->{repo_id}.url")
17990 + };
17991 ++ #$orig_url = main::canonicalize_url($orig_url);
17992 + if ($orig_url && ($orig_url ne $url)) {
17993 + die "svn-remote.$self->{repo_id}.url already set: ",
17994 + "$orig_url\nwanted to set to: $url\n";
17995 +@@ -2446,6 +2450,8 @@ sub new {
17996 + die "Failed to read \"svn-remote.$repo_id.url\" in config\n";
17997 + $self->{pushurl} = eval { command_oneline('config', '--get',
17998 + "svn-remote.$repo_id.pushurl") };
17999 ++ #$self->{url} = main::canonicalize_url($self->{url});
18000 ++ #$self->{pushurl} = main::canonicalize_url($self->{pushurl}) if defined $self->{pushurl};
18001 + $self->rebuild;
18002 + $self;
18003 + }
18004 +@@ -6475,6 +6481,7 @@ sub migrate_from_v1 {
18005 + next unless -f "$git_dir/$x/info/url";
18006 + my $u = eval { ::file_to_s("$git_dir/$x/info/url") };
18007 + next unless $u;
18008 ++ #$u = main::canonicalize_url($u);
18009 + my $dn = dirname("$git_dir/svn/$x");
18010 + mkpath([$dn]) unless -d $dn;
18011 + if ($x eq 'svn') { # they used 'svn' as GIT_SVN_ID:
18012 +@@ -6509,7 +6516,8 @@ sub read_old_urls {
18013 + $pfx .= '/' if $pfx && $pfx !~ m!/$!;
18014 + my $ref_id = $pfx . basename $_;
18015 + my $url = ::file_to_s("$_/info/url");
18016 +- $l_map->{$ref_id} = $url;
18017 ++ $l_map->{$ref_id} = $url;
18018 ++ #$l_map->{$ref_id} = main::canonicalize_url($url);
18019 + } elsif (-d $_) {
18020 + push @dir, $_;
18021 + }
18022
18023 diff --git a/dev-vcs/git/files/git-daemon.confd b/dev-vcs/git/files/git-daemon.confd
18024 new file mode 100644
18025 index 0000000..75b4216
18026 --- /dev/null
18027 +++ b/dev-vcs/git/files/git-daemon.confd
18028 @@ -0,0 +1,19 @@
18029 +# conf.d file for git-daemon
18030 +#
18031 +# Please check man 1 git-daemon for more information about the options
18032 +# git-daemon accepts. You MUST edit this to include your repositories you wish
18033 +# to serve.
18034 +#
18035 +# Some of the meaningful options are:
18036 +# --syslog --- Enables syslog logging
18037 +# --verbose --- Enables verbose logging
18038 +# --export-all --- Exports all repositories
18039 +# --port=XXXX --- Starts in port XXXX instead of 9418
18040 +#
18041 +GITDAEMON_OPTS="--syslog /var/git"
18042 +
18043 +# To run an anonymous git safely, the following user should be able to only
18044 +# read your Git repositories. It should not able able to write to anywhere on
18045 +# your system, esp. not the repositories.
18046 +GIT_USER="nobody"
18047 +GIT_GROUP="nobody"
18048
18049 diff --git a/dev-vcs/git/files/git-daemon.initd b/dev-vcs/git/files/git-daemon.initd
18050 new file mode 100644
18051 index 0000000..c6ee19f
18052 --- /dev/null
18053 +++ b/dev-vcs/git/files/git-daemon.initd
18054 @@ -0,0 +1,30 @@
18055 +#!/sbin/runscript
18056 +# Copyright 1999-2008 Gentoo Foundation
18057 +# Distributed under the terms of the GNU General Public License v2
18058 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/files/git-daemon.initd,v 1.1 2010/03/17 15:13:27 sping Exp $
18059 +
18060 +PIDFILE=/var/run/git-daemon.pid
18061 +
18062 +depend() {
18063 + need net
18064 + use logger
18065 +}
18066 +
18067 +start() {
18068 + [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"
18069 + ebegin "Starting git-daemon"
18070 + start-stop-daemon --start --quiet --background \
18071 + --pidfile ${PIDFILE} ${BL1_COMPAT} \
18072 + --exec /usr/bin/git -- daemon \
18073 + --pid-file=${PIDFILE} \
18074 + --user=${GIT_USER} --group=${GIT_GROUP} \
18075 + ${GITDAEMON_OPTS}
18076 + eend $?
18077 +}
18078 +
18079 +stop() {
18080 + ebegin "Stopping git-daemon"
18081 + start-stop-daemon --stop --quiet \
18082 + --pidfile ${PIDFILE}
18083 + eend $?
18084 +}
18085
18086 diff --git a/dev-vcs/git/files/git-daemon.xinetd b/dev-vcs/git/files/git-daemon.xinetd
18087 new file mode 100644
18088 index 0000000..02c938d
18089 --- /dev/null
18090 +++ b/dev-vcs/git/files/git-daemon.xinetd
18091 @@ -0,0 +1,13 @@
18092 +service git-daemon
18093 +{
18094 + disable = yes
18095 + socket_type = stream
18096 + wait = no
18097 + user = nobody
18098 + type = UNLISTED
18099 + protocol = tcp
18100 + log_on_failure += USERID
18101 + port = 9418
18102 + server = /usr/bin/git
18103 + server_args = daemon --inetd --syslog --export-all --base-path=/var/git
18104 +}
18105
18106 diff --git a/dev-vcs/git/git-1.6.4.5.ebuild b/dev-vcs/git/git-1.6.4.5.ebuild
18107 new file mode 100644
18108 index 0000000..63ce7fa
18109 --- /dev/null
18110 +++ b/dev-vcs/git/git-1.6.4.5.ebuild
18111 @@ -0,0 +1,381 @@
18112 +# Copyright 1999-2011 Gentoo Foundation
18113 +# Distributed under the terms of the GNU General Public License v2
18114 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.6.4.5.ebuild,v 1.10 2011/04/04 08:58:41 pacho Exp $
18115 +
18116 +EAPI=2
18117 +
18118 +GENTOO_DEPEND_ON_PERL=no
18119 +inherit toolchain-funcs eutils elisp-common perl-module bash-completion
18120 +[ "$PV" == "9999" ] && inherit git
18121 +
18122 +MY_PV="${PV/_rc/.rc}"
18123 +MY_P="${PN}-${MY_PV}"
18124 +
18125 +DOC_VER=${MY_PV}
18126 +
18127 +DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
18128 +HOMEPAGE="http://www.git-scm.com/"
18129 +if [ "$PV" != "9999" ]; then
18130 + SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
18131 + mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
18132 + doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
18133 +else
18134 + SRC_URI=""
18135 + EGIT_BRANCH="master"
18136 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
18137 + # EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
18138 +fi
18139 +
18140 +LICENSE="GPL-2"
18141 +SLOT="0"
18142 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
18143 +IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion"
18144 +
18145 +# Common to both DEPEND and RDEPEND
18146 +CDEPEND="
18147 + dev-libs/openssl
18148 + sys-libs/zlib
18149 + app-arch/cpio
18150 + perl? ( dev-lang/perl[-build] )
18151 + tk? ( dev-lang/tk )
18152 + curl? (
18153 + net-misc/curl
18154 + webdav? ( dev-libs/expat )
18155 + )
18156 + emacs? ( virtual/emacs )"
18157 +
18158 +RDEPEND="${CDEPEND}
18159 + perl? ( dev-perl/Error
18160 + dev-perl/Net-SMTP-SSL
18161 + dev-perl/Authen-SASL
18162 + cgi? ( virtual/perl-CGI )
18163 + cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
18164 + subversion? ( dev-vcs/subversion[-dso] dev-perl/libwww-perl dev-perl/TermReadKey )
18165 + )
18166 + gtk?
18167 + (
18168 + >=dev-python/pygtk-2.8
18169 + dev-python/pygtksourceview:2
18170 + )"
18171 +
18172 +DEPEND="${CDEPEND}"
18173 +
18174 +# These are needed to build the docs
18175 +if [ "$PV" == "9999" ]; then
18176 + DEPEND="${DEPEND}
18177 + doc? (
18178 + app-text/asciidoc
18179 + app-text/xmlto
18180 + app-text/docbook2X
18181 + )"
18182 +fi
18183 +
18184 +SITEFILE=50${PN}-gentoo.el
18185 +S="${WORKDIR}/${MY_P}"
18186 +
18187 +pkg_setup() {
18188 + if ! use perl ; then
18189 + use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
18190 + use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
18191 + use subversion && ewarn "git-svn needs USE=perl, it won't work"
18192 + fi
18193 + if use webdav && ! use curl ; then
18194 + ewarn "USE=webdav needs USE=curl. Ignoring"
18195 + fi
18196 + if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
18197 + ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
18198 + ewarn "with USE=dso, there may be weird crashes in git-svn. You"
18199 + ewarn "have been warned."
18200 + fi
18201 +}
18202 +
18203 +# This is needed because for some obscure reasons future calls to make don't
18204 +# pick up these exports if we export them in src_unpack()
18205 +exportmakeopts() {
18206 + local myopts
18207 +
18208 + if use mozsha1 ; then
18209 + myopts="${myopts} MOZILLA_SHA1=YesPlease"
18210 + elif use ppcsha1 ; then
18211 + myopts="${myopts} PPC_SHA1=YesPlease"
18212 + fi
18213 +
18214 + if use curl ; then
18215 + use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
18216 + else
18217 + myopts="${myopts} NO_CURL=YesPlease"
18218 + fi
18219 +
18220 + use iconv \
18221 + || myopts="${myopts} NO_ICONV=YesPlease"
18222 + use tk \
18223 + || myopts="${myopts} NO_TCLTK=YesPlease"
18224 + use perl \
18225 + && myopts="${myopts} INSTALLDIRS=vendor" \
18226 + || myopts="${myopts} NO_PERL=YesPlease"
18227 + use threads \
18228 + && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
18229 + use subversion \
18230 + || myopts="${myopts} NO_SVN_TESTS=YesPlease"
18231 +
18232 + export MY_MAKEOPTS="${myopts}"
18233 +}
18234 +
18235 +src_unpack() {
18236 + if [ "${PV}" != "9999" ]; then
18237 + unpack ${MY_P}.tar.bz2
18238 + cd "${S}"
18239 + unpack ${PN}-manpages-${DOC_VER}.tar.bz2
18240 + use doc && \
18241 + cd "${S}"/Documentation && \
18242 + unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
18243 + cd "${S}"
18244 + else
18245 + git_src_unpack
18246 + cd "${S}"
18247 + #cp "${FILESDIR}"/GIT-VERSION-GEN .
18248 + fi
18249 +
18250 +}
18251 +
18252 +src_prepare() {
18253 + # Noperl is being merged to upstream as of 2009/04/05
18254 + #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
18255 +
18256 + # GetOpt-Long v2.38 is strict
18257 + # Merged in 1.6.3 final 2009/05/07
18258 + #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
18259 +
18260 + # CVE-2010-3906: XSS in gitweb
18261 + # applied upstream
18262 + #epatch "${FILESDIR}"/git-1.6.4.5-gitweb-cve-2010-3906.patch
18263 +
18264 + sed -i \
18265 + -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
18266 + -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
18267 + -e 's:^\(CC = \).*$:\1$(OPTCC):' \
18268 + -e 's:^\(AR = \).*$:\1$(OPTAR):' \
18269 + Makefile || die "sed failed"
18270 +
18271 + # Fix docbook2texi command
18272 + sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
18273 + Documentation/Makefile || die "sed failed"
18274 +}
18275 +
18276 +git_emake() {
18277 + emake ${MY_MAKEOPTS} \
18278 + DESTDIR="${D}" \
18279 + OPTCFLAGS="${CFLAGS}" \
18280 + OPTLDFLAGS="${LDFLAGS}" \
18281 + OPTCC="$(tc-getCC)" \
18282 + OPTAR="$(tc-getAR)" \
18283 + prefix=/usr \
18284 + htmldir=/usr/share/doc/${PF}/html \
18285 + "$@"
18286 +}
18287 +
18288 +src_configure() {
18289 + exportmakeopts
18290 +}
18291 +
18292 +src_compile() {
18293 + git_emake || die "emake failed"
18294 +
18295 + if use emacs ; then
18296 + elisp-compile contrib/emacs/git{,-blame}.el \
18297 + || die "emacs modules failed"
18298 + fi
18299 +
18300 + if use perl && use cgi ; then
18301 + git_emake \
18302 + gitweb/gitweb.cgi \
18303 + || die "emake gitweb/gitweb.cgi failed"
18304 + fi
18305 +
18306 + if [[ "$PV" == "9999" ]] && use doc; then
18307 + cd Documentation
18308 + git_emake man info html \
18309 + || die "emake man html info failed"
18310 + fi
18311 +}
18312 +
18313 +src_install() {
18314 + git_emake \
18315 + install || \
18316 + die "make install failed"
18317 +
18318 + # Depending on the tarball and manual rebuild of the documentation, the
18319 + # manpages may exist in either OR both of these directories.
18320 + find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
18321 + find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
18322 +
18323 + dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
18324 + use doc && dodir /usr/share/doc/${PF}/html
18325 + for d in / /howto/ /technical/ ; do
18326 + docinto ${d}
18327 + dodoc Documentation${d}*.txt
18328 + use doc && dohtml -p ${d} Documentation${d}*.html
18329 + done
18330 + docinto /
18331 +
18332 + dobashcompletion contrib/completion/git-completion.bash ${PN}
18333 +
18334 + if use emacs ; then
18335 + elisp-install ${PN} contrib/emacs/git.{el,elc} || die
18336 + elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
18337 + #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
18338 + # don't add automatically to the load-path, so the sitefile
18339 + # can do a conditional loading
18340 + touch "${D}${SITELISP}/${PN}/compat/.nosearch"
18341 + elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
18342 + fi
18343 +
18344 + if use gtk ; then
18345 + dobin "${S}"/contrib/gitview/gitview
18346 + dodoc "${S}"/contrib/gitview/gitview.txt
18347 + fi
18348 +
18349 + dobin contrib/fast-import/git-p4
18350 + dodoc contrib/fast-import/git-p4.txt
18351 + newbin contrib/fast-import/import-tars.perl import-tars
18352 +
18353 + dodir /usr/share/${PN}/contrib
18354 + # The following are excluded:
18355 + # svnimport - use git-svn
18356 + # p4import - excluded because fast-import has a better one
18357 + # examples - these are stuff that is not used in Git anymore actually
18358 + # patches - stuff the Git guys made to go upstream to other places
18359 + for i in continuous fast-import hg-to-git \
18360 + hooks remotes2config.sh stats \
18361 + workdir convert-objects blameview ; do
18362 + cp -rf \
18363 + "${S}"/contrib/${i} \
18364 + "${D}"/usr/share/${PN}/contrib \
18365 + || die "Failed contrib ${i}"
18366 + done
18367 +
18368 + if use perl && use cgi ; then
18369 + dodir /usr/share/${PN}/gitweb
18370 + insinto /usr/share/${PN}/gitweb
18371 + doins "${S}"/gitweb/gitweb.cgi
18372 + doins "${S}"/gitweb/gitweb.css
18373 + doins "${S}"/gitweb/git-{favicon,logo}.png
18374 +
18375 + # Make sure it can run
18376 + fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
18377 +
18378 + # INSTALL discusses configuration issues, not just installation
18379 + docinto /
18380 + newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
18381 + newdoc "${S}"/gitweb/README README.gitweb
18382 +
18383 + find "${D}"/usr/lib64/perl5/ \
18384 + -name .packlist \
18385 + -exec rm \{\} \;
18386 + fi
18387 + if ! use subversion ; then
18388 + rm -f "${D}"/usr/libexec/git-core/git-svn \
18389 + "${D}"/usr/share/man/man1/git-svn.1*
18390 + fi
18391 +
18392 + if use xinetd ; then
18393 + insinto /etc/xinetd.d
18394 + newins "${FILESDIR}"/git-daemon.xinetd git-daemon
18395 + fi
18396 +
18397 + newinitd "${FILESDIR}"/git-daemon.initd git-daemon
18398 + newconfd "${FILESDIR}"/git-daemon.confd git-daemon
18399 +
18400 + fixlocalpod
18401 +}
18402 +
18403 +src_test() {
18404 + local disabled=""
18405 + local tests_cvs="t9200-git-cvsexportcommit.sh \
18406 + t9400-git-cvsserver-server.sh \
18407 + t9401-git-cvsserver-crlf.sh \
18408 + t9600-cvsimport.sh \
18409 + t9601-cvsimport-vendor-branch.sh \
18410 + t9602-cvsimport-branches-tags.sh \
18411 + t9603-cvsimport-patchsets.sh"
18412 + local tests_perl="t5502-quickfetch.sh \
18413 + t5512-ls-remote.sh \
18414 + t5520-pull.sh"
18415 +
18416 + # Unzip is used only for the testcase code, not by any normal parts of Git.
18417 + if ! has_version app-arch/unzip ; then
18418 + einfo "Disabling tar-tree tests"
18419 + disabled="${disabled} t5000-tar-tree.sh"
18420 + fi
18421 +
18422 + cvs=0
18423 + use cvs && let cvs=$cvs+1
18424 + if [[ ${EUID} -eq 0 ]]; then
18425 + if [[ $cvs -eq 1 ]]; then
18426 + ewarn "Skipping CVS tests because CVS does not work as root!"
18427 + ewarn "You should retest with FEATURES=userpriv!"
18428 + disabled="${disabled} ${tests_cvs}"
18429 + fi
18430 + # Bug #225601 - t0004 is not suitable for root perm
18431 + # Bug #219839 - t1004 is not suitable for root perm
18432 + # Bug #288575 - t3700 is not suitable for root perm
18433 + # Bug #288575 - t7300 is not suitable for root perm
18434 + disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh
18435 + t3700-add.sh t7300-clean.sh"
18436 + else
18437 + [[ $cvs -gt 0 ]] && \
18438 + has_version dev-vcs/cvs && \
18439 + let cvs=$cvs+1
18440 + [[ $cvs -gt 1 ]] && \
18441 + built_with_use dev-vcs/cvs server && \
18442 + let cvs=$cvs+1
18443 + if [[ $cvs -lt 3 ]]; then
18444 + einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
18445 + disabled="${disabled} ${tests_cvs}"
18446 + fi
18447 + fi
18448 +
18449 + if ! use perl ; then
18450 + einfo "Disabling tests that need Perl"
18451 + disabled="${disabled} ${tests_perl}"
18452 + fi
18453 +
18454 + # Reset all previously disabled tests
18455 + cd "${S}/t"
18456 + for i in *.sh.DISABLED ; do
18457 + [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
18458 + done
18459 + einfo "Disabled tests:"
18460 + for i in ${disabled} ; do
18461 + [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
18462 + done
18463 + cd "${S}"
18464 + # Now run the tests
18465 + einfo "Start test run"
18466 + git_emake \
18467 + test || die "tests failed"
18468 +}
18469 +
18470 +showpkgdeps() {
18471 + local pkg=$1
18472 + shift
18473 + elog " $(printf "%-17s:" ${pkg}) ${@}"
18474 +}
18475 +
18476 +pkg_postinst() {
18477 + use emacs && elisp-site-regen
18478 + if use subversion && has_version dev-vcs/subversion && ! built_with_use --missing false dev-vcs/subversion perl ; then
18479 + ewarn "You must build dev-vcs/subversion with USE=perl"
18480 + ewarn "to get the full functionality of git-svn!"
18481 + fi
18482 + elog "These additional scripts need some dependencies:"
18483 + echo
18484 + showpkgdeps git-quiltimport "dev-util/quilt"
18485 + showpkgdeps git-instaweb \
18486 + "|| ( www-servers/lighttpd www-servers/apache )"
18487 + echo
18488 +}
18489 +
18490 +pkg_postrm() {
18491 + use emacs && elisp-site-regen
18492 +}
18493
18494 diff --git a/dev-vcs/git/git-1.7.2.5.ebuild b/dev-vcs/git/git-1.7.2.5.ebuild
18495 new file mode 100644
18496 index 0000000..1e7fa9b
18497 --- /dev/null
18498 +++ b/dev-vcs/git/git-1.7.2.5.ebuild
18499 @@ -0,0 +1,470 @@
18500 +# Copyright 1999-2011 Gentoo Foundation
18501 +# Distributed under the terms of the GNU General Public License v2
18502 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.2.5.ebuild,v 1.13 2011/08/19 18:43:47 darkside Exp $
18503 +
18504 +EAPI=3
18505 +
18506 +GENTOO_DEPEND_ON_PERL=no
18507 +inherit toolchain-funcs eutils elisp-common perl-module bash-completion
18508 +[ "$PV" == "9999" ] && inherit git
18509 +
18510 +MY_PV="${PV/_rc/.rc}"
18511 +MY_P="${PN}-${MY_PV}"
18512 +
18513 +DOC_VER=${MY_PV}
18514 +
18515 +DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
18516 +HOMEPAGE="http://www.git-scm.com/"
18517 +if [ "$PV" != "9999" ]; then
18518 + SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
18519 + mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
18520 + doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
18521 + KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
18522 +else
18523 + SRC_URI=""
18524 + EGIT_BRANCH="master"
18525 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
18526 + # EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
18527 + KEYWORDS=""
18528 +fi
18529 +
18530 +LICENSE="GPL-2"
18531 +SLOT="0"
18532 +IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl ppcsha1 tk +threads +webdav xinetd cvs subversion"
18533 +
18534 +# Common to both DEPEND and RDEPEND
18535 +CDEPEND="
18536 + !blksha1? ( dev-libs/openssl )
18537 + sys-libs/zlib
18538 + perl? ( dev-lang/perl[-build] )
18539 + tk? ( dev-lang/tk )
18540 + curl? (
18541 + net-misc/curl
18542 + webdav? ( dev-libs/expat )
18543 + )
18544 + emacs? ( virtual/emacs )"
18545 +
18546 +RDEPEND="${CDEPEND}
18547 + perl? ( dev-perl/Error
18548 + dev-perl/Net-SMTP-SSL
18549 + dev-perl/Authen-SASL
18550 + cgi? ( virtual/perl-CGI )
18551 + cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
18552 + subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
18553 + )
18554 + gtk?
18555 + (
18556 + >=dev-python/pygtk-2.8
18557 + dev-python/pygtksourceview:2
18558 + )"
18559 +
18560 +# This is how info docs are created with Git:
18561 +# .txt/asciidoc --(asciidoc)---------> .xml/docbook
18562 +# .xml/docbook --(docbook2texi.pl)--> .texi
18563 +# .texi --(makeinfo)---------> .info
18564 +DEPEND="${CDEPEND}
18565 + app-arch/cpio
18566 + doc? (
18567 + app-text/asciidoc
18568 + app-text/docbook2X
18569 + sys-apps/texinfo
18570 + )"
18571 +
18572 +# Live ebuild builds HTML docs, additionally
18573 +if [ "$PV" == "9999" ]; then
18574 + DEPEND="${DEPEND}
18575 + doc? (
18576 + app-text/xmlto
18577 + )"
18578 +fi
18579 +
18580 +SITEFILE=50${PN}-gentoo.el
18581 +S="${WORKDIR}/${MY_P}"
18582 +
18583 +pkg_setup() {
18584 + if ! use perl ; then
18585 + use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
18586 + use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
18587 + use subversion && ewarn "git-svn needs USE=perl, it won't work"
18588 + fi
18589 + if use webdav && ! use curl ; then
18590 + ewarn "USE=webdav needs USE=curl. Ignoring"
18591 + fi
18592 + if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
18593 + ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
18594 + ewarn "with USE=dso, there may be weird crashes in git-svn. You"
18595 + ewarn "have been warned."
18596 + fi
18597 +}
18598 +
18599 +# This is needed because for some obscure reasons future calls to make don't
18600 +# pick up these exports if we export them in src_unpack()
18601 +exportmakeopts() {
18602 + local myopts
18603 +
18604 + if use blksha1 ; then
18605 + myopts="${myopts} BLK_SHA1=YesPlease"
18606 + elif use ppcsha1 ; then
18607 + myopts="${myopts} PPC_SHA1=YesPlease"
18608 + fi
18609 +
18610 + if use curl ; then
18611 + use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
18612 + else
18613 + myopts="${myopts} NO_CURL=YesPlease"
18614 + fi
18615 +
18616 + # broken assumptions, because of broken build system ...
18617 + myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
18618 + myopts="${myopts} INSTALL=install TAR=tar"
18619 + myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
18620 + myopts="${myopts} SANE_TOOL_PATH="
18621 + myopts="${myopts} OLD_ICONV="
18622 + myopts="${myopts} NO_EXTERNAL_GREP="
18623 +
18624 + # can't define this to null, since the entire makefile depends on it
18625 + sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
18626 +
18627 + use iconv \
18628 + || einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205."
18629 + # || myopts="${myopts} NO_ICONV=YesPlease"
18630 + # because, above, we need to do this unconditionally (no "&& use iconv")
18631 + use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease"
18632 +
18633 + use tk \
18634 + || myopts="${myopts} NO_TCLTK=YesPlease"
18635 + use perl \
18636 + && myopts="${myopts} INSTALLDIRS=vendor" \
18637 + || myopts="${myopts} NO_PERL=YesPlease"
18638 + use threads \
18639 + && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
18640 + use subversion \
18641 + || myopts="${myopts} NO_SVN_TESTS=YesPlease"
18642 +# Disabled until ~m68k-mint can be keyworded again
18643 +# if [[ ${CHOST} == *-mint* ]] ; then
18644 +# myopts="${myopts} NO_MMAP=YesPlease"
18645 +# myopts="${myopts} NO_IPV6=YesPlease"
18646 +# myopts="${myopts} NO_STRLCPY=YesPlease"
18647 +# myopts="${myopts} NO_MEMMEM=YesPlease"
18648 +# myopts="${myopts} NO_MKDTEMP=YesPlease"
18649 +# myopts="${myopts} NO_MKSTEMPS=YesPlease"
18650 +# fi
18651 + if [[ ${CHOST} == *-interix* ]] ; then
18652 + myopts="${myopts} NO_IPV6=YesPlease"
18653 + myopts="${myopts} NO_MEMMEM=YesPlease"
18654 + myopts="${myopts} NO_MKDTEMP=YesPlease"
18655 + myopts="${myopts} NO_STRTOUMAX=YesPlease"
18656 + myopts="${myopts} NO_STRTOULL=YesPlease"
18657 + myopts="${myopts} NO_INET_NTOP=YesPlease"
18658 + myopts="${myopts} NO_INET_PTON=YesPlease"
18659 + myopts="${myopts} NO_NSEC=YesPlease"
18660 + myopts="${myopts} NO_MKSTEMPS=YesPlease"
18661 + fi
18662 + if [[ ${CHOST} == ia64-*-hpux* ]]; then
18663 + myopts="${myopts} NO_NSEC=YesPlease"
18664 + fi
18665 +
18666 + has_version '>=app-text/asciidoc-8.0' \
18667 + && myopts="${myopts} ASCIIDOC8=YesPlease"
18668 + myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
18669 +
18670 + # Bug 290465:
18671 + # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
18672 + [[ "${CHOST}" == *-uclibc* ]] && \
18673 + myopts="${myopts} NO_NSEC=YesPlease"
18674 +
18675 + export MY_MAKEOPTS="${myopts}"
18676 +}
18677 +
18678 +src_unpack() {
18679 + if [ "${PV}" != "9999" ]; then
18680 + unpack ${MY_P}.tar.bz2
18681 + cd "${S}"
18682 + unpack ${PN}-manpages-${DOC_VER}.tar.bz2
18683 + use doc && \
18684 + cd "${S}"/Documentation && \
18685 + unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
18686 + cd "${S}"
18687 + else
18688 + git_src_unpack
18689 + cd "${S}"
18690 + #cp "${FILESDIR}"/GIT-VERSION-GEN .
18691 + fi
18692 +
18693 +}
18694 +
18695 +src_prepare() {
18696 + # Noperl is being merged to upstream as of 2009/04/05
18697 + #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
18698 +
18699 + # GetOpt-Long v2.38 is strict
18700 + # Merged in 1.6.3 final 2009/05/07
18701 + #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
18702 +
18703 + # JS install fixup
18704 + epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch
18705 +
18706 + # USE=-iconv causes segfaults, fixed post 1.7.1
18707 + # Gentoo bug #321895
18708 + #epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch
18709 +
18710 + # CVE-2010-3906: XSS in gitweb
18711 + # applied upstream
18712 + #epatch "${FILESDIR}"/git-1.6.4.5-gitweb-cve-2010-3906.patch
18713 +
18714 + sed -i \
18715 + -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
18716 + -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
18717 + -e 's:^\(CC = \).*$:\1$(OPTCC):' \
18718 + -e 's:^\(AR = \).*$:\1$(OPTAR):' \
18719 + -e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
18720 + -e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
18721 + Makefile || die "sed failed"
18722 +
18723 + # Never install the private copy of Error.pm (bug #296310)
18724 + sed -i \
18725 + -e '/private-Error.pm/s,^,#,' \
18726 + perl/Makefile.PL
18727 +
18728 + # Fix docbook2texi command
18729 + sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
18730 + Documentation/Makefile || die "sed failed"
18731 +
18732 + # bug #318289
18733 + epatch "${FILESDIR}"/git-1.7.1-interix.patch
18734 + epatch "${FILESDIR}"/git-1.6.6.1-interix6.patch
18735 +}
18736 +
18737 +git_emake() {
18738 + emake ${MY_MAKEOPTS} \
18739 + DESTDIR="${D}" \
18740 + OPTCFLAGS="${CFLAGS}" \
18741 + OPTLDFLAGS="${LDFLAGS}" \
18742 + OPTCC="$(tc-getCC)" \
18743 + OPTAR="$(tc-getAR)" \
18744 + prefix="${EPREFIX}"/usr \
18745 + htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
18746 + sysconfdir="${EPREFIX}"/etc \
18747 + "$@"
18748 +}
18749 +
18750 +src_configure() {
18751 + exportmakeopts
18752 +}
18753 +
18754 +src_compile() {
18755 + git_emake || die "emake failed"
18756 +
18757 + if use emacs ; then
18758 + elisp-compile contrib/emacs/git{,-blame}.el \
18759 + || die "emacs modules failed"
18760 + fi
18761 +
18762 + if use perl && use cgi ; then
18763 + git_emake \
18764 + gitweb/gitweb.cgi \
18765 + || die "emake gitweb/gitweb.cgi failed"
18766 + fi
18767 +
18768 + cd "${S}"/Documentation
18769 + if [[ "$PV" == "9999" ]] ; then
18770 + git_emake man \
18771 + || die "emake man failed"
18772 + if use doc ; then
18773 + git_emake info html \
18774 + || die "emake info html failed"
18775 + fi
18776 + else
18777 + if use doc ; then
18778 + git_emake info \
18779 + || die "emake info html failed"
18780 + fi
18781 + fi
18782 +}
18783 +
18784 +src_install() {
18785 + git_emake \
18786 + install || \
18787 + die "make install failed"
18788 +
18789 + # Depending on the tarball and manual rebuild of the documentation, the
18790 + # manpages may exist in either OR both of these directories.
18791 + find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
18792 + find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
18793 +
18794 + dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
18795 + use doc && dodir /usr/share/doc/${PF}/html
18796 + for d in / /howto/ /technical/ ; do
18797 + docinto ${d}
18798 + dodoc Documentation${d}*.txt
18799 + use doc && dohtml -p ${d} Documentation${d}*.html
18800 + done
18801 + docinto /
18802 + # Upstream does not ship this pre-built :-(
18803 + use doc && doinfo Documentation/{git,gitman}.info
18804 +
18805 + dobashcompletion contrib/completion/git-completion.bash ${PN}
18806 +
18807 + if use emacs ; then
18808 + elisp-install ${PN} contrib/emacs/git.{el,elc} || die
18809 + elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
18810 + #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
18811 + # don't add automatically to the load-path, so the sitefile
18812 + # can do a conditional loading
18813 + touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
18814 + elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
18815 + fi
18816 +
18817 + if use gtk ; then
18818 + dobin "${S}"/contrib/gitview/gitview
18819 + dodoc "${S}"/contrib/gitview/gitview.txt
18820 + fi
18821 +
18822 + dobin contrib/fast-import/git-p4
18823 + dodoc contrib/fast-import/git-p4.txt
18824 + newbin contrib/fast-import/import-tars.perl import-tars
18825 +
18826 + dodir /usr/share/${PN}/contrib
18827 + # The following are excluded:
18828 + # svnimport - use git-svn
18829 + # p4import - excluded because fast-import has a better one
18830 + # examples - these are stuff that is not used in Git anymore actually
18831 + # patches - stuff the Git guys made to go upstream to other places
18832 + for i in continuous fast-import hg-to-git \
18833 + hooks remotes2config.sh stats \
18834 + workdir convert-objects blameview ; do
18835 + cp -rf \
18836 + "${S}"/contrib/${i} \
18837 + "${ED}"/usr/share/${PN}/contrib \
18838 + || die "Failed contrib ${i}"
18839 + done
18840 +
18841 + if use perl && use cgi ; then
18842 + exeinto /usr/share/${PN}/gitweb
18843 + doexe "${S}"/gitweb/gitweb.cgi
18844 + insinto /usr/share/${PN}/gitweb/static
18845 + doins "${S}"/gitweb/static/gitweb.css
18846 + js=gitweb.js
18847 + [ -f "${S}"/gitweb/static/gitweb.min.js ] && js=gitweb.min.js
18848 + doins "${S}"/gitweb/static/${js}
18849 + doins "${S}"/gitweb/static/git-{favicon,logo}.png
18850 +
18851 + # INSTALL discusses configuration issues, not just installation
18852 + docinto /
18853 + newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
18854 + newdoc "${S}"/gitweb/README README.gitweb
18855 +
18856 + find "${ED}"/usr/lib64/perl5/ \
18857 + -name .packlist \
18858 + -exec rm \{\} \;
18859 + fi
18860 + if ! use subversion ; then
18861 + rm -f "${ED}"/usr/libexec/git-core/git-svn \
18862 + "${ED}"/usr/share/man/man1/git-svn.1*
18863 + fi
18864 +
18865 + if use xinetd ; then
18866 + insinto /etc/xinetd.d
18867 + newins "${FILESDIR}"/git-daemon.xinetd git-daemon
18868 + fi
18869 +
18870 + newinitd "${FILESDIR}"/git-daemon.initd git-daemon
18871 + newconfd "${FILESDIR}"/git-daemon.confd git-daemon
18872 +
18873 + fixlocalpod
18874 +}
18875 +
18876 +src_test() {
18877 + local disabled=""
18878 + local tests_cvs="t9200-git-cvsexportcommit.sh \
18879 + t9400-git-cvsserver-server.sh \
18880 + t9401-git-cvsserver-crlf.sh \
18881 + t9600-cvsimport.sh \
18882 + t9601-cvsimport-vendor-branch.sh \
18883 + t9602-cvsimport-branches-tags.sh \
18884 + t9603-cvsimport-patchsets.sh"
18885 + local tests_perl="t5502-quickfetch.sh \
18886 + t5512-ls-remote.sh \
18887 + t5520-pull.sh"
18888 + # Bug #225601 - t0004 is not suitable for root perm
18889 + # Bug #219839 - t1004 is not suitable for root perm
18890 + # t0001-init.sh - check for init notices EPERM* fails
18891 + local tests_nonroot="t0001-init.sh \
18892 + t0004-unwritable.sh \
18893 + t1004-read-tree-m-u-wf.sh \
18894 + t3700-add.sh \
18895 + t7300-clean.sh"
18896 +
18897 + # Unzip is used only for the testcase code, not by any normal parts of Git.
18898 + if ! has_version app-arch/unzip ; then
18899 + einfo "Disabling tar-tree tests"
18900 + disabled="${disabled} t5000-tar-tree.sh"
18901 + fi
18902 +
18903 + cvs=0
18904 + use cvs && let cvs=$cvs+1
18905 + if [[ ${EUID} -eq 0 ]]; then
18906 + if [[ $cvs -eq 1 ]]; then
18907 + ewarn "Skipping CVS tests because CVS does not work as root!"
18908 + ewarn "You should retest with FEATURES=userpriv!"
18909 + disabled="${disabled} ${tests_cvs}"
18910 + fi
18911 + einfo "Skipping other tests that require being non-root"
18912 + disabled="${disabled} ${tests_nonroot}"
18913 + else
18914 + [[ $cvs -gt 0 ]] && \
18915 + has_version dev-vcs/cvs && \
18916 + let cvs=$cvs+1
18917 + [[ $cvs -gt 1 ]] && \
18918 + built_with_use dev-vcs/cvs server && \
18919 + let cvs=$cvs+1
18920 + if [[ $cvs -lt 3 ]]; then
18921 + einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
18922 + disabled="${disabled} ${tests_cvs}"
18923 + fi
18924 + fi
18925 +
18926 + if ! use perl ; then
18927 + einfo "Disabling tests that need Perl"
18928 + disabled="${disabled} ${tests_perl}"
18929 + fi
18930 +
18931 + # Reset all previously disabled tests
18932 + cd "${S}/t"
18933 + for i in *.sh.DISABLED ; do
18934 + [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
18935 + done
18936 + einfo "Disabled tests:"
18937 + for i in ${disabled} ; do
18938 + [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
18939 + done
18940 + cd "${S}"
18941 + # Now run the tests
18942 + einfo "Start test run"
18943 + git_emake test
18944 + rc=$?
18945 + # Display nice results
18946 + cd "${S}/t"
18947 + git_emake aggregate-results
18948 + [ $rc -eq 0 ] || die "tests failed. Please file a bug."
18949 +}
18950 +
18951 +showpkgdeps() {
18952 + local pkg=$1
18953 + shift
18954 + elog " $(printf "%-17s:" ${pkg}) ${@}"
18955 +}
18956 +
18957 +pkg_postinst() {
18958 + use emacs && elisp-site-regen
18959 + elog "These additional scripts need some dependencies:"
18960 + echo
18961 + showpkgdeps git-quiltimport "dev-util/quilt"
18962 + showpkgdeps git-instaweb \
18963 + "|| ( www-servers/lighttpd www-servers/apache )"
18964 + echo
18965 +}
18966 +
18967 +pkg_postrm() {
18968 + use emacs && elisp-site-regen
18969 +}
18970
18971 diff --git a/dev-vcs/git/git-1.7.3.4-r1.ebuild b/dev-vcs/git/git-1.7.3.4-r1.ebuild
18972 new file mode 100644
18973 index 0000000..048177f
18974 --- /dev/null
18975 +++ b/dev-vcs/git/git-1.7.3.4-r1.ebuild
18976 @@ -0,0 +1,490 @@
18977 +# Copyright 1999-2011 Gentoo Foundation
18978 +# Distributed under the terms of the GNU General Public License v2
18979 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.3.4-r1.ebuild,v 1.17 2011/08/19 18:43:47 darkside Exp $
18980 +
18981 +EAPI=3
18982 +
18983 +GENTOO_DEPEND_ON_PERL=no
18984 +inherit toolchain-funcs eutils elisp-common perl-module bash-completion
18985 +[ "$PV" == "9999" ] && inherit git
18986 +
18987 +MY_PV="${PV/_rc/.rc}"
18988 +MY_P="${PN}-${MY_PV}"
18989 +
18990 +DOC_VER=${MY_PV}
18991 +
18992 +DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
18993 +HOMEPAGE="http://www.git-scm.com/"
18994 +if [ "$PV" != "9999" ]; then
18995 + SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
18996 + mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
18997 + doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
18998 + KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
18999 +else
19000 + SRC_URI=""
19001 + EGIT_BRANCH="master"
19002 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
19003 + # EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
19004 + KEYWORDS=""
19005 +fi
19006 +
19007 +LICENSE="GPL-2"
19008 +SLOT="0"
19009 +IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl ppcsha1 tk +threads +webdav xinetd cvs subversion"
19010 +
19011 +# Common to both DEPEND and RDEPEND
19012 +CDEPEND="
19013 + !blksha1? ( dev-libs/openssl )
19014 + sys-libs/zlib
19015 + perl? ( dev-lang/perl[-build] )
19016 + tk? ( dev-lang/tk )
19017 + curl? (
19018 + net-misc/curl
19019 + webdav? ( dev-libs/expat )
19020 + )
19021 + emacs? ( virtual/emacs )"
19022 +
19023 +RDEPEND="${CDEPEND}
19024 + perl? ( dev-perl/Error
19025 + dev-perl/Net-SMTP-SSL
19026 + dev-perl/Authen-SASL
19027 + cgi? ( virtual/perl-CGI )
19028 + cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
19029 + subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
19030 + )
19031 + gtk?
19032 + (
19033 + >=dev-python/pygtk-2.8
19034 + dev-python/pygtksourceview:2
19035 + )"
19036 +
19037 +# This is how info docs are created with Git:
19038 +# .txt/asciidoc --(asciidoc)---------> .xml/docbook
19039 +# .xml/docbook --(docbook2texi.pl)--> .texi
19040 +# .texi --(makeinfo)---------> .info
19041 +DEPEND="${CDEPEND}
19042 + app-arch/cpio
19043 + doc? (
19044 + app-text/asciidoc
19045 + app-text/docbook2X
19046 + sys-apps/texinfo
19047 + )"
19048 +
19049 +# Live ebuild builds man pages and HTML docs, additionally
19050 +if [ "$PV" == "9999" ]; then
19051 + DEPEND="${DEPEND}
19052 + app-text/asciidoc
19053 + app-text/xmlto"
19054 +fi
19055 +
19056 +SITEFILE=50${PN}-gentoo.el
19057 +S="${WORKDIR}/${MY_P}"
19058 +
19059 +pkg_setup() {
19060 + if ! use perl ; then
19061 + use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
19062 + use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
19063 + use subversion && ewarn "git-svn needs USE=perl, it won't work"
19064 + fi
19065 + if use webdav && ! use curl ; then
19066 + ewarn "USE=webdav needs USE=curl. Ignoring"
19067 + fi
19068 + if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
19069 + ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
19070 + ewarn "with USE=dso, there may be weird crashes in git-svn. You"
19071 + ewarn "have been warned."
19072 + fi
19073 +}
19074 +
19075 +# This is needed because for some obscure reasons future calls to make don't
19076 +# pick up these exports if we export them in src_unpack()
19077 +exportmakeopts() {
19078 + local myopts
19079 +
19080 + if use blksha1 ; then
19081 + myopts="${myopts} BLK_SHA1=YesPlease"
19082 + elif use ppcsha1 ; then
19083 + myopts="${myopts} PPC_SHA1=YesPlease"
19084 + fi
19085 +
19086 + if use curl ; then
19087 + use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
19088 + else
19089 + myopts="${myopts} NO_CURL=YesPlease"
19090 + fi
19091 +
19092 + # broken assumptions, because of broken build system ...
19093 + myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
19094 + myopts="${myopts} INSTALL=install TAR=tar"
19095 + myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
19096 + myopts="${myopts} SANE_TOOL_PATH="
19097 + myopts="${myopts} OLD_ICONV="
19098 + myopts="${myopts} NO_EXTERNAL_GREP="
19099 +
19100 + # can't define this to null, since the entire makefile depends on it
19101 + sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
19102 +
19103 + use iconv \
19104 + || einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205."
19105 + # || myopts="${myopts} NO_ICONV=YesPlease"
19106 + # because, above, we need to do this unconditionally (no "&& use iconv")
19107 + use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease"
19108 +
19109 + use tk \
19110 + || myopts="${myopts} NO_TCLTK=YesPlease"
19111 + use perl \
19112 + && myopts="${myopts} INSTALLDIRS=vendor" \
19113 + || myopts="${myopts} NO_PERL=YesPlease"
19114 + use threads \
19115 + && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
19116 + use subversion \
19117 + || myopts="${myopts} NO_SVN_TESTS=YesPlease"
19118 + use cvs \
19119 + || myopts="${myopts} NO_CVS=YesPlease"
19120 +# Disabled until ~m68k-mint can be keyworded again
19121 +# if [[ ${CHOST} == *-mint* ]] ; then
19122 +# myopts="${myopts} NO_MMAP=YesPlease"
19123 +# myopts="${myopts} NO_IPV6=YesPlease"
19124 +# myopts="${myopts} NO_STRLCPY=YesPlease"
19125 +# myopts="${myopts} NO_MEMMEM=YesPlease"
19126 +# myopts="${myopts} NO_MKDTEMP=YesPlease"
19127 +# myopts="${myopts} NO_MKSTEMPS=YesPlease"
19128 +# fi
19129 + if [[ ${CHOST} == ia64-*-hpux* ]]; then
19130 + myopts="${myopts} NO_NSEC=YesPlease"
19131 + fi
19132 +
19133 + has_version '>=app-text/asciidoc-8.0' \
19134 + && myopts="${myopts} ASCIIDOC8=YesPlease"
19135 + myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
19136 +
19137 + # Bug 290465:
19138 + # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
19139 + [[ "${CHOST}" == *-uclibc* ]] && \
19140 + myopts="${myopts} NO_NSEC=YesPlease"
19141 +
19142 + export MY_MAKEOPTS="${myopts}"
19143 +}
19144 +
19145 +src_unpack() {
19146 + if [ "${PV}" != "9999" ]; then
19147 + unpack ${MY_P}.tar.bz2
19148 + cd "${S}"
19149 + unpack ${PN}-manpages-${DOC_VER}.tar.bz2
19150 + use doc && \
19151 + cd "${S}"/Documentation && \
19152 + unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
19153 + cd "${S}"
19154 + else
19155 + git_src_unpack
19156 + cd "${S}"
19157 + #cp "${FILESDIR}"/GIT-VERSION-GEN .
19158 + fi
19159 +
19160 +}
19161 +
19162 +src_prepare() {
19163 + # Noperl is being merged to upstream as of 2009/04/05
19164 + #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
19165 +
19166 + # GetOpt-Long v2.38 is strict
19167 + # Merged in 1.6.3 final 2009/05/07
19168 + #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
19169 +
19170 + # JS install fixup
19171 + epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch
19172 +
19173 + # USE=-iconv causes segfaults, fixed post 1.7.1
19174 + # Gentoo bug #321895
19175 + #epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch
19176 +
19177 + # Fix false positives with t3404 due to SHELL=/bin/false for the portage
19178 + # user.
19179 + epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch
19180 +
19181 + # bug #350075: t9001: fix missing prereq on some tests
19182 + epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch
19183 +
19184 + # bug #350330 - automagic CVS when we don't want it is bad.
19185 + epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch
19186 +
19187 + sed -i \
19188 + -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
19189 + -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
19190 + -e 's:^\(CC = \).*$:\1$(OPTCC):' \
19191 + -e 's:^\(AR = \).*$:\1$(OPTAR):' \
19192 + -e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
19193 + -e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
19194 + Makefile || die "sed failed"
19195 +
19196 + # Never install the private copy of Error.pm (bug #296310)
19197 + sed -i \
19198 + -e '/private-Error.pm/s,^,#,' \
19199 + perl/Makefile.PL
19200 +
19201 + # Fix docbook2texi command
19202 + sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
19203 + Documentation/Makefile || die "sed failed"
19204 +
19205 + # bug #318289
19206 + epatch "${FILESDIR}"/git-1.7.3.2-interix.patch
19207 +}
19208 +
19209 +git_emake() {
19210 + # bug #326625: PERL_PATH, PERL_MM_OPT
19211 + # bug #320647: PYTHON_PATH
19212 + emake ${MY_MAKEOPTS} \
19213 + DESTDIR="${D}" \
19214 + OPTCFLAGS="${CFLAGS}" \
19215 + OPTLDFLAGS="${LDFLAGS}" \
19216 + OPTCC="$(tc-getCC)" \
19217 + OPTAR="$(tc-getAR)" \
19218 + prefix="${EPREFIX}"/usr \
19219 + htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
19220 + sysconfdir="${EPREFIX}"/etc \
19221 + PYTHON_PATH="${EPREFIX}/usr/bin/python" \
19222 + PERL_PATH="${EPREFIX}/usr/bin/env perl" \
19223 + PERL_MM_OPT="" \
19224 + GIT_TEST_OPTS="--no-color" \
19225 + "$@"
19226 +}
19227 +
19228 +src_configure() {
19229 + exportmakeopts
19230 +}
19231 +
19232 +src_compile() {
19233 + git_emake || die "emake failed"
19234 +
19235 + if use emacs ; then
19236 + elisp-compile contrib/emacs/git{,-blame}.el \
19237 + || die "emacs modules failed"
19238 + fi
19239 +
19240 + if use perl && use cgi ; then
19241 + git_emake \
19242 + gitweb/gitweb.cgi \
19243 + || die "emake gitweb/gitweb.cgi failed"
19244 + fi
19245 +
19246 + cd "${S}"/Documentation
19247 + if [[ "$PV" == "9999" ]] ; then
19248 + git_emake man \
19249 + || die "emake man failed"
19250 + if use doc ; then
19251 + git_emake info html \
19252 + || die "emake info html failed"
19253 + fi
19254 + else
19255 + if use doc ; then
19256 + git_emake info \
19257 + || die "emake info html failed"
19258 + fi
19259 + fi
19260 +}
19261 +
19262 +src_install() {
19263 + git_emake \
19264 + install || \
19265 + die "make install failed"
19266 +
19267 + # Depending on the tarball and manual rebuild of the documentation, the
19268 + # manpages may exist in either OR both of these directories.
19269 + find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
19270 + find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
19271 +
19272 + dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
19273 + use doc && dodir /usr/share/doc/${PF}/html
19274 + for d in / /howto/ /technical/ ; do
19275 + docinto ${d}
19276 + dodoc Documentation${d}*.txt
19277 + use doc && dohtml -p ${d} Documentation${d}*.html
19278 + done
19279 + docinto /
19280 + # Upstream does not ship this pre-built :-(
19281 + use doc && doinfo Documentation/{git,gitman}.info
19282 +
19283 + dobashcompletion contrib/completion/git-completion.bash ${PN}
19284 +
19285 + if use emacs ; then
19286 + elisp-install ${PN} contrib/emacs/git.{el,elc} || die
19287 + elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
19288 + #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
19289 + # don't add automatically to the load-path, so the sitefile
19290 + # can do a conditional loading
19291 + touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
19292 + elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
19293 + fi
19294 +
19295 + if use gtk ; then
19296 + dobin "${S}"/contrib/gitview/gitview
19297 + dodoc "${S}"/contrib/gitview/gitview.txt
19298 + fi
19299 +
19300 + dobin contrib/fast-import/git-p4
19301 + dodoc contrib/fast-import/git-p4.txt
19302 + newbin contrib/fast-import/import-tars.perl import-tars
19303 + newbin contrib/git-resurrect.sh git-resurrect
19304 +
19305 + dodir /usr/share/${PN}/contrib
19306 + # The following are excluded:
19307 + # completion - installed above
19308 + # emacs - installed above
19309 + # examples - these are stuff that is not used in Git anymore actually
19310 + # gitview - installed above
19311 + # p4import - excluded because fast-import has a better one
19312 + # patches - stuff the Git guys made to go upstream to other places
19313 + # svnimport - use git-svn
19314 + # thunderbird-patch-inline - fixes thunderbird
19315 + for i in \
19316 + blameview buildsystems ciabot continuous convert-objects fast-import \
19317 + hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \
19318 + stats svn-fe vim workdir \
19319 + ; do
19320 + cp -rf \
19321 + "${S}"/contrib/${i} \
19322 + "${ED}"/usr/share/${PN}/contrib \
19323 + || die "Failed contrib ${i}"
19324 + done
19325 +
19326 + if use perl && use cgi ; then
19327 + # We used to install in /usr/share/${PN}/gitweb
19328 + # but upstream installs in /usr/share/gitweb
19329 + # so we will install a symlink and use their location for compat with other
19330 + # distros
19331 + dosym /usr/share/gitweb /usr/share/${PN}/gitweb
19332 +
19333 + # INSTALL discusses configuration issues, not just installation
19334 + docinto /
19335 + newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
19336 + newdoc "${S}"/gitweb/README README.gitweb
19337 +
19338 + find "${ED}"/usr/lib64/perl5/ \
19339 + -name .packlist \
19340 + -exec rm \{\} \;
19341 + else
19342 + rm -rf "${D}"/usr/share/gitweb
19343 + fi
19344 +
19345 + if ! use subversion ; then
19346 + rm -f "${ED}"/usr/libexec/git-core/git-svn \
19347 + "${ED}"/usr/share/man/man1/git-svn.1*
19348 + fi
19349 +
19350 + if use xinetd ; then
19351 + insinto /etc/xinetd.d
19352 + newins "${FILESDIR}"/git-daemon.xinetd git-daemon
19353 + fi
19354 +
19355 + newinitd "${FILESDIR}"/git-daemon.initd git-daemon
19356 + newconfd "${FILESDIR}"/git-daemon.confd git-daemon
19357 +
19358 + fixlocalpod
19359 +}
19360 +
19361 +src_test() {
19362 + local disabled=""
19363 + local tests_cvs="t9200-git-cvsexportcommit.sh \
19364 + t9400-git-cvsserver-server.sh \
19365 + t9401-git-cvsserver-crlf.sh \
19366 + t9600-cvsimport.sh \
19367 + t9601-cvsimport-vendor-branch.sh \
19368 + t9602-cvsimport-branches-tags.sh \
19369 + t9603-cvsimport-patchsets.sh"
19370 + local tests_perl="t5502-quickfetch.sh \
19371 + t5512-ls-remote.sh \
19372 + t5520-pull.sh"
19373 + # Bug #225601 - t0004 is not suitable for root perm
19374 + # Bug #219839 - t1004 is not suitable for root perm
19375 + # t0001-init.sh - check for init notices EPERM* fails
19376 + local tests_nonroot="t0001-init.sh \
19377 + t0004-unwritable.sh \
19378 + t1004-read-tree-m-u-wf.sh \
19379 + t3700-add.sh \
19380 + t7300-clean.sh"
19381 +
19382 + # Unzip is used only for the testcase code, not by any normal parts of Git.
19383 + if ! has_version app-arch/unzip ; then
19384 + einfo "Disabling tar-tree tests"
19385 + disabled="${disabled} t5000-tar-tree.sh"
19386 + fi
19387 +
19388 + cvs=0
19389 + use cvs && let cvs=$cvs+1
19390 + if [[ ${EUID} -eq 0 ]]; then
19391 + if [[ $cvs -eq 1 ]]; then
19392 + ewarn "Skipping CVS tests because CVS does not work as root!"
19393 + ewarn "You should retest with FEATURES=userpriv!"
19394 + disabled="${disabled} ${tests_cvs}"
19395 + fi
19396 + einfo "Skipping other tests that require being non-root"
19397 + disabled="${disabled} ${tests_nonroot}"
19398 + else
19399 + [[ $cvs -gt 0 ]] && \
19400 + has_version dev-vcs/cvs && \
19401 + let cvs=$cvs+1
19402 + [[ $cvs -gt 1 ]] && \
19403 + built_with_use dev-vcs/cvs server && \
19404 + let cvs=$cvs+1
19405 + if [[ $cvs -lt 3 ]]; then
19406 + einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
19407 + disabled="${disabled} ${tests_cvs}"
19408 + fi
19409 + fi
19410 +
19411 + if ! use perl ; then
19412 + einfo "Disabling tests that need Perl"
19413 + disabled="${disabled} ${tests_perl}"
19414 + fi
19415 +
19416 + # Reset all previously disabled tests
19417 + cd "${S}/t"
19418 + for i in *.sh.DISABLED ; do
19419 + [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
19420 + done
19421 + einfo "Disabled tests:"
19422 + for i in ${disabled} ; do
19423 + [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
19424 + done
19425 +
19426 + # Avoid the test system removing the results because we want them ourselves
19427 + sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
19428 + -i "${S}"/t/Makefile
19429 +
19430 + # Clean old results first
19431 + cd "${S}/t"
19432 + git_emake clean
19433 +
19434 + # Now run the tests
19435 + cd "${S}"
19436 + einfo "Start test run"
19437 + git_emake test
19438 + rc=$?
19439 +
19440 + # Display nice results
19441 + cd "${S}/t"
19442 + git_emake aggregate-results
19443 +
19444 + # And exit
19445 + [ $rc -eq 0 ] || die "tests failed. Please file a bug."
19446 +}
19447 +
19448 +showpkgdeps() {
19449 + local pkg=$1
19450 + shift
19451 + elog " $(printf "%-17s:" ${pkg}) ${@}"
19452 +}
19453 +
19454 +pkg_postinst() {
19455 + use emacs && elisp-site-regen
19456 + elog "These additional scripts need some dependencies:"
19457 + echo
19458 + showpkgdeps git-quiltimport "dev-util/quilt"
19459 + showpkgdeps git-instaweb \
19460 + "|| ( www-servers/lighttpd www-servers/apache )"
19461 + echo
19462 +}
19463 +
19464 +pkg_postrm() {
19465 + use emacs && elisp-site-regen
19466 +}
19467
19468 diff --git a/eclass/vdr-plugin-2.eclass.~1~ b/eclass/vdr-plugin-2.eclass.~1~
19469 new file mode 100644
19470 index 0000000..2de0d31
19471 --- /dev/null
19472 +++ b/eclass/vdr-plugin-2.eclass.~1~
19473 @@ -0,0 +1,614 @@
19474 +# Copyright 1999-2012 Gentoo Foundation
19475 +# Distributed under the terms of the GNU General Public License v2
19476 +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.8 2012/06/27 18:54:58 hd_brummy Exp $
19477 +
19478 +# @ECLASS: vdr-plugin-2.eclass
19479 +# @MAINTAINER:
19480 +# vdr@g.o
19481 +# @BLURB: common vdr plugin ebuild functions
19482 +# @DESCRIPTION:
19483 +# Eclass for easing maitenance of vdr plugin ebuilds
19484 +
19485 +# Authors:
19486 +# Matthias Schwarzott <zzam@g.o>
19487 +# Joerg Bornkessel <hd_brummy@g.o>
19488 +# Christian Ruppert <idl0r@g.o>
19489 +
19490 +# Plugin config file installation:
19491 +#
19492 +# A plugin config file can be specified through the $VDR_CONFD_FILE variable, it
19493 +# defaults to ${FILESDIR}/confd. Each config file will be installed as e.g.
19494 +# ${D}/etc/conf.d/vdr.${VDRPLUGIN}
19495 +
19496 +# Installation of rc-addon files:
19497 +# NOTE: rc-addon files must be valid shell scripts!
19498 +#
19499 +# Installing rc-addon files is basically the same as for plugin config files
19500 +# (see above), it's just using the $VDR_RCADDON_FILE variable instead.
19501 +# The default value when $VDR_RCADDON_FILE is undefined is:
19502 +# ${FILESDIR}/rc-addon.sh and will be installed as
19503 +# ${VDR_RC_DIR}/plugin-${VDRPLUGIN}.sh
19504 +#
19505 +# The rc-addon files will be sourced by the startscript when the specific plugin
19506 +# has been enabled.
19507 +# rc-addon files may be used to prepare everything that is necessary for the
19508 +# plugin start/stop, like passing extra command line options and so on.
19509 +
19510 +# Applying your own local/user patches:
19511 +# This is done by using the epatch_user() function of the eutils.eclass.
19512 +# Simply put your patches into one of these directories:
19513 +# /etc/portage/patches/<CATEGORY>/<PF|P|PN>/
19514 +# Quote: where the first of these three directories to exist will be the one to
19515 +# use, ignoring any more general directories which might exist as well.
19516 +#
19517 +# For more details about it please take a look at the eutils.class.
19518 +
19519 +inherit base eutils flag-o-matic multilib toolchain-funcs
19520 +
19521 +case ${EAPI:-0} in
19522 + 4) ;;
19523 + *) die "EAPI ${EAPI} unsupported."
19524 +esac
19525 +
19526 +EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm pkg_config
19527 +
19528 +IUSE=""
19529 +
19530 +# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
19531 +VDRPLUGIN="${PN/#vdrplugin-/}"
19532 +VDRPLUGIN="${VDRPLUGIN/#vdr-/}"
19533 +VDRPLUGIN="${VDRPLUGIN/%-cvs/}"
19534 +
19535 +DESCRIPTION="vdr Plugin: ${VDRPLUGIN} (based on vdr-plugin-2.eclass)"
19536 +
19537 +# Works in most cases
19538 +S="${WORKDIR}/${VDRPLUGIN}-${PV}"
19539 +
19540 +# depend on headers for DVB-driver
19541 +COMMON_DEPEND=">=media-tv/gentoo-vdr-scripts-0.4.2"
19542 +
19543 +DEPEND="${COMMON_DEPEND}
19544 + virtual/linuxtv-dvb-headers"
19545 +RDEPEND="${COMMON_DEPEND}
19546 + >=app-admin/eselect-vdr-0.0.2"
19547 +
19548 +# This is a hack for ebuilds like vdr-xineliboutput that want to
19549 +# conditionally install a vdr-plugin
19550 +if [[ "${GENTOO_VDR_CONDITIONAL:-no}" = "yes" ]]; then
19551 + IUSE="${IUSE} vdr"
19552 + DEPEND="vdr? ( ${DEPEND} )"
19553 + RDEPEND="vdr? ( ${RDEPEND} )"
19554 +fi
19555 +
19556 +# New method of storing plugindb
19557 +# Called from src_install
19558 +# file maintained by normal portage-methods
19559 +create_plugindb_file() {
19560 + local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/
19561 + local DB_FILE="${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}"
19562 + insinto "${NEW_VDRPLUGINDB_DIR}"
19563 +
19564 +# BUG: portage-2.1.4_rc9 will delete the EBUILD= line, so we cannot use this code.
19565 +# cat <<-EOT > "${D}/${DB_FILE}"
19566 +# VDRPLUGIN_DB=1
19567 +# CREATOR=ECLASS
19568 +# EBUILD=${CATEGORY}/${PN}
19569 +# EBUILD_V=${PVR}
19570 +# EOT
19571 + {
19572 + echo "VDRPLUGIN_DB=1"
19573 + echo "CREATOR=ECLASS"
19574 + echo "EBUILD=${CATEGORY}/${PN}"
19575 + echo "EBUILD_V=${PVR}"
19576 + echo "PLUGINS=\"$@\""
19577 + } > "${D}/${DB_FILE}"
19578 +}
19579 +
19580 +# Delete files created outside of vdr-plugin-2.eclass
19581 +# vdrplugin-rebuild.ebuild converted plugindb and files are
19582 +# not deleted by portage itself - should only be needed as
19583 +# long as not every system has switched over to
19584 +# vdrplugin-rebuild-0.2 / gentoo-vdr-scripts-0.4.2
19585 +delete_orphan_plugindb_file() {
19586 + #elog Testing for orphaned plugindb file
19587 + local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/
19588 + local DB_FILE="${ROOT}/${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}"
19589 +
19590 + # file exists
19591 + [[ -f ${DB_FILE} ]] || return
19592 +
19593 + # will portage handle the file itself
19594 + if grep -q CREATOR=ECLASS "${DB_FILE}"; then
19595 + #elog file owned by eclass - don't touch it
19596 + return
19597 + fi
19598 +
19599 + elog "Removing orphaned plugindb-file."
19600 + elog "\t#rm ${DB_FILE}"
19601 + rm "${DB_FILE}"
19602 +}
19603 +
19604 +
19605 +create_header_checksum_file() {
19606 + # Danger: Not using $ROOT here, as compile will also not use it !!!
19607 + # If vdr in $ROOT and / differ, plugins will not run anyway
19608 +
19609 + local CHKSUM="header-md5-vdr"
19610 +
19611 + if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then
19612 + cp "${VDR_CHECKSUM_DIR}/header-md5-vdr" "${CHKSUM}"
19613 + elif type -p md5sum >/dev/null 2>&1; then
19614 + (
19615 + cd "${VDR_INCLUDE_DIR}"
19616 + md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
19617 + ) > "${CHKSUM}"
19618 + else
19619 + die "Could not create md5 checksum of headers"
19620 + fi
19621 +
19622 + insinto "${VDR_CHECKSUM_DIR}"
19623 + local p_name
19624 + for p_name; do
19625 + newins "${CHKSUM}" "header-md5-${p_name}"
19626 + done
19627 +}
19628 +
19629 +fix_vdr_libsi_include() {
19630 + dev_check "Fixing include of libsi-headers"
19631 + local f
19632 + for f; do
19633 + sed -i "${f}" \
19634 + -e '/#include/s:"\(.*libsi.*\)":<\1>:' \
19635 + -e '/#include/s:<.*\(libsi/.*\)>:<vdr/\1>:'
19636 + done
19637 +}
19638 +
19639 +vdr_patchmakefile() {
19640 + einfo "Patching Makefile"
19641 + [[ -e Makefile ]] || die "Makefile of plugin can not be found!"
19642 + cp Makefile "${WORKDIR}"/Makefile.before
19643 +
19644 + # plugin makefiles use VDRDIR in strange ways
19645 + # assumptions:
19646 + # 1. $(VDRDIR) contains Make.config
19647 + # 2. $(VDRDIR) contains config.h
19648 + # 3. $(VDRDIR)/include/vdr contains the headers
19649 + # 4. $(VDRDIR) contains main vdr Makefile
19650 + # 5. $(VDRDIR)/locale exists
19651 + # 6. $(VDRDIR) allows to access vdr source files
19652 + #
19653 + # We only have one directory (for now /usr/include/vdr),
19654 + # that contains vdr-headers and Make.config.
19655 + # To satisfy 1-3 we do this:
19656 + # Set VDRDIR=/usr/include/vdr
19657 + # Set VDRINCDIR=/usr/include
19658 + # Change $(VDRDIR)/include to $(VDRINCDIR)
19659 +
19660 + sed -i Makefile \
19661 + -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \
19662 + -e "/^VDRDIR/a VDRINCDIR = ${VDR_INCLUDE_DIR%/vdr}" \
19663 + -e '/VDRINCDIR.*=/!s:$(VDRDIR)/include:$(VDRINCDIR):' \
19664 + \
19665 + -e 's:-I$(DVBDIR)/include::' \
19666 + -e 's:-I$(DVBDIR)::'
19667 +
19668 + # may be needed for multiproto:
19669 + #sed -i Makefile \
19670 + # -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
19671 + # -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):'
19672 +
19673 + if ! grep -q APIVERSION Makefile; then
19674 + ebegin " Converting to APIVERSION"
19675 + sed -i Makefile \
19676 + -e 's:^APIVERSION = :APIVERSION ?= :' \
19677 + -e 's:$(LIBDIR)/$@.$(VDRVERSION):$(LIBDIR)/$@.$(APIVERSION):' \
19678 + -e '/VDRVERSION =/a\APIVERSION = $(shell sed -ne '"'"'/define APIVERSION/s/^.*"\\(.*\\)".*$$/\\1/p'"'"' $(VDRDIR)/config.h)'
19679 + eend $?
19680 + fi
19681 +
19682 + # Correcting Compile-Flags
19683 + # Do not overwrite CXXFLAGS, add LDFLAGS if missing
19684 + sed -i Makefile \
19685 + -e '/^CXXFLAGS[[:space:]]*=/s/=/?=/' \
19686 + -e '/LDFLAGS/!s:-shared:$(LDFLAGS) -shared:'
19687 +
19688 + # Disabling file stripping, the package manager takes care of it
19689 + sed -i Makefile \
19690 + -e '/@.*strip/d' \
19691 + -e '/strip \$(LIBDIR)\/\$@/d' \
19692 + -e 's/STRIP.*=.*$/STRIP = true/'
19693 +
19694 + # Use a file instead of a variable as single-stepping via ebuild
19695 + # destroys environment.
19696 + touch "${WORKDIR}"/.vdr-plugin_makefile_patched
19697 +}
19698 +
19699 +# Begin new vdr-plugin-2.eclass content
19700 +dev_check() {
19701 + # A lot useful debug infos
19702 + # set VDR_MAINTAINER_MODE="1" in /etc/make.conf
19703 + if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
19704 + eerror "\t Maintainer Info: $@"
19705 + fi
19706 +}
19707 +
19708 +gettext_missing() {
19709 + # plugins without converting to gettext
19710 +
19711 + local GETTEXT_MISSING=$( grep xgettext Makefile )
19712 + if [[ -z ${GETTEXT_MISSING} ]]; then
19713 + dev_check "Plugin isn't converted to gettext handling \n"
19714 + fi
19715 +}
19716 +
19717 +linguas_support() {
19718 +# Patching Makefile for linguas support.
19719 +# Only locales, enabled through the LINGUAS (make.conf) variable will be
19720 +# "compiled" and installed.
19721 +#
19722 +# Some plugins have po/ in a subdir
19723 +# set PO_SUBDIR in .ebuild
19724 +# i.e media-plugins/vdr-streamdev
19725 +# PO_SUBDIR="client server"
19726 +
19727 + einfo "Patching for Linguas support"
19728 + einfo "available Languages for ${P} are:"
19729 +
19730 + [[ -f po ]] && local po_dir="${S}"
19731 + local po_subdir=( ${S}/${PO_SUBDIR} )
19732 + local f
19733 +
19734 + makefile_dir=( ${po_dir} ${po_subdir[*]} )
19735 +
19736 + for f in ${makefile_dir[*]}; do
19737 +
19738 + PLUGIN_LINGUAS=$( ls ${f}/po | tr \\\012 ' ' | tr -d [:upper:] | tr -d [:punct:] |sed -e "s:po::g" )
19739 + einfo "LINGUAS=\"${PLUGIN_LINGUAS}\""
19740 +
19741 + sed -i ${f}/Makefile \
19742 + -e 's:\$(wildcard[[:space:]]*\$(PODIR)/\*.po):\$(foreach dir,\$(LINGUAS),\$(wildcard \$(PODIR)\/\$(dir)\*.po)):' \
19743 + || die "sed failed for Linguas"
19744 + done
19745 +
19746 + strip-linguas ${PLUGIN_LINGUAS} en
19747 +
19748 + # maintainer check
19749 + if [[ ! -d po ]]; then
19750 + dev_check "po dir not found? May be in subdir? \n"
19751 + fi
19752 +}
19753 +
19754 +vdr_i18n() {
19755 +# i18n handling was deprecated since >=media-video/vdr-1.5.9,
19756 +# finally with >=media-video/vdr-1.7.27 it has been dropped entirely and some
19757 +# plugins will fail to "compile" because they're still using the old variant.
19758 +# Simply remove the i18n.o object from Makefile (OBJECT) and
19759 +# remove "static const tI18nPhrase*" from i18n.h.
19760 +#
19761 +# Plugins that are still using the old method will be pmasked until they're
19762 +# fixed or in case of maintainer timeout they'll be masked for removal.
19763 +
19764 + gettext_missing
19765 +
19766 + local I18N_OBJECT=$( grep i18n.o Makefile )
19767 + if [[ -n ${I18N_OBJECT} ]]; then
19768 +
19769 + if [[ "${KEEP_I18NOBJECT:-no}" = "yes" ]]; then
19770 + dev_check "Forced to keep i18n.o"
19771 + else
19772 + sed -i "s:i18n.o::g" Makefile
19773 + dev_check "OBJECT i18n.o found"
19774 + dev_check "removed per sed \n"
19775 + fi
19776 +
19777 + else
19778 + dev_check "OBJECT i18n.o not found in Makefile"
19779 + dev_check "all fine or manual review needed? \n"
19780 + fi
19781 +
19782 + local I18N_STRING=$( [[ -e i18n.h ]] && grep tI18nPhrase i18n.h )
19783 + if [[ -n ${I18N_STRING} ]]; then
19784 + sed -i "s:^extern[[:space:]]*const[[:space:]]*tI18nPhrase://static const tI18nPhrase:" i18n.h
19785 + dev_check "obsolete tI18nPhrase found"
19786 + dev_check "disabled per sed, please recheck \n"
19787 + else
19788 + dev_check "obsolete tI18nPhrase not found, fine..."
19789 + dev_check "please review, may be in subdir... \n"
19790 + fi
19791 +}
19792 +# end new vdr-plugin-2.eclass content
19793 +
19794 +vdr-plugin-2_copy_source_tree() {
19795 + pushd . >/dev/null
19796 + cp -r "${S}" "${T}"/source-tree
19797 + cd "${T}"/source-tree
19798 + cp "${WORKDIR}"/Makefile.before Makefile
19799 + # TODO: Fix this, maybe no longer needed
19800 + sed -i Makefile \
19801 + -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
19802 + -e 's:^CXXFLAGS:#CXXFLAGS:' \
19803 + -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \
19804 + -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):'
19805 + popd >/dev/null
19806 +}
19807 +
19808 +vdr-plugin-2_install_source_tree() {
19809 + einfo "Installing sources"
19810 + destdir="${VDRSOURCE_DIR}/vdr-${VDRVERSION}/PLUGINS/src/${VDRPLUGIN}"
19811 + insinto "${destdir}-${PV}"
19812 + doins -r "${T}"/source-tree/*
19813 +
19814 + dosym "${VDRPLUGIN}-${PV}" "${destdir}"
19815 +}
19816 +
19817 +vdr-plugin-2_print_enable_command() {
19818 + local p_name c=0 l=""
19819 + for p_name in ${vdr_plugin_list}; do
19820 + c=$(( c+1 ))
19821 + l="$l ${p_name#vdr-}"
19822 + done
19823 +
19824 + elog
19825 + case $c in
19826 + 1) elog "Installed plugin${l}" ;;
19827 + *) elog "Installed $c plugins:${l}" ;;
19828 + esac
19829 + elog "To activate a plugin execute this command:"
19830 + elog "\teselect vdr-plugin enable <plugin_name> ..."
19831 + elog
19832 +}
19833 +
19834 +has_vdr() {
19835 + [[ -f "${VDR_INCLUDE_DIR}"/config.h ]]
19836 +}
19837 +
19838 +## exported functions
19839 +
19840 +vdr-plugin-2_pkg_setup() {
19841 + # -fPIC is needed for shared objects on some platforms (amd64 and others)
19842 + append-flags -fPIC
19843 +
19844 + # Plugins need to be compiled with position independent code, otherwise linking
19845 + # VDR against it will fail
19846 + if has_version ">=media-video/vdr-1.7.13"; then
19847 + append-cppflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
19848 + fi
19849 +
19850 + # missing ${chost}- tag
19851 + tc-export CC CXX
19852 +
19853 + # Where should the plugins live in the filesystem
19854 + VDR_PLUGIN_DIR="/usr/$(get_libdir)/vdr/plugins"
19855 + VDR_CHECKSUM_DIR="${VDR_PLUGIN_DIR%/plugins}/checksums"
19856 +
19857 + # was /usr/lib/... some time ago
19858 + # since gentoo-vdr-scripts-0.3.6 it works with /usr/share/...
19859 + VDR_RC_DIR="/usr/share/vdr/rcscript"
19860 +
19861 + # Pathes to includes
19862 + VDR_INCLUDE_DIR="/usr/include/vdr"
19863 + DVB_INCLUDE_DIR="/usr/include"
19864 +
19865 + TMP_LOCALE_DIR="${WORKDIR}/tmp-locale"
19866 + LOCDIR="/usr/share/locale"
19867 +
19868 + if ! has_vdr; then
19869 + # set to invalid values to detect abuses
19870 + VDRVERSION="eclass_no_vdr_installed"
19871 + APIVERSION="eclass_no_vdr_installed"
19872 +
19873 + if [[ "${GENTOO_VDR_CONDITIONAL:-no}" = "yes" ]] && ! use vdr; then
19874 + einfo "VDR not found!"
19875 + else
19876 + # if vdr is required
19877 + die "VDR not found!"
19878 + fi
19879 + return
19880 + fi
19881 +
19882 + VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
19883 + APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
19884 + [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
19885 +
19886 + einfo "Compiling against"
19887 + einfo "\tvdr-${VDRVERSION} [API version ${APIVERSION}]"
19888 +
19889 + if [[ -n "${VDR_LOCAL_PATCHES_DIR}" ]]; then
19890 + eerror "Using VDR_LOCAL_PATCHES_DIR is deprecated!"
19891 + eerror "Please move all your patches into"
19892 + eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}"
19893 + eerror "and remove or unset the VDR_LOCAL_PATCHES_DIR variable."
19894 + die
19895 + fi
19896 +}
19897 +
19898 +vdr-plugin-2_src_util() {
19899 + while [ "$1" ]; do
19900 + case "$1" in
19901 + all)
19902 + vdr-plugin-2_src_util unpack add_local_patch patchmakefile linguas_patch i18n
19903 + ;;
19904 + prepare)
19905 + vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n
19906 + ;;
19907 + unpack)
19908 + base_src_unpack
19909 + ;;
19910 + add_local_patch)
19911 + cd "${S}" || die "Could not change to plugin-source-directory!"
19912 + epatch_user
19913 + ;;
19914 + patchmakefile)
19915 + cd "${S}" || die "Could not change to plugin-source-directory!"
19916 + vdr_patchmakefile
19917 + ;;
19918 + i18n)
19919 + vdr_i18n
19920 + ;;
19921 + linguas_patch)
19922 + linguas_support
19923 + ;;
19924 + esac
19925 +
19926 + shift
19927 + done
19928 +}
19929 +
19930 +vdr-plugin-2_src_unpack() {
19931 + if [[ -z ${VDR_INCLUDE_DIR} ]]; then
19932 + eerror "Wrong use of vdr-plugin-2.eclass."
19933 + eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_unpack."
19934 + echo
19935 + eerror "Please report this at bugs.gentoo.org."
19936 + die "vdr-plugin-2_src_unpack not called!"
19937 + fi
19938 +
19939 + if [ -z "$1" ]; then
19940 + vdr-plugin-2_src_util unpack
19941 + else
19942 + vdr-plugin-2_src_util $@
19943 + fi
19944 +}
19945 +
19946 +vdr-plugin-2_src_prepare() {
19947 + if [[ -z ${VDR_INCLUDE_DIR} ]]; then
19948 + eerror "Wrong use of vdr-plugin-2.eclass."
19949 + eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_prepare."
19950 + echo
19951 + eerror "Please report this at bugs.gentoo.org."
19952 + die "vdr-plugin-2_src_prepare not called!"
19953 + fi
19954 +
19955 + base_src_prepare
19956 + vdr-plugin-2_src_util prepare
19957 +}
19958 +
19959 +vdr-plugin-2_src_compile() {
19960 + [ -z "$1" ] && vdr-plugin-2_src_compile copy_source compile
19961 +
19962 + while [ "$1" ]; do
19963 + case "$1" in
19964 + copy_source)
19965 + [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin-2_copy_source_tree
19966 + ;;
19967 + compile)
19968 + if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then
19969 + eerror "Wrong use of vdr-plugin-2.eclass."
19970 + eerror "An ebuild for a vdr-plugin will not work without"
19971 + eerror "calling vdr-plugin-2_src_compile to patch the Makefile."
19972 + echo
19973 + eerror "Please report this at bugs.gentoo.org."
19974 + die "vdr-plugin-2_src_compile not called!"
19975 + fi
19976 + cd "${S}"
19977 +
19978 + BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}}
19979 +
19980 + emake ${BUILD_PARAMS} \
19981 + ${BUILD_TARGETS} \
19982 + LOCALEDIR="${TMP_LOCALE_DIR}" \
19983 + LIBDIR="${S}" \
19984 + TMPDIR="${T}" \
19985 + || die "emake failed"
19986 + ;;
19987 + esac
19988 +
19989 + shift
19990 + done
19991 +}
19992 +
19993 +vdr-plugin-2_src_install() {
19994 + if [[ -z ${VDR_INCLUDE_DIR} ]]; then
19995 + eerror "Wrong use of vdr-plugin-2.eclass."
19996 + eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_install."
19997 + echo
19998 + eerror "Please report this at bugs.gentoo.org."
19999 + die "vdr-plugin-2_src_install not called!"
20000 + fi
20001 +
20002 + [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin-2_install_source_tree
20003 + cd "${WORKDIR}"
20004 +
20005 + if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
20006 + local mname="${P}-Makefile"
20007 + cp "${S}"/Makefile "${mname}.patched"
20008 + cp Makefile.before "${mname}.before"
20009 +
20010 + diff -u "${mname}.before" "${mname}.patched" > "${mname}.diff"
20011 +
20012 + insinto "/usr/share/vdr/maintainer-data/makefile-changes"
20013 + doins "${mname}.diff"
20014 +
20015 + insinto "/usr/share/vdr/maintainer-data/makefile-before"
20016 + doins "${mname}.before"
20017 +
20018 + insinto "/usr/share/vdr/maintainer-data/makefile-patched"
20019 + doins "${mname}.patched"
20020 +
20021 + fi
20022 +
20023 + cd "${S}"
20024 + insinto "${VDR_PLUGIN_DIR}"
20025 + doins libvdr-*.so.*
20026 +
20027 + # create list of all created plugin libs
20028 + vdr_plugin_list=""
20029 + local p_name
20030 + for p in libvdr-*.so.*; do
20031 + p_name="${p%.so*}"
20032 + p_name="${p_name#lib}"
20033 + vdr_plugin_list="${vdr_plugin_list} ${p_name}"
20034 + done
20035 +
20036 + create_header_checksum_file ${vdr_plugin_list}
20037 + create_plugindb_file ${vdr_plugin_list}
20038 +
20039 + if [[ -d ${TMP_LOCALE_DIR} ]]; then
20040 + einfo "Installing locales"
20041 + cd "${TMP_LOCALE_DIR}"
20042 + local linguas
20043 + for linguas in ${LINGUAS[*]}; do
20044 + insinto "${LOCDIR}"
20045 + cp -r --parents ${linguas}* ${D}/${LOCDIR}
20046 + done
20047 + fi
20048 +
20049 + cd "${S}"
20050 + local docfile
20051 + for docfile in README* HISTORY CHANGELOG; do
20052 + [[ -f ${docfile} ]] && dodoc ${docfile}
20053 + done
20054 +
20055 + # if VDR_CONFD_FILE is empty and ${FILESDIR}/confd exists take it
20056 + [[ -z ${VDR_CONFD_FILE} ]] && [[ -e ${FILESDIR}/confd ]] && VDR_CONFD_FILE=${FILESDIR}/confd
20057 +
20058 + if [[ -n ${VDR_CONFD_FILE} ]]; then
20059 + newconfd "${VDR_CONFD_FILE}" vdr.${VDRPLUGIN}
20060 + fi
20061 +
20062 + # if VDR_RCADDON_FILE is empty and ${FILESDIR}/rc-addon.sh exists take it
20063 + [[ -z ${VDR_RCADDON_FILE} ]] && [[ -e ${FILESDIR}/rc-addon.sh ]] && VDR_RCADDON_FILE=${FILESDIR}/rc-addon.sh
20064 +
20065 + if [[ -n ${VDR_RCADDON_FILE} ]]; then
20066 + insinto "${VDR_RC_DIR}"
20067 + newins "${VDR_RCADDON_FILE}" plugin-${VDRPLUGIN}.sh
20068 + fi
20069 +}
20070 +
20071 +vdr-plugin-2_pkg_postinst() {
20072 + vdr-plugin-2_print_enable_command
20073 +
20074 + if [[ -n "${VDR_CONFD_FILE}" ]]; then
20075 + elog "Please have a look at the config-file"
20076 + elog "\t/etc/conf.d/vdr.${VDRPLUGIN}"
20077 + elog
20078 + fi
20079 +}
20080 +
20081 +vdr-plugin-2_pkg_postrm() {
20082 + delete_orphan_plugindb_file
20083 +}
20084 +
20085 +vdr-plugin-2_pkg_config() {
20086 +:
20087 +}
20088
20089 diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
20090 index 31b7827..ba7ccfe 100644
20091 --- a/eclass/xorg-2.eclass
20092 +++ b/eclass/xorg-2.eclass
20093 @@ -186,10 +186,18 @@ DEPEND+=" virtual/pkgconfig"
20094 # Eg. XORG_DRI="opengl" will pull all dri dependant deps for opengl useflag
20095 : ${XORG_DRI:="no"}
20096
20097 +if [[ "${EAPI:-0}" == "4-slot-abi" ]]; then
20098 +DRI_COMMON_DEPEND="
20099 + x11-base/xorg-server:=[-minimal]
20100 + x11-libs/libdrm
20101 +"
20102 +else
20103 DRI_COMMON_DEPEND="
20104 x11-base/xorg-server[-minimal]
20105 x11-libs/libdrm
20106 "
20107 +fi
20108 +
20109 DRI_DEPEND="
20110 x11-proto/xf86driproto
20111 x11-proto/glproto
20112 @@ -212,9 +220,15 @@ unset DRI_DEPEND
20113 unset DRI_COMMONDEPEND
20114
20115 if [[ -n "${DRIVER}" ]]; then
20116 + if [[ "${EAPI:-0}" == "4-slot-abi" ]]; then
20117 + COMMON_DEPEND+="
20118 + x11-base/xorg-server:=[xorg]
20119 + "
20120 + else
20121 COMMON_DEPEND+="
20122 x11-base/xorg-server[xorg]
20123 "
20124 + fi
20125 fi
20126 if [[ -n "${DRIVER}" && ${PN} == xf86-input-* ]]; then
20127 DEPEND+="
20128
20129 diff --git a/media-gfx/freewrl/Manifest b/media-gfx/freewrl/Manifest
20130 new file mode 100644
20131 index 0000000..35d4abf
20132 --- /dev/null
20133 +++ b/media-gfx/freewrl/Manifest
20134 @@ -0,0 +1,5 @@
20135 +AUX freewrl-1.22.13-mozjs187-config.patch 486 RMD160 fc43389030643b36b6322b90b10944e8221402c5 SHA1 88f9807b4e38de2ebb4f33123b595d54125ceba0 SHA256 340a489d70b1e0d450b779f35686f09c1a50ba62cd8de5bb34340dec8c5ad561
20136 +DIST freewrl-1.22.13.1.tar.bz2 1830305 RMD160 ce4ccd5fcdcc547f7ad6f00f5b38df176a7f80ac SHA1 ace2425c3006955e3846c5f879237c697e805e45 SHA256 29069d63604dbbfde0f684f342f34e9d0eb216a026f83317a00fbdd31ece17e8
20137 +EBUILD freewrl-1.22.13.ebuild 4358 RMD160 b0ac51e718f494f839a8029e970b033a7c85c85c SHA1 dfe91e0955181baa129870d94c84c526f827c140 SHA256 2c3248f007d87bd59b74912cfff5c69f693df7f3e9d9e6366426a056b513ac65
20138 +MISC ChangeLog 6575 RMD160 dae1a748203b10b284e4ea9678fa371d0695f6f2 SHA1 59ebef449c11997676f4027f83a445c883b6fff8 SHA256 c7436c224f85b4ba6d10e024e0692fc318996954f3d0197deaee48cd908ee072
20139 +MISC metadata.xml 547 RMD160 9d5b1f027da48321e26e79fafbe6f8a0695dd307 SHA1 26476c1d5f7e99b2498462a351018dbf16ddd934 SHA256 7d745ed3fa96fd3febcb5f3f9891b87c29a8c24ac7614840c6f7a378b20feb37
20140
20141 diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch
20142 new file mode 100644
20143 index 0000000..645a231
20144 --- /dev/null
20145 +++ b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch
20146 @@ -0,0 +1,10 @@
20147 +--- a/configure.ac 2012-06-13 13:17:43.000000000 -0400
20148 ++++ b/configure.ac 2012-06-18 15:34:59.000000000 -0400
20149 +@@ -192,6 +192,7 @@
20150 + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[spidermonkey],[>=],[1.7.0])
20151 + ;;
20152 + *)
20153 ++ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs187])
20154 + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs185])
20155 + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozilla-js],[>=],[1.9])
20156 + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[xulrunner-js],[>=],[1.8])
20157
20158 diff --git a/media-gfx/freewrl/freewrl-1.22.13.ebuild b/media-gfx/freewrl/freewrl-1.22.13.ebuild
20159 new file mode 100644
20160 index 0000000..b85259f
20161 --- /dev/null
20162 +++ b/media-gfx/freewrl/freewrl-1.22.13.ebuild
20163 @@ -0,0 +1,135 @@
20164 +# Copyright 1999-2012 Gentoo Foundation
20165 +# Distributed under the terms of the GNU General Public License v2
20166 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.13.ebuild,v 1.3 2012/06/13 18:05:51 axs Exp $
20167 +
20168 +EAPI="4-slot-abi"
20169 +
20170 +inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
20171 +
20172 +DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
20173 +HOMEPAGE="http://freewrl.sourceforge.net/"
20174 +SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.bz2"
20175 +
20176 +LICENSE="GPL-3"
20177 +SLOT="0"
20178 +KEYWORDS="~amd64 ~x86"
20179 +IUSE="curl debug +glew java libeai motif +nsplugin osc +sox static-libs"
20180 +
20181 +COMMONDEPEND="x11-libs/libXau:=
20182 + x11-libs/libXdmcp:=
20183 + x11-libs/libXext:=
20184 + x11-libs/libX11:=
20185 + motif? ( x11-libs/openmotif:= )
20186 + !motif? ( x11-libs/libXaw:= )
20187 + media-libs/mesa
20188 + glew? ( media-libs/glew )
20189 + virtual/opengl
20190 + media-libs/libpng
20191 + virtual/jpeg
20192 + media-libs/imlib2:=
20193 + >=media-libs/freetype-2
20194 + media-libs/fontconfig
20195 + curl? ( net-misc/curl )
20196 + osc? ( media-libs/liblo )
20197 + dev-lang/spidermonkey:="
20198 +DEPEND="${COMMONDEPEND}
20199 + virtual/pkgconfig
20200 + java? ( >=virtual/jdk-1.4 )
20201 + nsplugin? ( net-misc/npapi-sdk )"
20202 +RDEPEND="${COMMONDEPEND}
20203 + media-fonts/dejavu
20204 + || ( media-gfx/imagemagick
20205 + media-gfx/graphicsmagick[imagemagick] )
20206 + app-arch/unzip
20207 + java? ( >=virtual/jre-1.4 )
20208 + sox? ( media-sound/sox )"
20209 +
20210 +src_prepare() {
20211 + if has_version ">=dev-lang/spidermonkey-1.8.7" ; then
20212 + epatch "${FILESDIR}"/${P}-mozjs187-config.patch
20213 + eautoreconf
20214 + fi
20215 +}
20216 +
20217 +src_configure() {
20218 + local myconf="--enable-fontconfig
20219 + --without-expat
20220 + --with-x
20221 + --with-imageconvert=/usr/bin/convert
20222 + --with-unzip=/usr/bin/unzip"
20223 + if use motif; then
20224 + myconf+=" --with-target=motif --with-statusbar=standard"
20225 + else
20226 + myconf+=" --with-target=x11 --with-statusbar=hud"
20227 + fi
20228 + if use nsplugin; then
20229 + myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
20230 + myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
20231 + fi
20232 + if use sox; then
20233 + myconf+=" --with-soundconv=/usr/bin/sox"
20234 + fi
20235 + # disable the checks for other js libs, in case they are installed
20236 + if has_version ">=dev-lang/spidermonkey-1.8.5" ; then
20237 + # spidermonkey-1.8.5 provides a .pc to pkg-config, it should be findable via mozjs185
20238 + for x in mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js; do
20239 + myconf+=" --disable-${x}"
20240 + done
20241 + else
20242 + for x in mozjs187 mozjs185 mozilla-js xulrunner-js firefox-js seamonkey-js; do
20243 + myconf+=" --disable-${x}"
20244 + done
20245 + # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
20246 + JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
20247 + if has_version ">=dev-lang/spidermonkey-1.8" ; then
20248 + # spidermonkey-1.8 changed the name of the lib
20249 + JAVASCRIPT_ENGINE_LIBS="-lmozjs"
20250 + else
20251 + JAVASCRIPT_ENGINE_LIBS="-ljs"
20252 + fi
20253 + if has_version dev-lang/spidermonkey[threadsafe] ; then
20254 + JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
20255 + JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
20256 + fi
20257 + export JAVASCRIPT_ENGINE_CFLAGS
20258 + export JAVASCRIPT_ENGINE_LIBS
20259 + fi
20260 + econf ${myconf} \
20261 + $(use_enable curl libcurl) \
20262 + $(use_with glew) \
20263 + $(use_enable debug) $(use_enable debug thread_colorized) \
20264 + $(use_enable libeai) \
20265 + $(use_enable java) \
20266 + $(use_enable nsplugin plugin) \
20267 + $(use_enable osc) \
20268 + $(use_enable static-libs static) \
20269 + $(use_enable sox sound)
20270 +}
20271 +
20272 +src_install() {
20273 + emake DESTDIR="${D}" install
20274 +
20275 + if use java; then
20276 + insinto /usr/share/${PN}/lib
20277 + doins src/java/java.policy
20278 + java-pkg_regjar src/java/vrml.jar
20279 + # install vrml.jar as a JRE extension
20280 + dodir /usr/java/packages/lib/ext
20281 + dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
20282 + elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
20283 + elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
20284 + elog "java policy:"
20285 + elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
20286 + fi
20287 +
20288 + # remove unneeded .la files (as per Flameeyes' rant)
20289 + cd "${D}"
20290 + rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
20291 +}
20292 +
20293 +pkg_postinst() {
20294 + elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
20295 + elog "path. If you do not have firefox installed or you wish to use a different"
20296 + elog "web browser to open links that are within VRML / X3D files, please be sure to"
20297 + elog "specify the command via your BROWSER environment variable."
20298 +}
20299
20300 diff --git a/media-gfx/graphite2/files/graphite2-1.0.2-no_harfbuzz_tests.patch b/media-gfx/graphite2/files/graphite2-1.0.2-no_harfbuzz_tests.patch
20301 new file mode 100644
20302 index 0000000..eb41334
20303 --- /dev/null
20304 +++ b/media-gfx/graphite2/files/graphite2-1.0.2-no_harfbuzz_tests.patch
20305 @@ -0,0 +1,12 @@
20306 +diff -urN graphite2-1.0.2.old/tests/comparerenderer/CMakeLists.txt graphite2-1.0.2/tests/comparerenderer/CMakeLists.txt
20307 +--- graphite2-1.0.2.old/tests/comparerenderer/CMakeLists.txt 2011-09-04 13:39:16.206450690 +0200
20308 ++++ graphite2-1.0.2/tests/comparerenderer/CMakeLists.txt 2011-09-04 13:39:44.516450716 +0200
20309 +@@ -43,7 +43,7 @@
20310 + find_package(PkgConfig)
20311 +
20312 + pkg_check_modules(GR silgraphite)
20313 +- pkg_check_modules(HB harfbuzz)
20314 ++ #pkg_check_modules(HB harfbuzz)
20315 + pkg_check_modules(GLIB glib-2.0)
20316 + # pkg_check_modules(GRNG graphite)
20317 +
20318
20319 diff --git a/media-gfx/graphite2/files/graphite2-1.0.3-no-test-binaries.patch b/media-gfx/graphite2/files/graphite2-1.0.3-no-test-binaries.patch
20320 new file mode 100644
20321 index 0000000..bbc28f5
20322 --- /dev/null
20323 +++ b/media-gfx/graphite2/files/graphite2-1.0.3-no-test-binaries.patch
20324 @@ -0,0 +1,9 @@
20325 +diff -urN graphite2-1.0.3.old/tests/comparerenderer/CMakeLists.txt graphite2-1.0.3/tests/comparerenderer/CMakeLists.txt
20326 +--- graphite2-1.0.3.old/tests/comparerenderer/CMakeLists.txt 2011-10-28 10:28:43.688602080 +0200
20327 ++++ graphite2-1.0.3/tests/comparerenderer/CMakeLists.txt 2011-10-28 10:30:06.694603526 +0200
20328 +@@ -132,4 +132,4 @@
20329 + # comparetest(scheherazade_arb Scheherazadegr.ttf udhr_arb.txt --rtl)
20330 +
20331 + # comparerenderer can also be used for font testing
20332 +-install(TARGETS comparerenderer EXPORT comparerenderer RUNTIME DESTINATION bin)
20333 ++# install(TARGETS comparerenderer EXPORT comparerenderer RUNTIME DESTINATION bin)
20334
20335 diff --git a/media-gfx/graphite2/files/graphite2-1.1.0-includes-libs-perl.patch b/media-gfx/graphite2/files/graphite2-1.1.0-includes-libs-perl.patch
20336 new file mode 100644
20337 index 0000000..be41229
20338 --- /dev/null
20339 +++ b/media-gfx/graphite2/files/graphite2-1.1.0-includes-libs-perl.patch
20340 @@ -0,0 +1,13 @@
20341 +--- graphite2-0.9.3.orig/contrib/perl/Build.PL
20342 ++++ graphite2-0.9.3/contrib/perl/Build.PL
20343 +@@ -8,8 +8,8 @@ my $builder = Module::Build->new(
20344 + dist_author => 'Simon Cozens <simon@××××.org>',
20345 + dist_version_from => 'lib/Text/Graphite2.pm',
20346 + extra_compiler_flags => $^O ne 'MSWin32' ? '-Wall -Wno-unused-variable' : '',
20347 +- extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-lgraphite2',
20348 +- include_dirs => ['.'],
20349 ++ extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-L @BUILD_DIR@ -lgraphite2',
20350 ++ include_dirs => ['.', '../../include'],
20351 + requires => {
20352 + 'Test::More' => 0,
20353 + },
20354
20355 diff --git a/media-gfx/graphite2/files/graphite2-fix_wrong_linker_opts.patch b/media-gfx/graphite2/files/graphite2-fix_wrong_linker_opts.patch
20356 new file mode 100644
20357 index 0000000..edacd73
20358 --- /dev/null
20359 +++ b/media-gfx/graphite2/files/graphite2-fix_wrong_linker_opts.patch
20360 @@ -0,0 +1,11 @@
20361 +diff -urN graphite2-1.0.1.old/src/CMakeLists.txt graphite2-1.0.1/src/CMakeLists.txt
20362 +--- graphite2-1.0.1.old/src/CMakeLists.txt 2011-08-11 10:57:24.737639566 +0200
20363 ++++ graphite2-1.0.1/src/CMakeLists.txt 2011-08-11 10:57:47.880350242 +0200
20364 +@@ -103,7 +103,6 @@
20365 + -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -fdiagnostics-show-option
20366 + -fno-rtti -fno-exceptions -nodefaultlibs
20367 + -fvisibility=hidden -fvisibility-inlines-hidden -fno-stack-protector)
20368 +- set_target_properties(graphite2 PROPERTIES LINK_FLAGS "-nodefaultlibs" LINKER_LANGUAGE C)
20369 + if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
20370 + target_link_libraries(graphite2 "-lkernel32 -lmsvcr90 -lmingw32 -lgcc -luser32")
20371 + else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
20372
20373 diff --git a/media-libs/exiftool/exiftool-8.50.ebuild b/media-libs/exiftool/exiftool-8.50.ebuild
20374 new file mode 100644
20375 index 0000000..29b6b68
20376 --- /dev/null
20377 +++ b/media-libs/exiftool/exiftool-8.50.ebuild
20378 @@ -0,0 +1,26 @@
20379 +# Copyright 1999-2012 Gentoo Foundation
20380 +# Distributed under the terms of the GNU General Public License v2
20381 +# $Header: /var/cvsroot/gentoo-x86/media-libs/exiftool/exiftool-8.50.ebuild,v 1.7 2012/02/05 18:28:15 armin76 Exp $
20382 +
20383 +EAPI=2
20384 +
20385 +MODULE_AUTHOR=EXIFTOOL
20386 +MY_PN=Image-ExifTool
20387 +MY_P=${MY_PN}-${PV}
20388 +S=${WORKDIR}/${MY_P}
20389 +inherit perl-module
20390 +
20391 +DESCRIPTION="Read and write meta information in image, audio and video files"
20392 +HOMEPAGE="http://www.sno.phy.queensu.ca/~phil/exiftool/ ${HOMEPAGE}"
20393 +SRC_URI="${SRC_URI} http://www.sno.phy.queensu.ca/~phil/exiftool/${MY_P}.tar.gz"
20394 +
20395 +SLOT="0"
20396 +KEYWORDS="amd64 ppc ppc64 x86"
20397 +IUSE=""
20398 +
20399 +SRC_TEST="do"
20400 +
20401 +src_install() {
20402 + perl-module_src_install
20403 + dohtml -r html/
20404 +}
20405
20406 diff --git a/media-libs/exiftool/exiftool-8.60.ebuild b/media-libs/exiftool/exiftool-8.60.ebuild
20407 new file mode 100644
20408 index 0000000..99556bf
20409 --- /dev/null
20410 +++ b/media-libs/exiftool/exiftool-8.60.ebuild
20411 @@ -0,0 +1,26 @@
20412 +# Copyright 1999-2012 Gentoo Foundation
20413 +# Distributed under the terms of the GNU General Public License v2
20414 +# $Header: /var/cvsroot/gentoo-x86/media-libs/exiftool/exiftool-8.60.ebuild,v 1.2 2012/02/05 18:28:15 armin76 Exp $
20415 +
20416 +EAPI=2
20417 +
20418 +MODULE_AUTHOR=EXIFTOOL
20419 +MY_PN=Image-ExifTool
20420 +MY_P=${MY_PN}-${PV}
20421 +S=${WORKDIR}/${MY_P}
20422 +inherit perl-module
20423 +
20424 +DESCRIPTION="Read and write meta information in image, audio and video files"
20425 +HOMEPAGE="http://www.sno.phy.queensu.ca/~phil/exiftool/ ${HOMEPAGE}"
20426 +SRC_URI="${SRC_URI} http://www.sno.phy.queensu.ca/~phil/exiftool/${MY_P}.tar.gz"
20427 +
20428 +SLOT="0"
20429 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
20430 +IUSE=""
20431 +
20432 +SRC_TEST="do"
20433 +
20434 +src_install() {
20435 + perl-module_src_install
20436 + dohtml -r html/
20437 +}
20438
20439 diff --git a/media-libs/exiftool/exiftool-8.65.ebuild b/media-libs/exiftool/exiftool-8.65.ebuild
20440 new file mode 100644
20441 index 0000000..54cdb8e
20442 --- /dev/null
20443 +++ b/media-libs/exiftool/exiftool-8.65.ebuild
20444 @@ -0,0 +1,26 @@
20445 +# Copyright 1999-2012 Gentoo Foundation
20446 +# Distributed under the terms of the GNU General Public License v2
20447 +# $Header: /var/cvsroot/gentoo-x86/media-libs/exiftool/exiftool-8.65.ebuild,v 1.4 2012/02/05 18:28:15 armin76 Exp $
20448 +
20449 +EAPI=2
20450 +
20451 +MODULE_AUTHOR=EXIFTOOL
20452 +MY_PN=Image-ExifTool
20453 +MY_P=${MY_PN}-${PV}
20454 +S=${WORKDIR}/${MY_P}
20455 +inherit perl-module
20456 +
20457 +DESCRIPTION="Read and write meta information in image, audio and video files"
20458 +HOMEPAGE="http://www.sno.phy.queensu.ca/~phil/exiftool/ ${HOMEPAGE}"
20459 +SRC_URI="${SRC_URI} http://www.sno.phy.queensu.ca/~phil/exiftool/${MY_P}.tar.gz"
20460 +
20461 +SLOT="0"
20462 +KEYWORDS="amd64 ~ppc ~ppc64 x86"
20463 +IUSE=""
20464 +
20465 +SRC_TEST="do"
20466 +
20467 +src_install() {
20468 + perl-module_src_install
20469 + dohtml -r html/
20470 +}
20471
20472 diff --git a/media-libs/exiftool/exiftool-8.75.ebuild b/media-libs/exiftool/exiftool-8.75.ebuild
20473 new file mode 100644
20474 index 0000000..b9f4f9c
20475 --- /dev/null
20476 +++ b/media-libs/exiftool/exiftool-8.75.ebuild
20477 @@ -0,0 +1,26 @@
20478 +# Copyright 1999-2012 Gentoo Foundation
20479 +# Distributed under the terms of the GNU General Public License v2
20480 +# $Header: /var/cvsroot/gentoo-x86/media-libs/exiftool/exiftool-8.75.ebuild,v 1.2 2012/02/05 18:28:15 armin76 Exp $
20481 +
20482 +EAPI=2
20483 +
20484 +MODULE_AUTHOR=EXIFTOOL
20485 +MY_PN=Image-ExifTool
20486 +MY_P=${MY_PN}-${PV}
20487 +S=${WORKDIR}/${MY_P}
20488 +inherit perl-module
20489 +
20490 +DESCRIPTION="Read and write meta information in image, audio and video files"
20491 +HOMEPAGE="http://www.sno.phy.queensu.ca/~phil/exiftool/ ${HOMEPAGE}"
20492 +SRC_URI="${SRC_URI} http://www.sno.phy.queensu.ca/~phil/exiftool/${MY_P}.tar.gz"
20493 +
20494 +SLOT="0"
20495 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
20496 +IUSE=""
20497 +
20498 +SRC_TEST="do"
20499 +
20500 +src_install() {
20501 + perl-module_src_install
20502 + dohtml -r html/
20503 +}
20504
20505 diff --git a/media-tv/dvbstreamer/dvbstreamer-1.1-r1.ebuild b/media-tv/dvbstreamer/dvbstreamer-1.1-r1.ebuild
20506 new file mode 100644
20507 index 0000000..56635b0
20508 --- /dev/null
20509 +++ b/media-tv/dvbstreamer/dvbstreamer-1.1-r1.ebuild
20510 @@ -0,0 +1,40 @@
20511 +# Copyright 1999-2012 Gentoo Foundation
20512 +# Distributed under the terms of the GNU General Public License v2
20513 +# $Header: /var/cvsroot/gentoo-x86/media-tv/dvbstreamer/dvbstreamer-1.1-r1.ebuild,v 1.4 2012/02/15 18:34:36 hd_brummy Exp $
20514 +
20515 +EAPI=2
20516 +inherit autotools eutils multilib
20517 +
20518 +DESCRIPTION="DVB over UDP streaming solution"
20519 +HOMEPAGE="http://dvbstreamer.sourceforge.net/"
20520 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
20521 +
20522 +LICENSE="GPL-2"
20523 +SLOT="0"
20524 +KEYWORDS="amd64 x86"
20525 +IUSE=""
20526 +
20527 +RDEPEND="dev-db/sqlite:3
20528 + sys-libs/readline
20529 + >=sys-devel/libtool-2.2.6"
20530 +DEPEND="${RDEPEND}
20531 + virtual/linuxtv-dvb-headers"
20532 +
20533 +src_prepare() {
20534 + rm -rf libltdl
20535 + epatch "${FILESDIR}"/${P}-Werror.patch \
20536 + "${FILESDIR}"/${P}-libtool.patch
20537 + eautoreconf
20538 +}
20539 +
20540 +src_configure() {
20541 + econf \
20542 + --libdir=/usr/$(get_libdir)
20543 +}
20544 +
20545 +src_install() {
20546 + emake DESTDIR="${D}" install || die
20547 + rm -rf "${D}"/usr/doc
20548 +
20549 + dodoc doc/*.txt ChangeLog README AUTHORS NEWS TODO
20550 +}
20551
20552 diff --git a/media-tv/dvbstreamer/files/dvbstreamer-1.1-Werror.patch b/media-tv/dvbstreamer/files/dvbstreamer-1.1-Werror.patch
20553 new file mode 100644
20554 index 0000000..182b4ca
20555 --- /dev/null
20556 +++ b/media-tv/dvbstreamer/files/dvbstreamer-1.1-Werror.patch
20557 @@ -0,0 +1,36 @@
20558 +diff -ur dvbstreamer-1.1.orig/src/dvbpsi/Makefile.am dvbstreamer-1.1/src/dvbpsi/Makefile.am
20559 +--- dvbstreamer-1.1.orig/src/dvbpsi/Makefile.am 2008-10-31 16:25:01.000000000 +0200
20560 ++++ dvbstreamer-1.1/src/dvbpsi/Makefile.am 2009-08-10 10:49:55.000000000 +0300
20561 +@@ -1,7 +1,7 @@
20562 + AM_CFLAGS =\
20563 + -I$(top_srcdir)/include \
20564 + -I$(top_srcdir)/include/dvbpsi \
20565 +- -Wall -Werror
20566 ++ -Wall
20567 +
20568 + noinst_LIBRARIES = libdvbpsi.a
20569 +
20570 +diff -ur dvbstreamer-1.1.orig/src/Makefile.am dvbstreamer-1.1/src/Makefile.am
20571 +--- dvbstreamer-1.1.orig/src/Makefile.am 2008-10-31 16:25:02.000000000 +0200
20572 ++++ dvbstreamer-1.1/src/Makefile.am 2009-08-10 10:50:04.000000000 +0300
20573 +@@ -3,7 +3,7 @@
20574 + INCLUDES = @INCLTDL@
20575 +
20576 + AM_CFLAGS =\
20577 +- -I$(top_srcdir)/include -Wall -Werror -D_GNU_SOURCE
20578 ++ -I$(top_srcdir)/include -Wall -D_GNU_SOURCE
20579 +
20580 +
20581 + bin_PROGRAMS = dvbstreamer dvbctrl setupdvbstreamer
20582 +diff -ur dvbstreamer-1.1.orig/src/plugins/Makefile.am dvbstreamer-1.1/src/plugins/Makefile.am
20583 +--- dvbstreamer-1.1.orig/src/plugins/Makefile.am 2008-10-31 16:24:58.000000000 +0200
20584 ++++ dvbstreamer-1.1/src/plugins/Makefile.am 2009-08-10 10:50:17.000000000 +0300
20585 +@@ -2,7 +2,7 @@
20586 + # Plugins
20587 + #
20588 + AM_CFLAGS =\
20589 +- -I$(top_srcdir)/include -Wall -Werror -D_GNU_SOURCE
20590 ++ -I$(top_srcdir)/include -Wall -D_GNU_SOURCE
20591 +
20592 + pluginsdir = @DVBSTREAMER_PLUGINDIR@
20593 +
20594
20595 diff --git a/media-tv/dvbstreamer/files/dvbstreamer-1.1-libtool.patch b/media-tv/dvbstreamer/files/dvbstreamer-1.1-libtool.patch
20596 new file mode 100644
20597 index 0000000..1b95f79
20598 --- /dev/null
20599 +++ b/media-tv/dvbstreamer/files/dvbstreamer-1.1-libtool.patch
20600 @@ -0,0 +1,71 @@
20601 +diff -ur dvbstreamer-1.1.orig/configure.in dvbstreamer-1.1/configure.in
20602 +--- dvbstreamer-1.1.orig/configure.in 2008-10-31 16:49:00.000000000 +0200
20603 ++++ dvbstreamer-1.1/configure.in 2010-02-03 12:30:56.000000000 +0200
20604 +@@ -23,7 +23,6 @@
20605 +
20606 + AM_INIT_AUTOMAKE("dvbstreamer", $SPEC_VERSION)
20607 +
20608 +-AC_CONFIG_SUBDIRS(libltdl)
20609 + AM_CONFIG_HEADER(config.h)
20610 +
20611 + AC_ISC_POSIX
20612 +@@ -35,12 +34,8 @@
20613 + dnl ---------------------------------------------------------------------------
20614 + dnl Libltdl setup
20615 + dnl ---------------------------------------------------------------------------
20616 +-AC_LIBTOOL_WIN32_DLL dnl Make sure under cygwin we can load plugins !!!
20617 +-AC_LIBTOOL_DLOPEN
20618 +-AC_LIBLTDL_CONVENIENCE
20619 +-AC_PROG_LIBTOOL
20620 +-AC_SUBST(INCLTDL)
20621 +-AC_SUBST(LIBLTDL)
20622 ++LT_PREREQ([2.2.6])
20623 ++LT_INIT([dlopen win32-dll disable-static])
20624 +
20625 + dnl ---------------------------------------------------------------------------
20626 + dnl Work out the libdir name (copied from xine-lib configure.ac)
20627 +diff -ur dvbstreamer-1.1.orig/Makefile.am dvbstreamer-1.1/Makefile.am
20628 +--- dvbstreamer-1.1.orig/Makefile.am 2008-10-31 16:25:03.000000000 +0200
20629 ++++ dvbstreamer-1.1/Makefile.am 2010-02-03 12:25:57.000000000 +0200
20630 +@@ -1,6 +1,6 @@
20631 + ## DVBStreamer main Makefile
20632 +
20633 +-SUBDIRS = libltdl include include/dvbpsi src/dvbpsi src src/plugins
20634 ++SUBDIRS = include include/dvbpsi src/dvbpsi src src/plugins
20635 +
20636 + dvbstreamerdocdir = ${prefix}/doc/DVBStreamer
20637 + dvbstreamerdoc_DATA = \
20638 +diff -ur dvbstreamer-1.1.orig/src/Makefile.am dvbstreamer-1.1/src/Makefile.am
20639 +--- dvbstreamer-1.1.orig/src/Makefile.am 2008-10-31 16:25:02.000000000 +0200
20640 ++++ dvbstreamer-1.1/src/Makefile.am 2010-02-03 12:33:30.000000000 +0200
20641 +@@ -1,7 +1,5 @@
20642 + ## Process this file with automake to produce Makefile.in
20643 +
20644 +-INCLUDES = @INCLTDL@
20645 +-
20646 + AM_CFLAGS =\
20647 + -I$(top_srcdir)/include -Wall -Werror -D_GNU_SOURCE
20648 +
20649 +@@ -104,7 +102,7 @@
20650 + dvbstreamer_LDFLAGS = -rdynamic -Wl,-whole-archive -Wl,dvbpsi/libdvbpsi.a -Wl,-no-whole-archive
20651 +
20652 + dvbstreamer_LDADD = \
20653 +- -lpthread -lsqlite3 -lreadline @GETTIME_LIB@ @ICONV_LIB@ @READLINE_TERMCAP@ @LIBLTDL@
20654 ++ -lpthread -lsqlite3 -lreadline @GETTIME_LIB@ @ICONV_LIB@ @READLINE_TERMCAP@ -lltdl
20655 +
20656 + #
20657 + # dvbctrl
20658 +diff -ur dvbstreamer-1.1.orig/src/pluginmgr.c dvbstreamer-1.1/src/pluginmgr.c
20659 +--- dvbstreamer-1.1.orig/src/pluginmgr.c 2008-10-31 16:25:02.000000000 +0200
20660 ++++ dvbstreamer-1.1/src/pluginmgr.c 2010-02-03 12:27:53.000000000 +0200
20661 +@@ -22,9 +22,9 @@
20662 + */
20663 + #include <stdlib.h>
20664 + #include <string.h>
20665 ++#include <ltdl.h>
20666 +
20667 + #include "config.h"
20668 +-#include "ltdl.h"
20669 + #include "list.h"
20670 + #include "deliverymethod.h"
20671 + #include "patprocessor.h"
20672
20673 diff --git a/media-tv/dvbstreamer/files/dvbstreamer-2.0.0_rc1-evloop-configure.patch b/media-tv/dvbstreamer/files/dvbstreamer-2.0.0_rc1-evloop-configure.patch
20674 new file mode 100644
20675 index 0000000..09272cf
20676 --- /dev/null
20677 +++ b/media-tv/dvbstreamer/files/dvbstreamer-2.0.0_rc1-evloop-configure.patch
20678 @@ -0,0 +1,11 @@
20679 +--- a/configure.in 2010-02-15 11:46:33.000000000 -0500
20680 ++++ b/configure.in 2012-06-26 11:32:17.000000000 -0400
20681 +@@ -188,7 +188,7 @@
20682 + dnl Check for libev
20683 + dnl ---------------------------------------------------------------------------
20684 + AC_CHECK_HEADER([ev.h], [], [AC_MSG_FAILURE([libev header file not found])])
20685 +-AC_CHECK_LIB([ev], [ev_loop], [], [AC_MSG_FAILURE([libev not found])])
20686 ++AC_CHECK_DECL([ev_loop()], [], [AC_MSG_FAILURE([libev doesn't provide ev_loop])], [[#include <ev.h>]])
20687 + LIBS=""
20688 +
20689 + dnl ---------------------------------------------------------------------------
20690
20691 diff --git a/media-video/gxine/Manifest b/media-video/gxine/Manifest
20692 new file mode 100644
20693 index 0000000..0a91523
20694 --- /dev/null
20695 +++ b/media-video/gxine/Manifest
20696 @@ -0,0 +1,9 @@
20697 +AUX gxine-0.5.905-desktop.patch 377 RMD160 ea7d11a796ff9142cf0f578b3b5a2fe3de4f2125 SHA1 b4a327db63dc99a755a34cb60b15e03a7b3d39d9 SHA256 e0051e9737382b3c21e2d3e6f0d9eacd1fb5d589f480a155a396e1924512d7a5
20698 +AUX gxine-0.5.905-fix-nspr-useage.patch 433 RMD160 65af0ddee220ca456acf20eea521fe6a4600cd23 SHA1 fc7a2ce90a8e84d1f519a786de9f477264ea925b SHA256 4d05d9144eba4f30976ed3e33e3985c782b95227d165ab90b4f453c377451ea6
20699 +AUX gxine-0.5.906-endif.patch 349 RMD160 0683bb409616d8ef878e4144e747bd0032fc236f SHA1 0c48cf0457f21dea9bdc70bed62421cd6bbdebfb SHA256 d3d14fdffe9f8e1872bcbf28670d48b72ed76d7a882902bb298902bb8ca4b6fa
20700 +AUX gxine-0.5.907-glib-2.31.patch 636 RMD160 07142250875de0c55b8ec74d462f0802ea6354a3 SHA1 413fd32963958b5efbdb9310f45fbdca801c8083 SHA256 c45a8fa2df4a779bbc7866a3d7fd56c4c9946e71656f06452f5f147a9ee4e15c
20701 +AUX gxine-0.5.907-mozjs187.patch 793 RMD160 8ea018f085598b4a04669b453f90d4329758df71 SHA1 80722b851aff4c6125552791edd08f9b1e36702b SHA256 3f3ecdff5dbbce75c2d54bd545a02b01c1840657556c3c42899804bb7f904d39
20702 +DIST gxine-0.5.907.tar.xz 910528 RMD160 35be9f7737c1b45787a46dd61916c81c33bea15e SHA1 1b49b5b6a800611db032e4b7fd36af97a731a167 SHA256 b5c925806a35cb23a24a80a39d494cefb529e22c957987741f269a994ab258d5
20703 +EBUILD gxine-0.5.907.ebuild 2729 RMD160 6046753fc2a63b8b4ead73ee09298c516c39ebc7 SHA1 9b4cf4c7efca4a7a5b2a392ae07c9066b0c5a43a SHA256 df6a163856992224fe78c9237aed48800529488a07f34ec92b0bd84e6d62ed87
20704 +MISC ChangeLog 17755 RMD160 6d86b12fc0a4d27514e831ba5b8679f9671b8580 SHA1 68a6d384f2d57bc191163d95981000e4bcc70a29 SHA256 02cc1cd4ddccee05a645fc8d9e42fe85125da53e86c0f701d412122c1db30d61
20705 +MISC metadata.xml 373 RMD160 879bbceb1af5297cc90a6191f9a40375a4732c81 SHA1 9e40c5d9bb710cc676c38c9a097af598db072e60 SHA256 202b197a4f7feb227636e8de2bc00c6af351fd80f72a7916df100aeadd056bd9
20706
20707 diff --git a/media-video/gxine/files/gxine-0.5.905-desktop.patch b/media-video/gxine/files/gxine-0.5.905-desktop.patch
20708 new file mode 100644
20709 index 0000000..c5777a1
20710 --- /dev/null
20711 +++ b/media-video/gxine/files/gxine-0.5.905-desktop.patch
20712 @@ -0,0 +1,12 @@
20713 +--- gxine.desktop.in
20714 ++++ gxine.desktop.in
20715 +@@ -14,5 +14,5 @@
20716 + Terminal=false
20717 + Type=Application
20718 + StartupNotify=true
20719 +-Categories=AudioVideo;GTK;Player;TV;
20720 +-MimeType=x-content/video-dvd;x-content/audio-cdda;x-content/video-vcd;x-content/video-svcd;
20721 +\ No newline at end of file
20722 ++Categories=AudioVideo;Video;GTK;Player;TV;
20723 ++MimeType=x-content/audio-cdda;
20724 +\ No newline at end of file
20725
20726 diff --git a/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch b/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch
20727 new file mode 100644
20728 index 0000000..9d0e5f8
20729 --- /dev/null
20730 +++ b/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch
20731 @@ -0,0 +1,11 @@
20732 +--- a/src/Makefile.am 2011-01-02 11:33:09.675000001 -0600
20733 ++++ b/src/Makefile.am 2011-01-02 11:34:05.205000001 -0600
20734 +@@ -4,7 +4,7 @@
20735 + -I$(top_builddir)/pixmaps $(LIRC_INCLUDE)
20736 +
20737 + AM_CFLAGS = $(GNU99) $(XINE_CFLAGS) $(X_CFLAGS) \
20738 +- $(GTK2_CFLAGS) $(GTHREAD2_CFLAGS) \
20739 ++ $(GTK2_CFLAGS) $(GTHREAD2_CFLAGS) $(NSPR_CFLAGS) \
20740 + $(HAL_CFLAGS) $(UDEV_CFLAGS) $(DBUS_CFLAGS) $(JS_CFLAGS) \
20741 + -DLOCALEDIR=\"$(localedir)\"
20742 +
20743
20744 diff --git a/media-video/gxine/files/gxine-0.5.906-endif.patch b/media-video/gxine/files/gxine-0.5.906-endif.patch
20745 new file mode 100644
20746 index 0000000..40c4a8a
20747 --- /dev/null
20748 +++ b/media-video/gxine/files/gxine-0.5.906-endif.patch
20749 @@ -0,0 +1,14 @@
20750 +lirc.c:227:3: error: ‘gxine_lirc_thread’ undeclared (first use in this function)
20751 +
20752 +--- src/lirc.c
20753 ++++ src/lirc.c
20754 +@@ -223,8 +223,8 @@
20755 + if (gxine_lirc_thread_created)
20756 + pthread_join (gxine_lirc_thread, NULL);
20757 + gxine_lirc_start ();
20758 +-#endif
20759 + JS_SET_RVAL (cx, vp, gxine_lirc_thread ? JSVAL_TRUE : JSVAL_FALSE);
20760 ++#endif
20761 + return JS_TRUE;
20762 + }
20763 +
20764
20765 diff --git a/media-video/gxine/files/gxine-0.5.907-glib-2.31.patch b/media-video/gxine/files/gxine-0.5.907-glib-2.31.patch
20766 new file mode 100644
20767 index 0000000..9edea6c
20768 --- /dev/null
20769 +++ b/media-video/gxine/files/gxine-0.5.907-glib-2.31.patch
20770 @@ -0,0 +1,34 @@
20771 +http://bugs.gentoo.org/412323
20772 +
20773 +--- src/console_output.h
20774 ++++ src/console_output.h
20775 +@@ -21,7 +21,7 @@
20776 + #ifndef GXINE_CONSOLE_OUTPUT_H
20777 + #define GXINE_CONSOLE_OUTPUT_H
20778 +
20779 +-#include <glib/gmessages.h>
20780 ++#include <glib.h>
20781 +
20782 + void console_output_init (void);
20783 +
20784 +--- src/engine.c
20785 ++++ src/engine.c
20786 +@@ -30,7 +30,7 @@
20787 + #include <errno.h>
20788 + #include <unistd.h>
20789 +
20790 +-#include <glib/gthread.h>
20791 ++#include <glib.h>
20792 +
20793 + #include "engine.h"
20794 + #include "ui.h"
20795 +--- src/main.c
20796 ++++ src/main.c
20797 +@@ -46,7 +46,6 @@
20798 + #include <gdk/gdk.h>
20799 + #include <gdk/gdkkeysyms.h>
20800 + #include <glib.h>
20801 +-#include <glib/gmessages.h>
20802 +
20803 + #include "desktop_integration.h"
20804 + #include "engine.h"
20805
20806 diff --git a/media-video/gxine/files/gxine-0.5.907-mozjs187.patch b/media-video/gxine/files/gxine-0.5.907-mozjs187.patch
20807 new file mode 100644
20808 index 0000000..f0412f3
20809 --- /dev/null
20810 +++ b/media-video/gxine/files/gxine-0.5.907-mozjs187.patch
20811 @@ -0,0 +1,21 @@
20812 +--- gxine-0.5.907/m4/_js.m4 2012-06-22 09:25:50.000000000 -0400
20813 ++++ gxine-0.5.907/m4/_js.m4.new 2012-06-22 09:26:11.000000000 -0400
20814 +@@ -51,9 +51,15 @@
20815 + if test x"$JS_CFLAGS" = x; then
20816 + AC_MSG_NOTICE([looking for the Spidermonkey Javascript library in various places.])
20817 +
20818 +- JSLIB=mozjs185
20819 +- AC_MSG_NOTICE([trying mozjs via pkgconfig mozjs185])
20820 +- PKG_CHECK_MODULES([JS],[mozjs185],[],[:])
20821 ++ JSLIB=mozjs187
20822 ++ AC_MSG_NOTICE([trying mozjs via pkgconfig mozjs187])
20823 ++ PKG_CHECK_MODULES([JS],[mozjs187],[],[:])
20824 ++
20825 ++ if test x"$JS_CFLAGS" = x; then
20826 ++ JSLIB=mozjs185
20827 ++ AC_MSG_NOTICE([trying mozjs via pkgconfig mozjs185])
20828 ++ PKG_CHECK_MODULES([JS],[mozjs185],[],[:])
20829 ++ fi
20830 +
20831 + if test x"$JS_CFLAGS" = x; then
20832 + JSLIB=mozjs
20833
20834 diff --git a/media-video/gxine/gxine-0.5.907.ebuild b/media-video/gxine/gxine-0.5.907.ebuild
20835 new file mode 100644
20836 index 0000000..9e01fb6
20837 --- /dev/null
20838 +++ b/media-video/gxine/gxine-0.5.907.ebuild
20839 @@ -0,0 +1,101 @@
20840 +# Copyright 1999-2012 Gentoo Foundation
20841 +# Distributed under the terms of the GNU General Public License v2
20842 +# $Header: /var/cvsroot/gentoo-x86/media-video/gxine/gxine-0.5.907.ebuild,v 1.6 2012/05/17 20:32:07 ssuominen Exp $
20843 +
20844 +EAPI="4-slot-abi"
20845 +inherit autotools eutils fdo-mime gnome2-utils multilib nsplugins
20846 +
20847 +DESCRIPTION="GTK+ Front-End for libxine"
20848 +HOMEPAGE="http://xine.sourceforge.net/"
20849 +SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
20850 +
20851 +LICENSE="GPL-2"
20852 +SLOT="0"
20853 +KEYWORDS="amd64 ppc ppc64 x86"
20854 +IUSE="gnome-screensaver linguas_cs linguas_de lirc nls nsplugin udev +xcb xinerama"
20855 +
20856 +COMMON_DEPEND=">=media-libs/xine-lib-1.1.20
20857 + x11-libs/gtk+:2
20858 + >=dev-libs/glib-2
20859 + >=dev-lang/spidermonkey-1.8.2.15:=
20860 + x11-libs/libX11
20861 + x11-libs/libXext
20862 + x11-libs/libXrender
20863 + gnome-screensaver? ( >=dev-libs/dbus-glib-0.90 )
20864 + lirc? ( app-misc/lirc )
20865 + nls? ( virtual/libintl )
20866 + nsplugin? ( dev-libs/nspr
20867 + x11-libs/libXaw
20868 + x11-libs/libXt )
20869 + udev? ( || ( >=sys-fs/udev-171-r1[gudev] <sys-fs/udev-171-r1[extras] ) )
20870 + xcb? ( x11-libs/libxcb )
20871 + xinerama? ( x11-libs/libXinerama )"
20872 +RDEPEND="${COMMON_DEPEND}
20873 + gnome-screensaver? ( gnome-extra/gnome-screensaver )"
20874 +DEPEND="${COMMON_DEPEND}
20875 + virtual/pkgconfig
20876 + nls? ( sys-devel/gettext )"
20877 +
20878 +src_prepare() {
20879 + # ld: cannot find -ljs
20880 + sed -i -e '/JS_LIBS="`spidermonkey_locate_lib/s:js:mozjs:' m4/_js.m4 || die
20881 +
20882 + epatch \
20883 + "${FILESDIR}"/${PN}-0.5.905-desktop.patch \
20884 + "${FILESDIR}"/${PN}-0.5.905-fix-nspr-useage.patch \
20885 + "${FILESDIR}"/${PN}-0.5.906-endif.patch \
20886 + "${FILESDIR}"/${PN}-0.5.907-glib-2.31.patch \
20887 + "${FILESDIR}"/${PN}-0.5.907-mozjs187.patch
20888 +
20889 + # need to disable calling of xine-list when running without
20890 + # userpriv, otherwise we get sandbox violations (bug #233847)
20891 + if [[ ${EUID} == "0" ]]; then
20892 + sed -i -e 's:^XINE_LIST=.*$:XINE_LIST=:' configure.ac || die
20893 + fi
20894 +
20895 + eautoreconf
20896 +}
20897 +
20898 +src_configure() {
20899 + econf \
20900 + $(use_enable nls) \
20901 + $(use_enable lirc) \
20902 + --enable-watchdog \
20903 + $(use_with xcb) \
20904 + $(has_version '<dev-lang/spidermonkey-1.8.5' && echo --with-spidermonkey=/usr/include/js) \
20905 + $(use_with nsplugin browser-plugin) \
20906 + $(use_with udev gudev) \
20907 + --without-hal \
20908 + $(use_with gnome-screensaver dbus) \
20909 + $(use_with xinerama)
20910 +}
20911 +
20912 +src_install() {
20913 + emake DESTDIR="${D}" \
20914 + docdir=/usr/share/doc/${PF} \
20915 + docsdir=/usr/share/doc/${PF} \
20916 + install
20917 +
20918 + dodoc AUTHORS BUGS ChangeLog README{,_l10n} TODO
20919 +
20920 + use linguas_cs && dodoc README.cs
20921 + use linguas_de && dodoc README.de
20922 +
20923 + use nsplugin && inst_plugin /usr/$(get_libdir)/gxine/gxineplugin.so
20924 +}
20925 +
20926 +pkg_preinst() {
20927 + gnome2_icon_savelist
20928 +}
20929 +
20930 +pkg_postinst() {
20931 + fdo-mime_desktop_database_update
20932 + fdo-mime_mime_database_update
20933 + gnome2_icon_cache_update
20934 +}
20935 +
20936 +pkg_postrm() {
20937 + fdo-mime_desktop_database_update
20938 + fdo-mime_mime_database_update
20939 + gnome2_icon_cache_update
20940 +}
20941
20942 diff --git a/net-print/cups/.#Manifest.1.577 b/net-print/cups/.#Manifest.1.577
20943 new file mode 100644
20944 index 0000000..8f15135
20945 --- /dev/null
20946 +++ b/net-print/cups/.#Manifest.1.577
20947 @@ -0,0 +1,36 @@
20948 +AUX cups-1.4.0-backend-https.patch 483 RMD160 b338f67ebf0719b5e12eaa8490affbd7a1bb8c0e SHA1 bfeadba67792203d654a64bdec16f3d2a31aeca6 SHA256 9060a5d848d6655db4629822d01fd772a3fbe1a5107109c50cb0ecb4de7a9526
20949 +AUX cups-1.4.2-str3200.patch 1654 RMD160 cc40d26f7e9dbe5a12d9426535d09de10254da26 SHA1 b330108bcfb8ca3ab5d6dd3b48dc3d2937c7bca1 SHA256 8a64f5c72d64ecd95d330fd90630eb02a67865c07921ecb0c010e84b49b537e0
20950 +AUX cups-1.4.4-dont-compress-manpages.patch 580 RMD160 cbc2bf11025c1f27286bd7f2ece7ba76be6aa7ee SHA1 d7b2447263724eeb092b8cfc8ce54553ad1e5e11 SHA256 cdefd273dcdc78aa5fe14bb0246e25572da7d28a91de5c7ac8be2a0bdd915860
20951 +AUX cups-1.4.4-fix-install-perms.patch 838 RMD160 206bd49e918bab96d24ca72f85f679d3c9122975 SHA1 6e8ef0f3e5c0efa636b4d2324bab2c8edc9461db SHA256 66e68f3bebd7339434e3de99582190d0bedce4b2e5370ff65104cc863daee6c2
20952 +AUX cups-1.4.4-nostrip.patch 487 RMD160 27fe9a5512abb3496416e492dc4ec4fcd9c733c2 SHA1 2a1b6e7b718a5feb5921f38ec02f37b9d0edd310 SHA256 b96448896f08c5f91d5afb0c093f2638a262d1c45e716c29d5164cefee18bc61
20953 +AUX cups-1.4.4-perl-includes.patch 637 RMD160 88d4f170ed5c9392860462f140adf9f860a24cfd SHA1 93185acfe7252ff9a69499f63192b3483d857cb0 SHA256 c730419e7b4bc16a8773a01eeb66523882901480af68686d0790558a2f5fe57d
20954 +AUX cups-1.4.4-php-destdir.patch 679 RMD160 1b15d42373a952a608a01cb8c97efbbd3c78ac77 SHA1 e312bbae57224dead45284f9c62942b1a25282fc SHA256 d5126c5e917d8c41c7a4da1477800edd4aa752aaa4c6a67a73adbe1e3b050110
20955 +AUX cups-1.4.6-force-gnutls.patch 3319 RMD160 c6cc024a702305eb81661d5cdadd9857e9a6778e SHA1 5ac62ed3ca20bc7a4541c990c676c433299b2177 SHA256 beb4014eac5218d9f424b81946ac1e209625026bf20a7f4820758e5ee1fe5b66
20956 +AUX cups-1.4.6-serialize-gnutls.patch 3625 RMD160 873b2806cfec732c4a4f3f2981f666a958dd5b0e SHA1 aae046121d0139fbba1cb9147c8742f73b2f1fa0 SHA256 6bc9e16fc6865b2f3e0ee2d1947bdde691e41f90fce32b9839b3661dcea4a827
20957 +AUX cups-1.4.8-CVE-2011-3170.patch 1045 RMD160 9a27eb1ec34ced57da5bbe7c55261d8aa35b01c0 SHA1 6155d7c4b34ff6447a93aa56fa4b5958eb943202 SHA256 c94d49c3ff980b830874dae4158768554f87f429ae400838a605505aae350af6
20958 +AUX cups-1.4.8-largeimage.patch 572 RMD160 62e0a92fb1dc62adff43bcdc22f201da426d8916 SHA1 1528f2b1f67e7c532418dd7f495db1788ae7d2d4 SHA256 364a3ed3e161ad75836e6bc56746c25207680ab6f44563219c93146f0cf74541
20959 +AUX cups-1.5.0-systemd-socket.patch 12829 RMD160 d4ca24c299daf65f2621568443a339f82bd03a2a SHA1 f45e18ba92d3afbca6a26ac676f2f42738032c10 SHA256 350eb1bdb76618dd082e9cda26c5b1400f4f870ffd521186f4d74940d15b4cd5
20960 +AUX cups-1.5.2-browsing.patch 513 RMD160 592b2a814f23beea82d61446989636a393ab34a7 SHA1 43f78e93f84a4da430cb2e1ced268ea00d5f00b3 SHA256 47a229fb7be6ada4e48806c24cdba70cd2b6161ac8fcf1290e07063e486b7bfe
20961 +AUX cups-1.5.2-linkperl.patch 724 RMD160 5e94f21ab236a88ec2026e69aed58ce17dafaa5c SHA1 8556aea40a07176b0daa184bcce1b1abe3d81c48 SHA256 48891623d98a1767c11865d59c72146aa277f1bd0abda9871ae90540676b648e
20962 +AUX cups-1.5.2-threads.patch 730 RMD160 e021b2d2f5293fb58f24279f2550488f90dc91e5 SHA1 bc1b1a8048d36393995f056493b57f5022e6d854 SHA256 adb76ff55cd6857e7bc6c36e9cb9d63201fe14b0f853f52271b45a54ad07a710
20963 +AUX cups-1.5.2-threads2.patch 3192 RMD160 9736e8b03458be45fd1f427d3726368e81d51539 SHA1 2d87e9fe0267f3d6192cc81d1410b5eb534af39d SHA256 07a495e49b7646bfbb0d9f12841f3db8ccd4493c69c8a626b96e913bca384f5c
20964 +AUX cups-1.5.3-fix-install-perms.patch 989 RMD160 d1c3f9eb1b1f3444a5e1bc1ced03d6bfe0d90e8a SHA1 003ee9555f03e57ee3d7e440f5f2f7c365a2295e SHA256 784254b8d0580b1b9823c5a499052c4fc76e2cadf2c22f975b69ab8655fbc59c
20965 +AUX cups-1.6.0-dont-compress-manpages.patch 435 RMD160 14221113caa783c63f04443580c013215660b73a SHA1 8ac8f95cf34c05a9b1bc3f8f5677f545ca71dc26 SHA256 d3e41e8d4a841ac71e5ed8598fc444a2f11b4c94215b55dcf5147694bbbc88c3
20966 +AUX cups-1.6.0-fix-install-perms.patch 948 RMD160 ed566ab57fded47c6dd40364aae7f8ac19aa90ef SHA1 8d2cee2c103be6b9f5c2c20d1100bb347584a3d5 SHA256 4a4a885bb2e111bd67bcb90a5780f33841b18bc02382317fb5e64c384aa0c4c8
20967 +AUX cupsd.init.d 402 RMD160 1b132354d01ad2ecebbe5238b09dfa3cb9391d43 SHA1 ea48170f3369486792ed9f98fe7d1c53487b455c SHA256 66b14dffc99900c0db04453765e5bf48cdf0c197c6f50dccf2a55dc66dd0cf95
20968 +AUX pdftops-1.20.gentoo 10412 RMD160 16e229662c47e03af1d1f4cb5764a76d17a66642 SHA1 6afb8a655b6ff013a2c8c8cbfb615ba1e561503b SHA256 ac5fa01ca776d75bd7cef62eef9f6b0c3945ee87e8950b40ca9f9f3ff46a16c1
20969 +DIST cups-1.4.8-source.tar.bz2 4547162 RMD160 ee80e8d0b56dc0e2edf2a9aa9a43c4b92619f741 SHA1 9167f556e78e0bc075f1eb2f695d79cc1f334007 SHA256 6bd27e1213c139ed0bbadc5c29f97cf1e8f7f8f5b0bb29b227ecaff32aafa9a6
20970 +DIST cups-1.5.2-avahi.patch.bz2 17252 RMD160 40c7165de7f23e01aa3edf3968406e69fd0280f7 SHA1 e69c9b62b2773431dd7bb86573255d7c39fc2012 SHA256 6100029c6eec05729b6ef49f743876b9bf4d67f7b20b624be98372f4fb3e1ede
20971 +DIST cups-1.5.2-ipp-r8950.patch.bz2 19525 RMD160 346a3141ae445dc9f17c7fbc0a467aea4910f10b SHA1 4bc3b40771261c37b63cbe4f65213b5db6c66534 SHA256 1a2d36136fc66b5f53e7cfb3e5d815e62cc3a6b4cc61d678f29d8a0bb748572a
20972 +DIST cups-1.5.2-source.tar.bz2 9595665 RMD160 98181e2ee8c6e574fb6d405f688f52c9b61a2355 SHA1 56fdb4f58e676607845321c0296c1e90e416883f SHA256 b150aa108c631f4f07e92cb13c01263a67170e5ac8383c5548ef8f8473a187fb
20973 +DIST cups-1.5.3-avahi.patch.bz2 17298 RMD160 fb2856801c08ddd73eb2677211cc0bba3f74cc57 SHA1 2d15bd82350806a4dfbedc6b3c48da08b3a7efcb SHA256 daed1232c56ff7a3cb293c7eedbb669f3200ac36120a4d2fec09bd91631038ef
20974 +DIST cups-1.5.3-source.tar.bz2 9580485 RMD160 3516c1a0909921c9ae6f33eed9e06c9d9c475e3f SHA1 f7c4fc7d115da20dbbb6a3a568259df6702a7caa SHA256 9d716a8ffcefdaff1c37f4a4b590f1d74ff9ff72383a18f3c883c9235907f93d
20975 +DIST cups-1.6b1-source.tar.bz2 8144645 RMD160 2cd340359661776361cc8d91d3514b0cd0d1f96c SHA1 ef3d67a49cb4c61207f66c9d5f792f04ef65fdf4 SHA256 ab2bd150635bfd84b710c92a942cdbff98fd74702d4aba04dd720064ccaa1fa1
20976 +EBUILD cups-1.4.8-r1.ebuild 7244 RMD160 a1c15926b837ec497fe496a7f0f9051a0de8d923 SHA1 4068757755bb1b9d7e5a7057e041238232d458c7 SHA256 36ab04f13134fdc205b2ca137473e9489fd4dfd1cd0046362d94fbeecffa920a
20977 +EBUILD cups-1.4.8-r23.ebuild 8854 RMD160 b84a4dbe91f91f012f457d2436e44a69c1f78727 SHA1 7bf8931ed2731b5600aeb70f78dd06dbdace0dbc SHA256 901288e3a86de7a3f2d797c63e20086da01c01141f63ac4b531281c3273ee587
20978 +EBUILD cups-1.5.2-r4.ebuild 8358 RMD160 063d504cf9dc8fa86c930ee5ba97b933a4d714c6 SHA1 2236e37b7a8eef1d0facb0a3752073a627d38dc6 SHA256 bbb8f9fa84c4ea187e2bcf108df5f59fd7dbbea0ca76df9adf7c9451ab16b886
20979 +EBUILD cups-1.5.3.ebuild 8610 RMD160 9ea42d49bcfee6e8359a79cc860b5fdaa368fa5f SHA1 6ddd54a737710e0f043c88c38eb581548c9c3ad1 SHA256 8ea5b6c3da1b667beb0cf89367f2599b84dc424e76fac6be17d026707284e119
20980 +EBUILD cups-1.6_beta1-r1.ebuild 7844 RMD160 c27354ac1adc6d1ec9d27f74fd722262c61c4bb5 SHA1 ac8340228112ffddab0ff1bc04fa1e30024ce263 SHA256 961dbc3935ac11e00bc76655a8727f000658cb6fbfa42b591849a17b355e623c
20981 +EBUILD cups-9999.ebuild 7919 RMD160 f2be286e9079872dae87d8ff34138b1e65fe134b SHA1 2f255964e7dde4deca9dc2acb8cc9c44c5784f0e SHA256 a0d869507700ec75306b5cca625634ee39a6f8065e558a928df83472addadb96
20982 +MISC ChangeLog 74972 RMD160 4df3609d797d43806858bda787ca4561e811f3df SHA1 726ce7cd05c255b9c6d5ae77b1607b8e7dc885f4 SHA256 0078288a935e8b752cfc36702778ffaf2d4215521793a6a4f1d2053854cc425f
20983 +MISC metadata.xml 778 RMD160 39d95458b469079b683adf4f2e79eb0b803ce0b9 SHA1 62b298bb9c5435716ce81550213ccd086ec065aa SHA256 26a8d1221a4334579f98705c38f3e3a882c223df86181dcf7968eac2118188b8
20984
20985 diff --git a/net-print/cups/.#cups-1.5.2-r4.ebuild.1.13 b/net-print/cups/.#cups-1.5.2-r4.ebuild.1.13
20986 new file mode 100644
20987 index 0000000..bcec60a
20988 --- /dev/null
20989 +++ b/net-print/cups/.#cups-1.5.2-r4.ebuild.1.13
20990 @@ -0,0 +1,302 @@
20991 +# Copyright 1999-2012 Gentoo Foundation
20992 +# Distributed under the terms of the GNU General Public License v2
20993 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.2-r4.ebuild,v 1.13 2012/06/01 04:19:51 zmedico Exp $
20994 +
20995 +EAPI=4
20996 +
20997 +PYTHON_DEPEND="python? 2:2.5"
20998 +GENTOO_DEPEND_ON_PERL="no"
20999 +
21000 +inherit autotools eutils fdo-mime gnome2-utils flag-o-matic linux-info multilib pam perl-module python user versionator java-pkg-opt-2
21001 +
21002 +MY_P=${P/_}
21003 +MY_PV=${PV/_}
21004 +
21005 +DESCRIPTION="The Common Unix Printing System"
21006 +HOMEPAGE="http://www.cups.org/"
21007 +SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2
21008 + http://dev.gentoo.org/~dilfridge/distfiles/${P}-ipp-r8950.patch.bz2
21009 + http://dev.gentoo.org/~dilfridge/distfiles/${P}-avahi.patch.bz2
21010 +"
21011 +
21012 +LICENSE="GPL-2"
21013 +SLOT="0"
21014 +KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ppc ppc64 ~s390 ~sh ~sparc x86"
21015 +IUSE="acl avahi dbus debug +filters gnutls java +jpeg kerberos ldap pam perl
21016 + +png python slp +ssl static-libs +threads +tiff usb X xinetd"
21017 +
21018 +LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
21019 +for X in ${LANGS} ; do
21020 + IUSE="${IUSE} linguas_${X}"
21021 +done
21022 +
21023 +RDEPEND="
21024 + app-text/libpaper
21025 + acl? (
21026 + kernel_linux? (
21027 + sys-apps/acl
21028 + sys-apps/attr
21029 + )
21030 + )
21031 + avahi? ( net-dns/avahi )
21032 + dbus? ( sys-apps/dbus )
21033 + java? ( >=virtual/jre-1.6 )
21034 + jpeg? ( virtual/jpeg:0 )
21035 + kerberos? ( virtual/krb5 )
21036 + ldap? ( net-nds/openldap[ssl?,gnutls?] )
21037 + pam? ( virtual/pam )
21038 + perl? ( dev-lang/perl )
21039 + png? ( >=media-libs/libpng-1.4.3:0 )
21040 + slp? ( >=net-libs/openslp-1.0.4 )
21041 + ssl? (
21042 + gnutls? (
21043 + dev-libs/libgcrypt
21044 + net-libs/gnutls
21045 + )
21046 + !gnutls? ( >=dev-libs/openssl-0.9.8g )
21047 + )
21048 + tiff? ( >=media-libs/tiff-3.5.5:0 )
21049 + usb? ( virtual/libusb:0 )
21050 + X? ( x11-misc/xdg-utils )
21051 + xinetd? ( sys-apps/xinetd )
21052 +"
21053 +
21054 +DEPEND="${RDEPEND}
21055 + virtual/pkgconfig
21056 +"
21057 +
21058 +PDEPEND="
21059 + app-text/ghostscript-gpl[cups]
21060 + >=app-text/poppler-0.12.3-r3[utils]
21061 + filters? ( net-print/foomatic-filters )
21062 +"
21063 +
21064 +REQUIRED_USE="gnutls? ( ssl )"
21065 +
21066 +# upstream includes an interactive test which is a nono for gentoo
21067 +RESTRICT="test"
21068 +
21069 +S="${WORKDIR}/${MY_P}"
21070 +
21071 +pkg_setup() {
21072 + enewgroup lp
21073 + enewuser lp -1 -1 -1 lp
21074 + enewgroup lpadmin 106
21075 +
21076 + # python 3 is no-go
21077 + if use python; then
21078 + python_set_active_version 2
21079 + python_pkg_setup
21080 + fi
21081 +
21082 + if use kernel_linux; then
21083 + linux-info_pkg_setup
21084 + if ! linux_config_exists; then
21085 + ewarn "Can't check the linux kernel configuration."
21086 + ewarn "You might have some incompatible options enabled."
21087 + else
21088 + # recheck that we don't have usblp to collide with libusb
21089 + if use usb; then
21090 + if linux_chkconfig_present USB_PRINTER; then
21091 + eerror "Your usb printers will be managed via libusb. In this case, "
21092 + eerror "${P} requires the USB_PRINTER support disabled."
21093 + eerror "Please disable it:"
21094 + eerror " CONFIG_USB_PRINTER=n"
21095 + eerror "in /usr/src/linux/.config or"
21096 + eerror " Device Drivers --->"
21097 + eerror " USB support --->"
21098 + eerror " [ ] USB Printer support"
21099 + eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
21100 + fi
21101 + else
21102 + #here we should warn user that he should enable it so he can print
21103 + if ! linux_chkconfig_present USB_PRINTER; then
21104 + ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
21105 + ewarn "support in your kernel."
21106 + ewarn "Please enable it:"
21107 + ewarn " CONFIG_USB_PRINTER=y"
21108 + ewarn "in /usr/src/linux/.config or"
21109 + ewarn " Device Drivers --->"
21110 + ewarn " USB support --->"
21111 + ewarn " [*] USB Printer support"
21112 + ewarn "Alternatively, enable the usb useflag for cups and use the libusb code."
21113 + fi
21114 + fi
21115 + fi
21116 + fi
21117 +}
21118 +
21119 +src_prepare() {
21120 + # various build time fixes
21121 + epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
21122 + epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
21123 + epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
21124 + epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
21125 + epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
21126 + epatch "${FILESDIR}/${PN}-1.5.2-linkperl.patch"
21127 + epatch "${FILESDIR}/${PN}-1.5.2-threads.patch"
21128 + epatch "${FILESDIR}/${PN}-1.5.2-threads2.patch"
21129 +
21130 + # revert ipp backend to 1.4 state, as ubuntu and debian
21131 + epatch "${DISTDIR}/${PN}-1.5.2-ipp-r8950.patch.bz2"
21132 +
21133 + # avahi support from debian
21134 + epatch "${DISTDIR}/${PN}-1.5.2-avahi.patch.bz2"
21135 +
21136 + # browsing off by default
21137 + epatch "${FILESDIR}/${PN}-1.5.2-browsing.patch"
21138 +
21139 + AT_M4DIR=config-scripts eaclocal
21140 + eautoconf
21141 +}
21142 +
21143 +src_configure() {
21144 + export DSOFLAGS="${LDFLAGS}"
21145 +
21146 + # locale support
21147 + strip-linguas ${LANGS}
21148 + if [ -z "${LINGUAS}" ] ; then
21149 + export LINGUAS=none
21150 + fi
21151 +
21152 + local myconf
21153 + if use ssl ; then
21154 + myconf+="
21155 + $(use_enable gnutls)
21156 + $(use_enable !gnutls openssl)
21157 + "
21158 + else
21159 + myconf+="
21160 + --disable-gnutls
21161 + --disable-openssl
21162 + "
21163 + fi
21164 +
21165 + econf \
21166 + --libdir=/usr/$(get_libdir) \
21167 + --localstatedir=/var \
21168 + --with-cups-user=lp \
21169 + --with-cups-group=lp \
21170 + --with-docdir=/usr/share/cups/html \
21171 + --with-languages="${LINGUAS}" \
21172 + --with-pdftops=/usr/bin/pdftops \
21173 + --with-system-groups=lpadmin \
21174 + $(use_enable acl) \
21175 + $(use_enable avahi) \
21176 + $(use_enable dbus) \
21177 + $(use_enable debug) \
21178 + $(use_enable debug debug-guards) \
21179 + $(use_enable jpeg) \
21180 + $(use_enable kerberos gssapi) \
21181 + $(use_enable ldap) \
21182 + $(use_enable pam) \
21183 + $(use_enable png) \
21184 + $(use_enable slp) \
21185 + $(use_enable static-libs static) \
21186 + $(use_enable threads) \
21187 + $(use_enable tiff) \
21188 + $(use_enable usb libusb) \
21189 + $(use_with java) \
21190 + $(use_with perl) \
21191 + --without-php \
21192 + $(use_with python) \
21193 + $(use_with xinetd xinetd /etc/xinetd.d) \
21194 + --enable-libpaper \
21195 + --disable-dnssd \
21196 + ${myconf}
21197 +
21198 + # install in /usr/libexec always, instead of using /usr/lib/cups, as that
21199 + # makes more sense when facing multilib support.
21200 + sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die
21201 + sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
21202 + sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
21203 +}
21204 +
21205 +src_compile() {
21206 + emake
21207 +
21208 + if use perl ; then
21209 + cd "${S}"/scripting/perl
21210 + perl-module_src_prep
21211 + perl-module_src_compile
21212 + fi
21213 +}
21214 +
21215 +src_install() {
21216 + emake BUILDROOT="${D}" install
21217 + dodoc {CHANGES,CREDITS,README}.txt
21218 +
21219 + if use perl ; then
21220 + pushd scripting/perl > /dev/null
21221 + perl-module_src_install
21222 + fixlocalpod
21223 + popd > /dev/null
21224 + fi
21225 +
21226 + # clean out cups init scripts
21227 + rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups}
21228 +
21229 + # install our init script
21230 + local neededservices
21231 + use avahi && neededservices+=" avahi-daemon"
21232 + use dbus && neededservices+=" dbus"
21233 + [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
21234 + cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
21235 + sed -i \
21236 + -e "s/@neededservices@/$neededservices/" \
21237 + "${T}"/cupsd || die
21238 + doinitd "${T}"/cupsd
21239 +
21240 + # install our pam script
21241 + pamd_mimic_system cups auth account
21242 +
21243 + if use xinetd ; then
21244 + # correct path
21245 + sed -i \
21246 + -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
21247 + "${ED}"/etc/xinetd.d/cups-lpd || die
21248 + # it is safer to disable this by default, bug #137130
21249 + grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \
21250 + { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; }
21251 + # write permission for file owner (root), bug #296221
21252 + fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
21253 + else
21254 + rm -rf "${ED}"/etc/xinetd.d
21255 + fi
21256 +
21257 + keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
21258 + /var/cache/cups /var/cache/cups/rss /var/log/cups \
21259 + /var/spool/cups/tmp
21260 +
21261 + keepdir /etc/cups/{interfaces,ppd,ssl}
21262 +
21263 + use X || rm -r "${ED}"/usr/share/applications
21264 +
21265 + # create /etc/cups/client.conf, bug #196967 and #266678
21266 + echo "ServerName /var/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf
21267 +}
21268 +
21269 +pkg_preinst() {
21270 + gnome2_icon_savelist
21271 +}
21272 +
21273 +pkg_postinst() {
21274 + # Update desktop file database and gtk icon cache (bug 370059)
21275 + gnome2_icon_cache_update
21276 + fdo-mime_desktop_database_update
21277 +
21278 + echo
21279 + elog "For information about installing a printer and general cups setup"
21280 + elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
21281 + echo
21282 + elog "Network browsing for printers is now switched off by default in the config file."
21283 + elog "To (re-)enable it, edit /etc/cups/cupsd.conf and set \"Browsing On\", "
21284 + elog "afterwards re-start or reload cups."
21285 + echo
21286 +}
21287 +
21288 +pkg_postrm() {
21289 + # Update desktop file database and gtk icon cache (bug 370059)
21290 + gnome2_icon_cache_update
21291 + fdo-mime_desktop_database_update
21292 +}
21293
21294 diff --git a/net-print/cups/.#cups-1.5.3.ebuild.1.4 b/net-print/cups/.#cups-1.5.3.ebuild.1.4
21295 new file mode 100644
21296 index 0000000..0ca6d64
21297 --- /dev/null
21298 +++ b/net-print/cups/.#cups-1.5.3.ebuild.1.4
21299 @@ -0,0 +1,311 @@
21300 +# Copyright 1999-2012 Gentoo Foundation
21301 +# Distributed under the terms of the GNU General Public License v2
21302 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.3.ebuild,v 1.4 2012/06/14 12:03:45 naota Exp $
21303 +
21304 +EAPI=4
21305 +
21306 +PYTHON_DEPEND="python? 2:2.5"
21307 +GENTOO_DEPEND_ON_PERL="no"
21308 +
21309 +inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info multilib pam perl-module python user versionator java-pkg-opt-2 systemd
21310 +
21311 +MY_P=${P/_}
21312 +MY_PV=${PV/_}
21313 +
21314 +if [[ "${PV}" != "9999" ]]; then
21315 + SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2
21316 + http://dev.gentoo.org/~dilfridge/distfiles/${P}-avahi.patch.bz2
21317 + "
21318 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
21319 +else
21320 + inherit subversion
21321 + ESVN_REPO_URI="http://svn.easysw.com/public/cups/trunk"
21322 + KEYWORDS=""
21323 +fi
21324 +
21325 +DESCRIPTION="The Common Unix Printing System"
21326 +HOMEPAGE="http://www.cups.org/"
21327 +
21328 +LICENSE="GPL-2"
21329 +SLOT="0"
21330 +IUSE="acl avahi dbus debug +filters gnutls java +jpeg kerberos ldap pam perl
21331 + +png python slp +ssl static-libs systemd +threads +tiff usb X xinetd"
21332 +
21333 +LANGS="da de es eu fi fr hu id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
21334 +for X in ${LANGS} ; do
21335 + IUSE="${IUSE} linguas_${X}"
21336 +done
21337 +
21338 +RDEPEND="
21339 + app-text/libpaper
21340 + acl? (
21341 + kernel_linux? (
21342 + sys-apps/acl
21343 + sys-apps/attr
21344 + )
21345 + )
21346 + avahi? ( net-dns/avahi )
21347 + dbus? ( sys-apps/dbus )
21348 + java? ( >=virtual/jre-1.6 )
21349 + jpeg? ( virtual/jpeg:0 )
21350 + kerberos? ( virtual/krb5 )
21351 + ldap? ( net-nds/openldap[ssl?,gnutls?] )
21352 + pam? ( virtual/pam )
21353 + perl? ( dev-lang/perl )
21354 + png? ( >=media-libs/libpng-1.4.3:0 )
21355 + slp? ( >=net-libs/openslp-1.0.4 )
21356 + ssl? (
21357 + gnutls? (
21358 + dev-libs/libgcrypt
21359 + net-libs/gnutls
21360 + )
21361 + !gnutls? ( >=dev-libs/openssl-0.9.8g )
21362 + )
21363 + systemd? ( sys-apps/systemd )
21364 + tiff? ( >=media-libs/tiff-3.5.5:0 )
21365 + usb? ( virtual/libusb:0 )
21366 + X? ( x11-misc/xdg-utils )
21367 + xinetd? ( sys-apps/xinetd )
21368 +"
21369 +
21370 +DEPEND="${RDEPEND}
21371 + virtual/pkgconfig
21372 +"
21373 +
21374 +PDEPEND="
21375 + app-text/ghostscript-gpl[cups]
21376 + >=app-text/poppler-0.12.3-r3[utils]
21377 + filters? ( net-print/foomatic-filters )
21378 +"
21379 +
21380 +REQUIRED_USE="gnutls? ( ssl )"
21381 +
21382 +# upstream includes an interactive test which is a nono for gentoo
21383 +RESTRICT="test"
21384 +
21385 +S="${WORKDIR}/${MY_P}"
21386 +
21387 +PATCHES=(
21388 + "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
21389 + "${FILESDIR}/${PN}-1.5.3-fix-install-perms.patch"
21390 + "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
21391 + "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
21392 + "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
21393 + "${FILESDIR}/${PN}-1.5.2-linkperl.patch"
21394 + "${FILESDIR}/${PN}-1.5.0-systemd-socket.patch" # systemd support
21395 + "${WORKDIR}/${PN}-1.5.3-avahi.patch" # avahi support from debian
21396 + "${FILESDIR}/${PN}-1.5.2-browsing.patch" # browsing off by default
21397 +)
21398 +
21399 +pkg_setup() {
21400 + enewgroup lp
21401 + enewuser lp -1 -1 -1 lp
21402 + enewgroup lpadmin 106
21403 +
21404 + # python 3 is no-go
21405 + if use python; then
21406 + python_set_active_version 2
21407 + python_pkg_setup
21408 + fi
21409 +
21410 + if use kernel_linux; then
21411 + linux-info_pkg_setup
21412 + if ! linux_config_exists; then
21413 + ewarn "Can't check the linux kernel configuration."
21414 + ewarn "You might have some incompatible options enabled."
21415 + else
21416 + # recheck that we don't have usblp to collide with libusb
21417 + if use usb; then
21418 + if linux_chkconfig_present USB_PRINTER; then
21419 + eerror "Your usb printers will be managed via libusb. In this case, "
21420 + eerror "${P} requires the USB_PRINTER support disabled."
21421 + eerror "Please disable it:"
21422 + eerror " CONFIG_USB_PRINTER=n"
21423 + eerror "in /usr/src/linux/.config or"
21424 + eerror " Device Drivers --->"
21425 + eerror " USB support --->"
21426 + eerror " [ ] USB Printer support"
21427 + eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
21428 + fi
21429 + else
21430 + #here we should warn user that he should enable it so he can print
21431 + if ! linux_chkconfig_present USB_PRINTER; then
21432 + ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
21433 + ewarn "support in your kernel."
21434 + ewarn "Please enable it:"
21435 + ewarn " CONFIG_USB_PRINTER=y"
21436 + ewarn "in /usr/src/linux/.config or"
21437 + ewarn " Device Drivers --->"
21438 + ewarn " USB support --->"
21439 + ewarn " [*] USB Printer support"
21440 + ewarn "Alternatively, enable the usb useflag for cups and use the libusb code."
21441 + fi
21442 + fi
21443 + fi
21444 + fi
21445 +}
21446 +
21447 +src_prepare() {
21448 + base_src_prepare
21449 + AT_M4DIR=config-scripts eaclocal
21450 + eautoconf
21451 +}
21452 +
21453 +src_configure() {
21454 + export DSOFLAGS="${LDFLAGS}"
21455 +
21456 + # locale support
21457 + strip-linguas ${LANGS}
21458 + if [ -z "${LINGUAS}" ] ; then
21459 + export LINGUAS=none
21460 + fi
21461 +
21462 + local myconf
21463 + if use ssl ; then
21464 + myconf+="
21465 + $(use_enable gnutls)
21466 + $(use_enable !gnutls openssl)
21467 + "
21468 + else
21469 + myconf+="
21470 + --disable-gnutls
21471 + --disable-openssl
21472 + "
21473 + fi
21474 +
21475 + econf \
21476 + --libdir=/usr/$(get_libdir) \
21477 + --localstatedir=/var \
21478 + --with-cups-user=lp \
21479 + --with-cups-group=lp \
21480 + --with-docdir=/usr/share/cups/html \
21481 + --with-languages="${LINGUAS}" \
21482 + --with-pdftops=/usr/bin/pdftops \
21483 + --with-system-groups=lpadmin \
21484 + $(use_enable acl) \
21485 + $(use_enable avahi) \
21486 + $(use_enable dbus) \
21487 + $(use_enable debug) \
21488 + $(use_enable debug debug-guards) \
21489 + $(use_enable jpeg) \
21490 + $(use_enable kerberos gssapi) \
21491 + $(use_enable ldap) \
21492 + $(use_enable pam) \
21493 + $(use_enable png) \
21494 + $(use_enable slp) \
21495 + $(use_enable static-libs static) \
21496 + $(use_enable threads) \
21497 + $(use_enable tiff) \
21498 + $(use_enable usb libusb) \
21499 + $(use_with java) \
21500 + $(use_with perl) \
21501 + --without-php \
21502 + $(use_with python) \
21503 + $(use_with xinetd xinetd /etc/xinetd.d) \
21504 + --enable-libpaper \
21505 + --disable-dnssd \
21506 + $(use_with systemd systemdsystemunitdir "$(systemd_get_unitdir)") \
21507 + ${myconf}
21508 +
21509 + # install in /usr/libexec always, instead of using /usr/lib/cups, as that
21510 + # makes more sense when facing multilib support.
21511 + sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die
21512 + sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
21513 + sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
21514 +}
21515 +
21516 +src_compile() {
21517 + emake
21518 +
21519 + if use perl ; then
21520 + cd "${S}"/scripting/perl
21521 + perl-module_src_prep
21522 + perl-module_src_compile
21523 + fi
21524 +}
21525 +
21526 +src_install() {
21527 + # Fix install-sh, posix sh does not have 'function'.
21528 + sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
21529 +
21530 + emake BUILDROOT="${D}" install
21531 + dodoc {CHANGES,CREDITS,README}.txt
21532 +
21533 + if use perl ; then
21534 + pushd scripting/perl > /dev/null
21535 + perl-module_src_install
21536 + fixlocalpod
21537 + popd > /dev/null
21538 + fi
21539 +
21540 + # move the default config file to docs
21541 + dodoc "${ED}"/etc/cups/cupsd.conf.default
21542 + rm -f "${ED}"/etc/cups/cupsd.conf.default
21543 +
21544 + # clean out cups init scripts
21545 + rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups}
21546 +
21547 + # install our init script
21548 + local neededservices
21549 + use avahi && neededservices+=" avahi-daemon"
21550 + use dbus && neededservices+=" dbus"
21551 + [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
21552 + cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
21553 + sed -i \
21554 + -e "s/@neededservices@/$neededservices/" \
21555 + "${T}"/cupsd || die
21556 + doinitd "${T}"/cupsd
21557 +
21558 + # install our pam script
21559 + pamd_mimic_system cups auth account
21560 +
21561 + if use xinetd ; then
21562 + # correct path
21563 + sed -i \
21564 + -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
21565 + "${ED}"/etc/xinetd.d/cups-lpd || die
21566 + # it is safer to disable this by default, bug #137130
21567 + grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \
21568 + { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; }
21569 + # write permission for file owner (root), bug #296221
21570 + fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
21571 + else
21572 + rm -rf "${ED}"/etc/xinetd.d
21573 + fi
21574 +
21575 + keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
21576 + /var/cache/cups /var/cache/cups/rss /var/log/cups \
21577 + /var/spool/cups/tmp
21578 +
21579 + keepdir /etc/cups/{interfaces,ppd,ssl}
21580 +
21581 + use X || rm -r "${ED}"/usr/share/applications
21582 +
21583 + # create /etc/cups/client.conf, bug #196967 and #266678
21584 + echo "ServerName /var/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf
21585 +}
21586 +
21587 +pkg_preinst() {
21588 + gnome2_icon_savelist
21589 +}
21590 +
21591 +pkg_postinst() {
21592 + # Update desktop file database and gtk icon cache (bug 370059)
21593 + gnome2_icon_cache_update
21594 + fdo-mime_desktop_database_update
21595 +
21596 + echo
21597 + elog "For information about installing a printer and general cups setup"
21598 + elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
21599 + echo
21600 + elog "Network browsing for printers is now switched off by default in the config file."
21601 + elog "To (re-)enable it, edit /etc/cups/cupsd.conf and set \"Browsing On\", "
21602 + elog "afterwards re-start or reload cups."
21603 + echo
21604 +}
21605 +
21606 +pkg_postrm() {
21607 + # Update desktop file database and gtk icon cache (bug 370059)
21608 + gnome2_icon_cache_update
21609 + fdo-mime_desktop_database_update
21610 +}
21611
21612 diff --git a/net-print/cups/cups-1.4.8-r1.ebuild b/net-print/cups/cups-1.4.8-r1.ebuild
21613 new file mode 100644
21614 index 0000000..ea7b850
21615 --- /dev/null
21616 +++ b/net-print/cups/cups-1.4.8-r1.ebuild
21617 @@ -0,0 +1,268 @@
21618 +# Copyright 1999-2012 Gentoo Foundation
21619 +# Distributed under the terms of the GNU General Public License v2
21620 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.8-r1.ebuild,v 1.13 2012/06/01 04:19:51 zmedico Exp $
21621 +
21622 +EAPI=3
21623 +
21624 +PYTHON_DEPEND="python? 2:2.5"
21625 +
21626 +inherit autotools eutils flag-o-matic linux-info multilib pam perl-module python versionator user java-pkg-opt-2
21627 +
21628 +MY_P=${P/_}
21629 +
21630 +DESCRIPTION="The Common Unix Printing System"
21631 +HOMEPAGE="http://www.cups.org/"
21632 +SRC_URI="mirror://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2"
21633 +
21634 +LICENSE="GPL-2"
21635 +SLOT="0"
21636 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
21637 +IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python slp +ssl static-libs +threads +tiff X xinetd"
21638 +
21639 +LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
21640 +for X in ${LANGS} ; do
21641 + IUSE="${IUSE} linguas_${X}"
21642 +done
21643 +
21644 +RDEPEND="
21645 + app-text/libpaper
21646 + acl? (
21647 + kernel_linux? (
21648 + sys-apps/acl
21649 + sys-apps/attr
21650 + )
21651 + )
21652 + dbus? ( sys-apps/dbus )
21653 + java? ( >=virtual/jre-1.6 )
21654 + jpeg? ( virtual/jpeg:0 )
21655 + kerberos? ( virtual/krb5 )
21656 + ldap? ( net-nds/openldap[ssl?,gnutls?] )
21657 + pam? ( virtual/pam )
21658 + perl? ( dev-lang/perl )
21659 + php? ( dev-lang/php )
21660 + png? ( >=media-libs/libpng-1.4.3:0 )
21661 + slp? ( >=net-libs/openslp-1.0.4 )
21662 + ssl? (
21663 + gnutls? (
21664 + dev-libs/libgcrypt
21665 + net-libs/gnutls
21666 + )
21667 + !gnutls? ( >=dev-libs/openssl-0.9.8g )
21668 + )
21669 + tiff? ( >=media-libs/tiff-3.5.5:0 )
21670 + X? ( x11-misc/xdg-utils )
21671 + xinetd? ( sys-apps/xinetd )
21672 + !net-print/cupsddk
21673 +"
21674 +
21675 +DEPEND="${RDEPEND}
21676 + virtual/pkgconfig
21677 +"
21678 +
21679 +PDEPEND="
21680 + app-text/ghostscript-gpl[cups]
21681 + >=app-text/poppler-0.12.3-r3[utils]
21682 + filters? ( net-print/foomatic-filters )
21683 +"
21684 +
21685 +# upstream includes an interactive test which is a nono for gentoo.
21686 +RESTRICT="test"
21687 +
21688 +S="${WORKDIR}/${MY_P}"
21689 +
21690 +pkg_setup() {
21691 + enewgroup lp
21692 + enewuser lp -1 -1 -1 lp
21693 + enewgroup lpadmin 106
21694 +
21695 + # python 3 is no-go
21696 + if use python; then
21697 + python_set_active_version 2
21698 + python_pkg_setup
21699 + fi
21700 +
21701 + linux-info_pkg_setup
21702 + if ! linux_config_exists; then
21703 + ewarn "Can't check the linux kernel configuration."
21704 + ewarn "You might have some incompatible options enabled."
21705 + else
21706 + #here we should warn user that he should enable it so he can print
21707 + if ! linux_chkconfig_present USB_PRINTER; then
21708 + ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
21709 + ewarn "support in your kernel."
21710 + ewarn "Please enable it:"
21711 + ewarn " CONFIG_USB_PRINTER=y"
21712 + ewarn "in /usr/src/linux/.config or"
21713 + ewarn " Device Drivers --->"
21714 + ewarn " USB support --->"
21715 + ewarn " [*] USB Printer support"
21716 + fi
21717 + fi
21718 +}
21719 +
21720 +src_prepare() {
21721 + # create a missing symlink to allow https printing via IPP, bug #217293
21722 + epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch"
21723 + # various build time fixes
21724 + epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
21725 + epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
21726 + epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
21727 + epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
21728 + epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
21729 + epatch "${FILESDIR}/${PN}-1.4.6-force-gnutls.patch"
21730 + epatch "${FILESDIR}/${PN}-1.4.6-serialize-gnutls.patch"
21731 + # security fixes
21732 + epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch"
21733 +
21734 + AT_M4DIR=config-scripts eaclocal
21735 + eautoconf
21736 +}
21737 +
21738 +src_configure() {
21739 + export DSOFLAGS="${LDFLAGS}"
21740 +
21741 + # locale support
21742 + strip-linguas ${LANGS}
21743 + if [ -z "${LINGUAS}" ] ; then
21744 + export LINGUAS=none
21745 + fi
21746 +
21747 + local myconf
21748 + if use ssl || use gnutls ; then
21749 + myconf+="
21750 + $(use_enable gnutls)
21751 + $(use_enable !gnutls openssl)
21752 + "
21753 + else
21754 + myconf+="
21755 + --disable-gnutls
21756 + --disable-openssl
21757 + "
21758 + fi
21759 +
21760 + # bug 352252, recheck for later versions if still necessary....
21761 + if use gnutls && ! use threads ; then
21762 + ewarn "The useflag gnutls requires also threads enabled. Switching on threads."
21763 + fi
21764 + if use gnutls || use threads ; then
21765 + myconf+=" --enable-threads "
21766 + else
21767 + myconf+=" --disable-threads "
21768 + fi
21769 +
21770 + econf \
21771 + --libdir=/usr/$(get_libdir) \
21772 + --localstatedir=/var \
21773 + --with-cups-user=lp \
21774 + --with-cups-group=lp \
21775 + --with-docdir=/usr/share/cups/html \
21776 + --with-languages="${LINGUAS}" \
21777 + --with-pdftops=/usr/bin/pdftops \
21778 + --with-system-groups=lpadmin \
21779 + $(use_enable acl) \
21780 + $(use_enable dbus) \
21781 + $(use_enable debug) \
21782 + $(use_enable debug debug-guards) \
21783 + $(use_enable jpeg) \
21784 + $(use_enable kerberos gssapi) \
21785 + $(use_enable ldap) \
21786 + $(use_enable pam) \
21787 + $(use_enable png) \
21788 + $(use_enable slp) \
21789 + $(use_enable static-libs static) \
21790 + $(use_enable tiff) \
21791 + $(use_with java) \
21792 + $(use_with perl) \
21793 + $(use_with php) \
21794 + $(use_with python) \
21795 + $(use_with xinetd xinetd /etc/xinetd.d) \
21796 + --enable-libpaper \
21797 + --disable-libusb \
21798 + --disable-dnssd \
21799 + ${myconf}
21800 +
21801 + # install in /usr/libexec always, instead of using /usr/lib/cups, as that
21802 + # makes more sense when facing multilib support.
21803 + sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die
21804 + sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
21805 + sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
21806 +}
21807 +
21808 +src_compile() {
21809 + emake || die "emake failed"
21810 +
21811 + if use perl ; then
21812 + cd "${S}"/scripting/perl
21813 + perl-module_src_prep
21814 + perl-module_src_compile
21815 + fi
21816 +
21817 + if use php ; then
21818 + cd "${S}"/scripting/php
21819 + emake || die "emake php failed"
21820 + fi
21821 +}
21822 +
21823 +src_install() {
21824 + emake BUILDROOT="${D}" install || die "emake install failed"
21825 + dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed"
21826 +
21827 + if use perl ; then
21828 + cd "${S}"/scripting/perl
21829 + perl-module_src_install
21830 + fixlocalpod
21831 + fi
21832 +
21833 + if use php ; then
21834 + cd "${S}"/scripting/php
21835 + emake DESTDIR="${D}" install || die "emake install for php bindings failed"
21836 + fi
21837 +
21838 + # clean out cups init scripts
21839 + rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
21840 +
21841 + # install our init script
21842 + local neededservices
21843 + use dbus && neededservices+=" dbus"
21844 + [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
21845 + cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
21846 + sed -i \
21847 + -e "s/@neededservices@/$neededservices/" \
21848 + "${T}"/cupsd || die
21849 + doinitd "${T}"/cupsd || die "doinitd failed"
21850 +
21851 + # install our pam script
21852 + pamd_mimic_system cups auth account
21853 +
21854 + if use xinetd ; then
21855 + # correct path
21856 + sed -i \
21857 + -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
21858 + "${D}"/etc/xinetd.d/cups-lpd || die
21859 + # it is safer to disable this by default, bug #137130
21860 + grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \
21861 + { sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd || die ; }
21862 + # write permission for file owner (root), bug #296221
21863 + fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
21864 + else
21865 + rm -rf "${D}"/etc/xinetd.d
21866 + fi
21867 +
21868 + keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
21869 + /var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \
21870 + /var/spool/cups/tmp
21871 +
21872 + keepdir /etc/cups/{interfaces,ppd,ssl}
21873 +
21874 + use X || rm -r "${D}"/usr/share/applications
21875 +
21876 + # create /etc/cups/client.conf, bug #196967 and #266678
21877 + echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
21878 +}
21879 +
21880 +pkg_postinst() {
21881 + echo
21882 + elog "For information about installing a printer and general cups setup"
21883 + elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
21884 + echo
21885 +}
21886
21887 diff --git a/net-print/cups/cups-1.4.8-r23.ebuild b/net-print/cups/cups-1.4.8-r23.ebuild
21888 new file mode 100644
21889 index 0000000..f09c2e9
21890 --- /dev/null
21891 +++ b/net-print/cups/cups-1.4.8-r23.ebuild
21892 @@ -0,0 +1,311 @@
21893 +# Copyright 1999-2012 Gentoo Foundation
21894 +# Distributed under the terms of the GNU General Public License v2
21895 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.8-r23.ebuild,v 1.7 2012/06/01 04:19:51 zmedico Exp $
21896 +
21897 +EAPI=3
21898 +
21899 +PYTHON_DEPEND="python? 2:2.5"
21900 +
21901 +inherit autotools eutils fdo-mime gnome2-utils flag-o-matic linux-info multilib pam perl-module python user versionator java-pkg-opt-2
21902 +
21903 +MY_P=${P/_}
21904 +
21905 +DESCRIPTION="The Common Unix Printing System"
21906 +HOMEPAGE="http://www.cups.org/"
21907 +SRC_URI="mirror://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2"
21908 +
21909 +LICENSE="GPL-2"
21910 +SLOT="0"
21911 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
21912 +IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python slp +ssl static-libs +threads +tiff usb X xinetd"
21913 +
21914 +LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
21915 +for X in ${LANGS} ; do
21916 + IUSE="${IUSE} linguas_${X}"
21917 +done
21918 +
21919 +RDEPEND="
21920 + app-text/libpaper
21921 + acl? (
21922 + kernel_linux? (
21923 + sys-apps/acl
21924 + sys-apps/attr
21925 + )
21926 + )
21927 + dbus? ( sys-apps/dbus )
21928 + java? ( >=virtual/jre-1.6 )
21929 + jpeg? ( virtual/jpeg:0 )
21930 + kerberos? ( virtual/krb5 )
21931 + ldap? ( net-nds/openldap[ssl?,gnutls?] )
21932 + pam? ( virtual/pam )
21933 + perl? ( dev-lang/perl )
21934 + php? ( dev-lang/php )
21935 + png? ( >=media-libs/libpng-1.4.3:0 )
21936 + slp? ( >=net-libs/openslp-1.0.4 )
21937 + ssl? (
21938 + gnutls? (
21939 + dev-libs/libgcrypt
21940 + net-libs/gnutls
21941 + )
21942 + !gnutls? ( >=dev-libs/openssl-0.9.8g )
21943 + )
21944 + tiff? ( >=media-libs/tiff-3.5.5:0 )
21945 + usb? ( virtual/libusb:0 )
21946 + X? ( x11-misc/xdg-utils )
21947 + xinetd? ( sys-apps/xinetd )
21948 + !net-print/cupsddk
21949 +"
21950 +
21951 +DEPEND="${RDEPEND}
21952 + virtual/pkgconfig
21953 +"
21954 +
21955 +PDEPEND="
21956 + app-text/ghostscript-gpl[cups]
21957 + >=app-text/poppler-0.12.3-r3[utils]
21958 + filters? ( net-print/foomatic-filters )
21959 +"
21960 +
21961 +# upstream includes an interactive test which is a nono for gentoo.
21962 +RESTRICT="test"
21963 +
21964 +S="${WORKDIR}/${MY_P}"
21965 +
21966 +pkg_setup() {
21967 + enewgroup lp
21968 + enewuser lp -1 -1 -1 lp
21969 + enewgroup lpadmin 106
21970 +
21971 + # python 3 is no-go
21972 + if use python; then
21973 + python_set_active_version 2
21974 + python_pkg_setup
21975 + fi
21976 +
21977 + if use usb; then
21978 + elog "You are going to use new libusb backed to access your usb printer."
21979 + elog "This interface has quite few known issues and does not report all"
21980 + elog "issues and just refuses to print."
21981 + elog "Please consider disabling usb useflag if you are having issues."
21982 + elog
21983 + elog "Please note that if you disable the usb useflag your device will be"
21984 + elog "still working using kernel usblp interface instead of libusb."
21985 + echo
21986 + fi
21987 +
21988 + linux-info_pkg_setup
21989 + if ! linux_config_exists; then
21990 + ewarn "Can't check the linux kernel configuration."
21991 + ewarn "You might have some incompatible options enabled."
21992 + else
21993 + # recheck that we don't have usblp to collide with libusb
21994 + if use usb; then
21995 + if linux_chkconfig_present USB_PRINTER; then
21996 + eerror "Your usb printers will be managed via libusb which collides with kernel module."
21997 + eerror "${P} requires the USB_PRINTER support disabled."
21998 + eerror "Please disable it:"
21999 + eerror " CONFIG_USB_PRINTER=n"
22000 + eerror "in /usr/src/linux/.config or"
22001 + eerror " Device Drivers --->"
22002 + eerror " USB support --->"
22003 + eerror " [ ] USB Printer support"
22004 + eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
22005 + fi
22006 + else
22007 + #here we should warn user that he should enable it so he can print
22008 + if ! linux_chkconfig_present USB_PRINTER; then
22009 + ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
22010 + ewarn "support in your kernel."
22011 + ewarn "Please enable it:"
22012 + ewarn " CONFIG_USB_PRINTER=y"
22013 + ewarn "in /usr/src/linux/.config or"
22014 + ewarn " Device Drivers --->"
22015 + ewarn " USB support --->"
22016 + ewarn " [*] USB Printer support"
22017 + ewarn "Alternatively, enable the usb useflag for cups and use the new, less-tested libusb code."
22018 + fi
22019 + fi
22020 + fi
22021 +}
22022 +
22023 +src_prepare() {
22024 + # create a missing symlink to allow https printing via IPP, bug #217293
22025 + epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch"
22026 + # various build time fixes
22027 + epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
22028 + epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
22029 + epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
22030 + epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
22031 + epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
22032 + epatch "${FILESDIR}/${PN}-1.4.6-force-gnutls.patch"
22033 + epatch "${FILESDIR}/${PN}-1.4.6-serialize-gnutls.patch"
22034 + epatch "${FILESDIR}/${PN}-1.4.8-largeimage.patch"
22035 + # security fixes
22036 + epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch"
22037 +
22038 + AT_M4DIR=config-scripts eaclocal
22039 + eautoconf
22040 +}
22041 +
22042 +src_configure() {
22043 + export DSOFLAGS="${LDFLAGS}"
22044 +
22045 + # locale support
22046 + strip-linguas ${LANGS}
22047 + if [ -z "${LINGUAS}" ] ; then
22048 + export LINGUAS=none
22049 + fi
22050 +
22051 + local myconf
22052 + if use ssl || use gnutls ; then
22053 + myconf+="
22054 + $(use_enable gnutls)
22055 + $(use_enable !gnutls openssl)
22056 + "
22057 + else
22058 + myconf+="
22059 + --disable-gnutls
22060 + --disable-openssl
22061 + "
22062 + fi
22063 +
22064 + # bug 352252, recheck for later versions if still necessary....
22065 + if use gnutls && ! use threads ; then
22066 + ewarn "The useflag gnutls requires also threads enabled. Switching on threads."
22067 + fi
22068 + if use gnutls || use threads ; then
22069 + myconf+=" --enable-threads "
22070 + else
22071 + myconf+=" --disable-threads "
22072 + fi
22073 +
22074 + econf \
22075 + --libdir=/usr/$(get_libdir) \
22076 + --localstatedir=/var \
22077 + --with-cups-user=lp \
22078 + --with-cups-group=lp \
22079 + --with-docdir=/usr/share/cups/html \
22080 + --with-languages="${LINGUAS}" \
22081 + --with-pdftops=/usr/bin/pdftops \
22082 + --with-system-groups=lpadmin \
22083 + $(use_enable acl) \
22084 + $(use_enable dbus) \
22085 + $(use_enable debug) \
22086 + $(use_enable debug debug-guards) \
22087 + $(use_enable jpeg) \
22088 + $(use_enable kerberos gssapi) \
22089 + $(use_enable ldap) \
22090 + $(use_enable pam) \
22091 + $(use_enable png) \
22092 + $(use_enable slp) \
22093 + $(use_enable static-libs static) \
22094 + $(use_enable tiff) \
22095 + $(use_enable usb libusb) \
22096 + $(use_with java) \
22097 + $(use_with perl) \
22098 + $(use_with php) \
22099 + $(use_with python) \
22100 + $(use_with xinetd xinetd /etc/xinetd.d) \
22101 + --enable-libpaper \
22102 + --disable-dnssd \
22103 + ${myconf}
22104 +
22105 + # install in /usr/libexec always, instead of using /usr/lib/cups, as that
22106 + # makes more sense when facing multilib support.
22107 + sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die
22108 + sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
22109 + sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
22110 +}
22111 +
22112 +src_compile() {
22113 + emake || die "emake failed"
22114 +
22115 + if use perl ; then
22116 + cd "${S}"/scripting/perl
22117 + perl-module_src_prep
22118 + perl-module_src_compile
22119 + fi
22120 +
22121 + if use php ; then
22122 + cd "${S}"/scripting/php
22123 + emake || die "emake php failed"
22124 + fi
22125 +}
22126 +
22127 +src_install() {
22128 + emake BUILDROOT="${D}" install || die "emake install failed"
22129 + dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed"
22130 +
22131 + if use perl ; then
22132 + cd "${S}"/scripting/perl
22133 + perl-module_src_install
22134 + fixlocalpod
22135 + fi
22136 +
22137 + if use php ; then
22138 + cd "${S}"/scripting/php
22139 + emake DESTDIR="${D}" install || die "emake install for php bindings failed"
22140 + fi
22141 +
22142 + # clean out cups init scripts
22143 + rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
22144 +
22145 + # install our init script
22146 + local neededservices
22147 + use dbus && neededservices+=" dbus"
22148 + [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
22149 + cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
22150 + sed -i \
22151 + -e "s/@neededservices@/$neededservices/" \
22152 + "${T}"/cupsd || die
22153 + doinitd "${T}"/cupsd || die "doinitd failed"
22154 +
22155 + # install our pam script
22156 + pamd_mimic_system cups auth account
22157 +
22158 + if use xinetd ; then
22159 + # correct path
22160 + sed -i \
22161 + -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
22162 + "${D}"/etc/xinetd.d/cups-lpd || die
22163 + # it is safer to disable this by default, bug #137130
22164 + grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \
22165 + { sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd || die ; }
22166 + # write permission for file owner (root), bug #296221
22167 + fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
22168 + else
22169 + rm -rf "${D}"/etc/xinetd.d
22170 + fi
22171 +
22172 + keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
22173 + /var/cache/cups /var/cache/cups/rss /var/log/cups \
22174 + /var/spool/cups/tmp
22175 +
22176 + keepdir /etc/cups/{interfaces,ppd,ssl}
22177 +
22178 + use X || rm -r "${D}"/usr/share/applications
22179 +
22180 + # create /etc/cups/client.conf, bug #196967 and #266678
22181 + echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
22182 +}
22183 +
22184 +pkg_preinst() {
22185 + gnome2_icon_savelist
22186 +}
22187 +
22188 +pkg_postinst() {
22189 + # Update desktop file database and gtk icon cache (bug 370059)
22190 + gnome2_icon_cache_update
22191 + fdo-mime_desktop_database_update
22192 +
22193 + echo
22194 + elog "For information about installing a printer and general cups setup"
22195 + elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
22196 + echo
22197 +}
22198 +
22199 +pkg_postrm() {
22200 + # Update desktop file database and gtk icon cache (bug 370059)
22201 + gnome2_icon_cache_update
22202 + fdo-mime_desktop_database_update
22203 +}
22204
22205 diff --git a/net-print/cups/files/cups-1.4.0-backend-https.patch b/net-print/cups/files/cups-1.4.0-backend-https.patch
22206 new file mode 100644
22207 index 0000000..8a70a20
22208 --- /dev/null
22209 +++ b/net-print/cups/files/cups-1.4.0-backend-https.patch
22210 @@ -0,0 +1,11 @@
22211 +diff -Naur cups-1.4.0/backend/Makefile cups-1.4.0.new/backend/Makefile
22212 +--- cups-1.4.0/backend/Makefile 2009-03-03 20:39:21.000000000 +0100
22213 ++++ cups-1.4.0.new/backend/Makefile 2009-09-01 14:00:05.592615359 +0200
22214 +@@ -91,6 +91,7 @@
22215 + done
22216 + $(RM) $(SERVERBIN)/backend/http
22217 + $(LN) ipp $(SERVERBIN)/backend/http
22218 ++ $(LN) ipp $(SERVERBIN)/backend/https
22219 + if test "x$(DNSSD_BACKEND)" != x; then \
22220 + $(RM) $(SERVERBIN)/backend/mdns; \
22221 + $(LN) $(DNSSD_BACKEND) $(SERVERBIN)/backend/mdns; \
22222
22223 diff --git a/net-print/cups/files/cups-1.4.2-str3200.patch b/net-print/cups/files/cups-1.4.2-str3200.patch
22224 new file mode 100644
22225 index 0000000..47d9114
22226 --- /dev/null
22227 +++ b/net-print/cups/files/cups-1.4.2-str3200.patch
22228 @@ -0,0 +1,43 @@
22229 +Index: scheduler/select.c
22230 +===================================================================
22231 +--- scheduler/select.c (revision 8887)
22232 ++++ scheduler/select.c (working copy)
22233 +@@ -454,7 +454,7 @@
22234 + if (fdptr->read_cb && event->filter == EVFILT_READ)
22235 + (*(fdptr->read_cb))(fdptr->data);
22236 +
22237 +- if (fdptr->write_cb && event->filter == EVFILT_WRITE)
22238 ++ if (fdptr->use > 1 && fdptr->write_cb && event->filter == EVFILT_WRITE)
22239 + (*(fdptr->write_cb))(fdptr->data);
22240 +
22241 + release_fd(fdptr);
22242 +@@ -499,7 +499,8 @@
22243 + if (fdptr->read_cb && (event->events & (EPOLLIN | EPOLLERR | EPOLLHUP)))
22244 + (*(fdptr->read_cb))(fdptr->data);
22245 +
22246 +- if (fdptr->write_cb && (event->events & (EPOLLOUT | EPOLLERR | EPOLLHUP)))
22247 ++ if (fdptr->use > 1 && fdptr->write_cb &&
22248 ++ (event->events & (EPOLLOUT | EPOLLERR | EPOLLHUP)))
22249 + (*(fdptr->write_cb))(fdptr->data);
22250 +
22251 + release_fd(fdptr);
22252 +@@ -590,7 +591,8 @@
22253 + if (fdptr->read_cb && (pfd->revents & (POLLIN | POLLERR | POLLHUP)))
22254 + (*(fdptr->read_cb))(fdptr->data);
22255 +
22256 +- if (fdptr->write_cb && (pfd->revents & (POLLOUT | POLLERR | POLLHUP)))
22257 ++ if (fdptr->use > 1 && fdptr->write_cb &&
22258 ++ (pfd->revents & (POLLOUT | POLLERR | POLLHUP)))
22259 + (*(fdptr->write_cb))(fdptr->data);
22260 +
22261 + release_fd(fdptr);
22262 +@@ -645,7 +647,8 @@
22263 + if (fdptr->read_cb && FD_ISSET(fdptr->fd, &cupsd_current_input))
22264 + (*(fdptr->read_cb))(fdptr->data);
22265 +
22266 +- if (fdptr->write_cb && FD_ISSET(fdptr->fd, &cupsd_current_output))
22267 ++ if (fdptr->use > 1 && fdptr->write_cb &&
22268 ++ FD_ISSET(fdptr->fd, &cupsd_current_output))
22269 + (*(fdptr->write_cb))(fdptr->data);
22270 +
22271 + release_fd(fdptr);
22272
22273 diff --git a/net-print/cups/files/cups-1.4.4-dont-compress-manpages.patch b/net-print/cups/files/cups-1.4.4-dont-compress-manpages.patch
22274 new file mode 100644
22275 index 0000000..4a639c0
22276 --- /dev/null
22277 +++ b/net-print/cups/files/cups-1.4.4-dont-compress-manpages.patch
22278 @@ -0,0 +1,20 @@
22279 +# Source: Fedora
22280 +
22281 +diff -up cups-1.4b2-svn8404/config-scripts/cups-manpages.m4.no-gzip-man cups-1.4b2-svn8404/config-scripts/cups-manpages.m4
22282 +--- cups-1.4b2-svn8404/config-scripts/cups-manpages.m4.no-gzip-man 2009-01-16 08:58:42.000000000 +0000
22283 ++++ cups-1.4b2-svn8404/config-scripts/cups-manpages.m4 2009-03-05 11:11:12.000000000 +0000
22284 +@@ -69,10 +69,10 @@ case "$uname" in
22285 + ;;
22286 + Linux* | GNU* | Darwin*)
22287 + # Linux, GNU Hurd, and Mac OS X
22288 +- MAN1EXT=1.gz
22289 +- MAN5EXT=5.gz
22290 +- MAN7EXT=7.gz
22291 +- MAN8EXT=8.gz
22292 ++ MAN1EXT=1
22293 ++ MAN5EXT=5
22294 ++ MAN7EXT=7
22295 ++ MAN8EXT=8
22296 + MAN8DIR=8
22297 + ;;
22298 + *)
22299
22300 diff --git a/net-print/cups/files/cups-1.4.4-fix-install-perms.patch b/net-print/cups/files/cups-1.4.4-fix-install-perms.patch
22301 new file mode 100644
22302 index 0000000..726f030
22303 --- /dev/null
22304 +++ b/net-print/cups/files/cups-1.4.4-fix-install-perms.patch
22305 @@ -0,0 +1,22 @@
22306 +# Source: Fedora
22307 +
22308 +diff -up cups-1.4.2/Makedefs.in.0755 cups-1.4.2/Makedefs.in
22309 +--- cups-1.4.2/Makedefs.in.0755 2010-01-13 17:06:48.507913044 +0000
22310 ++++ cups-1.4.2/Makedefs.in 2010-01-13 17:07:10.049912905 +0000
22311 +@@ -41,13 +41,13 @@ SHELL = /bin/sh
22312 + # Installation programs...
22313 + #
22314 +
22315 +-INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
22316 ++INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
22317 + INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
22318 + INSTALL_DATA = $(INSTALL) -c -m 444
22319 + INSTALL_DIR = $(INSTALL) -d
22320 +-INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
22321 ++INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
22322 + INSTALL_MAN = $(INSTALL) -c -m 444
22323 +-INSTALL_SCRIPT = $(INSTALL) -c -m 555
22324 ++INSTALL_SCRIPT = $(INSTALL) -c -m 755
22325 +
22326 + #
22327 + # Default user, group, and system groups for the scheduler...
22328
22329 diff --git a/net-print/cups/files/cups-1.4.4-nostrip.patch b/net-print/cups/files/cups-1.4.4-nostrip.patch
22330 new file mode 100644
22331 index 0000000..cd2b070
22332 --- /dev/null
22333 +++ b/net-print/cups/files/cups-1.4.4-nostrip.patch
22334 @@ -0,0 +1,14 @@
22335 +# Source: Gentoo
22336 +
22337 +diff -urN cups-1.4.4/config-scripts/cups-compiler.m4 cups-1.4.4.new/config-scripts/cups-compiler.m4
22338 +--- cups-1.4.4/config-scripts/cups-compiler.m4 2009-05-17 02:13:47.000000000 +0200
22339 ++++ cups-1.4.4.new/config-scripts/cups-compiler.m4 2010-08-12 19:19:45.937020635 +0200
22340 +@@ -30,7 +30,7 @@
22341 + if test x$enable_debug = xyes; then
22342 + OPTIM="-g"
22343 + else
22344 +- INSTALL_STRIP="-s"
22345 ++ INSTALL_STRIP=""
22346 + fi
22347 +
22348 + dnl Debug printfs can slow things down, so provide a separate option for that
22349
22350 diff --git a/net-print/cups/files/cups-1.4.4-perl-includes.patch b/net-print/cups/files/cups-1.4.4-perl-includes.patch
22351 new file mode 100644
22352 index 0000000..677c57d
22353 --- /dev/null
22354 +++ b/net-print/cups/files/cups-1.4.4-perl-includes.patch
22355 @@ -0,0 +1,12 @@
22356 +diff -urN cups-1.4.4/scripting/perl/Makefile.PL cups-1.4.4.new//scripting/perl/Makefile.PL
22357 +--- cups-1.4.4/scripting/perl/Makefile.PL 2002-08-19 22:43:03.000000000 +0200
22358 ++++ cups-1.4.4.new//scripting/perl/Makefile.PL 2010-09-12 19:12:53.173000149 +0200
22359 +@@ -11,7 +11,7 @@
22360 + 'LIBS' => ['-lcups '], # e.g., '-lm'
22361 + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
22362 + # Insert -I. if you add *.h files later:
22363 +- 'INC' => '', # e.g., '-I/usr/include/other'
22364 ++ 'INC' => '-I../../', # e.g., '-I/usr/include/other'
22365 + # Un-comment this if you add C files to link with later:
22366 + # 'OBJECT' => '$(O_FILES)', # link all the C files too
22367 + );
22368
22369 diff --git a/net-print/cups/files/cups-1.4.4-php-destdir.patch b/net-print/cups/files/cups-1.4.4-php-destdir.patch
22370 new file mode 100644
22371 index 0000000..01a64c8
22372 --- /dev/null
22373 +++ b/net-print/cups/files/cups-1.4.4-php-destdir.patch
22374 @@ -0,0 +1,21 @@
22375 +# Source: Gentoo
22376 +
22377 +diff -urN cups-1.4.4/scripting/php/Makefile cups-1.4.4.new//scripting/php/Makefile
22378 +--- cups-1.4.4/scripting/php/Makefile 2008-08-27 23:12:43.000000000 +0200
22379 ++++ cups-1.4.4.new//scripting/php/Makefile 2010-08-13 10:32:35.764063909 +0200
22380 +@@ -95,11 +95,11 @@
22381 +
22382 + install-exec:
22383 + echo Installing $(PHPCUPS) in $(PHPDIR)
22384 +- $(INSTALL_DIR) $(PHPDIR)
22385 +- $(INSTALL_LIB) $(PHPCUPS) $(PHPDIR)
22386 ++ $(INSTALL_DIR) $(DESTDIR)/$(PHPDIR)
22387 ++ $(INSTALL_LIB) $(PHPCUPS) $(DESTDIR)/$(PHPDIR)
22388 + if test "x$(SYMROOT)" != x; then \
22389 +- $(INSTALL_DIR) $(SYMROOT); \
22390 +- cp $(PHPCUPS) $(SYMROOT); \
22391 ++ $(INSTALL_DIR) $(DESTDIR)/$(SYMROOT); \
22392 ++ cp $(PHPCUPS) $(DESTDIR)/$(SYMROOT); \
22393 + fi
22394 +
22395 +
22396
22397 diff --git a/net-print/cups/files/cups-1.4.6-force-gnutls.patch b/net-print/cups/files/cups-1.4.6-force-gnutls.patch
22398 new file mode 100644
22399 index 0000000..06daeb3
22400 --- /dev/null
22401 +++ b/net-print/cups/files/cups-1.4.6-force-gnutls.patch
22402 @@ -0,0 +1,93 @@
22403 +Source: http://pkgs.fedoraproject.org/gitweb/?p=cups.git;a=blob;f=cups-force-gnutls.patch;h=85adaa8bdcc013e5401fffe74306a5fe644cf088;hb=HEAD
22404 +Reason: Force the use of gnutls despite thread-safety concerns (Gentoo bug #350406)
22405 +Upstream: http://cups.org/str.php?L3605
22406 +
22407 +diff -up cups-1.4.4/config-scripts/cups-ssl.m4.force-gnutls cups-1.4.4/config-scripts/cups-ssl.m4
22408 +--- cups-1.4.4/config-scripts/cups-ssl.m4.force-gnutls 2010-09-15 16:49:22.343502552 +0100
22409 ++++ cups-1.4.4/config-scripts/cups-ssl.m4 2010-09-15 16:49:42.347502595 +0100
22410 +@@ -65,23 +65,21 @@ if test x$enable_ssl != xno; then
22411 + if $PKGCONFIG --exists gnutls; then
22412 + if test "x$have_pthread" = xyes; then
22413 + AC_MSG_WARN([The current version of GNU TLS cannot be made thread-safe.])
22414 +- else
22415 +- have_ssl=1
22416 +- SSLLIBS=`$PKGCONFIG --libs gnutls`
22417 +- SSLFLAGS=`$PKGCONFIG --cflags gnutls`
22418 +- AC_DEFINE(HAVE_SSL)
22419 +- AC_DEFINE(HAVE_GNUTLS)
22420 + fi
22421 ++ have_ssl=1
22422 ++ SSLLIBS=`$PKGCONFIG --libs gnutls`
22423 ++ SSLFLAGS=`$PKGCONFIG --cflags gnutls`
22424 ++ AC_DEFINE(HAVE_SSL)
22425 ++ AC_DEFINE(HAVE_GNUTLS)
22426 + elif test "x$LIBGNUTLSCONFIG" != x; then
22427 + if test "x$have_pthread" = xyes; then
22428 + AC_MSG_WARN([The current version of GNU TLS cannot be made thread-safe.])
22429 +- else
22430 +- have_ssl=1
22431 +- SSLLIBS=`$LIBGNUTLSCONFIG --libs`
22432 +- SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
22433 +- AC_DEFINE(HAVE_SSL)
22434 +- AC_DEFINE(HAVE_GNUTLS)
22435 + fi
22436 ++ have_ssl=1
22437 ++ SSLLIBS=`$LIBGNUTLSCONFIG --libs`
22438 ++ SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
22439 ++ AC_DEFINE(HAVE_SSL)
22440 ++ AC_DEFINE(HAVE_GNUTLS)
22441 + fi
22442 +
22443 + if test $have_ssl = 1; then
22444 +diff -up cups-1.4.4/configure.force-gnutls cups-1.4.4/configure
22445 +--- cups-1.4.4/configure.force-gnutls 2010-06-17 19:25:47.000000000 +0100
22446 ++++ cups-1.4.4/configure 2010-09-15 16:50:01.689503165 +0100
22447 +@@ -17542,36 +17542,34 @@ fi
22448 + if test "x$have_pthread" = xyes; then
22449 + { echo "$as_me:$LINENO: WARNING: The current version of GNU TLS cannot be made thread-safe." >&5
22450 + echo "$as_me: WARNING: The current version of GNU TLS cannot be made thread-safe." >&2;}
22451 +- else
22452 +- have_ssl=1
22453 +- SSLLIBS=`$PKGCONFIG --libs gnutls`
22454 +- SSLFLAGS=`$PKGCONFIG --cflags gnutls`
22455 +- cat >>confdefs.h <<\_ACEOF
22456 ++ fi
22457 ++ have_ssl=1
22458 ++ SSLLIBS=`$PKGCONFIG --libs gnutls`
22459 ++ SSLFLAGS=`$PKGCONFIG --cflags gnutls`
22460 ++ cat >>confdefs.h <<\_ACEOF
22461 + #define HAVE_SSL 1
22462 + _ACEOF
22463 +
22464 +- cat >>confdefs.h <<\_ACEOF
22465 ++ cat >>confdefs.h <<\_ACEOF
22466 + #define HAVE_GNUTLS 1
22467 + _ACEOF
22468 +
22469 +- fi
22470 + elif test "x$LIBGNUTLSCONFIG" != x; then
22471 + if test "x$have_pthread" = xyes; then
22472 + { echo "$as_me:$LINENO: WARNING: The current version of GNU TLS cannot be made thread-safe." >&5
22473 + echo "$as_me: WARNING: The current version of GNU TLS cannot be made thread-safe." >&2;}
22474 +- else
22475 +- have_ssl=1
22476 +- SSLLIBS=`$LIBGNUTLSCONFIG --libs`
22477 +- SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
22478 +- cat >>confdefs.h <<\_ACEOF
22479 ++ fi
22480 ++ have_ssl=1
22481 ++ SSLLIBS=`$LIBGNUTLSCONFIG --libs`
22482 ++ SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
22483 ++ cat >>confdefs.h <<\_ACEOF
22484 + #define HAVE_SSL 1
22485 + _ACEOF
22486 +
22487 +- cat >>confdefs.h <<\_ACEOF
22488 ++ cat >>confdefs.h <<\_ACEOF
22489 + #define HAVE_GNUTLS 1
22490 + _ACEOF
22491 +
22492 +- fi
22493 + fi
22494 +
22495 + if test $have_ssl = 1; then
22496
22497 diff --git a/net-print/cups/files/cups-1.4.6-serialize-gnutls.patch b/net-print/cups/files/cups-1.4.6-serialize-gnutls.patch
22498 new file mode 100644
22499 index 0000000..bfe9f5e
22500 --- /dev/null
22501 +++ b/net-print/cups/files/cups-1.4.6-serialize-gnutls.patch
22502 @@ -0,0 +1,113 @@
22503 +Source: http://pkgs.fedoraproject.org/gitweb/?p=cups.git;a=blob;f=cups-serialize-gnutls.patch;h=cdd82cb95574801bf714364a585e31eb05191750;hb=HEAD
22504 +Reason: Perform locking for gnutls and avoid libgcrypt's broken locking (Gentoo bug #350406)
22505 +Upstream: http://cups.org/str.php?L3605
22506 +
22507 +diff -up cups-1.4.4/cups/http.c.serialize-gnutls cups-1.4.4/cups/http.c
22508 +--- cups-1.4.4/cups/http.c.serialize-gnutls 2010-09-17 13:37:01.858871762 +0100
22509 ++++ cups-1.4.4/cups/http.c 2010-09-17 13:55:22.579871934 +0100
22510 +@@ -149,7 +149,7 @@ static int http_write_ssl(http_t *http,
22511 +
22512 + # ifdef HAVE_GNUTLS
22513 + # ifdef HAVE_PTHREAD_H
22514 +-GCRY_THREAD_OPTION_PTHREAD_IMPL;
22515 ++static pthread_mutex_t gnutls_lock;
22516 + # endif /* HAVE_PTHREAD_H */
22517 +
22518 + # elif defined(HAVE_LIBSSL) && defined(HAVE_PTHREAD_H)
22519 +@@ -1231,7 +1231,7 @@ httpInitialize(void)
22520 + */
22521 +
22522 + # ifdef HAVE_PTHREAD_H
22523 +- gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
22524 ++ pthread_mutex_init(&gnutls_lock, NULL);
22525 + # endif /* HAVE_PTHREAD_H */
22526 +
22527 + /*
22528 +@@ -2228,6 +2228,7 @@ _httpWait(http_t *http, /* I - Connect
22529 + if (SSL_pending((SSL *)(http->tls)))
22530 + return (1);
22531 + # elif defined(HAVE_GNUTLS)
22532 ++ /* lock already held here... */
22533 + if (gnutls_record_check_pending(((http_tls_t *)(http->tls))->session))
22534 + return (1);
22535 + # elif defined(HAVE_CDSASSL)
22536 +@@ -2294,6 +2295,8 @@ int /* O - 1 if data is available, 0
22537 + httpWait(http_t *http, /* I - Connection to server */
22538 + int msec) /* I - Milliseconds to wait */
22539 + {
22540 ++ int ret;
22541 ++
22542 + /*
22543 + * First see if there is data in the buffer...
22544 + */
22545 +@@ -2318,7 +2321,17 @@ httpWait(http_t *http, /* I - Connecti
22546 + * If not, check the SSL/TLS buffers and do a select() on the connection...
22547 + */
22548 +
22549 +- return (_httpWait(http, msec, 1));
22550 ++#if defined(HAVE_SSL) && defined(HAVE_GNUTLS) && defined(HAVE_PTHREAD_H)
22551 ++ pthread_mutex_lock(&gnutls_lock);
22552 ++#endif
22553 ++
22554 ++ ret = _httpWait(http, msec, 1);
22555 ++
22556 ++#if defined(HAVE_SSL) && defined(HAVE_GNUTLS) && defined(HAVE_PTHREAD_H)
22557 ++ pthread_mutex_unlock(&gnutls_lock);
22558 ++#endif
22559 ++
22560 ++ return (ret);
22561 + }
22562 +
22563 +
22564 +@@ -2769,7 +2782,9 @@ http_read_ssl(http_t *http, /* I - Conn
22565 + ssize_t result; /* Return value */
22566 +
22567 +
22568 ++ pthread_mutex_lock(&gnutls_lock);
22569 + result = gnutls_record_recv(((http_tls_t *)(http->tls))->session, buf, len);
22570 ++ pthread_mutex_unlock(&gnutls_lock);
22571 +
22572 + if (result < 0 && !errno)
22573 + {
22574 +@@ -3085,6 +3100,7 @@ http_setup_ssl(http_t *http) /* I - Con
22575 + return (-1);
22576 + }
22577 +
22578 ++ pthread_mutex_lock(&gnutls_lock);
22579 + gnutls_certificate_allocate_credentials(credentials);
22580 +
22581 + gnutls_init(&(conn->session), GNUTLS_CLIENT);
22582 +@@ -3104,9 +3120,11 @@ http_setup_ssl(http_t *http) /* I - Con
22583 + free(credentials);
22584 + free(conn);
22585 +
22586 ++ pthread_mutex_unlock(&gnutls_lock);
22587 + return (-1);
22588 + }
22589 +
22590 ++ pthread_mutex_unlock(&gnutls_lock);
22591 + conn->credentials = credentials;
22592 +
22593 + # elif defined(HAVE_CDSASSL)
22594 +@@ -3196,9 +3214,11 @@ http_shutdown_ssl(http_t *http) /* I -
22595 + conn = (http_tls_t *)(http->tls);
22596 + credentials = (gnutls_certificate_client_credentials *)(conn->credentials);
22597 +
22598 ++ pthread_mutex_lock(&gnutls_lock);
22599 + gnutls_bye(conn->session, GNUTLS_SHUT_RDWR);
22600 + gnutls_deinit(conn->session);
22601 + gnutls_certificate_free_credentials(*credentials);
22602 ++ pthread_mutex_unlock(&gnutls_lock);
22603 + free(credentials);
22604 + free(conn);
22605 +
22606 +@@ -3445,7 +3465,9 @@ http_write_ssl(http_t *http, /* I -
22607 + # elif defined(HAVE_GNUTLS)
22608 + ssize_t result; /* Return value */
22609 +
22610 ++ pthread_mutex_lock(&gnutls_lock);
22611 + result = gnutls_record_send(((http_tls_t *)(http->tls))->session, buf, len);
22612 ++ pthread_mutex_unlock(&gnutls_lock);
22613 +
22614 + if (result < 0 && !errno)
22615 + {
22616
22617 diff --git a/net-print/cups/files/cups-1.4.8-CVE-2011-3170.patch b/net-print/cups/files/cups-1.4.8-CVE-2011-3170.patch
22618 new file mode 100644
22619 index 0000000..843456f
22620 --- /dev/null
22621 +++ b/net-print/cups/files/cups-1.4.8-CVE-2011-3170.patch
22622 @@ -0,0 +1,37 @@
22623 +Source: Upstream http://cups.org/str.php?L3914
22624 +Reason: Avoid GIF reader loop (CVE-2011-2896)
22625 +Upstream: Fixed in trunk
22626 +
22627 +diff -up cups-1.4.8/filter/image-gif.c.CVE-2011-2896 cups-1.4.8/filter/image-gif.c
22628 +--- cups-1.4.8/filter/image-gif.c.CVE-2011-2896 2011-06-20 21:37:51.000000000 +0100
22629 ++++ cups-1.4.8/filter/image-gif.c 2011-08-19 11:33:37.547911212 +0100
22630 +@@ -648,11 +648,13 @@ gif_read_lzw(FILE *fp, /* I - File to
22631 +
22632 + if (code == max_code)
22633 + {
22634 +- *sp++ = firstcode;
22635 +- code = oldcode;
22636 ++ if (sp < (stack + 8192))
22637 ++ *sp++ = firstcode;
22638 ++
22639 ++ code = oldcode;
22640 + }
22641 +
22642 +- while (code >= clear_code)
22643 ++ while (code >= clear_code && sp < (stack + 8192))
22644 + {
22645 + *sp++ = table[1][code];
22646 + if (code == table[0][code])
22647 +@@ -661,8 +663,10 @@ gif_read_lzw(FILE *fp, /* I - File to
22648 + code = table[0][code];
22649 + }
22650 +
22651 +- *sp++ = firstcode = table[1][code];
22652 +- code = max_code;
22653 ++ if (sp < (stack + 8192))
22654 ++ *sp++ = firstcode = table[1][code];
22655 ++
22656 ++ code = max_code;
22657 +
22658 + if (code < 4096)
22659 + {
22660
22661 diff --git a/net-print/cups/files/cups-1.4.8-largeimage.patch b/net-print/cups/files/cups-1.4.8-largeimage.patch
22662 new file mode 100644
22663 index 0000000..abf0b44
22664 --- /dev/null
22665 +++ b/net-print/cups/files/cups-1.4.8-largeimage.patch
22666 @@ -0,0 +1,18 @@
22667 +Index: filter/image.c
22668 +===================================================================
22669 +--- filter/image.c (Revision 9872)
22670 ++++ filter/image.c (Revision 9873)
22671 +@@ -349,9 +349,10 @@
22672 + * Load the image as appropriate...
22673 + */
22674 +
22675 +- img->max_ics = CUPS_TILE_MINIMUM;
22676 +- img->xppi = 128;
22677 +- img->yppi = 128;
22678 ++ img->cachefile = -1;
22679 ++ img->max_ics = CUPS_TILE_MINIMUM;
22680 ++ img->xppi = 128;
22681 ++ img->yppi = 128;
22682 +
22683 + if (!memcmp(header, "GIF87a", 6) || !memcmp(header, "GIF89a", 6))
22684 + status = _cupsImageReadGIF(img, fp, primary, secondary, saturation, hue,
22685
22686 diff --git a/net-print/cups/files/cups-1.5.0-systemd-socket.patch b/net-print/cups/files/cups-1.5.0-systemd-socket.patch
22687 new file mode 100644
22688 index 0000000..60918b3
22689 --- /dev/null
22690 +++ b/net-print/cups/files/cups-1.5.0-systemd-socket.patch
22691 @@ -0,0 +1,396 @@
22692 +diff -up cups-1.5.0/config.h.in.systemd-socket cups-1.5.0/config.h.in
22693 +--- cups-1.5.0/config.h.in.systemd-socket 2011-10-18 15:32:40.741672460 +0100
22694 ++++ cups-1.5.0/config.h.in 2011-10-18 15:32:40.843670530 +0100
22695 +@@ -503,6 +503,13 @@
22696 +
22697 +
22698 + /*
22699 ++ * Do we have systemd support?
22700 ++ */
22701 ++
22702 ++#undef HAVE_SYSTEMD
22703 ++
22704 ++
22705 ++/*
22706 + * Various scripting languages...
22707 + */
22708 +
22709 +diff -up cups-1.5.0/config-scripts/cups-systemd.m4.systemd-socket cups-1.5.0/config-scripts/cups-systemd.m4
22710 +--- cups-1.5.0/config-scripts/cups-systemd.m4.systemd-socket 2011-10-18 15:32:40.844670511 +0100
22711 ++++ cups-1.5.0/config-scripts/cups-systemd.m4 2011-10-18 15:33:16.861989058 +0100
22712 +@@ -0,0 +1,36 @@
22713 ++dnl
22714 ++dnl "$Id: cups-1.5.0-systemd-socket.patch,v 1.1 2012/01/28 20:43:10 dilfridge Exp $"
22715 ++dnl
22716 ++dnl systemd stuff for CUPS.
22717 ++
22718 ++dnl Find whether systemd is available
22719 ++
22720 ++SDLIBS=""
22721 ++AC_ARG_WITH([systemdsystemunitdir],
22722 ++ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
22723 ++ [], [with_systemdsystemunitdir=$($PKGCONFIG --variable=systemdsystemunitdir systemd)])
22724 ++if test "x$with_systemdsystemunitdir" != xno; then
22725 ++ AC_MSG_CHECKING(for libsystemd-daemon)
22726 ++ if $PKGCONFIG --exists libsystemd-daemon; then
22727 ++ AC_MSG_RESULT(yes)
22728 ++ SDCFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
22729 ++ SDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
22730 ++ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
22731 ++ AC_DEFINE(HAVE_SYSTEMD)
22732 ++ else
22733 ++ AC_MSG_RESULT(no)
22734 ++ fi
22735 ++fi
22736 ++
22737 ++if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
22738 ++ SYSTEMD_UNITS="cups.service cups.socket cups.path"
22739 ++else
22740 ++ SYSTEMD_UNITS=""
22741 ++fi
22742 ++
22743 ++AC_SUBST(SYSTEMD_UNITS)
22744 ++AC_SUBST(SDLIBS)
22745 ++
22746 ++dnl
22747 ++dnl "$Id: cups-1.5.0-systemd-socket.patch,v 1.1 2012/01/28 20:43:10 dilfridge Exp $"
22748 ++dnl
22749 +diff -up cups-1.5.0/configure.in.systemd-socket cups-1.5.0/configure.in
22750 +--- cups-1.5.0/configure.in.systemd-socket 2010-11-20 01:03:46.000000000 +0000
22751 ++++ cups-1.5.0/configure.in 2011-10-18 15:32:40.844670511 +0100
22752 +@@ -37,6 +37,7 @@ sinclude(config-scripts/cups-pam.m4)
22753 + sinclude(config-scripts/cups-largefile.m4)
22754 + sinclude(config-scripts/cups-dnssd.m4)
22755 + sinclude(config-scripts/cups-launchd.m4)
22756 ++sinclude(config-scripts/cups-systemd.m4)
22757 + sinclude(config-scripts/cups-defaults.m4)
22758 + sinclude(config-scripts/cups-pdf.m4)
22759 + sinclude(config-scripts/cups-scripting.m4)
22760 +@@ -71,6 +72,9 @@ AC_OUTPUT(Makedefs
22761 + conf/snmp.conf
22762 + cups-config
22763 + data/testprint
22764 ++ data/cups.service
22765 ++ data/cups.socket
22766 ++ data/cups.path
22767 + desktop/cups.desktop
22768 + doc/help/ref-cupsd-conf.html
22769 + doc/help/standard.html
22770 +diff -up cups-1.5.0/cups/usersys.c.systemd-socket cups-1.5.0/cups/usersys.c
22771 +--- cups-1.5.0/cups/usersys.c.systemd-socket 2011-10-18 15:32:40.645674277 +0100
22772 ++++ cups-1.5.0/cups/usersys.c 2011-10-18 15:32:40.845670492 +0100
22773 +@@ -770,7 +770,7 @@ cups_read_client_conf(
22774 + struct stat sockinfo; /* Domain socket information */
22775 +
22776 + if (!stat(CUPS_DEFAULT_DOMAINSOCKET, &sockinfo) &&
22777 +- (sockinfo.st_mode & S_IRWXO) == S_IRWXO)
22778 ++ (sockinfo.st_mode & (S_IROTH | S_IWOTH)) == (S_IROTH | S_IWOTH))
22779 + cups_server = CUPS_DEFAULT_DOMAINSOCKET;
22780 + else
22781 + #endif /* CUPS_DEFAULT_DOMAINSOCKET */
22782 +diff -up cups-1.5.0/data/cups.path.in.systemd-socket cups-1.5.0/data/cups.path.in
22783 +--- cups-1.5.0/data/cups.path.in.systemd-socket 2011-10-18 15:32:40.846670473 +0100
22784 ++++ cups-1.5.0/data/cups.path.in 2011-10-18 15:32:40.846670473 +0100
22785 +@@ -0,0 +1,8 @@
22786 ++[Unit]
22787 ++Description=CUPS Printer Service Spool
22788 ++
22789 ++[Path]
22790 ++PathExistsGlob=@CUPS_REQUESTS@/d*
22791 ++
22792 ++[Install]
22793 ++WantedBy=multi-user.target
22794 +diff -up cups-1.5.0/data/cups.service.in.systemd-socket cups-1.5.0/data/cups.service.in
22795 +--- cups-1.5.0/data/cups.service.in.systemd-socket 2011-10-18 15:32:40.846670473 +0100
22796 ++++ cups-1.5.0/data/cups.service.in 2011-10-18 15:32:40.846670473 +0100
22797 +@@ -0,0 +1,9 @@
22798 ++[Unit]
22799 ++Description=CUPS Printing Service
22800 ++
22801 ++[Service]
22802 ++ExecStart=@sbindir@/cupsd -f
22803 ++
22804 ++[Install]
22805 ++Also=cups.socket cups.path
22806 ++WantedBy=printer.target
22807 +diff -up cups-1.5.0/data/cups.socket.in.systemd-socket cups-1.5.0/data/cups.socket.in
22808 +--- cups-1.5.0/data/cups.socket.in.systemd-socket 2011-10-18 15:32:40.847670454 +0100
22809 ++++ cups-1.5.0/data/cups.socket.in 2011-10-18 15:32:40.847670454 +0100
22810 +@@ -0,0 +1,10 @@
22811 ++[Unit]
22812 ++Description=CUPS Printing Service Sockets
22813 ++
22814 ++[Socket]
22815 ++ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
22816 ++ListenStream=631
22817 ++BindIPv6Only=ipv6-only
22818 ++
22819 ++[Install]
22820 ++WantedBy=sockets.target
22821 +diff -up cups-1.5.0/data/Makefile.systemd-socket cups-1.5.0/data/Makefile
22822 +--- cups-1.5.0/data/Makefile.systemd-socket 2011-05-12 06:21:56.000000000 +0100
22823 ++++ cups-1.5.0/data/Makefile 2011-10-18 15:32:40.847670454 +0100
22824 +@@ -112,6 +112,12 @@ install-data:
22825 + $(INSTALL_DATA) $$file $(DATADIR)/ppdc; \
22826 + done
22827 + $(INSTALL_DIR) -m 755 $(DATADIR)/profiles
22828 ++ if test "x$(SYSTEMD_UNITS)" != "x" ; then \
22829 ++ $(INSTALL_DIR) -m 755 $(SYSTEMDUNITDIR); \
22830 ++ for file in $(SYSTEMD_UNITS); do \
22831 ++ $(INSTALL_DATA) $$file $(SYSTEMDUNITDIR); \
22832 ++ done; \
22833 ++ fi
22834 +
22835 +
22836 + #
22837 +@@ -159,6 +165,9 @@ uninstall:
22838 + -$(RMDIR) $(DATADIR)/charsets
22839 + -$(RMDIR) $(DATADIR)/banners
22840 + -$(RMDIR) $(DATADIR)
22841 ++ for file in $(SYSTEMD_UNITS); do \
22842 ++ $(RM) $(SYSTEMDUNITDIR)/$$file; \
22843 ++ done
22844 +
22845 +
22846 + #
22847 +diff -up cups-1.5.0/Makedefs.in.systemd-socket cups-1.5.0/Makedefs.in
22848 +--- cups-1.5.0/Makedefs.in.systemd-socket 2011-10-18 15:32:40.719672876 +0100
22849 ++++ cups-1.5.0/Makedefs.in 2011-10-18 15:32:40.848670435 +0100
22850 +@@ -143,6 +143,7 @@ CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
22851 + CXXLIBS = @CXXLIBS@
22852 + DBUS_NOTIFIER = @DBUS_NOTIFIER@
22853 + DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@
22854 ++SYSTEMD_UNITS = @SYSTEMD_UNITS@
22855 + DNSSD_BACKEND = @DNSSD_BACKEND@
22856 + DSOFLAGS = -L../cups @DSOFLAGS@
22857 + DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
22858 +@@ -151,6 +152,7 @@ FONTS = @FONTS@
22859 + IMGLIBS = @IMGLIBS@
22860 + IMGFILTERS = @IMGFILTERS@
22861 + LAUNCHDLIBS = @LAUNCHDLIBS@
22862 ++SDLIBS = @SDLIBS@
22863 + LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
22864 + -L../scheduler @LDARCHFLAGS@ \
22865 + @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
22866 +@@ -267,6 +269,7 @@ PAMFILE = @PAMFILE@
22867 +
22868 + DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
22869 + DBUSDIR = @DBUSDIR@
22870 ++SYSTEMDUNITDIR = $(BUILDROOT)@systemdsystemunitdir@
22871 +
22872 +
22873 + #
22874 +diff -up cups-1.5.0/scheduler/client.h.systemd-socket cups-1.5.0/scheduler/client.h
22875 +--- cups-1.5.0/scheduler/client.h.systemd-socket 2011-03-25 21:25:38.000000000 +0000
22876 ++++ cups-1.5.0/scheduler/client.h 2011-10-18 15:32:40.848670435 +0100
22877 +@@ -75,6 +75,9 @@ typedef struct
22878 + int fd; /* File descriptor for this server */
22879 + http_addr_t address; /* Bind address of socket */
22880 + http_encryption_t encryption; /* To encrypt or not to encrypt... */
22881 ++#ifdef HAVE_SYSTEMD
22882 ++ int is_systemd; /* Is this a systemd socket? */
22883 ++#endif /* HAVE_SYSTEMD */
22884 + } cupsd_listener_t;
22885 +
22886 +
22887 +diff -up cups-1.5.0/scheduler/listen.c.systemd-socket cups-1.5.0/scheduler/listen.c
22888 +--- cups-1.5.0/scheduler/listen.c.systemd-socket 2011-04-16 00:38:13.000000000 +0100
22889 ++++ cups-1.5.0/scheduler/listen.c 2011-10-18 15:32:40.849670416 +0100
22890 +@@ -401,7 +401,11 @@ cupsdStopListening(void)
22891 + lis;
22892 + lis = (cupsd_listener_t *)cupsArrayNext(Listeners))
22893 + {
22894 +- if (lis->fd != -1)
22895 ++ if (lis->fd != -1
22896 ++#ifdef HAVE_SYSTEMD
22897 ++ && !lis->is_systemd
22898 ++#endif /* HAVE_SYSTEMD */
22899 ++ )
22900 + {
22901 + #ifdef WIN32
22902 + closesocket(lis->fd);
22903 +diff -up cups-1.5.0/scheduler/main.c.systemd-socket cups-1.5.0/scheduler/main.c
22904 +--- cups-1.5.0/scheduler/main.c.systemd-socket 2011-10-18 15:32:40.802671306 +0100
22905 ++++ cups-1.5.0/scheduler/main.c 2011-10-18 15:32:40.851670379 +0100
22906 +@@ -26,6 +26,8 @@
22907 + * launchd_checkin() - Check-in with launchd and collect the listening
22908 + * fds.
22909 + * launchd_checkout() - Update the launchd KeepAlive file as needed.
22910 ++ * systemd_checkin() - Check-in with systemd and collect the
22911 ++ * listening fds.
22912 + * parent_handler() - Catch USR1/CHLD signals...
22913 + * process_children() - Process all dead children...
22914 + * select_timeout() - Calculate the select timeout value.
22915 +@@ -62,6 +64,10 @@
22916 + # endif /* !LAUNCH_JOBKEY_SERVICEIPC */
22917 + #endif /* HAVE_LAUNCH_H */
22918 +
22919 ++#ifdef HAVE_SYSTEMD
22920 ++#include <systemd/sd-daemon.h>
22921 ++#endif /* HAVE_SYSTEMD */
22922 ++
22923 + #if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO)
22924 + # include <malloc.h>
22925 + #endif /* HAVE_MALLOC_H && HAVE_MALLINFO */
22926 +@@ -78,6 +84,9 @@
22927 + static void launchd_checkin(void);
22928 + static void launchd_checkout(void);
22929 + #endif /* HAVE_LAUNCHD */
22930 ++#ifdef HAVE_SYSTEMD
22931 ++static void systemd_checkin(void);
22932 ++#endif /* HAVE_SYSTEMD */
22933 + static void parent_handler(int sig);
22934 + static void process_children(void);
22935 + static void sigchld_handler(int sig);
22936 +@@ -537,6 +546,13 @@ main(int argc, /* I - Number of comm
22937 + }
22938 + #endif /* HAVE_LAUNCHD */
22939 +
22940 ++#ifdef HAVE_SYSTEMD
22941 ++ /*
22942 ++ * If we were started by systemd get the listen sockets file descriptors...
22943 ++ */
22944 ++ systemd_checkin();
22945 ++#endif /* HAVE_SYSTEMD */
22946 ++
22947 + /*
22948 + * Startup the server...
22949 + */
22950 +@@ -759,6 +775,15 @@ main(int argc, /* I - Number of comm
22951 + }
22952 + #endif /* HAVE_LAUNCHD */
22953 +
22954 ++#ifdef HAVE_SYSTEMD
22955 ++ /*
22956 ++ * If we were started by systemd get the listen sockets file
22957 ++ * descriptors...
22958 ++ */
22959 ++
22960 ++ systemd_checkin();
22961 ++#endif /* HAVE_SYSTEMD */
22962 ++
22963 + /*
22964 + * Startup the server...
22965 + */
22966 +@@ -1584,6 +1609,100 @@ launchd_checkout(void)
22967 + }
22968 + #endif /* HAVE_LAUNCHD */
22969 +
22970 ++#ifdef HAVE_SYSTEMD
22971 ++static void
22972 ++systemd_checkin(void)
22973 ++{
22974 ++ int n, fd;
22975 ++
22976 ++ n = sd_listen_fds(0);
22977 ++ if (n < 0)
22978 ++ {
22979 ++ cupsdLogMessage(CUPSD_LOG_ERROR,
22980 ++ "systemd_checkin: Failed to acquire sockets from systemd - %s",
22981 ++ strerror(-n));
22982 ++ exit(EXIT_FAILURE);
22983 ++ return;
22984 ++ }
22985 ++
22986 ++ if (n == 0)
22987 ++ return;
22988 ++
22989 ++ for (fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + n; fd ++)
22990 ++ {
22991 ++ http_addr_t addr;
22992 ++ socklen_t addrlen = sizeof (addr);
22993 ++ int r;
22994 ++ cupsd_listener_t *lis;
22995 ++ char s[256];
22996 ++
22997 ++ r = sd_is_socket(fd, AF_UNSPEC, SOCK_STREAM, 1);
22998 ++ if (r < 0) {
22999 ++ cupsdLogMessage(CUPSD_LOG_ERROR,
23000 ++ "systemd_checkin: Unable to verify socket type - %s",
23001 ++ strerror(-r));
23002 ++ continue;
23003 ++ }
23004 ++
23005 ++ if (!r) {
23006 ++ cupsdLogMessage(CUPSD_LOG_ERROR,
23007 ++ "systemd_checkin: Socket not of the right type");
23008 ++ continue;
23009 ++ }
23010 ++
23011 ++ if (getsockname(fd, (struct sockaddr*) &addr, &addrlen))
23012 ++ {
23013 ++ cupsdLogMessage(CUPSD_LOG_ERROR,
23014 ++ "systemd_checkin: Unable to get local address - %s",
23015 ++ strerror(errno));
23016 ++ continue;
23017 ++ }
23018 ++
23019 ++ /*
23020 ++ * Try to match the systemd socket address to one of the listeners...
23021 ++ */
23022 ++
23023 ++ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners);
23024 ++ lis;
23025 ++ lis = (cupsd_listener_t *)cupsArrayNext(Listeners))
23026 ++ if (httpAddrEqual(&lis->address, &addr))
23027 ++ break;
23028 ++
23029 ++ if (lis)
23030 ++ {
23031 ++ cupsdLogMessage(CUPSD_LOG_DEBUG,
23032 ++ "systemd_checkin: Matched existing listener %s with fd %d...",
23033 ++ httpAddrString(&(lis->address), s, sizeof(s)), fd);
23034 ++ }
23035 ++ else
23036 ++ {
23037 ++ cupsdLogMessage(CUPSD_LOG_DEBUG,
23038 ++ "systemd_checkin: Adding new listener %s with fd %d...",
23039 ++ httpAddrString(&addr, s, sizeof(s)), fd);
23040 ++
23041 ++ if ((lis = calloc(1, sizeof(cupsd_listener_t))) == NULL)
23042 ++ {
23043 ++ cupsdLogMessage(CUPSD_LOG_ERROR,
23044 ++ "systemd_checkin: Unable to allocate listener - "
23045 ++ "%s.", strerror(errno));
23046 ++ exit(EXIT_FAILURE);
23047 ++ }
23048 ++
23049 ++ cupsArrayAdd(Listeners, lis);
23050 ++
23051 ++ memcpy(&lis->address, &addr, sizeof(lis->address));
23052 ++ }
23053 ++
23054 ++ lis->fd = fd;
23055 ++ lis->is_systemd = 1;
23056 ++
23057 ++# ifdef HAVE_SSL
23058 ++ if (_httpAddrPort(&(lis->address)) == 443)
23059 ++ lis->encryption = HTTP_ENCRYPT_ALWAYS;
23060 ++# endif /* HAVE_SSL */
23061 ++ }
23062 ++}
23063 ++#endif /* HAVE_SYSTEMD */
23064 +
23065 + /*
23066 + * 'parent_handler()' - Catch USR1/CHLD signals...
23067 +diff -up cups-1.5.0/scheduler/Makefile.systemd-socket cups-1.5.0/scheduler/Makefile
23068 +--- cups-1.5.0/scheduler/Makefile.systemd-socket 2011-10-18 15:32:40.817671022 +0100
23069 ++++ cups-1.5.0/scheduler/Makefile 2011-10-18 15:32:40.852670360 +0100
23070 +@@ -382,7 +382,7 @@ cupsd: $(CUPSDOBJS) $(LIBCUPSMIME) ../cu
23071 + $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) -L. -lcupsmime \
23072 + $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
23073 + $(LIBPAPER) $(LIBMALLOC) $(SERVERLIBS) $(DNSSDLIBS) $(LIBS) \
23074 +- $(LIBGSSAPI) $(LIBWRAP)
23075 ++ $(LIBGSSAPI) $(LIBWRAP) $(SDLIBS)
23076 +
23077 + cupsd-static: $(CUPSDOBJS) libcupsmime.a ../cups/$(LIBCUPSSTATIC)
23078 + echo Linking $@...
23079 +@@ -390,7 +390,7 @@ cupsd-static: $(CUPSDOBJS) libcupsmime.a
23080 + $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
23081 + ../cups/$(LIBCUPSSTATIC) $(COMMONLIBS) $(LIBZ) $(LIBPAPER) \
23082 + $(LIBMALLOC) $(SERVERLIBS) $(DNSSDLIBS) $(LIBGSSAPI) \
23083 +- $(LIBWRAP)
23084 ++ $(LIBWRAP) $(SDLIBS)
23085 +
23086 +
23087 + #
23088
23089 diff --git a/net-print/cups/files/cups-1.5.2-browsing.patch b/net-print/cups/files/cups-1.5.2-browsing.patch
23090 new file mode 100644
23091 index 0000000..6ab08b1
23092 --- /dev/null
23093 +++ b/net-print/cups/files/cups-1.5.2-browsing.patch
23094 @@ -0,0 +1,13 @@
23095 +diff -ruN cups-1.5.2.orig/conf/cupsd.conf.in cups-1.5.2/conf/cupsd.conf.in
23096 +--- cups-1.5.2.orig/conf/cupsd.conf.in 2010-12-09 22:24:51.000000000 +0100
23097 ++++ cups-1.5.2/conf/cupsd.conf.in 2012-04-19 00:12:31.004045949 +0200
23098 +@@ -18,7 +18,8 @@
23099 + @CUPS_LISTEN_DOMAINSOCKET@
23100 +
23101 + # Show shared printers on the local network.
23102 +-Browsing On
23103 ++# We switch this off by default in Gentoo, to avoid an unnecessary open port.
23104 ++Browsing Off
23105 + BrowseOrder allow,deny
23106 + BrowseAllow all
23107 + BrowseLocalProtocols @CUPS_BROWSE_LOCAL_PROTOCOLS@
23108
23109 diff --git a/net-print/cups/files/cups-1.5.2-linkperl.patch b/net-print/cups/files/cups-1.5.2-linkperl.patch
23110 new file mode 100644
23111 index 0000000..1bffda5
23112 --- /dev/null
23113 +++ b/net-print/cups/files/cups-1.5.2-linkperl.patch
23114 @@ -0,0 +1,12 @@
23115 +diff -ruN cups-1.5.2.orig/scripting/perl/Makefile.PL cups-1.5.2/scripting/perl/Makefile.PL
23116 +--- cups-1.5.2.orig/scripting/perl/Makefile.PL 2002-08-19 22:43:03.000000000 +0200
23117 ++++ cups-1.5.2/scripting/perl/Makefile.PL 2012-04-19 22:11:45.000000000 +0200
23118 +@@ -8,7 +8,7 @@
23119 + ($] >= 5.005 ? ## Add these new keywords supported since 5.005
23120 + (ABSTRACT_FROM => 'CUPS.pm', # retrieve abstract from module
23121 + AUTHOR => 'A. U. Thor <a.u.thor@××××××××××××××××.away>') : ()),
23122 +- 'LIBS' => ['-lcups '], # e.g., '-lm'
23123 ++ 'LIBS' => ['-L../../cups -lcups '], # e.g., '-lm'
23124 + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
23125 + # Insert -I. if you add *.h files later:
23126 + 'INC' => '', # e.g., '-I/usr/include/other'
23127
23128 diff --git a/net-print/cups/files/cups-1.5.2-threads.patch b/net-print/cups/files/cups-1.5.2-threads.patch
23129 new file mode 100644
23130 index 0000000..cb94221
23131 --- /dev/null
23132 +++ b/net-print/cups/files/cups-1.5.2-threads.patch
23133 @@ -0,0 +1,21 @@
23134 +Index: cups/thread-private.h
23135 +===================================================================
23136 +--- cups/thread-private.h (Revision 10432)
23137 ++++ cups/thread-private.h (Revision 10433)
23138 +@@ -49,7 +49,7 @@
23139 + typedef void *(__stdcall *_cups_thread_func_t)(void *arg);
23140 + typedef struct _cups_mutex_s
23141 + {
23142 +- int m_init; /* Flag for on-demand initialization */
23143 ++ int m_init; /* Flag for on-demand initialization */
23144 + CRITICAL_SECTION m_criticalSection;
23145 + /* Win32 Critical Section */
23146 + } _cups_mutex_t;
23147 +@@ -62,6 +62,7 @@
23148 + # define _cupsThreadSetData(k,p) TlsSetValue(k,p)
23149 +
23150 + # else
23151 ++typedef void *(*_cups_thread_func_t)(void *arg);
23152 + typedef char _cups_mutex_t;
23153 + typedef char _cups_rwlock_t;
23154 + typedef void *_cups_threadkey_t;
23155
23156 diff --git a/net-print/cups/files/cups-1.5.2-threads2.patch b/net-print/cups/files/cups-1.5.2-threads2.patch
23157 new file mode 100644
23158 index 0000000..0dece11
23159 --- /dev/null
23160 +++ b/net-print/cups/files/cups-1.5.2-threads2.patch
23161 @@ -0,0 +1,111 @@
23162 +Index: cups/thread-private.h
23163 +===================================================================
23164 +--- cups/thread-private.h (Revision 10434)
23165 ++++ cups/thread-private.h (Revision 10435)
23166 +@@ -3,7 +3,7 @@
23167 + *
23168 + * Private threading definitions for CUPS.
23169 + *
23170 +- * Copyright 2009-2010 by Apple Inc.
23171 ++ * Copyright 2009-2012 by Apple Inc.
23172 + *
23173 + * These coded instructions, statements, and computer programs are the
23174 + * property of Apple Inc. and are protected by Federal copyright
23175 +Index: cups/thread.c
23176 +===================================================================
23177 +--- cups/thread.c (Revision 10434)
23178 ++++ cups/thread.c (Revision 10435)
23179 +@@ -3,7 +3,7 @@
23180 + *
23181 + * Threading primitives for CUPS.
23182 + *
23183 +- * Copyright 2009-2010 by Apple Inc.
23184 ++ * Copyright 2009-2012 by Apple Inc.
23185 + *
23186 + * These coded instructions, statements, and computer programs are the
23187 + * property of Apple Inc. and are protected by Federal copyright
23188 +@@ -113,7 +113,7 @@
23189 + * '_cupsThreadCreate()' - Create a thread.
23190 + */
23191 +
23192 +-int /* O - 0 on failure, 1 on success */
23193 ++int /* O - 0 on failure, 1 on success */
23194 + _cupsThreadCreate(
23195 + _cups_thread_func_t func, /* I - Entry point */
23196 + void *arg) /* I - Entry point context */
23197 +@@ -223,7 +223,7 @@
23198 + * '_cupsThreadCreate()' - Create a thread.
23199 + */
23200 +
23201 +-int /* O - 0 on failure, 1 on success */
23202 ++int /* O - 0 on failure, 1 on success */
23203 + _cupsThreadCreate(
23204 + _cups_thread_func_t func, /* I - Entry point */
23205 + void *arg) /* I - Entry point context */
23206 +@@ -309,6 +309,25 @@
23207 + {
23208 + (void)rwlock;
23209 + }
23210 ++
23211 ++
23212 ++/*
23213 ++ * '_cupsThreadCreate()' - Create a thread.
23214 ++ */
23215 ++
23216 ++int /* O - 0 on failure, 1 on success */
23217 ++_cupsThreadCreate(
23218 ++ _cups_thread_func_t func, /* I - Entry point */
23219 ++ void *arg) /* I - Entry point context */
23220 ++{
23221 ++ fputs("DEBUG: CUPS was compiled without threading support, no thread "
23222 ++ "created.\n", stderr);
23223 ++
23224 ++ (void)func;
23225 ++ (void)arg;
23226 ++
23227 ++ return (0);
23228 ++}
23229 + #endif /* HAVE_PTHREAD_H */
23230 +
23231 +
23232 +Index: cups/globals.c
23233 +===================================================================
23234 +--- cups/globals.c (Revision 10434)
23235 ++++ cups/globals.c (Revision 10435)
23236 +@@ -44,8 +44,10 @@
23237 + static pthread_once_t cups_globals_key_once = PTHREAD_ONCE_INIT;
23238 + /* One-time initialization object */
23239 + #endif /* HAVE_PTHREAD_H */
23240 ++#if defined(HAVE_PTHREAD_H) || defined(WIN32)
23241 + static _cups_mutex_t cups_global_mutex = _CUPS_MUTEX_INITIALIZER;
23242 + /* Global critical section */
23243 ++#endif /* HAVE_PTHREAD_H || WIN32 */
23244 +
23245 +
23246 + /*
23247 +@@ -56,7 +58,9 @@
23248 + static void cups_fix_path(char *path);
23249 + #endif /* WIN32 */
23250 + static _cups_globals_t *cups_globals_alloc(void);
23251 ++#if defined(HAVE_PTHREAD_H) || defined(WIN32)
23252 + static void cups_globals_free(_cups_globals_t *g);
23253 ++#endif /* HAVE_PTHREAD_H || WIN32 */
23254 + #ifdef HAVE_PTHREAD_H
23255 + static void cups_globals_init(void);
23256 + #endif /* HAVE_PTHREAD_H */
23257 +@@ -322,6 +326,7 @@
23258 + * 'cups_globals_free()' - Free global data.
23259 + */
23260 +
23261 ++#if defined(HAVE_PTHREAD_H) || defined(WIN32)
23262 + static void
23263 + cups_globals_free(_cups_globals_t *cg) /* I - Pointer to global data */
23264 + {
23265 +@@ -354,6 +359,7 @@
23266 +
23267 + free(cg);
23268 + }
23269 ++#endif /* HAVE_PTHREAD_H || WIN32 */
23270 +
23271 +
23272 + #ifdef HAVE_PTHREAD_H
23273
23274 diff --git a/net-print/cups/files/cups-1.5.3-fix-install-perms.patch b/net-print/cups/files/cups-1.5.3-fix-install-perms.patch
23275 new file mode 100644
23276 index 0000000..50ad424
23277 --- /dev/null
23278 +++ b/net-print/cups/files/cups-1.5.3-fix-install-perms.patch
23279 @@ -0,0 +1,24 @@
23280 +diff -ruN cups-1.5.3.orig/Makedefs.in cups-1.5.3/Makedefs.in
23281 +--- cups-1.5.3.orig/Makedefs.in 2012-03-01 01:05:55.000000000 +0100
23282 ++++ cups-1.5.3/Makedefs.in 2012-06-02 19:32:42.000000000 +0200
23283 +@@ -41,14 +41,14 @@
23284 + # Installation programs...
23285 + #
23286 +
23287 +-INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
23288 ++INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
23289 + INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
23290 +-INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
23291 +-INSTALL_DATA = $(INSTALL) -c -m 444
23292 ++INSTALL_COMPDATA = $(INSTALL) -c -m 644 @INSTALL_GZIP@
23293 ++INSTALL_DATA = $(INSTALL) -c -m 644
23294 + INSTALL_DIR = $(INSTALL) -d
23295 +-INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
23296 +-INSTALL_MAN = $(INSTALL) -c -m 444
23297 +-INSTALL_SCRIPT = $(INSTALL) -c -m 555
23298 ++INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
23299 ++INSTALL_MAN = $(INSTALL) -c -m 644
23300 ++INSTALL_SCRIPT = $(INSTALL) -c -m 755
23301 +
23302 + #
23303 + # Default user, group, and system groups for the scheduler...
23304
23305 diff --git a/net-print/cups/files/cups-1.6.0-dont-compress-manpages.patch b/net-print/cups/files/cups-1.6.0-dont-compress-manpages.patch
23306 new file mode 100644
23307 index 0000000..62db46e
23308 --- /dev/null
23309 +++ b/net-print/cups/files/cups-1.6.0-dont-compress-manpages.patch
23310 @@ -0,0 +1,19 @@
23311 +Index: config-scripts/cups-manpages.m4
23312 +===================================================================
23313 +--- config-scripts/cups-manpages.m4 (Revision 10458)
23314 ++++ config-scripts/cups-manpages.m4 (Arbeitskopie)
23315 +@@ -69,10 +69,10 @@
23316 + ;;
23317 + Linux* | GNU* | Darwin*)
23318 + # Linux, GNU Hurd, and OS X
23319 +- MAN1EXT=1.gz
23320 +- MAN5EXT=5.gz
23321 +- MAN7EXT=7.gz
23322 +- MAN8EXT=8.gz
23323 ++ MAN1EXT=1
23324 ++ MAN5EXT=5
23325 ++ MAN7EXT=7
23326 ++ MAN8EXT=8
23327 + MAN8DIR=8
23328 + ;;
23329 + *)
23330
23331 diff --git a/net-print/cups/files/cups-1.6.0-fix-install-perms.patch b/net-print/cups/files/cups-1.6.0-fix-install-perms.patch
23332 new file mode 100644
23333 index 0000000..2d7a77c
23334 --- /dev/null
23335 +++ b/net-print/cups/files/cups-1.6.0-fix-install-perms.patch
23336 @@ -0,0 +1,25 @@
23337 +Index: Makedefs.in
23338 +===================================================================
23339 +--- Makedefs.in (Revision 10520)
23340 ++++ Makedefs.in (Arbeitskopie)
23341 +@@ -40,14 +40,14 @@
23342 + # Installation programs...
23343 + #
23344 +
23345 +-INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
23346 +-INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
23347 ++INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
23348 ++INSTALL_COMPDATA = $(INSTALL) -c -m 644 @INSTALL_GZIP@
23349 + INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
23350 +-INSTALL_DATA = $(INSTALL) -c -m 444
23351 ++INSTALL_DATA = $(INSTALL) -c -m 644
23352 + INSTALL_DIR = $(INSTALL) -d
23353 +-INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
23354 +-INSTALL_MAN = $(INSTALL) -c -m 444
23355 +-INSTALL_SCRIPT = $(INSTALL) -c -m 555
23356 ++INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 755 @INSTALL_STRIP@
23357 ++INSTALL_MAN = $(INSTALL) -c -m 644
23358 ++INSTALL_SCRIPT = $(INSTALL) -c -m 755
23359 +
23360 + #
23361 + # Default user, group, and system groups for the scheduler...
23362
23363 diff --git a/net-print/cups/files/cupsd.init.d b/net-print/cups/files/cupsd.init.d
23364 new file mode 100644
23365 index 0000000..1e9ccf8
23366 --- /dev/null
23367 +++ b/net-print/cups/files/cupsd.init.d
23368 @@ -0,0 +1,22 @@
23369 +#!/sbin/runscript
23370 +
23371 +depend() {
23372 + use net
23373 + @neededservices@
23374 + before nfs
23375 + after logger
23376 +}
23377 +
23378 +start() {
23379 + ebegin "Starting cupsd"
23380 + checkpath -q -d -m 0755 -o root:lp /var/run/cups
23381 + checkpath -q -d -m 0511 -o lp:lpadmin /var/run/cups/certs
23382 + start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
23383 + eend $?
23384 +}
23385 +
23386 +stop() {
23387 + ebegin "Stopping cupsd"
23388 + start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
23389 + eend $?
23390 +}
23391
23392 diff --git a/net-print/cups/files/pdftops-1.20.gentoo b/net-print/cups/files/pdftops-1.20.gentoo
23393 new file mode 100644
23394 index 0000000..8fdafe3
23395 --- /dev/null
23396 +++ b/net-print/cups/files/pdftops-1.20.gentoo
23397 @@ -0,0 +1,340 @@
23398 +#!/usr/bin/perl -w
23399 +# pdftops.pl - wrapper script for xpdf's pdftops utility to act as a CUPS filter
23400 +# ==============================================================================
23401 +# 1.00 - 2004-10-05/Bl
23402 +# Initial implementation
23403 +# 1.10 - 2006-09-27/Bl
23404 +# Alternatively, use Adobe Reader in place of Xpdf's pdftops
23405 +# 1.20 - 2007-12-03/Bl
23406 +# Safe temp file creation (fix gentoo bug # 201042)
23407 +#
23408 +# Copyright: Helge Blischke / SRZ Berlin 2004-2006
23409 +# This program is free seoftware and governed by the GNU Public License Version 2.
23410 +#
23411 +# Description:
23412 +# ------------
23413 +# This program wraps the pdftops utility from the xpdf 3.00 (and higher) suite
23414 +# to behave as a CUPS filter as a replacement for the original pdftops filter.
23415 +# As an alternative the Adobe Reader may be used.
23416 +#
23417 +# The main purpose of this approach is to keep the properties of a PDF to be
23418 +# printed as undesturbed as possible, especially with respect to page size,
23419 +# scaling, and positioning.
23420 +#
23421 +# The pdftops utility reads a configuration file 'pdftops.conf' or 'acroread.conf',
23422 +# respectively, in the CUPS_SERVERROOT directory, which must exist but may be empty.
23423 +# The sample configuration file accompanying this program sets the defaults which
23424 +# seem plausible to me with respect to high end production printers.
23425 +#
23426 +# To give the user highest possible flexibility, this program accepts and
23427 +# evaluates a set of job attributes special to this filter, which are
23428 +# described below:
23429 +#
23430 +# pdf-pages=<f>,<l>
23431 +# expands to the -f and -l options of pdftops
23432 +# or the -start and -end options of acroread, respectively
23433 +# to select a page range to process. This is independent
23434 +# of the page-ranges attribute and may significantly
23435 +# increase throughput when printing page ranges.
23436 +# Either of these numbers may be omitted.
23437 +#
23438 +# pdf-paper=<name>
23439 +# For pdftops, <name> may be one of "letter", "legal",
23440 +# "A4", "A3", or "match"; for acroread, the permetted values
23441 +# are "letter", "legal", "tabloid", "ledger", "executive",
23442 +# "a3", "a4", "a5", "b4", "b5", respectively (without the
23443 +# quotes; the names are treated case independent).
23444 +# In case of acroread, no paper specification is equivalent
23445 +# to pdsftops's "match".
23446 +# pdf-paper=<width>x<height>
23447 +# <name> may be one of letter, legal , A4, A3, or match;
23448 +# <width> and <height> are the paper width and height
23449 +# in printers points (1/72 inch). This expands to
23450 +# either the -paper or the -paperh and -paperw options
23451 +# of pdftops or the -size option of acroread.
23452 +#
23453 +# pdf-opw=<password>
23454 +# pdf-upw=<password>
23455 +# expand to the -opw and -upw options of pdftops,
23456 +# respectively and permit printing of password
23457 +# protected PDFs.
23458 +#
23459 +# pdf-<option> where <option> is one of
23460 +# level1, level1sep, level2, level2sep, level3, level3sep,
23461 +# opi, nocrop, expand, noshrink, nocenter.
23462 +# See the pdftops manpage for a detailed description of
23463 +# the respective options.
23464 +# In case of acroread, the options level1, level?sep, opi,
23465 +# nocrop, noshrink, and nocenter are silently ignored.
23466 +#
23467 +# All other pdftops commandline options are refused.
23468 +#
23469 +# The return code of the pdftops utility or acroread, if nonzero, is used as the exit code
23470 +# of this program; error messages of the pdftops utility are only visible
23471 +# if 'debug' is specified as LogLevel in cupsd.conf.
23472 +#
23473 +# NOTE:
23474 +# -----
23475 +# This wrapper script has been initially designed to use the original pdftops utility
23476 +# as a CUPS filter and now extended to alternately use acroread.
23477 +# But there are situations where you need to be able to select either variant, thus it
23478 +# is possible to configure the wrapper to both programs but select one of them by default;
23479 +# the other one then may be selected by command line option:
23480 +#
23481 +# use-pdftops selects pdftops
23482 +# use-acroread selects acroread
23483 +#
23484 +# if both are configured (by defining the appropriate configuration file).
23485 +#
23486 +
23487 +#
23488 +# Site specific parameters - modify as needed
23489 +# ----------------------------------------------------------------------------------
23490 +$pdftops_path = "/usr/bin/pdftops"; # path to the xpdf utility
23491 +$acroread_path = "/opt/bin/acroread"; # path to Adobe Reader
23492 +$default_app = 'use-pdftops'; # the default if both are configured
23493 +$use_pdftops = 1; # default on gentoo and highly recommended
23494 +$use_acroread = 0; # not supported/working on gentoo yet, use at your own risk
23495 +# ----------------------------------------------------------------------------------
23496 +
23497 +use File::Temp qw( tempfile );
23498 +
23499 +#
23500 +# Check which app to use - pdftops or acroread
23501 +#
23502 +$rootdir = $ENV{CUPS_SERVERROOT} || die ("ERROR: CUPS server root directory undefined\n");
23503 +$use_both = $use_pdftops && $use_acroread;
23504 +
23505 +#
23506 +# Check the arguments
23507 +#
23508 +die ("ERROR: wrong number of arguments\n") if (scalar @ARGV < 5);
23509 +
23510 +$jobid = $username = $title = $copies = undef;
23511 +$jobid = shift; # Job ID
23512 +$username = shift; # Job requesting user name
23513 +$title = shift; # Job title
23514 +$copies = shift; # Number of requested copies
23515 +$options = shift; # Textual representation of job attributes
23516 +$pdffile = shift; # Pathname of PDF file to process
23517 +
23518 +if (defined $use_both && $use_both)
23519 +{
23520 + my $optstr = " $options ";
23521 + my $to_use = '';
23522 + if ($optstr =~ /\s+(use-acroread|use-pdftops)\s+/)
23523 + {
23524 + $to_use = $1;
23525 + }
23526 + else
23527 + {
23528 + $to_use = $default_app;
23529 + }
23530 + if ($to_use eq 'use-acroread')
23531 + {
23532 + undef $use_pdftops;
23533 + }
23534 + elsif ($to_use eq 'use-pdftops')
23535 + {
23536 + undef $use_acroread;
23537 + }
23538 + else
23539 + {
23540 + die ("ERROR: cannot use both pdftops and acroread simultaneously\n");
23541 + }
23542 +}
23543 +
23544 +
23545 +if (defined $use_pdftops)
23546 +{
23547 + # If we are reading from STDIN, we must copy the input to a temporary file
23548 + # as the PDF consumer needs a seekable input.
23549 + if (! defined $pdffile)
23550 + {
23551 + my $template = "pdfinXXXXXX";
23552 + my $tmpdir = $ENV{TMPDIR};
23553 + my ($bytes, $buffer);
23554 + my ($tmpfh, $tmpfile) = tempfile ($template, OPEN => 1, DIR => $tmpdir, UNLINK => 0, SUFFIX => '.tmp');
23555 + while (($bytes = read (STDIN, $buffer, 1024)) > 0)
23556 + {
23557 + print $tmpfh "$buffer";
23558 + }
23559 + if ($bytes < 0)
23560 + {
23561 + close ($tmpfh);
23562 + unlink $tmpfile;
23563 + die ("ERROR: pdftops wrapper: $tmpfile: $!\n");
23564 + }
23565 + close ($tmpfh);
23566 + $pdffile = $tmpfile;
23567 + $delete_input = 1; # for deleting the temp file after converting
23568 + }
23569 +}
23570 +
23571 +
23572 +#
23573 +# Check the options string for options to modify the bahaviour of the pdftops utility:
23574 +#
23575 +@optarr = split (/\s+/, $options);
23576 +if (defined $use_pdftops)
23577 +{
23578 + $cmdopt = ""; # do not pass the -cfg argument to the poppler pdftops util
23579 + # The following are the (parameterless) command line options that may be used to change the
23580 + # defaults defiend by pdftops.conf
23581 + $simple = 'level1|level1sep|level2|level2sep|level3|level3sep|opi|nocrop|expand|noshrink|nocenter';
23582 + %papernames = (
23583 + 'letter' => '-paper letter',
23584 + 'tabloid' => '-paperw 792 -paperh 1224',
23585 + 'ledger' => '-paperw 1224 -paperh 792',
23586 + 'legal' => '-paper legal',
23587 + 'executive' => '-paperw 756 -paperh 522',
23588 + 'a3' => '-paper A3',
23589 + 'a4' => '-paper A4',
23590 + 'a5' => '-paperw 421 -paperh 595',
23591 + 'b4' => '-paperw 709 -paperh 1002',
23592 + 'b5' => '-paperw 501 -paperh 709',
23593 + 'match' => '-paper match'
23594 + );
23595 +}
23596 +else
23597 +{
23598 + open (CFG, "<$rootdir/acroread.conf") || die ("ERROR: acroread.conf: $!\n");
23599 + $cmdopt = '-toPostScript';
23600 + while (<CFG>)
23601 + {
23602 + chomp;
23603 + next if (/^\s*#/); # skip comment lines
23604 + next if (/^\s*$/); # skip blank lines
23605 + s/^-\s*//; # discard leading '-' and white space, as it will be generated later
23606 + s/\s+$//; # discard trailing white space
23607 + $cmdopt .= " -$_";
23608 + }
23609 + close (CFG);
23610 + $simple = 'level1|level1sep|level2|level2sep|level3|level3sep|opi|nocrop|expand|noshrink|nocenter';
23611 + %papernames = (
23612 + 'letter' => '-size letter',
23613 + 'tabloid' => '-size tabloid',
23614 + 'ledger' => '-size ledger',
23615 + 'legal' => '-size legal',
23616 + 'executive' => '-size executive',
23617 + 'a3' => '-size a3',
23618 + 'a4' => '-size a4',
23619 + 'a5' => '-size a5',
23620 + 'b4' => '-size b4',
23621 + 'b5' => '-size b5',
23622 + 'match' => '' # this is the default with acroread
23623 + );
23624 +}
23625 +
23626 +foreach my $option (@optarr)
23627 +{
23628 + if ($option =~ /^pdf-(.+)$/)
23629 + { # We assume this is an option to evaluate
23630 + my $optkey = $1; # possible pdftops option
23631 + if ($optkey =~ /^pages=(\d*),(\d*)$/)
23632 + {
23633 + # We do this hack here to avoid clashes with the page-ranges atrribute
23634 + # which is handled by the pstops filter. And we allow one of the numbers
23635 + # to be omitted.
23636 + my $first = $1;
23637 + my $lastp = $2;
23638 + if (defined $use_pdftops)
23639 + {
23640 + $cmdopt .= " -f $1" if ($1); # first page
23641 + $cmdopt .= " -l $2" if ($2); # last page
23642 + }
23643 + else
23644 + {
23645 + $cmdopt .= " -start $1" if ($1); # first page
23646 + $cmdopt .= " -end $2" if ($2); # last page
23647 + }
23648 + }
23649 + elsif ($optkey =~ /^paper=(letter|tabloid|ledger|legal|[Aa]3|[Aa]4|[Aa]5|[Bb]4|[Bb]5|match)$/)
23650 + {
23651 + # evaluate paper name
23652 + my $paper = $1;
23653 + $paper =~ tr/A-Z/a-z/;
23654 + my $value = $papernames{$paper};
23655 + $cmdopt .= " $value" if ($value);
23656 + }
23657 + elsif ($optkey =~ /^paper=(\d+)x(\d+)$/)
23658 + {
23659 + # evaluate paper dimensions
23660 + if (defined $use_pdftops)
23661 + {
23662 + $cmdopt .= " -paperw $1 -paperh $2";
23663 + }
23664 + else
23665 + {
23666 + $cmdopt .= " -size $1" . 'x' . "$2";
23667 + }
23668 + }
23669 + elsif ($optkey =~ /^(o|u)pw=(\S+)$/)
23670 + {
23671 + $cmdopt .= " $1" . 'pw ' . $2 if (defined $use_pdftops); # owner/user password
23672 + }
23673 + elsif ($optkey =~ /^($simple)$/)
23674 + {
23675 + my $thisopt = $1;
23676 + if (defined $use_pdftops)
23677 + {
23678 + $cmdopt .= ' -' . $1; # allowed simple options
23679 + }
23680 + else
23681 + {
23682 + $thisopt =~ s/sep$//; # ignore the ...sep suffix
23683 + if ($thisopt =~ /level1|opi|nocrop|nocenter/)
23684 + {
23685 + $thisopt = '';
23686 + }
23687 + elsif ($thisopt eq 'noshrink')
23688 + {
23689 + $thisopt = '';
23690 + $cmdopt =~ s/ -shrink//;
23691 + }
23692 + $cmdopt .= " -" . $thisopt if ($thisopt);
23693 + }
23694 + }
23695 + else
23696 + {
23697 + warn ("ERROR: pdftops wrapper: illegal attribute \"pdf-$optkey\"\n");
23698 + }
23699 + }
23700 + # All other attributes are processed elsewhere
23701 +}
23702 +#
23703 +# Complete the command
23704 +#
23705 +if (defined $use_pdftops)
23706 +{
23707 + warn ("ERROR: pdftops-options: $cmdopt\n");
23708 +}
23709 +else
23710 +{
23711 + warn ("ERROR: acroread-options: $cmdopt\n");
23712 +}
23713 +if (defined $use_pdftops)
23714 +{
23715 + $rc = system ("$pdftops_path $cmdopt $pdffile -");
23716 +}
23717 +else
23718 +{
23719 + if (defined $pdffile && $pdffile)
23720 + {
23721 + $rc = system ("$acroread_path $cmdopt < $pdffile")
23722 + }
23723 + else
23724 + {
23725 + $rc = system ("$acroread_path $cmdopt");
23726 + }
23727 +}
23728 +if ($rc)
23729 +{
23730 + $ir = $rc & 127;
23731 + $rc >>= 8;
23732 + my $temp = (defined $use_pdftops) ? $pdftops_path : $acroread_path;
23733 + warn ("ERROR: $temp exited with ", ($ir) ? "signal $ir, " : " exit code $rc", "\n");
23734 + exit $rc;
23735 +}
23736 +unlink ($pdffile) if (defined $delete_input); # Delete the temp file if any
23737 +exit 0;
23738
23739 diff --git a/perl-core/Archive-Tar/Archive-Tar-1.54.ebuild b/perl-core/Archive-Tar/Archive-Tar-1.54.ebuild
23740 new file mode 100644
23741 index 0000000..b88b28e
23742 --- /dev/null
23743 +++ b/perl-core/Archive-Tar/Archive-Tar-1.54.ebuild
23744 @@ -0,0 +1,22 @@
23745 +# Copyright 1999-2011 Gentoo Foundation
23746 +# Distributed under the terms of the GNU General Public License v2
23747 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Archive-Tar/Archive-Tar-1.54.ebuild,v 1.11 2011/07/30 12:09:43 tove Exp $
23748 +
23749 +EAPI=2
23750 +
23751 +MODULE_AUTHOR=BINGOS
23752 +inherit perl-module
23753 +
23754 +DESCRIPTION="A Perl module for creation and manipulation of tar files"
23755 +
23756 +SLOT="0"
23757 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
23758 +IUSE=""
23759 +
23760 +DEPEND=">=virtual/perl-IO-Zlib-1.01
23761 + virtual/perl-IO-Compress
23762 + virtual/perl-Package-Constants"
23763 +# dev-perl/IO-String
23764 +RDEPEND="${DEPEND}"
23765 +
23766 +SRC_TEST="do"
23767
23768 diff --git a/perl-core/Archive-Tar/Archive-Tar-1.72.ebuild b/perl-core/Archive-Tar/Archive-Tar-1.72.ebuild
23769 new file mode 100644
23770 index 0000000..d2251f1
23771 --- /dev/null
23772 +++ b/perl-core/Archive-Tar/Archive-Tar-1.72.ebuild
23773 @@ -0,0 +1,22 @@
23774 +# Copyright 1999-2011 Gentoo Foundation
23775 +# Distributed under the terms of the GNU General Public License v2
23776 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Archive-Tar/Archive-Tar-1.72.ebuild,v 1.3 2011/07/30 12:09:43 tove Exp $
23777 +
23778 +EAPI=3
23779 +
23780 +MODULE_AUTHOR=BINGOS
23781 +inherit perl-module
23782 +
23783 +DESCRIPTION="A Perl module for creation and manipulation of tar files"
23784 +
23785 +SLOT="0"
23786 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
23787 +IUSE=""
23788 +
23789 +DEPEND=">=virtual/perl-IO-Zlib-1.01
23790 + virtual/perl-IO-Compress
23791 + virtual/perl-Package-Constants"
23792 +# dev-perl/IO-String
23793 +RDEPEND="${DEPEND}"
23794 +
23795 +SRC_TEST="do"
23796
23797 diff --git a/perl-core/Archive-Tar/Archive-Tar-1.760.0.ebuild b/perl-core/Archive-Tar/Archive-Tar-1.760.0.ebuild
23798 new file mode 100644
23799 index 0000000..af327be
23800 --- /dev/null
23801 +++ b/perl-core/Archive-Tar/Archive-Tar-1.760.0.ebuild
23802 @@ -0,0 +1,23 @@
23803 +# Copyright 1999-2011 Gentoo Foundation
23804 +# Distributed under the terms of the GNU General Public License v2
23805 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Archive-Tar/Archive-Tar-1.760.0.ebuild,v 1.3 2011/07/30 12:09:43 tove Exp $
23806 +
23807 +EAPI=3
23808 +
23809 +MODULE_AUTHOR=BINGOS
23810 +MODULE_VERSION=1.76
23811 +inherit perl-module
23812 +
23813 +DESCRIPTION="A Perl module for creation and manipulation of tar files"
23814 +
23815 +SLOT="0"
23816 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
23817 +IUSE=""
23818 +
23819 +DEPEND=">=virtual/perl-IO-Zlib-1.01
23820 + virtual/perl-IO-Compress
23821 + virtual/perl-Package-Constants"
23822 +# dev-perl/IO-String
23823 +RDEPEND="${DEPEND}"
23824 +
23825 +SRC_TEST="do"
23826
23827 diff --git a/perl-core/Attribute-Handlers/Attribute-Handlers-0.88.ebuild b/perl-core/Attribute-Handlers/Attribute-Handlers-0.88.ebuild
23828 new file mode 100644
23829 index 0000000..0fba0e0
23830 --- /dev/null
23831 +++ b/perl-core/Attribute-Handlers/Attribute-Handlers-0.88.ebuild
23832 @@ -0,0 +1,16 @@
23833 +# Copyright 1999-2011 Gentoo Foundation
23834 +# Distributed under the terms of the GNU General Public License v2
23835 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Attribute-Handlers/Attribute-Handlers-0.88.ebuild,v 1.9 2011/01/08 18:41:00 jer Exp $
23836 +
23837 +EAPI=2
23838 +
23839 +MODULE_AUTHOR=SMUELLER
23840 +inherit perl-module
23841 +
23842 +DESCRIPTION="Simpler definition of attribute handlers"
23843 +
23844 +SLOT="0"
23845 +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~ppc-macos ~x86-solaris"
23846 +IUSE=""
23847 +
23848 +SRC_TEST=do
23849
23850 diff --git a/perl-core/AutoLoader/AutoLoader-5.710.0.ebuild b/perl-core/AutoLoader/AutoLoader-5.710.0.ebuild
23851 new file mode 100644
23852 index 0000000..290d0ac
23853 --- /dev/null
23854 +++ b/perl-core/AutoLoader/AutoLoader-5.710.0.ebuild
23855 @@ -0,0 +1,17 @@
23856 +# Copyright 1999-2011 Gentoo Foundation
23857 +# Distributed under the terms of the GNU General Public License v2
23858 +# $Header: /var/cvsroot/gentoo-x86/perl-core/AutoLoader/AutoLoader-5.710.0.ebuild,v 1.1 2011/05/21 06:47:37 tove Exp $
23859 +
23860 +EAPI=3
23861 +
23862 +MODULE_AUTHOR=SMUELLER
23863 +MODULE_VERSION=5.71
23864 +inherit perl-module
23865 +
23866 +DESCRIPTION="load subroutines only on demand"
23867 +
23868 +SLOT="0"
23869 +KEYWORDS="amd64 ~ppc x86 ~x86-solaris"
23870 +IUSE=""
23871 +
23872 +SRC_TEST=do
23873
23874 diff --git a/perl-core/CGI/CGI-3.510.ebuild b/perl-core/CGI/CGI-3.510.ebuild
23875 new file mode 100644
23876 index 0000000..66fe649
23877 --- /dev/null
23878 +++ b/perl-core/CGI/CGI-3.510.ebuild
23879 @@ -0,0 +1,21 @@
23880 +# Copyright 1999-2011 Gentoo Foundation
23881 +# Distributed under the terms of the GNU General Public License v2
23882 +# $Header: /var/cvsroot/gentoo-x86/perl-core/CGI/CGI-3.510.ebuild,v 1.6 2011/01/22 11:04:07 armin76 Exp $
23883 +
23884 +EAPI=3
23885 +
23886 +MY_PN=${PN}.pm
23887 +MODULE_AUTHOR=MARKSTOS
23888 +MODULE_VERSION=3.51
23889 +inherit perl-module
23890 +
23891 +DESCRIPTION="Simple Common Gateway Interface Class"
23892 +
23893 +SLOT="0"
23894 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
23895 +IUSE=""
23896 +
23897 +#DEPEND="dev-lang/perl"
23898 +# dev-perl/FCGI" #236921
23899 +
23900 +SRC_TEST="do"
23901
23902 diff --git a/perl-core/CGI/CGI-3.520.ebuild b/perl-core/CGI/CGI-3.520.ebuild
23903 new file mode 100644
23904 index 0000000..2ff5e5d
23905 --- /dev/null
23906 +++ b/perl-core/CGI/CGI-3.520.ebuild
23907 @@ -0,0 +1,21 @@
23908 +# Copyright 1999-2011 Gentoo Foundation
23909 +# Distributed under the terms of the GNU General Public License v2
23910 +# $Header: /var/cvsroot/gentoo-x86/perl-core/CGI/CGI-3.520.ebuild,v 1.1 2011/01/26 13:13:25 tove Exp $
23911 +
23912 +EAPI=3
23913 +
23914 +MY_PN=${PN}.pm
23915 +MODULE_AUTHOR=MARKSTOS
23916 +MODULE_VERSION=3.52
23917 +inherit perl-module
23918 +
23919 +DESCRIPTION="Simple Common Gateway Interface Class"
23920 +
23921 +SLOT="0"
23922 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
23923 +IUSE=""
23924 +
23925 +#DEPEND="dev-lang/perl"
23926 +# dev-perl/FCGI" #236921
23927 +
23928 +SRC_TEST="do"
23929
23930 diff --git a/perl-core/CGI/files/3.47-fcgi.patch b/perl-core/CGI/files/3.47-fcgi.patch
23931 new file mode 100644
23932 index 0000000..922a577
23933 --- /dev/null
23934 +++ b/perl-core/CGI/files/3.47-fcgi.patch
23935 @@ -0,0 +1,24 @@
23936 +http://rt.cpan.org/Public/Bug/Display.html?id=49599
23937 +
23938 +--- CGI.pm-3.47/t/fast.t
23939 ++++ CGI.pm-3.47/t/fast.t
23940 +@@ -7,16 +7,16 @@
23941 + $fcgi = $@ ? 0 : 1;
23942 + }
23943 +
23944 +-use Test::More tests => 10;
23945 ++use Test::More tests => 11;
23946 +
23947 + # Shut up "used only once" warnings.
23948 + () = $CGI::Q;
23949 + () = $CGI::Fast::Ext_Request;
23950 +
23951 + SKIP: {
23952 +- skip( 'FCGI not installed, cannot continue', 7 ) unless $fcgi;
23953 ++ skip( 'FCGI not installed, cannot continue', 11 ) unless $fcgi;
23954 +
23955 +- use CGI::Fast;
23956 ++ use_ok( CGI::Fast );
23957 + ok( my $q = CGI::Fast->new(), 'created new CGI::Fast object' );
23958 + is( $q, $CGI::Q, 'checking to see if the object was stored properly' );
23959 + is( $q->param(), (), 'no params' );
23960
23961 diff --git a/perl-core/CPAN-Meta-YAML/CPAN-Meta-YAML-0.3.0.ebuild b/perl-core/CPAN-Meta-YAML/CPAN-Meta-YAML-0.3.0.ebuild
23962 new file mode 100644
23963 index 0000000..e28f1c5
23964 --- /dev/null
23965 +++ b/perl-core/CPAN-Meta-YAML/CPAN-Meta-YAML-0.3.0.ebuild
23966 @@ -0,0 +1,17 @@
23967 +# Copyright 1999-2011 Gentoo Foundation
23968 +# Distributed under the terms of the GNU General Public License v2
23969 +# $Header: /var/cvsroot/gentoo-x86/perl-core/CPAN-Meta-YAML/CPAN-Meta-YAML-0.3.0.ebuild,v 1.3 2011/07/07 04:13:01 aballier Exp $
23970 +
23971 +EAPI=3
23972 +
23973 +MODULE_AUTHOR=DAGOLDEN
23974 +MODULE_VERSION=0.003
23975 +inherit perl-module
23976 +
23977 +DESCRIPTION="Read and write a subset of YAML for CPAN Meta files"
23978 +
23979 +SLOT="0"
23980 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
23981 +IUSE=""
23982 +
23983 +SRC_TEST="do"
23984
23985 diff --git a/perl-core/CPAN-Meta/CPAN-Meta-2.110.440.ebuild b/perl-core/CPAN-Meta/CPAN-Meta-2.110.440.ebuild
23986 new file mode 100644
23987 index 0000000..6f681bb
23988 --- /dev/null
23989 +++ b/perl-core/CPAN-Meta/CPAN-Meta-2.110.440.ebuild
23990 @@ -0,0 +1,31 @@
23991 +# Copyright 1999-2011 Gentoo Foundation
23992 +# Distributed under the terms of the GNU General Public License v2
23993 +# $Header: /var/cvsroot/gentoo-x86/perl-core/CPAN-Meta/CPAN-Meta-2.110.440.ebuild,v 1.5 2011/03/19 12:59:10 armin76 Exp $
23994 +
23995 +EAPI=3
23996 +
23997 +MODULE_AUTHOR=DAGOLDEN
23998 +MODULE_VERSION=2.110440
23999 +inherit perl-module
24000 +
24001 +DESCRIPTION="The distribution metadata for a CPAN dist"
24002 +
24003 +SLOT="0"
24004 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24005 +IUSE=""
24006 +
24007 +RDEPEND="
24008 + >=virtual/perl-Parse-CPAN-Meta-1.440
24009 + virtual/perl-Scalar-List-Utils
24010 + virtual/perl-Storable
24011 + >=virtual/perl-Version-Requirements-0.101.20
24012 + >=virtual/perl-version-0.82"
24013 +DEPEND="${RDEPEND}
24014 + virtual/perl-File-Spec
24015 + >=virtual/perl-File-Temp-0.20
24016 + virtual/perl-IO
24017 + >=virtual/perl-Parse-CPAN-Meta-1.440
24018 + >=virtual/perl-Test-Simple-0.96
24019 + >=virtual/perl-ExtUtils-MakeMaker-6.56"
24020 +
24021 +SRC_TEST="do"
24022
24023 diff --git a/perl-core/CPAN-Meta/CPAN-Meta-2.110.580.ebuild b/perl-core/CPAN-Meta/CPAN-Meta-2.110.580.ebuild
24024 new file mode 100644
24025 index 0000000..48c0c0d
24026 --- /dev/null
24027 +++ b/perl-core/CPAN-Meta/CPAN-Meta-2.110.580.ebuild
24028 @@ -0,0 +1,31 @@
24029 +# Copyright 1999-2011 Gentoo Foundation
24030 +# Distributed under the terms of the GNU General Public License v2
24031 +# $Header: /var/cvsroot/gentoo-x86/perl-core/CPAN-Meta/CPAN-Meta-2.110.580.ebuild,v 1.4 2011/03/19 12:59:10 armin76 Exp $
24032 +
24033 +EAPI=3
24034 +
24035 +MODULE_AUTHOR=DAGOLDEN
24036 +MODULE_VERSION=2.110580
24037 +inherit perl-module
24038 +
24039 +DESCRIPTION="The distribution metadata for a CPAN dist"
24040 +
24041 +SLOT="0"
24042 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24043 +IUSE=""
24044 +
24045 +RDEPEND="
24046 + >=virtual/perl-CPAN-Meta-YAML-0.2.0
24047 + >=virtual/perl-Parse-CPAN-Meta-1.440
24048 + >=virtual/perl-JSON-PP-2.271.30
24049 + virtual/perl-Scalar-List-Utils
24050 + >=virtual/perl-Version-Requirements-0.101.20
24051 + >=virtual/perl-version-0.82"
24052 +DEPEND="${RDEPEND}
24053 + virtual/perl-File-Spec
24054 + >=virtual/perl-File-Temp-0.20
24055 + virtual/perl-IO
24056 + >=virtual/perl-Test-Simple-0.96
24057 + >=virtual/perl-ExtUtils-MakeMaker-6.56"
24058 +
24059 +SRC_TEST="do"
24060
24061 diff --git a/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.024.ebuild b/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.024.ebuild
24062 new file mode 100644
24063 index 0000000..63a7e78
24064 --- /dev/null
24065 +++ b/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.024.ebuild
24066 @@ -0,0 +1,25 @@
24067 +# Copyright 1999-2011 Gentoo Foundation
24068 +# Distributed under the terms of the GNU General Public License v2
24069 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.024.ebuild,v 1.10 2011/07/30 12:10:49 tove Exp $
24070 +
24071 +EAPI=2
24072 +
24073 +MODULE_AUTHOR=PMQS
24074 +inherit perl-module
24075 +
24076 +DESCRIPTION="Low-Level Interface to bzip2 compression library"
24077 +
24078 +SLOT="0"
24079 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24080 +IUSE=""
24081 +
24082 +RDEPEND="app-arch/bzip2"
24083 +DEPEND="${RDEPEND}"
24084 +# test? ( dev-perl/Test-Pod )"
24085 +
24086 +SRC_TEST=do
24087 +
24088 +src_configure(){
24089 + BUILD_BZIP2=0 BZIP2_INCLUDE=. BZIP2_LIB= \
24090 + perl-module_src_configure
24091 +}
24092
24093 diff --git a/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.33.ebuild b/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.33.ebuild
24094 new file mode 100644
24095 index 0000000..7fb240d
24096 --- /dev/null
24097 +++ b/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.33.ebuild
24098 @@ -0,0 +1,32 @@
24099 +# Copyright 1999-2011 Gentoo Foundation
24100 +# Distributed under the terms of the GNU General Public License v2
24101 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Compress-Raw-Bzip2/Compress-Raw-Bzip2-2.33.ebuild,v 1.3 2011/07/30 12:10:49 tove Exp $
24102 +
24103 +EAPI=3
24104 +
24105 +MODULE_AUTHOR=PMQS
24106 +MODULE_VERSION=2.033
24107 +inherit perl-module
24108 +
24109 +DESCRIPTION="Low-Level Interface to bzip2 compression library"
24110 +
24111 +SLOT="0"
24112 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24113 +IUSE=""
24114 +
24115 +RDEPEND="app-arch/bzip2"
24116 +DEPEND="${RDEPEND}"
24117 +# test? ( dev-perl/Test-Pod )"
24118 +
24119 +SRC_TEST=do
24120 +
24121 +src_prepare() {
24122 + rm -rf "${S}"/bzip2-src/ || die
24123 + sed -i '/^bzip2-src/d' "${S}"/MANIFEST || die
24124 + perl-module_src_prepare
24125 +}
24126 +
24127 +src_configure(){
24128 + BUILD_BZIP2=0 BZIP2_INCLUDE=. BZIP2_LIB= \
24129 + perl-module_src_configure
24130 +}
24131
24132 diff --git a/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.024.ebuild b/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.024.ebuild
24133 new file mode 100644
24134 index 0000000..30b9c48
24135 --- /dev/null
24136 +++ b/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.024.ebuild
24137 @@ -0,0 +1,34 @@
24138 +# Copyright 1999-2011 Gentoo Foundation
24139 +# Distributed under the terms of the GNU General Public License v2
24140 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.024.ebuild,v 1.10 2011/07/30 12:11:52 tove Exp $
24141 +
24142 +EAPI=2
24143 +
24144 +MODULE_AUTHOR=PMQS
24145 +inherit multilib perl-module
24146 +
24147 +DESCRIPTION="Low-Level Interface to zlib compression library"
24148 +
24149 +SLOT="0"
24150 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24151 +IUSE=""
24152 +
24153 +RDEPEND=">=sys-libs/zlib-1.2.2.1"
24154 +DEPEND="${RDEPEND}"
24155 +# test? ( dev-perl/Test-Pod )"
24156 +
24157 +SRC_TEST="do"
24158 +
24159 +src_prepare() {
24160 + use prefix || EPREFIX=
24161 + perl-module_src_prepare
24162 +
24163 + cat <<-EOF > "${S}/config.in"
24164 + BUILD_ZLIB = False
24165 + INCLUDE = ${EPREFIX}/usr/include
24166 + LIB = ${EPREFIX}/usr/$(get_libdir)
24167 +
24168 + OLD_ZLIB = False
24169 + GZIP_OS_CODE = AUTO_DETECT
24170 + EOF
24171 +}
24172
24173 diff --git a/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.33.ebuild b/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.33.ebuild
24174 new file mode 100644
24175 index 0000000..9e5d7aa
24176 --- /dev/null
24177 +++ b/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.33.ebuild
24178 @@ -0,0 +1,34 @@
24179 +# Copyright 1999-2011 Gentoo Foundation
24180 +# Distributed under the terms of the GNU General Public License v2
24181 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.33.ebuild,v 1.3 2011/07/30 12:11:52 tove Exp $
24182 +
24183 +EAPI=3
24184 +
24185 +MODULE_AUTHOR=PMQS
24186 +MODULE_VERSION=2.033
24187 +inherit multilib perl-module
24188 +
24189 +DESCRIPTION="Low-Level Interface to zlib compression library"
24190 +
24191 +SLOT="0"
24192 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24193 +IUSE=""
24194 +
24195 +RDEPEND=">=sys-libs/zlib-1.2.5"
24196 +DEPEND="${RDEPEND}"
24197 +# test? ( dev-perl/Test-Pod )"
24198 +
24199 +SRC_TEST="do"
24200 +
24201 +src_prepare() {
24202 + perl-module_src_prepare
24203 +
24204 + cat <<-EOF > "${S}/config.in"
24205 + BUILD_ZLIB = False
24206 + INCLUDE = ${EPREFIX}/usr/include
24207 + LIB = ${EPREFIX}/usr/$(get_libdir)
24208 +
24209 + OLD_ZLIB = False
24210 + GZIP_OS_CODE = AUTO_DETECT
24211 + EOF
24212 +}
24213
24214 diff --git a/perl-core/DB_File/DB_File-1.820.ebuild b/perl-core/DB_File/DB_File-1.820.ebuild
24215 new file mode 100644
24216 index 0000000..5707533
24217 --- /dev/null
24218 +++ b/perl-core/DB_File/DB_File-1.820.ebuild
24219 @@ -0,0 +1,26 @@
24220 +# Copyright 1999-2010 Gentoo Foundation
24221 +# Distributed under the terms of the GNU General Public License v2
24222 +# $Header: /var/cvsroot/gentoo-x86/perl-core/DB_File/DB_File-1.820.ebuild,v 1.9 2010/01/05 18:47:47 nixnut Exp $
24223 +
24224 +MODULE_AUTHOR=PMQS
24225 +inherit perl-module multilib eutils
24226 +
24227 +DESCRIPTION="A Berkeley DB Support Perl Module"
24228 +
24229 +SLOT="0"
24230 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
24231 +IUSE=""
24232 +
24233 +DEPEND="dev-lang/perl
24234 + sys-libs/db"
24235 +
24236 +SRC_TEST="do"
24237 +
24238 +src_unpack() {
24239 + unpack ${A}
24240 + if [ $(get_libdir) != "lib" ] ; then
24241 + sed -i "s:^LIB.*:LIB = /usr/$(get_libdir):" "${S}"/config.in || die
24242 + fi
24243 + cd "${S}"
24244 + epatch "${FILESDIR}"/DB_File-MakeMaker.patch
24245 +}
24246
24247 diff --git a/perl-core/DB_File/DB_File-1.821.ebuild b/perl-core/DB_File/DB_File-1.821.ebuild
24248 new file mode 100644
24249 index 0000000..5c037ab
24250 --- /dev/null
24251 +++ b/perl-core/DB_File/DB_File-1.821.ebuild
24252 @@ -0,0 +1,29 @@
24253 +# Copyright 1999-2011 Gentoo Foundation
24254 +# Distributed under the terms of the GNU General Public License v2
24255 +# $Header: /var/cvsroot/gentoo-x86/perl-core/DB_File/DB_File-1.821.ebuild,v 1.1 2011/01/13 10:41:44 tove Exp $
24256 +
24257 +EAPI=3
24258 +
24259 +MODULE_AUTHOR=PMQS
24260 +MODULE_VERSION=1.821
24261 +inherit perl-module multilib eutils
24262 +
24263 +DESCRIPTION="A Berkeley DB Support Perl Module"
24264 +
24265 +SLOT="0"
24266 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
24267 +IUSE=""
24268 +
24269 +RDEPEND="sys-libs/db"
24270 +DEPEND="${RDEPEND}"
24271 +
24272 +SRC_TEST="do"
24273 +
24274 +src_unpack() {
24275 + unpack ${A}
24276 + if [ $(get_libdir) != "lib" ] ; then
24277 + sed -i "s:^LIB.*:LIB = /usr/$(get_libdir):" "${S}"/config.in || die
24278 + fi
24279 + cd "${S}"
24280 + epatch "${FILESDIR}"/DB_File-MakeMaker.patch
24281 +}
24282
24283 diff --git a/perl-core/DB_File/DB_File-1.822.0.ebuild b/perl-core/DB_File/DB_File-1.822.0.ebuild
24284 new file mode 100644
24285 index 0000000..c4193f8
24286 --- /dev/null
24287 +++ b/perl-core/DB_File/DB_File-1.822.0.ebuild
24288 @@ -0,0 +1,27 @@
24289 +# Copyright 1999-2011 Gentoo Foundation
24290 +# Distributed under the terms of the GNU General Public License v2
24291 +# $Header: /var/cvsroot/gentoo-x86/perl-core/DB_File/DB_File-1.822.0.ebuild,v 1.1 2011/03/14 07:07:13 tove Exp $
24292 +
24293 +EAPI=3
24294 +
24295 +MODULE_AUTHOR=PMQS
24296 +MODULE_VERSION=1.822
24297 +inherit perl-module multilib eutils
24298 +
24299 +DESCRIPTION="A Berkeley DB Support Perl Module"
24300 +
24301 +SLOT="0"
24302 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
24303 +IUSE=""
24304 +
24305 +RDEPEND="sys-libs/db"
24306 +DEPEND="${RDEPEND}"
24307 +
24308 +SRC_TEST="do"
24309 +
24310 +src_prepare() {
24311 + if [[ $(get_libdir) != "lib" ]] ; then
24312 + sed -i "s:^LIB.*:LIB = /usr/$(get_libdir):" "${S}"/config.in || die
24313 + fi
24314 + epatch "${FILESDIR}"/DB_File-MakeMaker.patch
24315 +}
24316
24317 diff --git a/perl-core/DB_File/files/DB_File-MakeMaker.patch b/perl-core/DB_File/files/DB_File-MakeMaker.patch
24318 new file mode 100644
24319 index 0000000..0640fee
24320 --- /dev/null
24321 +++ b/perl-core/DB_File/files/DB_File-MakeMaker.patch
24322 @@ -0,0 +1,11 @@
24323 +--- Makefile.PL.old 2005-06-30 12:31:52.000000000 -0400
24324 ++++ Makefile.PL 2005-06-30 12:35:11.000000000 -0400
24325 +@@ -54,7 +54,7 @@ WriteMakefile(
24326 + 'depend' => { 'Makefile' => 'config.in',
24327 + 'version$(OBJ_EXT)' => 'version.c'},
24328 + 'clean' => { FILES => 'constants.h constants.xs' },
24329 +- 'macro' => { INSTALLDIRS => 'perl', my_files => "@files" },
24330 ++ 'macro' => { INSTALLDIRS => 'vendor', my_files => "@files" },
24331 + 'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz',
24332 + DIST_DEFAULT => 'MyDoubleCheck tardist'},
24333 + );
24334
24335 diff --git a/perl-core/DB_File/files/config.in b/perl-core/DB_File/files/config.in
24336 new file mode 100755
24337 index 0000000..73c04c9
24338 --- /dev/null
24339 +++ b/perl-core/DB_File/files/config.in
24340 @@ -0,0 +1,97 @@
24341 +# Filename: config.in
24342 +#
24343 +# written by Paul Marquess <Paul.Marquess@××××××××××.com>
24344 +# last modified 9th Sept 1997
24345 +# version 1.55
24346 +
24347 +# 1. Where is the file db.h?
24348 +#
24349 +# Change the path below to point to the directory where dh.h is
24350 +# installed on your system.
24351 +
24352 +INCLUDE = /usr/include/db3
24353 +#INCLUDE = /usr/local/BerkeleyDB/include
24354 +#INCLUDE = ./libraries/3.0.55
24355 +
24356 +# 2. Where is libdb?
24357 +#
24358 +# Change the path below to point to the directory where libdb is
24359 +# installed on your system.
24360 +
24361 +LIB = /usr/lib
24362 +#LIB = /usr/local/BerkeleyDB/lib
24363 +#LIB = ./libraries/3.0.55
24364 +
24365 +# 3. What version of Berkely DB have you got?
24366 +#
24367 +# If you have version 2.0 or greater, you can skip this question.
24368 +#
24369 +# If you have Berkeley DB 1.78 or greater you shouldn't have to
24370 +# change the definitions for PREFIX and HASH below.
24371 +#
24372 +# For older versions of Berkeley DB change both PREFIX and HASH to int.
24373 +# Version 1.71, 1.72 and 1.73 are known to need this change.
24374 +#
24375 +# If you don't know what version you have have a look in the file db.h.
24376 +#
24377 +# Search for the string "DB_VERSION_MAJOR". If it is present, you
24378 +# have Berkeley DB version 2 (or greater).
24379 +#
24380 +# If that didn't work, find the definition of the BTREEINFO typedef.
24381 +# Check the return type from the prefix element. It should look like
24382 +# this in an older copy of db.h:
24383 +#
24384 +# int (*prefix) __P((const DBT *, const DBT *));
24385 +#
24386 +# and like this in a more recent copy:
24387 +#
24388 +# size_t (*prefix) /* prefix function */
24389 +# __P((const DBT *, const DBT *));
24390 +#
24391 +# Change the definition of PREFIX, below, to reflect the return type
24392 +# of the prefix function in your db.h.
24393 +#
24394 +# Now find the definition of the HASHINFO typedef. Check the return
24395 +# type of the hash element. Older versions look like this:
24396 +#
24397 +# int (*hash) __P((const void *, size_t));
24398 +#
24399 +# newer like this:
24400 +#
24401 +# u_int32_t /* hash function */
24402 +# (*hash) __P((const void *, size_t));
24403 +#
24404 +# Change the definition of HASH, below, to reflect the return type of
24405 +# the hash function in your db.h.
24406 +#
24407 +
24408 +PREFIX = size_t
24409 +HASH = u_int32_t
24410 +
24411 +# 4. Is the library called libdb?
24412 +#
24413 +# If you have copies of both 1.x and 2.x Berkeley DB installed on
24414 +# your system it can sometimes be tricky to make sure you are using
24415 +# the correct one. Renaming one (or creating a symbolic link) to
24416 +# include the version number of the library can help.
24417 +#
24418 +# For example, if you have both Berkeley DB 2.3.12 and 1.85 on your
24419 +# system and you want to use the Berkeley DB version 2 library you
24420 +# could rename the version 2 library from libdb.a to libdb-2.3.12.a and
24421 +# change the DBNAME line below to look like this:
24422 +#
24423 +# DBNAME = -ldb-2.3.12
24424 +#
24425 +# That will ensure you are linking the correct version of the DB
24426 +# library.
24427 +#
24428 +# Note: If you are building this module with Win32, -llibdb will be
24429 +# used by default.
24430 +#
24431 +# If you have changed the name of the library, uncomment the line
24432 +# below (by removing the leading #) and edit the line to use the name
24433 +# you have picked.
24434 +
24435 +DBNAME = -ldb-3.2
24436 +
24437 +# end of file config.in
24438
24439 diff --git a/perl-core/Digest-MD5/Digest-MD5-2.39.ebuild b/perl-core/Digest-MD5/Digest-MD5-2.39.ebuild
24440 new file mode 100644
24441 index 0000000..0401cbc
24442 --- /dev/null
24443 +++ b/perl-core/Digest-MD5/Digest-MD5-2.39.ebuild
24444 @@ -0,0 +1,20 @@
24445 +# Copyright 1999-2011 Gentoo Foundation
24446 +# Distributed under the terms of the GNU General Public License v2
24447 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-MD5/Digest-MD5-2.39.ebuild,v 1.11 2011/07/30 12:12:45 tove Exp $
24448 +
24449 +EAPI=2
24450 +
24451 +MODULE_AUTHOR=GAAS
24452 +inherit perl-module
24453 +
24454 +DESCRIPTION="MD5 message digest algorithm"
24455 +
24456 +SLOT="0"
24457 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24458 +IUSE=""
24459 +
24460 +RDEPEND="virtual/perl-digest-base"
24461 +DEPEND="${RDEPEND}"
24462 +
24463 +SRC_TEST=do
24464 +mydoc="rfc*.txt"
24465
24466 diff --git a/perl-core/Digest-MD5/Digest-MD5-2.510.0.ebuild b/perl-core/Digest-MD5/Digest-MD5-2.510.0.ebuild
24467 new file mode 100644
24468 index 0000000..63f16d5
24469 --- /dev/null
24470 +++ b/perl-core/Digest-MD5/Digest-MD5-2.510.0.ebuild
24471 @@ -0,0 +1,21 @@
24472 +# Copyright 1999-2012 Gentoo Foundation
24473 +# Distributed under the terms of the GNU General Public License v2
24474 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-MD5/Digest-MD5-2.510.0.ebuild,v 1.10 2012/05/05 23:25:25 aballier Exp $
24475 +
24476 +EAPI=3
24477 +
24478 +MODULE_AUTHOR=GAAS
24479 +MODULE_VERSION=2.51
24480 +inherit perl-module
24481 +
24482 +DESCRIPTION="MD5 message digest algorithm"
24483 +
24484 +SLOT="0"
24485 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24486 +IUSE=""
24487 +
24488 +RDEPEND="virtual/perl-digest-base"
24489 +DEPEND="${RDEPEND}"
24490 +
24491 +SRC_TEST=do
24492 +mydoc="rfc*.txt"
24493
24494 diff --git a/perl-core/Digest-SHA/Digest-SHA-5.47.ebuild b/perl-core/Digest-SHA/Digest-SHA-5.47.ebuild
24495 new file mode 100644
24496 index 0000000..e494f3b
24497 --- /dev/null
24498 +++ b/perl-core/Digest-SHA/Digest-SHA-5.47.ebuild
24499 @@ -0,0 +1,17 @@
24500 +# Copyright 1999-2009 Gentoo Foundation
24501 +# Distributed under the terms of the GNU General Public License v2
24502 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-SHA/Digest-SHA-5.47.ebuild,v 1.9 2009/12/16 21:47:36 abcd Exp $
24503 +
24504 +MODULE_AUTHOR=MSHELOR
24505 +inherit perl-module
24506 +
24507 +DESCRIPTION="Perl extension for SHA-1/224/256/384/512"
24508 +
24509 +LICENSE="|| ( Artistic GPL-2 )"
24510 +SLOT="0"
24511 +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
24512 +IUSE=""
24513 +
24514 +DEPEND="dev-lang/perl"
24515 +
24516 +SRC_TEST="do"
24517
24518 diff --git a/perl-core/Digest-SHA/Digest-SHA-5.48.ebuild b/perl-core/Digest-SHA/Digest-SHA-5.48.ebuild
24519 new file mode 100644
24520 index 0000000..538e355
24521 --- /dev/null
24522 +++ b/perl-core/Digest-SHA/Digest-SHA-5.48.ebuild
24523 @@ -0,0 +1,17 @@
24524 +# Copyright 1999-2010 Gentoo Foundation
24525 +# Distributed under the terms of the GNU General Public License v2
24526 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-SHA/Digest-SHA-5.48.ebuild,v 1.5 2010/12/07 04:27:26 mattst88 Exp $
24527 +
24528 +MODULE_AUTHOR=MSHELOR
24529 +inherit perl-module
24530 +
24531 +DESCRIPTION="Perl extension for SHA-1/224/256/384/512"
24532 +
24533 +LICENSE="|| ( Artistic GPL-2 )"
24534 +SLOT="0"
24535 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
24536 +IUSE=""
24537 +
24538 +DEPEND="dev-lang/perl"
24539 +
24540 +SRC_TEST="do"
24541
24542 diff --git a/perl-core/Digest-SHA/Digest-SHA-5.500.ebuild b/perl-core/Digest-SHA/Digest-SHA-5.500.ebuild
24543 new file mode 100644
24544 index 0000000..56b556a
24545 --- /dev/null
24546 +++ b/perl-core/Digest-SHA/Digest-SHA-5.500.ebuild
24547 @@ -0,0 +1,17 @@
24548 +# Copyright 1999-2011 Gentoo Foundation
24549 +# Distributed under the terms of the GNU General Public License v2
24550 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-SHA/Digest-SHA-5.500.ebuild,v 1.1 2011/01/13 10:37:33 tove Exp $
24551 +
24552 +EAPI=3
24553 +
24554 +MODULE_AUTHOR=MSHELOR
24555 +MODULE_VERSION=5.50
24556 +inherit perl-module
24557 +
24558 +DESCRIPTION="Perl extension for SHA-1/224/256/384/512"
24559 +
24560 +SLOT="0"
24561 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
24562 +IUSE=""
24563 +
24564 +SRC_TEST="do"
24565
24566 diff --git a/perl-core/Digest-SHA/Digest-SHA-5.600.0.ebuild b/perl-core/Digest-SHA/Digest-SHA-5.600.0.ebuild
24567 new file mode 100644
24568 index 0000000..9104057
24569 --- /dev/null
24570 +++ b/perl-core/Digest-SHA/Digest-SHA-5.600.0.ebuild
24571 @@ -0,0 +1,17 @@
24572 +# Copyright 1999-2011 Gentoo Foundation
24573 +# Distributed under the terms of the GNU General Public License v2
24574 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-SHA/Digest-SHA-5.600.0.ebuild,v 1.1 2011/03/04 07:35:36 tove Exp $
24575 +
24576 +EAPI=3
24577 +
24578 +MODULE_AUTHOR=MSHELOR
24579 +MODULE_VERSION=5.60
24580 +inherit perl-module
24581 +
24582 +DESCRIPTION="Perl extension for SHA-1/224/256/384/512"
24583 +
24584 +SLOT="0"
24585 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
24586 +IUSE=""
24587 +
24588 +SRC_TEST="do"
24589
24590 diff --git a/perl-core/Digest-SHA/Digest-SHA-5.610.0.ebuild b/perl-core/Digest-SHA/Digest-SHA-5.610.0.ebuild
24591 new file mode 100644
24592 index 0000000..e52c03b
24593 --- /dev/null
24594 +++ b/perl-core/Digest-SHA/Digest-SHA-5.610.0.ebuild
24595 @@ -0,0 +1,17 @@
24596 +# Copyright 1999-2011 Gentoo Foundation
24597 +# Distributed under the terms of the GNU General Public License v2
24598 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Digest-SHA/Digest-SHA-5.610.0.ebuild,v 1.1 2011/03/10 07:05:35 tove Exp $
24599 +
24600 +EAPI=3
24601 +
24602 +MODULE_AUTHOR=MSHELOR
24603 +MODULE_VERSION=5.61
24604 +inherit perl-module
24605 +
24606 +DESCRIPTION="Perl extension for SHA-1/224/256/384/512"
24607 +
24608 +SLOT="0"
24609 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
24610 +IUSE=""
24611 +
24612 +SRC_TEST="do"
24613
24614 diff --git a/perl-core/Encode/Encode-2.40-r1.ebuild b/perl-core/Encode/Encode-2.40-r1.ebuild
24615 new file mode 100644
24616 index 0000000..81d7238
24617 --- /dev/null
24618 +++ b/perl-core/Encode/Encode-2.40-r1.ebuild
24619 @@ -0,0 +1,19 @@
24620 +# Copyright 1999-2011 Gentoo Foundation
24621 +# Distributed under the terms of the GNU General Public License v2
24622 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Encode/Encode-2.40-r1.ebuild,v 1.11 2011/12/18 21:26:04 halcy0n Exp $
24623 +
24624 +EAPI=3
24625 +
24626 +MODULE_AUTHOR=DANKOGAI
24627 +inherit perl-module
24628 +
24629 +DESCRIPTION="character encodings"
24630 +
24631 +SLOT="0"
24632 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
24633 +IUSE=""
24634 +
24635 +RDEPEND="!!<dev-lang/perl-5.8.8-r8"
24636 +
24637 +SRC_TEST=do
24638 +PATCHES=( "${FILESDIR}"/gentoo_enc2xs.diff )
24639
24640 diff --git a/perl-core/Encode/Encode-2.420.0.ebuild b/perl-core/Encode/Encode-2.420.0.ebuild
24641 new file mode 100644
24642 index 0000000..cfcccf9
24643 --- /dev/null
24644 +++ b/perl-core/Encode/Encode-2.420.0.ebuild
24645 @@ -0,0 +1,20 @@
24646 +# Copyright 1999-2011 Gentoo Foundation
24647 +# Distributed under the terms of the GNU General Public License v2
24648 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Encode/Encode-2.420.0.ebuild,v 1.5 2011/06/15 06:16:16 naota Exp $
24649 +
24650 +EAPI=3
24651 +
24652 +MODULE_AUTHOR=DANKOGAI
24653 +MODULE_VERSION=2.42
24654 +inherit perl-module
24655 +
24656 +DESCRIPTION="character encodings"
24657 +
24658 +SLOT="0"
24659 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
24660 +IUSE=""
24661 +
24662 +RDEPEND="!!<dev-lang/perl-5.8.8-r8"
24663 +
24664 +SRC_TEST=do
24665 +PATCHES=( "${FILESDIR}"/gentoo_enc2xs.diff )
24666
24667 diff --git a/perl-core/Encode/files/gentoo_enc2xs.diff b/perl-core/Encode/files/gentoo_enc2xs.diff
24668 new file mode 100644
24669 index 0000000..8b46ea4
24670 --- /dev/null
24671 +++ b/perl-core/Encode/files/gentoo_enc2xs.diff
24672 @@ -0,0 +1,36 @@
24673 +From: Torsten Veller <tove@g.o>
24674 +Subject: [PATCH] gentoo/enc2xs
24675 +
24676 +Tweak enc2xs to ignore missing @INC directories
24677 +
24678 +https://bugs.gentoo.org/show_bug.cgi?id=338802
24679 +http://git.debian.org/?p=perl/perl-5.12.git;a=blob;h=227dc105;hb=9d9ed099
24680 +
24681 +---
24682 + cpan/Encode/bin/enc2xs | 4 ++--
24683 + 1 files changed, 2 insertions(+), 2 deletions(-)
24684 +
24685 +diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
24686 +index 773c0a0..b95507b 100644
24687 +--- a/cpan/Encode/bin/enc2xs
24688 ++++ b/cpan/Encode/bin/enc2xs
24689 +@@ -924,7 +924,7 @@ use vars qw(
24690 + sub find_e2x{
24691 + eval { require File::Find; };
24692 + my (@inc, %e2x_dir);
24693 +- for my $inc (@INC){
24694 ++ for my $inc (grep -d, @INC){
24695 + push @inc, $inc unless $inc eq '.'; #skip current dir
24696 + }
24697 + File::Find::find(
24698 +@@ -1005,7 +1005,7 @@ sub make_configlocal_pm {
24699 + $LocalMod{$enc} ||= $mod;
24700 + }
24701 + };
24702 +- File::Find::find({wanted => $wanted}, @INC);
24703 ++ File::Find::find({wanted => $wanted}, grep -d, @INC);
24704 + $_ModLines = "";
24705 + for my $enc ( sort keys %LocalMod ) {
24706 + $_ModLines .=
24707 +--
24708 +tg: (e5b15fe..) gentoo/enc2xs (depends on: upstream)
24709
24710 diff --git a/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.26.03.ebuild b/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.26.03.ebuild
24711 new file mode 100644
24712 index 0000000..dd15a66
24713 --- /dev/null
24714 +++ b/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.26.03.ebuild
24715 @@ -0,0 +1,23 @@
24716 +# Copyright 1999-2011 Gentoo Foundation
24717 +# Distributed under the terms of the GNU General Public License v2
24718 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.26.03.ebuild,v 1.10 2011/07/30 12:13:40 tove Exp $
24719 +
24720 +EAPI=2
24721 +
24722 +inherit versionator
24723 +MY_P=${PN}-$(delete_version_separator 2 )
24724 +MODULE_AUTHOR=DAGOLDEN
24725 +S=${WORKDIR}/${MY_P}
24726 +inherit perl-module
24727 +
24728 +DESCRIPTION="Compile and link C code for Perl modules"
24729 +
24730 +SLOT="0"
24731 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24732 +IUSE=""
24733 +
24734 +RDEPEND=""
24735 +DEPEND="${RDEPEND}
24736 + virtual/perl-Module-Build"
24737 +
24738 +SRC_TEST="do"
24739
24740 diff --git a/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.27.03.ebuild b/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.27.03.ebuild
24741 new file mode 100644
24742 index 0000000..530ca62
24743 --- /dev/null
24744 +++ b/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.27.03.ebuild
24745 @@ -0,0 +1,19 @@
24746 +# Copyright 1999-2011 Gentoo Foundation
24747 +# Distributed under the terms of the GNU General Public License v2
24748 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-CBuilder/ExtUtils-CBuilder-0.27.03.ebuild,v 1.7 2011/07/30 12:13:40 tove Exp $
24749 +
24750 +EAPI=2
24751 +
24752 +inherit versionator
24753 +MY_P=${PN}-$(delete_version_separator 2 )
24754 +MODULE_AUTHOR=DAGOLDEN
24755 +S=${WORKDIR}/${MY_P}
24756 +inherit perl-module
24757 +
24758 +DESCRIPTION="Compile and link C code for Perl modules"
24759 +
24760 +SLOT="0"
24761 +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24762 +IUSE=""
24763 +
24764 +SRC_TEST="do"
24765
24766 diff --git a/perl-core/ExtUtils-MakeMaker/ExtUtils-MakeMaker-6.56-r1.ebuild b/perl-core/ExtUtils-MakeMaker/ExtUtils-MakeMaker-6.56-r1.ebuild
24767 new file mode 100644
24768 index 0000000..c0b21ff
24769 --- /dev/null
24770 +++ b/perl-core/ExtUtils-MakeMaker/ExtUtils-MakeMaker-6.56-r1.ebuild
24771 @@ -0,0 +1,26 @@
24772 +# Copyright 1999-2012 Gentoo Foundation
24773 +# Distributed under the terms of the GNU General Public License v2
24774 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-MakeMaker/ExtUtils-MakeMaker-6.56-r1.ebuild,v 1.7 2012/02/04 16:42:54 armin76 Exp $
24775 +
24776 +EAPI=2
24777 +
24778 +MODULE_AUTHOR=MSCHWERN
24779 +inherit perl-module
24780 +
24781 +DESCRIPTION="Create a module Makefile"
24782 +HOMEPAGE="http://makemaker.org ${HOMEPAGE}"
24783 +
24784 +SLOT="0"
24785 +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ~s390 ~sh sparc x86"
24786 +IUSE=""
24787 +
24788 +PATCHES=( "${FILESDIR}"/RUNPATH-6.54.patch
24789 + "${FILESDIR}"/6.56-delete_packlist_podlocal.patch )
24790 +
24791 +DEPEND=">=virtual/perl-ExtUtils-Manifest-1.56
24792 + >=virtual/perl-ExtUtils-Command-1.16
24793 + >=virtual/perl-ExtUtils-Install-1.52"
24794 +RDEPEND="${DEPEND}
24795 + !!<dev-lang/perl-5.8.8-r7"
24796 +
24797 +SRC_TEST=do
24798
24799 diff --git a/perl-core/ExtUtils-MakeMaker/files/6.56-delete_packlist_podlocal.patch b/perl-core/ExtUtils-MakeMaker/files/6.56-delete_packlist_podlocal.patch
24800 new file mode 100644
24801 index 0000000..c5763d1
24802 --- /dev/null
24803 +++ b/perl-core/ExtUtils-MakeMaker/files/6.56-delete_packlist_podlocal.patch
24804 @@ -0,0 +1,79 @@
24805 +Don't install .packlist or perllocal.pod for perl or vendor.
24806 +Extracted from the debian patchset.
24807 +See also bug #241834
24808 +
24809 +---
24810 + cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 25 +----------------------
24811 + 1 files changed, 1 insertions(+), 24 deletions(-)
24812 +
24813 +diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
24814 +index 239d6df..b4649ee 100644
24815 +--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
24816 ++++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
24817 +@@ -2047,8 +2047,6 @@ doc__install : doc_site_install
24818 +
24819 + pure_perl_install :: all
24820 + $(NOECHO) $(MOD_INSTALL) \
24821 +- read }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
24822 +- write }.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
24823 + $(INST_LIB) $(DESTINSTALLPRIVLIB) \
24824 + $(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
24825 + $(INST_BIN) $(DESTINSTALLBIN) \
24826 +@@ -2074,8 +2072,6 @@ pure_site_install :: all
24827 +
24828 + pure_vendor_install :: all
24829 + $(NOECHO) $(MOD_INSTALL) \
24830 +- read }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{ \
24831 +- write }.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{ \
24832 + $(INST_LIB) $(DESTINSTALLVENDORLIB) \
24833 + $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
24834 + $(INST_BIN) $(DESTINSTALLVENDORBIN) \
24835 +@@ -2084,15 +2080,6 @@ pure_vendor_install :: all
24836 + $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
24837 +
24838 + doc_perl_install :: all
24839 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24840 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
24841 +- -$(NOECHO) $(DOC_INSTALL) \
24842 +- "Module" "$(NAME)" \
24843 +- "installed into" "$(INSTALLPRIVLIB)" \
24844 +- LINKTYPE "$(LINKTYPE)" \
24845 +- VERSION "$(VERSION)" \
24846 +- EXE_FILES "$(EXE_FILES)" \
24847 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24848 +
24849 + doc_site_install :: all
24850 + $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24851 +@@ -2106,15 +2093,6 @@ doc_site_install :: all
24852 + >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24853 +
24854 + doc_vendor_install :: all
24855 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24856 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
24857 +- -$(NOECHO) $(DOC_INSTALL) \
24858 +- "Module" "$(NAME)" \
24859 +- "installed into" "$(INSTALLVENDORLIB)" \
24860 +- LINKTYPE "$(LINKTYPE)" \
24861 +- VERSION "$(VERSION)" \
24862 +- EXE_FILES "$(EXE_FILES)" \
24863 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24864 +
24865 + };
24866 +
24867 +@@ -2123,13 +2101,12 @@ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
24868 + $(NOECHO) $(NOOP)
24869 +
24870 + uninstall_from_perldirs ::
24871 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{
24872 +
24873 + uninstall_from_sitedirs ::
24874 + $(NOECHO) $(UNINSTALL) }.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{
24875 +
24876 + uninstall_from_vendordirs ::
24877 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{
24878 ++
24879 + };
24880 +
24881 + join("",@m);
24882 +--
24883 +tg: (b9ce030..) gentoo/MakeMaker-delete_packlist (depends on: upstream)
24884
24885 diff --git a/perl-core/ExtUtils-MakeMaker/files/6.58-RUNPATH.patch b/perl-core/ExtUtils-MakeMaker/files/6.58-RUNPATH.patch
24886 new file mode 100644
24887 index 0000000..41f2609
24888 --- /dev/null
24889 +++ b/perl-core/ExtUtils-MakeMaker/files/6.58-RUNPATH.patch
24890 @@ -0,0 +1,16 @@
24891 +--- a/lib/ExtUtils/MM_Any.pm
24892 ++++ b/lib/ExtUtils/MM_Any.pm
24893 +@@ -1900,6 +1900,13 @@ CODE
24894 + # LD_RUN_PATH now computed by ExtUtils::Liblist
24895 + ($self->{EXTRALIBS}, $self->{BSLOADLIBS},
24896 + $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
24897 ++ # We do not want the build root in RPATH
24898 ++ if ( exists $ENV{PORTAGE_TMPDIR} ){
24899 ++ # If we have a PORTAGE_TMPDIR set, strip that, as just testing for
24900 ++ # /usr and /opt might not be sufficient.
24901 ++ $self->{LD_RUN_PATH} = join ':', grep !/^\Q$ENV{PORTAGE_TMPDIR}/,
24902 ++ split /:/, $self->{LD_RUN_PATH};
24903 ++ }
24904 + last;
24905 + }
24906 + }
24907
24908 diff --git a/perl-core/ExtUtils-MakeMaker/files/6.58-delete_packlist_podlocal.patch b/perl-core/ExtUtils-MakeMaker/files/6.58-delete_packlist_podlocal.patch
24909 new file mode 100644
24910 index 0000000..c42d1d2
24911 --- /dev/null
24912 +++ b/perl-core/ExtUtils-MakeMaker/files/6.58-delete_packlist_podlocal.patch
24913 @@ -0,0 +1,76 @@
24914 +Don't install .packlist or perllocal.pod for perl or vendor.
24915 +Extracted from the debian patchset.
24916 +See also bug #241834
24917 +---
24918 + lib/ExtUtils/MM_Unix.pm | 25 +------------------------
24919 + 1 files changed, 1 insertions(+), 24 deletions(-)
24920 +
24921 +diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm
24922 +index 10fcdf4..642b677 100644
24923 +--- a/lib/ExtUtils/MM_Unix.pm
24924 ++++ b/lib/ExtUtils/MM_Unix.pm
24925 +@@ -2047,8 +2047,6 @@ doc__install : doc_site_install
24926 +
24927 + pure_perl_install :: all
24928 + $(NOECHO) $(MOD_INSTALL) \
24929 +- read }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
24930 +- write }.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
24931 + $(INST_LIB) $(DESTINSTALLPRIVLIB) \
24932 + $(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
24933 + $(INST_BIN) $(DESTINSTALLBIN) \
24934 +@@ -2074,8 +2072,6 @@ pure_site_install :: all
24935 +
24936 + pure_vendor_install :: all
24937 + $(NOECHO) $(MOD_INSTALL) \
24938 +- read }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{ \
24939 +- write }.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{ \
24940 + $(INST_LIB) $(DESTINSTALLVENDORLIB) \
24941 + $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
24942 + $(INST_BIN) $(DESTINSTALLVENDORBIN) \
24943 +@@ -2084,15 +2080,6 @@ pure_vendor_install :: all
24944 + $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
24945 +
24946 + doc_perl_install :: all
24947 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24948 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
24949 +- -$(NOECHO) $(DOC_INSTALL) \
24950 +- "Module" "$(NAME)" \
24951 +- "installed into" "$(INSTALLPRIVLIB)" \
24952 +- LINKTYPE "$(LINKTYPE)" \
24953 +- VERSION "$(VERSION)" \
24954 +- EXE_FILES "$(EXE_FILES)" \
24955 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24956 +
24957 + doc_site_install :: all
24958 + $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24959 +@@ -2106,15 +2093,6 @@ doc_site_install :: all
24960 + >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24961 +
24962 + doc_vendor_install :: all
24963 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
24964 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
24965 +- -$(NOECHO) $(DOC_INSTALL) \
24966 +- "Module" "$(NAME)" \
24967 +- "installed into" "$(INSTALLVENDORLIB)" \
24968 +- LINKTYPE "$(LINKTYPE)" \
24969 +- VERSION "$(VERSION)" \
24970 +- EXE_FILES "$(EXE_FILES)" \
24971 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
24972 +
24973 + };
24974 +
24975 +@@ -2123,13 +2101,12 @@ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
24976 + $(NOECHO) $(NOOP)
24977 +
24978 + uninstall_from_perldirs ::
24979 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{
24980 +
24981 + uninstall_from_sitedirs ::
24982 + $(NOECHO) $(UNINSTALL) }.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{
24983 +
24984 + uninstall_from_vendordirs ::
24985 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{
24986 ++
24987 + };
24988 +
24989 + join("",@m);
24990
24991 diff --git a/perl-core/ExtUtils-MakeMaker/files/6.62-delete_packlist_podlocal.patch b/perl-core/ExtUtils-MakeMaker/files/6.62-delete_packlist_podlocal.patch
24992 new file mode 100644
24993 index 0000000..9d8ee7e
24994 --- /dev/null
24995 +++ b/perl-core/ExtUtils-MakeMaker/files/6.62-delete_packlist_podlocal.patch
24996 @@ -0,0 +1,76 @@
24997 +--- a/lib/ExtUtils/MM_Unix.pm
24998 ++++ b/lib/ExtUtils/MM_Unix.pm
24999 +@@ -2052,8 +2052,6 @@ doc__install : doc_site_install
25000 +
25001 + pure_perl_install :: all
25002 + $(NOECHO) $(MOD_INSTALL) \
25003 +- read }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
25004 +- write }.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
25005 + $(INST_LIB) $(DESTINSTALLPRIVLIB) \
25006 + $(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
25007 + $(INST_BIN) $(DESTINSTALLBIN) \
25008 +@@ -2079,8 +2077,6 @@ pure_site_install :: all
25009 +
25010 + pure_vendor_install :: all
25011 + $(NOECHO) $(MOD_INSTALL) \
25012 +- read }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{ \
25013 +- write }.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{ \
25014 + $(INST_LIB) $(DESTINSTALLVENDORLIB) \
25015 + $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
25016 + $(INST_BIN) $(DESTINSTALLVENDORBIN) \
25017 +@@ -2089,37 +2085,19 @@ pure_vendor_install :: all
25018 + $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
25019 +
25020 + doc_perl_install :: all
25021 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
25022 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
25023 +- -$(NOECHO) $(DOC_INSTALL) \
25024 +- "Module" "$(NAME)" \
25025 +- "installed into" "$(INSTALLPRIVLIB)" \
25026 +- LINKTYPE "$(LINKTYPE)" \
25027 +- VERSION "$(VERSION)" \
25028 +- EXE_FILES "$(EXE_FILES)" \
25029 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
25030 +
25031 + doc_site_install :: all
25032 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
25033 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
25034 ++ $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLSITEARCH)/perllocal.pod
25035 ++ -$(NOECHO) $(MKPATH) $(DESTINSTALLSITEARCH)
25036 + -$(NOECHO) $(DOC_INSTALL) \
25037 + "Module" "$(NAME)" \
25038 + "installed into" "$(INSTALLSITELIB)" \
25039 + LINKTYPE "$(LINKTYPE)" \
25040 + VERSION "$(VERSION)" \
25041 + EXE_FILES "$(EXE_FILES)" \
25042 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
25043 ++ >> }.$self->catfile('$(DESTINSTALLSITEARCH)','perllocal.pod').q{
25044 +
25045 + doc_vendor_install :: all
25046 +- $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
25047 +- -$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
25048 +- -$(NOECHO) $(DOC_INSTALL) \
25049 +- "Module" "$(NAME)" \
25050 +- "installed into" "$(INSTALLVENDORLIB)" \
25051 +- LINKTYPE "$(LINKTYPE)" \
25052 +- VERSION "$(VERSION)" \
25053 +- EXE_FILES "$(EXE_FILES)" \
25054 +- >> }.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{
25055 +
25056 + };
25057 +
25058 +@@ -2128,13 +2106,12 @@ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
25059 + $(NOECHO) $(NOOP)
25060 +
25061 + uninstall_from_perldirs ::
25062 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{
25063 +
25064 + uninstall_from_sitedirs ::
25065 + $(NOECHO) $(UNINSTALL) }.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{
25066 +
25067 + uninstall_from_vendordirs ::
25068 +- $(NOECHO) $(UNINSTALL) }.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{
25069 ++
25070 + };
25071 +
25072 + join("",@m);
25073
25074 diff --git a/perl-core/ExtUtils-MakeMaker/files/RUNPATH-6.54.patch b/perl-core/ExtUtils-MakeMaker/files/RUNPATH-6.54.patch
25075 new file mode 100644
25076 index 0000000..1385207
25077 --- /dev/null
25078 +++ b/perl-core/ExtUtils-MakeMaker/files/RUNPATH-6.54.patch
25079 @@ -0,0 +1,17 @@
25080 +diff -Naur ExtUtils-MakeMaker-6.54/lib/ExtUtils/MM_Any.pm ExtUtils-MakeMaker-6.54.new/lib/ExtUtils/MM_Any.pm
25081 +--- ExtUtils-MakeMaker-6.54/lib/ExtUtils/MM_Any.pm 2009-07-08 11:49:05.000000000 +1200
25082 ++++ ExtUtils-MakeMaker-6.54.new/lib/ExtUtils/MM_Any.pm 2009-08-19 21:37:31.494655658 +1200
25083 +@@ -1799,6 +1799,13 @@
25084 + # LD_RUN_PATH now computed by ExtUtils::Liblist
25085 + ($self->{EXTRALIBS}, $self->{BSLOADLIBS},
25086 + $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
25087 ++ # We do not want the build root in RPATH
25088 ++ if (exists $ENV{PORTAGE_TMPDIR}) {
25089 ++ # If we have PORTAGE_TMPDIR set, strip that, as just testing for
25090 ++ # /usr and /opt might not be sufficient
25091 ++ $self->{LD_RUN_PATH} = join ':', grep !/^\Q$ENV{PORTAGE_TMPDIR}/,
25092 ++ split /:/, $self->{LD_RUN_PATH};
25093 ++ }
25094 + last;
25095 + }
25096 + }
25097
25098 diff --git a/perl-core/ExtUtils-Manifest/ExtUtils-Manifest-1.580.0.ebuild b/perl-core/ExtUtils-Manifest/ExtUtils-Manifest-1.580.0.ebuild
25099 new file mode 100644
25100 index 0000000..980c43d
25101 --- /dev/null
25102 +++ b/perl-core/ExtUtils-Manifest/ExtUtils-Manifest-1.580.0.ebuild
25103 @@ -0,0 +1,18 @@
25104 +# Copyright 1999-2012 Gentoo Foundation
25105 +# Distributed under the terms of the GNU General Public License v2
25106 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-Manifest/ExtUtils-Manifest-1.580.0.ebuild,v 1.3 2012/02/04 15:27:34 armin76 Exp $
25107 +
25108 +EAPI=2
25109 +
25110 +MODULE_AUTHOR=RKOBES
25111 +MODULE_VERSION=1.58
25112 +inherit perl-module
25113 +
25114 +DESCRIPTION="Utilities to write and check a MANIFEST file"
25115 +
25116 +SLOT="0"
25117 +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ~ppc64 ~s390 ~sh sparc x86"
25118 +IUSE=""
25119 +
25120 +SRC_TEST="do"
25121 +PREFER_BUILDPL="no"
25122
25123 diff --git a/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.03.ebuild b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.03.ebuild
25124 new file mode 100644
25125 index 0000000..b0c7d3c
25126 --- /dev/null
25127 +++ b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.03.ebuild
25128 @@ -0,0 +1,24 @@
25129 +# Copyright 1999-2011 Gentoo Foundation
25130 +# Distributed under the terms of the GNU General Public License v2
25131 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.03.ebuild,v 1.6 2011/07/30 12:14:38 tove Exp $
25132 +
25133 +EAPI=2
25134 +
25135 +inherit versionator
25136 +MY_P=${PN}-$(delete_version_separator 2 )
25137 +S=${WORKDIR}/${MY_P}
25138 +MODULE_AUTHOR=DAGOLDEN
25139 +inherit perl-module
25140 +
25141 +DESCRIPTION="Converts Perl XS code into C code"
25142 +
25143 +SLOT="0"
25144 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25145 +IUSE=""
25146 +
25147 +RDEPEND=""
25148 +DEPEND="${RDEPEND}
25149 + virtual/perl-ExtUtils-CBuilder
25150 + virtual/perl-Module-Build"
25151 +
25152 +SRC_TEST="do"
25153
25154 diff --git a/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.05.ebuild b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.05.ebuild
25155 new file mode 100644
25156 index 0000000..009faf6
25157 --- /dev/null
25158 +++ b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.05.ebuild
25159 @@ -0,0 +1,23 @@
25160 +# Copyright 1999-2011 Gentoo Foundation
25161 +# Distributed under the terms of the GNU General Public License v2
25162 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.05.ebuild,v 1.7 2011/07/30 12:14:38 tove Exp $
25163 +
25164 +EAPI=2
25165 +
25166 +inherit versionator
25167 +MY_P=${PN}-$(delete_version_separator 2 )
25168 +S=${WORKDIR}/${MY_P}
25169 +MODULE_AUTHOR=DAGOLDEN
25170 +inherit perl-module
25171 +
25172 +DESCRIPTION="Converts Perl XS code into C code"
25173 +
25174 +SLOT="0"
25175 +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25176 +IUSE=""
25177 +
25178 +RDEPEND=""
25179 +DEPEND="${RDEPEND}
25180 + virtual/perl-ExtUtils-CBuilder"
25181 +
25182 +SRC_TEST="do"
25183
25184 diff --git a/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.06.ebuild b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.06.ebuild
25185 new file mode 100644
25186 index 0000000..18a9963
25187 --- /dev/null
25188 +++ b/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.06.ebuild
25189 @@ -0,0 +1,24 @@
25190 +# Copyright 1999-2012 Gentoo Foundation
25191 +# Distributed under the terms of the GNU General Public License v2
25192 +# $Header: /var/cvsroot/gentoo-x86/perl-core/ExtUtils-ParseXS/ExtUtils-ParseXS-2.22.06.ebuild,v 1.5 2012/04/28 02:29:26 aballier Exp $
25193 +
25194 +EAPI=3
25195 +
25196 +inherit versionator
25197 +MY_P=${PN}-$(delete_version_separator 2 )
25198 +MODULE_VERSION=2.2206
25199 +S=${WORKDIR}/${MY_P}
25200 +MODULE_AUTHOR=DAGOLDEN
25201 +inherit perl-module
25202 +
25203 +DESCRIPTION="Converts Perl XS code into C code"
25204 +
25205 +SLOT="0"
25206 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25207 +IUSE=""
25208 +
25209 +RDEPEND=""
25210 +DEPEND="${RDEPEND}
25211 + virtual/perl-ExtUtils-CBuilder"
25212 +
25213 +SRC_TEST="do"
25214
25215 diff --git a/perl-core/Filter/Filter-1.37.ebuild b/perl-core/Filter/Filter-1.37.ebuild
25216 new file mode 100644
25217 index 0000000..c0b8b37
25218 --- /dev/null
25219 +++ b/perl-core/Filter/Filter-1.37.ebuild
25220 @@ -0,0 +1,16 @@
25221 +# Copyright 1999-2009 Gentoo Foundation
25222 +# Distributed under the terms of the GNU General Public License v2
25223 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Filter/Filter-1.37.ebuild,v 1.6 2009/12/16 21:49:38 abcd Exp $
25224 +
25225 +EAPI=2
25226 +
25227 +MODULE_AUTHOR=PMQS
25228 +inherit perl-module
25229 +
25230 +DESCRIPTION="Interface for creation of Perl Filters"
25231 +
25232 +SLOT="0"
25233 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
25234 +IUSE=""
25235 +
25236 +SRC_TEST=do
25237
25238 diff --git a/perl-core/IO-Compress/IO-Compress-2.024.ebuild b/perl-core/IO-Compress/IO-Compress-2.024.ebuild
25239 new file mode 100644
25240 index 0000000..1d32cda
25241 --- /dev/null
25242 +++ b/perl-core/IO-Compress/IO-Compress-2.024.ebuild
25243 @@ -0,0 +1,26 @@
25244 +# Copyright 1999-2011 Gentoo Foundation
25245 +# Distributed under the terms of the GNU General Public License v2
25246 +# $Header: /var/cvsroot/gentoo-x86/perl-core/IO-Compress/IO-Compress-2.024.ebuild,v 1.11 2011/07/30 12:18:17 tove Exp $
25247 +
25248 +EAPI=2
25249 +
25250 +MODULE_AUTHOR=PMQS
25251 +inherit perl-module
25252 +
25253 +DESCRIPTION="allow reading and writing of compressed data"
25254 +
25255 +SLOT="0"
25256 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25257 +IUSE=""
25258 +
25259 +RDEPEND="virtual/perl-Scalar-List-Utils
25260 + >=virtual/perl-Compress-Raw-Zlib-${PV}
25261 + >=virtual/perl-Compress-Raw-Bzip2-${PV}
25262 + !perl-core/Compress-Zlib
25263 + !perl-core/IO-Compress-Zlib
25264 + !perl-core/IO-Compress-Bzip2
25265 + !perl-core/IO-Compress-Base"
25266 +DEPEND="${RDEPEND}"
25267 +# test? ( dev-perl/Test-Pod )"
25268 +
25269 +SRC_TEST=do
25270
25271 diff --git a/perl-core/IO-Compress/IO-Compress-2.33.ebuild b/perl-core/IO-Compress/IO-Compress-2.33.ebuild
25272 new file mode 100644
25273 index 0000000..9e0797f
25274 --- /dev/null
25275 +++ b/perl-core/IO-Compress/IO-Compress-2.33.ebuild
25276 @@ -0,0 +1,27 @@
25277 +# Copyright 1999-2011 Gentoo Foundation
25278 +# Distributed under the terms of the GNU General Public License v2
25279 +# $Header: /var/cvsroot/gentoo-x86/perl-core/IO-Compress/IO-Compress-2.33.ebuild,v 1.3 2011/07/30 12:18:17 tove Exp $
25280 +
25281 +EAPI=3
25282 +
25283 +MODULE_AUTHOR=PMQS
25284 +MODULE_VERSION=2.033
25285 +inherit perl-module
25286 +
25287 +DESCRIPTION="allow reading and writing of compressed data"
25288 +
25289 +SLOT="0"
25290 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25291 +IUSE=""
25292 +
25293 +RDEPEND="virtual/perl-Scalar-List-Utils
25294 + >=virtual/perl-Compress-Raw-Zlib-${PV}
25295 + >=virtual/perl-Compress-Raw-Bzip2-${PV}
25296 + !perl-core/Compress-Zlib
25297 + !perl-core/IO-Compress-Zlib
25298 + !perl-core/IO-Compress-Bzip2
25299 + !perl-core/IO-Compress-Base"
25300 +DEPEND="${RDEPEND}"
25301 +# test? ( dev-perl/Test-Pod )"
25302 +
25303 +SRC_TEST=do
25304
25305 diff --git a/perl-core/IPC-Cmd/IPC-Cmd-0.680.ebuild b/perl-core/IPC-Cmd/IPC-Cmd-0.680.ebuild
25306 new file mode 100644
25307 index 0000000..afe96f0
25308 --- /dev/null
25309 +++ b/perl-core/IPC-Cmd/IPC-Cmd-0.680.ebuild
25310 @@ -0,0 +1,22 @@
25311 +# Copyright 1999-2011 Gentoo Foundation
25312 +# Distributed under the terms of the GNU General Public License v2
25313 +# $Header: /var/cvsroot/gentoo-x86/perl-core/IPC-Cmd/IPC-Cmd-0.680.ebuild,v 1.3 2011/01/29 18:14:39 armin76 Exp $
25314 +
25315 +EAPI=3
25316 +
25317 +MODULE_AUTHOR=BINGOS
25318 +MODULE_VERSION=0.68
25319 +inherit perl-module
25320 +
25321 +DESCRIPTION="Finding and running system commands made easy"
25322 +
25323 +SLOT="0"
25324 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86"
25325 +IUSE=""
25326 +
25327 +DEPEND="virtual/perl-Locale-Maketext-Simple
25328 + virtual/perl-Module-Load-Conditional
25329 + >=virtual/perl-Params-Check-0.26"
25330 +RDEPEND="${DEPEND}"
25331 +
25332 +SRC_TEST=do
25333
25334 diff --git a/perl-core/IPC-Cmd/IPC-Cmd-0.700.0.ebuild b/perl-core/IPC-Cmd/IPC-Cmd-0.700.0.ebuild
25335 new file mode 100644
25336 index 0000000..9a03cc8
25337 --- /dev/null
25338 +++ b/perl-core/IPC-Cmd/IPC-Cmd-0.700.0.ebuild
25339 @@ -0,0 +1,22 @@
25340 +# Copyright 1999-2011 Gentoo Foundation
25341 +# Distributed under the terms of the GNU General Public License v2
25342 +# $Header: /var/cvsroot/gentoo-x86/perl-core/IPC-Cmd/IPC-Cmd-0.700.0.ebuild,v 1.3 2011/07/07 23:17:04 aballier Exp $
25343 +
25344 +EAPI=3
25345 +
25346 +MODULE_AUTHOR=BINGOS
25347 +MODULE_VERSION=0.70
25348 +inherit perl-module
25349 +
25350 +DESCRIPTION="Finding and running system commands made easy"
25351 +
25352 +SLOT="0"
25353 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25354 +IUSE=""
25355 +
25356 +DEPEND="virtual/perl-Locale-Maketext-Simple
25357 + virtual/perl-Module-Load-Conditional
25358 + >=virtual/perl-Params-Check-0.26"
25359 +RDEPEND="${DEPEND}"
25360 +
25361 +SRC_TEST=do
25362
25363 diff --git a/perl-core/JSON-PP/JSON-PP-2.271.40.ebuild b/perl-core/JSON-PP/JSON-PP-2.271.40.ebuild
25364 new file mode 100644
25365 index 0000000..7f6dcd1
25366 --- /dev/null
25367 +++ b/perl-core/JSON-PP/JSON-PP-2.271.40.ebuild
25368 @@ -0,0 +1,19 @@
25369 +# Copyright 1999-2011 Gentoo Foundation
25370 +# Distributed under the terms of the GNU General Public License v2
25371 +# $Header: /var/cvsroot/gentoo-x86/perl-core/JSON-PP/JSON-PP-2.271.40.ebuild,v 1.5 2011/03/19 12:35:08 armin76 Exp $
25372 +
25373 +EAPI=3
25374 +
25375 +MODULE_AUTHOR=MAKAMAKA
25376 +MODULE_VERSION=2.27104
25377 +inherit perl-module
25378 +
25379 +DESCRIPTION="JSON::XS compatible pure-Perl module"
25380 +
25381 +SLOT="0"
25382 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25383 +IUSE=""
25384 +
25385 +RDEPEND="!!<dev-perl/JSON-2.50"
25386 +
25387 +SRC_TEST="do"
25388
25389 diff --git a/perl-core/JSON-PP/JSON-PP-2.271.50.ebuild b/perl-core/JSON-PP/JSON-PP-2.271.50.ebuild
25390 new file mode 100644
25391 index 0000000..a3203f2
25392 --- /dev/null
25393 +++ b/perl-core/JSON-PP/JSON-PP-2.271.50.ebuild
25394 @@ -0,0 +1,19 @@
25395 +# Copyright 1999-2011 Gentoo Foundation
25396 +# Distributed under the terms of the GNU General Public License v2
25397 +# $Header: /var/cvsroot/gentoo-x86/perl-core/JSON-PP/JSON-PP-2.271.50.ebuild,v 1.5 2011/05/02 19:39:02 grobian Exp $
25398 +
25399 +EAPI=3
25400 +
25401 +MODULE_AUTHOR=MAKAMAKA
25402 +MODULE_VERSION=2.27105
25403 +inherit perl-module
25404 +
25405 +DESCRIPTION="JSON::XS compatible pure-Perl module"
25406 +
25407 +SLOT="0"
25408 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25409 +IUSE=""
25410 +
25411 +RDEPEND="!!<dev-perl/JSON-2.50"
25412 +
25413 +SRC_TEST="do"
25414
25415 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.19.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.19.ebuild
25416 new file mode 100644
25417 index 0000000..2bc96c8
25418 --- /dev/null
25419 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.19.ebuild
25420 @@ -0,0 +1,19 @@
25421 +# Copyright 1999-2010 Gentoo Foundation
25422 +# Distributed under the terms of the GNU General Public License v2
25423 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.19.ebuild,v 1.5 2010/01/05 19:04:24 nixnut Exp $
25424 +
25425 +MODULE_AUTHOR="TELS"
25426 +MODULE_SECTION="math"
25427 +inherit perl-module
25428 +
25429 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25430 +
25431 +IUSE=""
25432 +
25433 +SLOT="0"
25434 +LICENSE="|| ( Artistic GPL-2 )"
25435 +KEYWORDS="amd64 hppa ppc x86"
25436 +RDEPEND=">=virtual/perl-Math-BigInt-1.87"
25437 +DEPEND="${RDEPEND}"
25438 +
25439 +SRC_TEST="do"
25440
25441 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.24.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.24.ebuild
25442 new file mode 100644
25443 index 0000000..64aff5b
25444 --- /dev/null
25445 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.24.ebuild
25446 @@ -0,0 +1,20 @@
25447 +# Copyright 1999-2010 Gentoo Foundation
25448 +# Distributed under the terms of the GNU General Public License v2
25449 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.24.ebuild,v 1.5 2010/12/07 05:04:52 mattst88 Exp $
25450 +
25451 +EAPI=3
25452 +
25453 +MODULE_AUTHOR=FLORA
25454 +inherit perl-module
25455 +
25456 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25457 +
25458 +SLOT="0"
25459 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25460 +IUSE=""
25461 +
25462 +RDEPEND=">=virtual/perl-Math-BigInt-1.97
25463 + virtual/perl-XSLoader"
25464 +DEPEND="${RDEPEND}"
25465 +
25466 +SRC_TEST="do"
25467
25468 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.251.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.251.ebuild
25469 new file mode 100644
25470 index 0000000..e05c12b
25471 --- /dev/null
25472 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.251.ebuild
25473 @@ -0,0 +1,21 @@
25474 +# Copyright 1999-2011 Gentoo Foundation
25475 +# Distributed under the terms of the GNU General Public License v2
25476 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.251.ebuild,v 1.1 2011/02/08 07:47:13 tove Exp $
25477 +
25478 +EAPI=3
25479 +
25480 +MODULE_AUTHOR=PJACKLAM
25481 +MODULE_VERSION=0.251
25482 +inherit perl-module
25483 +
25484 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25485 +
25486 +SLOT="0"
25487 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25488 +IUSE=""
25489 +
25490 +RDEPEND=">=virtual/perl-Math-BigInt-1.991
25491 + virtual/perl-XSLoader"
25492 +DEPEND="${RDEPEND}"
25493 +
25494 +SRC_TEST="do"
25495
25496 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.260.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.260.ebuild
25497 new file mode 100644
25498 index 0000000..dc1f618
25499 --- /dev/null
25500 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.260.ebuild
25501 @@ -0,0 +1,21 @@
25502 +# Copyright 1999-2011 Gentoo Foundation
25503 +# Distributed under the terms of the GNU General Public License v2
25504 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.260.ebuild,v 1.1 2011/02/08 19:16:04 tove Exp $
25505 +
25506 +EAPI=3
25507 +
25508 +MODULE_AUTHOR=PJACKLAM
25509 +MODULE_VERSION=0.26
25510 +inherit perl-module
25511 +
25512 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25513 +
25514 +SLOT="0"
25515 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25516 +IUSE=""
25517 +
25518 +RDEPEND=">=virtual/perl-Math-BigInt-1.991
25519 + virtual/perl-XSLoader"
25520 +DEPEND="${RDEPEND}"
25521 +
25522 +SRC_TEST="do"
25523
25524 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.270.0.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.270.0.ebuild
25525 new file mode 100644
25526 index 0000000..f5a3461
25527 --- /dev/null
25528 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.270.0.ebuild
25529 @@ -0,0 +1,21 @@
25530 +# Copyright 1999-2011 Gentoo Foundation
25531 +# Distributed under the terms of the GNU General Public License v2
25532 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.270.0.ebuild,v 1.2 2011/06/24 14:43:28 grobian Exp $
25533 +
25534 +EAPI=3
25535 +
25536 +MODULE_AUTHOR=PJACKLAM
25537 +MODULE_VERSION=0.27
25538 +inherit perl-module
25539 +
25540 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25541 +
25542 +SLOT="0"
25543 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-macos"
25544 +IUSE=""
25545 +
25546 +RDEPEND=">=virtual/perl-Math-BigInt-1.993
25547 + virtual/perl-XSLoader"
25548 +DEPEND="${RDEPEND}"
25549 +
25550 +SRC_TEST="do"
25551
25552 diff --git a/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.280.0.ebuild b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.280.0.ebuild
25553 new file mode 100644
25554 index 0000000..e69ae75
25555 --- /dev/null
25556 +++ b/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.280.0.ebuild
25557 @@ -0,0 +1,21 @@
25558 +# Copyright 1999-2011 Gentoo Foundation
25559 +# Distributed under the terms of the GNU General Public License v2
25560 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt-FastCalc/Math-BigInt-FastCalc-0.280.0.ebuild,v 1.3 2011/06/24 14:43:28 grobian Exp $
25561 +
25562 +EAPI=3
25563 +
25564 +MODULE_AUTHOR=PJACKLAM
25565 +MODULE_VERSION=0.28
25566 +inherit perl-module
25567 +
25568 +DESCRIPTION="Math::BigInt::Calc with some XS for more speed"
25569 +
25570 +SLOT="0"
25571 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-macos ~x86-solaris"
25572 +IUSE=""
25573 +
25574 +RDEPEND=">=virtual/perl-Math-BigInt-1.993
25575 + virtual/perl-XSLoader"
25576 +DEPEND="${RDEPEND}"
25577 +
25578 +SRC_TEST="do"
25579
25580 diff --git a/perl-core/Math-BigInt/Math-BigInt-1.89.ebuild b/perl-core/Math-BigInt/Math-BigInt-1.89.ebuild
25581 new file mode 100644
25582 index 0000000..7a35457
25583 --- /dev/null
25584 +++ b/perl-core/Math-BigInt/Math-BigInt-1.89.ebuild
25585 @@ -0,0 +1,23 @@
25586 +# Copyright 1999-2010 Gentoo Foundation
25587 +# Distributed under the terms of the GNU General Public License v2
25588 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt/Math-BigInt-1.89.ebuild,v 1.7 2010/01/05 19:03:39 nixnut Exp $
25589 +
25590 +MODULE_AUTHOR=TELS
25591 +MODULE_SECTION=math
25592 +inherit perl-module eutils
25593 +
25594 +DESCRIPTION="Arbitrary size floating point math package"
25595 +
25596 +LICENSE="|| ( Artistic GPL-2 )"
25597 +SLOT="0"
25598 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc s390 sh sparc x86"
25599 +IUSE=""
25600 +
25601 +DEPEND="dev-lang/perl
25602 + >=virtual/perl-Scalar-List-Utils-1.14"
25603 +
25604 +PDEPEND=">=perl-core/bignum-0.22
25605 + >=perl-core/Math-BigRat-0.22"
25606 +
25607 +SRC_TEST="do"
25608 +PREFER_BUILDPL="no"
25609
25610 diff --git a/perl-core/Math-BigInt/Math-BigInt-1.99.ebuild b/perl-core/Math-BigInt/Math-BigInt-1.99.ebuild
25611 new file mode 100644
25612 index 0000000..62c357e
25613 --- /dev/null
25614 +++ b/perl-core/Math-BigInt/Math-BigInt-1.99.ebuild
25615 @@ -0,0 +1,23 @@
25616 +# Copyright 1999-2010 Gentoo Foundation
25617 +# Distributed under the terms of the GNU General Public License v2
25618 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt/Math-BigInt-1.99.ebuild,v 1.5 2010/12/07 05:01:12 mattst88 Exp $
25619 +
25620 +EAPI=3
25621 +
25622 +MODULE_AUTHOR=FLORA
25623 +inherit perl-module eutils
25624 +
25625 +DESCRIPTION="Arbitrary size floating point math package"
25626 +
25627 +SLOT="0"
25628 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25629 +IUSE=""
25630 +
25631 +RDEPEND=">=virtual/perl-Scalar-List-Utils-1.14"
25632 +DEPEND="${RDEPEND}"
25633 +
25634 +PDEPEND=">=virtual/perl-Math-BigInt-FastCalc-0.24
25635 + >=perl-core/bignum-0.22
25636 + >=perl-core/Math-BigRat-0.22"
25637 +
25638 +SRC_TEST="do"
25639
25640 diff --git a/perl-core/Math-BigInt/Math-BigInt-1.991.ebuild b/perl-core/Math-BigInt/Math-BigInt-1.991.ebuild
25641 new file mode 100644
25642 index 0000000..031b273
25643 --- /dev/null
25644 +++ b/perl-core/Math-BigInt/Math-BigInt-1.991.ebuild
25645 @@ -0,0 +1,24 @@
25646 +# Copyright 1999-2011 Gentoo Foundation
25647 +# Distributed under the terms of the GNU General Public License v2
25648 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt/Math-BigInt-1.991.ebuild,v 1.1 2011/02/08 07:46:09 tove Exp $
25649 +
25650 +EAPI=3
25651 +
25652 +MODULE_AUTHOR=PJACKLAM
25653 +MODULE_VERSION=1.991
25654 +inherit perl-module eutils
25655 +
25656 +DESCRIPTION="Arbitrary size floating point math package"
25657 +
25658 +SLOT="0"
25659 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25660 +IUSE=""
25661 +
25662 +RDEPEND=">=virtual/perl-Scalar-List-Utils-1.14"
25663 +DEPEND="${RDEPEND}"
25664 +
25665 +PDEPEND=">=virtual/perl-Math-BigInt-FastCalc-0.24
25666 + >=perl-core/bignum-0.22
25667 + >=perl-core/Math-BigRat-0.22"
25668 +
25669 +SRC_TEST="do"
25670
25671 diff --git a/perl-core/Math-BigInt/Math-BigInt-1.992.ebuild b/perl-core/Math-BigInt/Math-BigInt-1.992.ebuild
25672 new file mode 100644
25673 index 0000000..a1097ed
25674 --- /dev/null
25675 +++ b/perl-core/Math-BigInt/Math-BigInt-1.992.ebuild
25676 @@ -0,0 +1,24 @@
25677 +# Copyright 1999-2011 Gentoo Foundation
25678 +# Distributed under the terms of the GNU General Public License v2
25679 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt/Math-BigInt-1.992.ebuild,v 1.1 2011/02/19 08:30:58 tove Exp $
25680 +
25681 +EAPI=3
25682 +
25683 +MODULE_AUTHOR=PJACKLAM
25684 +MODULE_VERSION=1.992
25685 +inherit perl-module eutils
25686 +
25687 +DESCRIPTION="Arbitrary size floating point math package"
25688 +
25689 +SLOT="0"
25690 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
25691 +IUSE=""
25692 +
25693 +RDEPEND=">=virtual/perl-Scalar-List-Utils-1.14"
25694 +DEPEND="${RDEPEND}"
25695 +
25696 +PDEPEND=">=virtual/perl-Math-BigInt-FastCalc-0.25
25697 + >=perl-core/bignum-0.22
25698 + >=perl-core/Math-BigRat-0.260.200"
25699 +
25700 +SRC_TEST="do"
25701
25702 diff --git a/perl-core/Math-BigInt/Math-BigInt-1.993.0.ebuild b/perl-core/Math-BigInt/Math-BigInt-1.993.0.ebuild
25703 new file mode 100644
25704 index 0000000..2d6e72e
25705 --- /dev/null
25706 +++ b/perl-core/Math-BigInt/Math-BigInt-1.993.0.ebuild
25707 @@ -0,0 +1,24 @@
25708 +# Copyright 1999-2011 Gentoo Foundation
25709 +# Distributed under the terms of the GNU General Public License v2
25710 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Math-BigInt/Math-BigInt-1.993.0.ebuild,v 1.3 2011/06/24 14:31:54 grobian Exp $
25711 +
25712 +EAPI=3
25713 +
25714 +MODULE_AUTHOR=PJACKLAM
25715 +MODULE_VERSION=1.993
25716 +inherit perl-module eutils
25717 +
25718 +DESCRIPTION="Arbitrary size floating point math package"
25719 +
25720 +SLOT="0"
25721 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-macos ~x86-solaris"
25722 +IUSE=""
25723 +
25724 +RDEPEND=">=virtual/perl-Scalar-List-Utils-1.14"
25725 +DEPEND="${RDEPEND}"
25726 +
25727 +PDEPEND=">=virtual/perl-Math-BigInt-FastCalc-0.25
25728 + >=perl-core/bignum-0.22
25729 + >=perl-core/Math-BigRat-0.260.200"
25730 +
25731 +SRC_TEST="do"
25732
25733 diff --git a/perl-core/Memoize/Memoize-1.01.ebuild b/perl-core/Memoize/Memoize-1.01.ebuild
25734 new file mode 100644
25735 index 0000000..3f8bbf2
25736 --- /dev/null
25737 +++ b/perl-core/Memoize/Memoize-1.01.ebuild
25738 @@ -0,0 +1,19 @@
25739 +# Copyright 1999-2006 Gentoo Foundation
25740 +# Distributed under the terms of the GNU General Public License v2
25741 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Memoize/Memoize-1.01.ebuild,v 1.4 2009/12/16 21:52:59 abcd Exp $
25742 +
25743 +inherit perl-module
25744 +
25745 +MY_P=Memoize-${PV}
25746 +DESCRIPTION="Generic Perl function result caching system"
25747 +HOMEPAGE="http://perl.plover.com/Memoize/"
25748 +SRC_URI="mirror://cpan/authors/id/M/MJ/MJD/${P}.tar.gz"
25749 +
25750 +LICENSE="Artistic GPL-2"
25751 +SLOT="0"
25752 +KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
25753 +IUSE=""
25754 +
25755 +S=${WORKDIR}/${MY_P}
25756 +
25757 +DEPEND="dev-lang/perl"
25758
25759 diff --git a/perl-core/Memoize/Memoize-1.20.0.ebuild b/perl-core/Memoize/Memoize-1.20.0.ebuild
25760 new file mode 100644
25761 index 0000000..df0276d
25762 --- /dev/null
25763 +++ b/perl-core/Memoize/Memoize-1.20.0.ebuild
25764 @@ -0,0 +1,17 @@
25765 +# Copyright 1999-2012 Gentoo Foundation
25766 +# Distributed under the terms of the GNU General Public License v2
25767 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Memoize/Memoize-1.20.0.ebuild,v 1.6 2012/02/02 19:36:24 ranger Exp $
25768 +
25769 +EAPI=3
25770 +
25771 +MODULE_AUTHOR=FLORA
25772 +MODULE_VERSION=1.02
25773 +inherit perl-module
25774 +
25775 +DESCRIPTION="Generic Perl function result caching system"
25776 +
25777 +SLOT="0"
25778 +KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
25779 +IUSE=""
25780 +
25781 +SRC_TEST=do
25782
25783 diff --git a/perl-core/Module-Build/Module-Build-0.34.0201.ebuild b/perl-core/Module-Build/Module-Build-0.34.0201.ebuild
25784 new file mode 100644
25785 index 0000000..72ab62b
25786 --- /dev/null
25787 +++ b/perl-core/Module-Build/Module-Build-0.34.0201.ebuild
25788 @@ -0,0 +1,28 @@
25789 +# Copyright 1999-2011 Gentoo Foundation
25790 +# Distributed under the terms of the GNU General Public License v2
25791 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Build/Module-Build-0.34.0201.ebuild,v 1.10 2011/07/30 12:20:40 tove Exp $
25792 +
25793 +inherit versionator
25794 +MODULE_AUTHOR=DAGOLDEN
25795 +MY_P=${PN}-$(delete_version_separator 2)
25796 +S=${WORKDIR}/${MY_P}
25797 +inherit perl-module
25798 +
25799 +DESCRIPTION="Build and install Perl modules"
25800 +
25801 +SLOT="0"
25802 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25803 +IUSE=""
25804 +
25805 +# Removing these as hard deps. They are listed as recommended in the Build.PL,
25806 +# but end up causing a dep loop since they require module-build to be built.
25807 +# ~mcummings 06.16.06
25808 +PDEPEND=">=virtual/perl-ExtUtils-CBuilder-0.15
25809 + >=virtual/perl-ExtUtils-ParseXS-1.02"
25810 +
25811 +DEPEND="dev-lang/perl
25812 + dev-perl/yaml
25813 + >=virtual/perl-Archive-Tar-1.09
25814 + >=virtual/perl-Test-Harness-3.16"
25815 +
25816 +SRC_TEST="do"
25817
25818 diff --git a/perl-core/Module-Build/Module-Build-0.36.07.ebuild b/perl-core/Module-Build/Module-Build-0.36.07.ebuild
25819 new file mode 100644
25820 index 0000000..f624376
25821 --- /dev/null
25822 +++ b/perl-core/Module-Build/Module-Build-0.36.07.ebuild
25823 @@ -0,0 +1,26 @@
25824 +# Copyright 1999-2011 Gentoo Foundation
25825 +# Distributed under the terms of the GNU General Public License v2
25826 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Build/Module-Build-0.36.07.ebuild,v 1.8 2011/07/30 12:20:40 tove Exp $
25827 +
25828 +EAPI=2
25829 +
25830 +inherit versionator
25831 +MODULE_AUTHOR=DAGOLDEN
25832 +MY_P=${PN}-$(delete_version_separator 2)
25833 +S=${WORKDIR}/${MY_P}
25834 +inherit perl-module
25835 +
25836 +DESCRIPTION="Build and install Perl modules"
25837 +
25838 +SLOT="0"
25839 +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25840 +IUSE=""
25841 +
25842 +DEPEND="dev-perl/YAML-Tiny
25843 + >=virtual/perl-ExtUtils-CBuilder-0.27
25844 + >=virtual/perl-ExtUtils-ParseXS-2.22.05
25845 + >=virtual/perl-Archive-Tar-1.09
25846 + >=virtual/perl-Test-Harness-3.16"
25847 +RDEPEND="${DEPEND}"
25848 +
25849 +SRC_TEST="do"
25850
25851 diff --git a/perl-core/Module-Build/Module-Build-0.362.400.ebuild b/perl-core/Module-Build/Module-Build-0.362.400.ebuild
25852 new file mode 100644
25853 index 0000000..d7e969f
25854 --- /dev/null
25855 +++ b/perl-core/Module-Build/Module-Build-0.362.400.ebuild
25856 @@ -0,0 +1,29 @@
25857 +# Copyright 1999-2011 Gentoo Foundation
25858 +# Distributed under the terms of the GNU General Public License v2
25859 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Build/Module-Build-0.362.400.ebuild,v 1.5 2011/02/27 12:09:12 grobian Exp $
25860 +
25861 +EAPI=3
25862 +
25863 +MODULE_AUTHOR=DAGOLDEN
25864 +MODULE_VERSION=0.3624
25865 +inherit perl-module
25866 +
25867 +DESCRIPTION="Build and install Perl modules"
25868 +
25869 +SLOT="0"
25870 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25871 +IUSE=""
25872 +
25873 +DEPEND="
25874 + >=virtual/perl-CPAN-Meta-YAML-0.2
25875 + >=virtual/perl-Module-Metadata-1.0.2
25876 + >=virtual/perl-Perl-OSType-1
25877 + >=virtual/perl-ExtUtils-CBuilder-0.27
25878 + >=virtual/perl-ExtUtils-ParseXS-2.22.05
25879 + >=virtual/perl-Archive-Tar-1.09
25880 + >=virtual/perl-Test-Harness-3.16
25881 + >=virtual/perl-version-0.87
25882 +"
25883 +RDEPEND="${DEPEND}"
25884 +
25885 +SRC_TEST="do"
25886
25887 diff --git a/perl-core/Module-Build/Module-Build-0.380.0.ebuild b/perl-core/Module-Build/Module-Build-0.380.0.ebuild
25888 new file mode 100644
25889 index 0000000..e2f7034
25890 --- /dev/null
25891 +++ b/perl-core/Module-Build/Module-Build-0.380.0.ebuild
25892 @@ -0,0 +1,30 @@
25893 +# Copyright 1999-2012 Gentoo Foundation
25894 +# Distributed under the terms of the GNU General Public License v2
25895 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Build/Module-Build-0.380.0.ebuild,v 1.13 2012/05/15 19:26:31 halcy0n Exp $
25896 +
25897 +EAPI=3
25898 +
25899 +MODULE_AUTHOR=DAGOLDEN
25900 +MODULE_VERSION=0.3800
25901 +inherit perl-module
25902 +
25903 +DESCRIPTION="Build and install Perl modules"
25904 +
25905 +SLOT="0"
25906 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25907 +IUSE=""
25908 +
25909 +DEPEND="
25910 + >=virtual/perl-CPAN-Meta-2.110.420
25911 + >=virtual/perl-Parse-CPAN-Meta-1.440.100
25912 + >=virtual/perl-Module-Metadata-1.0.2
25913 + >=virtual/perl-Perl-OSType-1
25914 + >=virtual/perl-ExtUtils-CBuilder-0.27
25915 + >=virtual/perl-ExtUtils-ParseXS-2.22.05
25916 + >=virtual/perl-Archive-Tar-1.09
25917 + >=virtual/perl-Test-Harness-3.16
25918 + >=virtual/perl-version-0.87
25919 +"
25920 +RDEPEND="${DEPEND}"
25921 +
25922 +SRC_TEST="do"
25923
25924 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.38.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.38.ebuild
25925 new file mode 100644
25926 index 0000000..0ff818d
25927 --- /dev/null
25928 +++ b/perl-core/Module-CoreList/Module-CoreList-2.38.ebuild
25929 @@ -0,0 +1,19 @@
25930 +# Copyright 1999-2010 Gentoo Foundation
25931 +# Distributed under the terms of the GNU General Public License v2
25932 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.38.ebuild,v 1.3 2010/11/05 12:07:17 fauli Exp $
25933 +
25934 +EAPI=3
25935 +
25936 +MODULE_AUTHOR=BINGOS
25937 +inherit perl-module
25938 +
25939 +DESCRIPTION="what modules shipped with versions of perl"
25940 +
25941 +SLOT="0"
25942 +KEYWORDS="amd64 ~ppc x86"
25943 +IUSE=""
25944 +
25945 +#RDEPEND=""
25946 +#DEPEND="test? ( dev-perl/Test-Pod )"
25947 +
25948 +SRC_TEST=do
25949
25950 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.41.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.41.ebuild
25951 new file mode 100644
25952 index 0000000..d0bf99d
25953 --- /dev/null
25954 +++ b/perl-core/Module-CoreList/Module-CoreList-2.41.ebuild
25955 @@ -0,0 +1,19 @@
25956 +# Copyright 1999-2010 Gentoo Foundation
25957 +# Distributed under the terms of the GNU General Public License v2
25958 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.41.ebuild,v 1.1 2010/11/22 15:11:05 tove Exp $
25959 +
25960 +EAPI=3
25961 +
25962 +MODULE_AUTHOR=BINGOS
25963 +inherit perl-module
25964 +
25965 +DESCRIPTION="what modules shipped with versions of perl"
25966 +
25967 +SLOT="0"
25968 +KEYWORDS="~amd64 ~ppc ~x86"
25969 +IUSE=""
25970 +
25971 +#RDEPEND=""
25972 +#DEPEND="test? ( dev-perl/Test-Pod )"
25973 +
25974 +SRC_TEST=do
25975
25976 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.430.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.430.ebuild
25977 new file mode 100644
25978 index 0000000..32f6c04
25979 --- /dev/null
25980 +++ b/perl-core/Module-CoreList/Module-CoreList-2.430.ebuild
25981 @@ -0,0 +1,20 @@
25982 +# Copyright 1999-2011 Gentoo Foundation
25983 +# Distributed under the terms of the GNU General Public License v2
25984 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.430.ebuild,v 1.2 2011/09/03 19:45:42 tove Exp $
25985 +
25986 +EAPI=3
25987 +
25988 +MODULE_AUTHOR=BINGOS
25989 +MODULE_VERSION=2.43
25990 +inherit perl-module
25991 +
25992 +DESCRIPTION="what modules shipped with versions of perl"
25993 +
25994 +SLOT="0"
25995 +KEYWORDS="amd64 ~ppc x86"
25996 +IUSE=""
25997 +
25998 +#RDEPEND=""
25999 +#DEPEND="test? ( dev-perl/Test-Pod )"
26000 +
26001 +SRC_TEST=do
26002
26003 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.440.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.440.ebuild
26004 new file mode 100644
26005 index 0000000..847c7e1
26006 --- /dev/null
26007 +++ b/perl-core/Module-CoreList/Module-CoreList-2.440.ebuild
26008 @@ -0,0 +1,20 @@
26009 +# Copyright 1999-2011 Gentoo Foundation
26010 +# Distributed under the terms of the GNU General Public License v2
26011 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.440.ebuild,v 1.3 2011/01/29 18:06:49 armin76 Exp $
26012 +
26013 +EAPI=3
26014 +
26015 +MODULE_AUTHOR=BINGOS
26016 +MODULE_VERSION=2.44
26017 +inherit perl-module
26018 +
26019 +DESCRIPTION="what modules shipped with versions of perl"
26020 +
26021 +SLOT="0"
26022 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86"
26023 +IUSE=""
26024 +
26025 +#RDEPEND=""
26026 +#DEPEND="test? ( dev-perl/Test-Pod )"
26027 +
26028 +SRC_TEST=do
26029
26030 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.450.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.450.ebuild
26031 new file mode 100644
26032 index 0000000..1c66d6c
26033 --- /dev/null
26034 +++ b/perl-core/Module-CoreList/Module-CoreList-2.450.ebuild
26035 @@ -0,0 +1,20 @@
26036 +# Copyright 1999-2011 Gentoo Foundation
26037 +# Distributed under the terms of the GNU General Public License v2
26038 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.450.ebuild,v 1.3 2011/02/27 10:48:20 grobian Exp $
26039 +
26040 +EAPI=3
26041 +
26042 +MODULE_AUTHOR=BINGOS
26043 +MODULE_VERSION=2.45
26044 +inherit perl-module
26045 +
26046 +DESCRIPTION="what modules shipped with versions of perl"
26047 +
26048 +SLOT="0"
26049 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26050 +IUSE=""
26051 +
26052 +#RDEPEND=""
26053 +#DEPEND="test? ( dev-perl/Test-Pod )"
26054 +
26055 +SRC_TEST=do
26056
26057 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.460.0.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.460.0.ebuild
26058 new file mode 100644
26059 index 0000000..1c5c6ad
26060 --- /dev/null
26061 +++ b/perl-core/Module-CoreList/Module-CoreList-2.460.0.ebuild
26062 @@ -0,0 +1,20 @@
26063 +# Copyright 1999-2011 Gentoo Foundation
26064 +# Distributed under the terms of the GNU General Public License v2
26065 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.460.0.ebuild,v 1.2 2011/05/02 19:53:27 grobian Exp $
26066 +
26067 +EAPI=3
26068 +
26069 +MODULE_AUTHOR=BINGOS
26070 +MODULE_VERSION=2.46
26071 +inherit perl-module
26072 +
26073 +DESCRIPTION="what modules shipped with versions of perl"
26074 +
26075 +SLOT="0"
26076 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26077 +IUSE=""
26078 +
26079 +#RDEPEND=""
26080 +#DEPEND="test? ( dev-perl/Test-Pod )"
26081 +
26082 +SRC_TEST=do
26083
26084 diff --git a/perl-core/Module-CoreList/Module-CoreList-2.490.0.ebuild b/perl-core/Module-CoreList/Module-CoreList-2.490.0.ebuild
26085 new file mode 100644
26086 index 0000000..4bcb76d
26087 --- /dev/null
26088 +++ b/perl-core/Module-CoreList/Module-CoreList-2.490.0.ebuild
26089 @@ -0,0 +1,20 @@
26090 +# Copyright 1999-2011 Gentoo Foundation
26091 +# Distributed under the terms of the GNU General Public License v2
26092 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-CoreList/Module-CoreList-2.490.0.ebuild,v 1.2 2011/06/13 01:03:30 mattst88 Exp $
26093 +
26094 +EAPI=3
26095 +
26096 +MODULE_AUTHOR=BINGOS
26097 +MODULE_VERSION=2.49
26098 +inherit perl-module
26099 +
26100 +DESCRIPTION="what modules shipped with versions of perl"
26101 +
26102 +SLOT="0"
26103 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26104 +IUSE=""
26105 +
26106 +#RDEPEND=""
26107 +#DEPEND="test? ( dev-perl/Test-Pod )"
26108 +
26109 +SRC_TEST=do
26110
26111 diff --git a/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.400.ebuild b/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.400.ebuild
26112 new file mode 100644
26113 index 0000000..7c79de6
26114 --- /dev/null
26115 +++ b/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.400.ebuild
26116 @@ -0,0 +1,24 @@
26117 +# Copyright 1999-2011 Gentoo Foundation
26118 +# Distributed under the terms of the GNU General Public License v2
26119 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.400.ebuild,v 1.3 2011/01/29 18:10:22 armin76 Exp $
26120 +
26121 +EAPI=3
26122 +
26123 +MODULE_AUTHOR=BINGOS
26124 +MODULE_VERSION=0.40
26125 +inherit perl-module
26126 +
26127 +DESCRIPTION="Looking up module information / loading at runtime"
26128 +
26129 +SLOT="0"
26130 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86"
26131 +IUSE=""
26132 +
26133 +DEPEND=">=virtual/perl-Module-Load-0.12
26134 + >=virtual/perl-Module-CoreList-0.22
26135 + virtual/perl-Locale-Maketext-Simple
26136 + virtual/perl-Params-Check
26137 + virtual/perl-version"
26138 +RDEPEND="${DEPEND}"
26139 +
26140 +SRC_TEST=do
26141
26142 diff --git a/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.440.0.ebuild b/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.440.0.ebuild
26143 new file mode 100644
26144 index 0000000..8ad34cc
26145 --- /dev/null
26146 +++ b/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.440.0.ebuild
26147 @@ -0,0 +1,24 @@
26148 +# Copyright 1999-2011 Gentoo Foundation
26149 +# Distributed under the terms of the GNU General Public License v2
26150 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Load-Conditional/Module-Load-Conditional-0.440.0.ebuild,v 1.3 2011/07/07 23:16:03 aballier Exp $
26151 +
26152 +EAPI=3
26153 +
26154 +MODULE_AUTHOR=BINGOS
26155 +MODULE_VERSION=0.44
26156 +inherit perl-module
26157 +
26158 +DESCRIPTION="Looking up module information / loading at runtime"
26159 +
26160 +SLOT="0"
26161 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26162 +IUSE=""
26163 +
26164 +DEPEND=">=virtual/perl-Module-Load-0.12
26165 + >=virtual/perl-Module-CoreList-0.22
26166 + virtual/perl-Locale-Maketext-Simple
26167 + virtual/perl-Params-Check
26168 + virtual/perl-version"
26169 +RDEPEND="${DEPEND}"
26170 +
26171 +SRC_TEST=do
26172
26173 diff --git a/perl-core/Module-Load/Module-Load-0.180.0.ebuild b/perl-core/Module-Load/Module-Load-0.180.0.ebuild
26174 new file mode 100644
26175 index 0000000..5c86d50
26176 --- /dev/null
26177 +++ b/perl-core/Module-Load/Module-Load-0.180.0.ebuild
26178 @@ -0,0 +1,17 @@
26179 +# Copyright 1999-2011 Gentoo Foundation
26180 +# Distributed under the terms of the GNU General Public License v2
26181 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Load/Module-Load-0.180.0.ebuild,v 1.3 2011/07/07 23:11:00 aballier Exp $
26182 +
26183 +EAPI=2
26184 +
26185 +MODULE_AUTHOR=BINGOS
26186 +MODULE_VERSION=0.18
26187 +inherit perl-module
26188 +
26189 +DESCRIPTION="runtime require of both modules and files"
26190 +
26191 +SLOT="0"
26192 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26193 +IUSE=""
26194 +
26195 +SRC_TEST=do
26196
26197 diff --git a/perl-core/Module-Loaded/Module-Loaded-0.60.0.ebuild b/perl-core/Module-Loaded/Module-Loaded-0.60.0.ebuild
26198 new file mode 100644
26199 index 0000000..afb0a0b
26200 --- /dev/null
26201 +++ b/perl-core/Module-Loaded/Module-Loaded-0.60.0.ebuild
26202 @@ -0,0 +1,17 @@
26203 +# Copyright 1999-2011 Gentoo Foundation
26204 +# Distributed under the terms of the GNU General Public License v2
26205 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Loaded/Module-Loaded-0.60.0.ebuild,v 1.1 2011/05/20 14:09:10 tove Exp $
26206 +
26207 +EAPI=2
26208 +
26209 +MODULE_AUTHOR=BINGOS
26210 +MODULE_VERSION=0.06
26211 +inherit perl-module
26212 +
26213 +DESCRIPTION="Mark modules as loaded or unloaded"
26214 +
26215 +SLOT="0"
26216 +KEYWORDS="~amd64 ~x86"
26217 +IUSE=""
26218 +
26219 +SRC_TEST=do
26220
26221 diff --git a/perl-core/Module-Metadata/Module-Metadata-1.0.3.ebuild b/perl-core/Module-Metadata/Module-Metadata-1.0.3.ebuild
26222 new file mode 100644
26223 index 0000000..fc927d3
26224 --- /dev/null
26225 +++ b/perl-core/Module-Metadata/Module-Metadata-1.0.3.ebuild
26226 @@ -0,0 +1,20 @@
26227 +# Copyright 1999-2011 Gentoo Foundation
26228 +# Distributed under the terms of the GNU General Public License v2
26229 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Metadata/Module-Metadata-1.0.3.ebuild,v 1.4 2011/01/30 18:03:59 armin76 Exp $
26230 +
26231 +EAPI=3
26232 +
26233 +MODULE_AUTHOR=DAGOLDEN
26234 +MODULE_VERSION=1.000003
26235 +inherit perl-module
26236 +
26237 +DESCRIPTION="Gather package and POD information from perl module files"
26238 +
26239 +SLOT="0"
26240 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~s390 ~sh ~sparc ~x86"
26241 +IUSE=""
26242 +
26243 +RDEPEND=">=virtual/perl-version-0.870"
26244 +DEPEND="${RDEPEND}"
26245 +
26246 +SRC_TEST="do"
26247
26248 diff --git a/perl-core/Module-Metadata/Module-Metadata-1.0.4.ebuild b/perl-core/Module-Metadata/Module-Metadata-1.0.4.ebuild
26249 new file mode 100644
26250 index 0000000..d1b96ab
26251 --- /dev/null
26252 +++ b/perl-core/Module-Metadata/Module-Metadata-1.0.4.ebuild
26253 @@ -0,0 +1,20 @@
26254 +# Copyright 1999-2011 Gentoo Foundation
26255 +# Distributed under the terms of the GNU General Public License v2
26256 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Metadata/Module-Metadata-1.0.4.ebuild,v 1.6 2011/07/06 03:47:16 aballier Exp $
26257 +
26258 +EAPI=3
26259 +
26260 +MODULE_AUTHOR=DAGOLDEN
26261 +MODULE_VERSION=1.000004
26262 +inherit perl-module
26263 +
26264 +DESCRIPTION="Gather package and POD information from perl module files"
26265 +
26266 +SLOT="0"
26267 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26268 +IUSE=""
26269 +
26270 +RDEPEND=">=virtual/perl-version-0.870"
26271 +DEPEND="${RDEPEND}"
26272 +
26273 +SRC_TEST="do"
26274
26275 diff --git a/perl-core/Module-Pluggable/Module-Pluggable-3.900.0.ebuild b/perl-core/Module-Pluggable/Module-Pluggable-3.900.0.ebuild
26276 new file mode 100644
26277 index 0000000..89f1eb0
26278 --- /dev/null
26279 +++ b/perl-core/Module-Pluggable/Module-Pluggable-3.900.0.ebuild
26280 @@ -0,0 +1,20 @@
26281 +# Copyright 1999-2012 Gentoo Foundation
26282 +# Distributed under the terms of the GNU General Public License v2
26283 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Module-Pluggable/Module-Pluggable-3.900.0.ebuild,v 1.2 2012/05/06 17:30:21 armin76 Exp $
26284 +
26285 +EAPI=2
26286 +
26287 +MODULE_VERSION=3.9
26288 +MODULE_AUTHOR=SIMONW
26289 +inherit perl-module
26290 +
26291 +DESCRIPTION="automatically give your module the ability to have plugins"
26292 +
26293 +SLOT="0"
26294 +KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
26295 +IUSE=""
26296 +
26297 +RDEPEND="virtual/perl-File-Spec"
26298 +DEPEND="${RDEPEND}"
26299 +
26300 +SRC_TEST="do"
26301
26302 diff --git a/perl-core/Params-Check/Params-Check-0.26.ebuild b/perl-core/Params-Check/Params-Check-0.26.ebuild
26303 new file mode 100644
26304 index 0000000..5293f20
26305 --- /dev/null
26306 +++ b/perl-core/Params-Check/Params-Check-0.26.ebuild
26307 @@ -0,0 +1,16 @@
26308 +# Copyright 1999-2009 Gentoo Foundation
26309 +# Distributed under the terms of the GNU General Public License v2
26310 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Params-Check/Params-Check-0.26.ebuild,v 1.2 2009/10/27 17:31:35 volkmar Exp $
26311 +
26312 +MODULE_AUTHOR="KANE"
26313 +
26314 +inherit perl-module
26315 +
26316 +DESCRIPTION="A generic input parsing/checking mechanism"
26317 +
26318 +LICENSE="|| ( Artistic GPL-2 )"
26319 +SLOT="0"
26320 +KEYWORDS="~amd64 ~ppc ~x86"
26321 +IUSE=""
26322 +
26323 +DEPEND="virtual/perl-Locale-Maketext-Simple"
26324
26325 diff --git a/perl-core/Params-Check/Params-Check-0.280.0.ebuild b/perl-core/Params-Check/Params-Check-0.280.0.ebuild
26326 new file mode 100644
26327 index 0000000..a3f09be
26328 --- /dev/null
26329 +++ b/perl-core/Params-Check/Params-Check-0.280.0.ebuild
26330 @@ -0,0 +1,20 @@
26331 +# Copyright 1999-2011 Gentoo Foundation
26332 +# Distributed under the terms of the GNU General Public License v2
26333 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Params-Check/Params-Check-0.280.0.ebuild,v 1.3 2011/07/07 23:14:31 aballier Exp $
26334 +
26335 +EAPI=3
26336 +
26337 +MODULE_AUTHOR=BINGOS
26338 +MODULE_VERSION=0.28
26339 +inherit perl-module
26340 +
26341 +DESCRIPTION="A generic input parsing/checking mechanism"
26342 +
26343 +SLOT="0"
26344 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26345 +IUSE=""
26346 +
26347 +RDEPEND="virtual/perl-Locale-Maketext-Simple"
26348 +DEPEND="${RDEPEND}"
26349 +
26350 +SRC_TEST=do
26351
26352 diff --git a/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.40.ebuild b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.40.ebuild
26353 new file mode 100644
26354 index 0000000..118444f
26355 --- /dev/null
26356 +++ b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.40.ebuild
26357 @@ -0,0 +1,16 @@
26358 +# Copyright 1999-2009 Gentoo Foundation
26359 +# Distributed under the terms of the GNU General Public License v2
26360 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.40.ebuild,v 1.2 2009/10/27 17:51:22 volkmar Exp $
26361 +
26362 +EAPI=2
26363 +
26364 +MODULE_AUTHOR=SMUELLER
26365 +inherit perl-module
26366 +
26367 +DESCRIPTION="Parse META.yml and other similar CPAN metadata files"
26368 +
26369 +SLOT="0"
26370 +KEYWORDS="~amd64 ~ppc ~x86"
26371 +IUSE=""
26372 +
26373 +SRC_TEST=do
26374
26375 diff --git a/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.420.ebuild b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.420.ebuild
26376 new file mode 100644
26377 index 0000000..9a1825b
26378 --- /dev/null
26379 +++ b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.420.ebuild
26380 @@ -0,0 +1,24 @@
26381 +# Copyright 1999-2011 Gentoo Foundation
26382 +# Distributed under the terms of the GNU General Public License v2
26383 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.420.ebuild,v 1.2 2011/02/20 23:58:27 josejx Exp $
26384 +
26385 +EAPI=3
26386 +
26387 +MODULE_AUTHOR=DAGOLDEN
26388 +MODULE_VERSION=1.4200
26389 +inherit perl-module
26390 +
26391 +DESCRIPTION="Parse META.yml and other similar CPAN metadata files"
26392 +
26393 +SLOT="0"
26394 +KEYWORDS="~amd64 ~ppc ~x86"
26395 +IUSE=""
26396 +
26397 +RDEPEND="
26398 + >=virtual/perl-CPAN-Meta-YAML-0.2
26399 + >=virtual/perl-JSON-PP-2.271.30
26400 + >=virtual/perl-Module-Load-Conditional-0.260
26401 +"
26402 +DEPEND="${RDEPEND}"
26403 +
26404 +SRC_TEST=do
26405
26406 diff --git a/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.100.ebuild b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.100.ebuild
26407 new file mode 100644
26408 index 0000000..fe56d85
26409 --- /dev/null
26410 +++ b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.100.ebuild
26411 @@ -0,0 +1,23 @@
26412 +# Copyright 1999-2012 Gentoo Foundation
26413 +# Distributed under the terms of the GNU General Public License v2
26414 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.100.ebuild,v 1.16 2012/05/15 19:16:18 halcy0n Exp $
26415 +
26416 +EAPI=3
26417 +
26418 +MODULE_AUTHOR=DAGOLDEN
26419 +MODULE_VERSION=1.4401
26420 +inherit perl-module
26421 +
26422 +DESCRIPTION="Parse META.yml and other similar CPAN metadata files"
26423 +
26424 +SLOT="0"
26425 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26426 +IUSE=""
26427 +
26428 +RDEPEND="
26429 + >=virtual/perl-CPAN-Meta-YAML-0.2
26430 + >=virtual/perl-JSON-PP-2.271.30
26431 +"
26432 +DEPEND="${RDEPEND}"
26433 +
26434 +SRC_TEST=do
26435
26436 diff --git a/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.ebuild b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.ebuild
26437 new file mode 100644
26438 index 0000000..9bcb635
26439 --- /dev/null
26440 +++ b/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.ebuild
26441 @@ -0,0 +1,24 @@
26442 +# Copyright 1999-2011 Gentoo Foundation
26443 +# Distributed under the terms of the GNU General Public License v2
26444 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Parse-CPAN-Meta/Parse-CPAN-Meta-1.440.ebuild,v 1.3 2011/05/02 19:41:01 grobian Exp $
26445 +
26446 +EAPI=3
26447 +
26448 +MODULE_AUTHOR=DAGOLDEN
26449 +MODULE_VERSION=1.4400
26450 +inherit perl-module
26451 +
26452 +DESCRIPTION="Parse META.yml and other similar CPAN metadata files"
26453 +
26454 +SLOT="0"
26455 +KEYWORDS="~amd64 ~ppc ~x86 ~x64-freebsd"
26456 +IUSE=""
26457 +
26458 +RDEPEND="
26459 + >=virtual/perl-CPAN-Meta-YAML-0.2
26460 + >=virtual/perl-JSON-PP-2.271.30
26461 + >=virtual/perl-Module-Load-Conditional-0.260
26462 +"
26463 +DEPEND="${RDEPEND}"
26464 +
26465 +SRC_TEST=do
26466
26467 diff --git a/perl-core/Pod-Simple/Pod-Simple-3.14.ebuild b/perl-core/Pod-Simple/Pod-Simple-3.14.ebuild
26468 new file mode 100644
26469 index 0000000..03bb7e9
26470 --- /dev/null
26471 +++ b/perl-core/Pod-Simple/Pod-Simple-3.14.ebuild
26472 @@ -0,0 +1,19 @@
26473 +# Copyright 1999-2011 Gentoo Foundation
26474 +# Distributed under the terms of the GNU General Public License v2
26475 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Pod-Simple/Pod-Simple-3.14.ebuild,v 1.9 2011/07/30 12:23:01 tove Exp $
26476 +
26477 +EAPI=3
26478 +
26479 +MODULE_AUTHOR=DWHEELER
26480 +inherit perl-module
26481 +
26482 +DESCRIPTION="Framework for parsing Pod"
26483 +
26484 +SLOT="0"
26485 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
26486 +IUSE=""
26487 +
26488 +DEPEND=">=virtual/perl-Pod-Escapes-1.04"
26489 +RDEPEND="${DEPEND}"
26490 +
26491 +SRC_TEST="do"
26492
26493 diff --git a/perl-core/Pod-Simple/Pod-Simple-3.15.ebuild b/perl-core/Pod-Simple/Pod-Simple-3.15.ebuild
26494 new file mode 100644
26495 index 0000000..b7c71e9
26496 --- /dev/null
26497 +++ b/perl-core/Pod-Simple/Pod-Simple-3.15.ebuild
26498 @@ -0,0 +1,19 @@
26499 +# Copyright 1999-2011 Gentoo Foundation
26500 +# Distributed under the terms of the GNU General Public License v2
26501 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Pod-Simple/Pod-Simple-3.15.ebuild,v 1.3 2011/07/30 12:23:01 tove Exp $
26502 +
26503 +EAPI=3
26504 +
26505 +MODULE_AUTHOR=DWHEELER
26506 +inherit perl-module
26507 +
26508 +DESCRIPTION="Framework for parsing Pod"
26509 +
26510 +SLOT="0"
26511 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
26512 +IUSE=""
26513 +
26514 +DEPEND=">=virtual/perl-Pod-Escapes-1.04"
26515 +RDEPEND="${DEPEND}"
26516 +
26517 +SRC_TEST="do"
26518
26519 diff --git a/perl-core/Pod-Simple/Pod-Simple-3.160.0.ebuild b/perl-core/Pod-Simple/Pod-Simple-3.160.0.ebuild
26520 new file mode 100644
26521 index 0000000..32608aa
26522 --- /dev/null
26523 +++ b/perl-core/Pod-Simple/Pod-Simple-3.160.0.ebuild
26524 @@ -0,0 +1,20 @@
26525 +# Copyright 1999-2012 Gentoo Foundation
26526 +# Distributed under the terms of the GNU General Public License v2
26527 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Pod-Simple/Pod-Simple-3.160.0.ebuild,v 1.9 2012/03/07 21:58:44 ranger Exp $
26528 +
26529 +EAPI=3
26530 +
26531 +MODULE_AUTHOR=DWHEELER
26532 +MODULE_VERSION=3.16
26533 +inherit perl-module
26534 +
26535 +DESCRIPTION="Framework for parsing Pod"
26536 +
26537 +SLOT="0"
26538 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
26539 +IUSE=""
26540 +
26541 +DEPEND=">=virtual/perl-Pod-Escapes-1.04"
26542 +RDEPEND="${DEPEND}"
26543 +
26544 +SRC_TEST="do"
26545
26546 diff --git a/perl-core/PodParser/PodParser-1.380.0.ebuild b/perl-core/PodParser/PodParser-1.380.0.ebuild
26547 new file mode 100644
26548 index 0000000..9bbd23f
26549 --- /dev/null
26550 +++ b/perl-core/PodParser/PodParser-1.380.0.ebuild
26551 @@ -0,0 +1,21 @@
26552 +# Copyright 1999-2012 Gentoo Foundation
26553 +# Distributed under the terms of the GNU General Public License v2
26554 +# $Header: /var/cvsroot/gentoo-x86/perl-core/PodParser/PodParser-1.380.0.ebuild,v 1.3 2012/04/28 01:46:55 aballier Exp $
26555 +
26556 +MODULE_AUTHOR=MAREKR
26557 +MODULE_VERSION=1.38
26558 +MY_PN=Pod-Parser
26559 +inherit perl-module
26560 +
26561 +DESCRIPTION="Base class for creating POD filters and translators"
26562 +
26563 +LICENSE="|| ( Artistic GPL-2 )"
26564 +SLOT="0"
26565 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26566 +IUSE=""
26567 +
26568 +DEPEND="dev-lang/perl"
26569 +
26570 +S=${WORKDIR}/${MY_P}
26571 +
26572 +SRC_TEST="do"
26573
26574 diff --git a/perl-core/Safe/Safe-2.27.ebuild b/perl-core/Safe/Safe-2.27.ebuild
26575 new file mode 100644
26576 index 0000000..9beac3b
26577 --- /dev/null
26578 +++ b/perl-core/Safe/Safe-2.27.ebuild
26579 @@ -0,0 +1,16 @@
26580 +# Copyright 1999-2010 Gentoo Foundation
26581 +# Distributed under the terms of the GNU General Public License v2
26582 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Safe/Safe-2.27.ebuild,v 1.5 2010/07/19 01:18:02 josejx Exp $
26583 +
26584 +EAPI=3
26585 +
26586 +MODULE_AUTHOR=RGARCIA
26587 +inherit perl-module
26588 +
26589 +DESCRIPTION="Compile and execute code in restricted compartments"
26590 +
26591 +SLOT="0"
26592 +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ~ppc64 sparc x86"
26593 +IUSE=""
26594 +
26595 +SRC_TEST=do
26596
26597 diff --git a/perl-core/Safe/Safe-2.290.0.ebuild b/perl-core/Safe/Safe-2.290.0.ebuild
26598 new file mode 100644
26599 index 0000000..80618af
26600 --- /dev/null
26601 +++ b/perl-core/Safe/Safe-2.290.0.ebuild
26602 @@ -0,0 +1,17 @@
26603 +# Copyright 1999-2011 Gentoo Foundation
26604 +# Distributed under the terms of the GNU General Public License v2
26605 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Safe/Safe-2.290.0.ebuild,v 1.1 2011/05/20 13:30:27 tove Exp $
26606 +
26607 +EAPI=3
26608 +
26609 +MODULE_AUTHOR=RGARCIA
26610 +MODULE_VERSION=2.29
26611 +inherit perl-module
26612 +
26613 +DESCRIPTION="Compile and execute code in restricted compartments"
26614 +
26615 +SLOT="0"
26616 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
26617 +IUSE=""
26618 +
26619 +SRC_TEST=do
26620
26621 diff --git a/perl-core/Scalar-List-Utils/Scalar-List-Utils-1.230.0.ebuild b/perl-core/Scalar-List-Utils/Scalar-List-Utils-1.230.0.ebuild
26622 new file mode 100644
26623 index 0000000..121594f
26624 --- /dev/null
26625 +++ b/perl-core/Scalar-List-Utils/Scalar-List-Utils-1.230.0.ebuild
26626 @@ -0,0 +1,17 @@
26627 +# Copyright 1999-2012 Gentoo Foundation
26628 +# Distributed under the terms of the GNU General Public License v2
26629 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Scalar-List-Utils/Scalar-List-Utils-1.230.0.ebuild,v 1.2 2012/05/31 15:19:37 jer Exp $
26630 +
26631 +EAPI=2
26632 +
26633 +MODULE_AUTHOR=GBARR
26634 +MODULE_VERSION=1.23
26635 +inherit perl-module
26636 +
26637 +DESCRIPTION="Scalar-List-Utils module for perl"
26638 +
26639 +SLOT="0"
26640 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26641 +IUSE=""
26642 +
26643 +SRC_TEST=do
26644
26645 diff --git a/perl-core/Storable/Storable-2.20.ebuild b/perl-core/Storable/Storable-2.20.ebuild
26646 new file mode 100644
26647 index 0000000..87eb873
26648 --- /dev/null
26649 +++ b/perl-core/Storable/Storable-2.20.ebuild
26650 @@ -0,0 +1,16 @@
26651 +# Copyright 1999-2011 Gentoo Foundation
26652 +# Distributed under the terms of the GNU General Public License v2
26653 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Storable/Storable-2.20.ebuild,v 1.10 2011/07/30 12:24:34 tove Exp $
26654 +
26655 +EAPI=2
26656 +
26657 +MODULE_AUTHOR=AMS
26658 +inherit perl-module
26659 +
26660 +DESCRIPTION="The Perl Storable Module"
26661 +
26662 +SLOT="0"
26663 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
26664 +IUSE=""
26665 +
26666 +SRC_TEST="do"
26667
26668 diff --git a/perl-core/Storable/Storable-2.250.ebuild b/perl-core/Storable/Storable-2.250.ebuild
26669 new file mode 100644
26670 index 0000000..453f6f9
26671 --- /dev/null
26672 +++ b/perl-core/Storable/Storable-2.250.ebuild
26673 @@ -0,0 +1,17 @@
26674 +# Copyright 1999-2011 Gentoo Foundation
26675 +# Distributed under the terms of the GNU General Public License v2
26676 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Storable/Storable-2.250.ebuild,v 1.4 2011/07/30 12:24:34 tove Exp $
26677 +
26678 +EAPI=3
26679 +
26680 +MODULE_AUTHOR=AMS
26681 +MODULE_VERSION=2.25
26682 +inherit perl-module
26683 +
26684 +DESCRIPTION="The Perl Storable Module"
26685 +
26686 +SLOT="0"
26687 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26688 +IUSE=""
26689 +
26690 +SRC_TEST="do"
26691
26692 diff --git a/perl-core/Sys-Syslog/Sys-Syslog-0.270.0.ebuild b/perl-core/Sys-Syslog/Sys-Syslog-0.270.0.ebuild
26693 new file mode 100644
26694 index 0000000..81c1f37
26695 --- /dev/null
26696 +++ b/perl-core/Sys-Syslog/Sys-Syslog-0.270.0.ebuild
26697 @@ -0,0 +1,19 @@
26698 +# Copyright 1999-2011 Gentoo Foundation
26699 +# Distributed under the terms of the GNU General Public License v2
26700 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Sys-Syslog/Sys-Syslog-0.270.0.ebuild,v 1.2 2011/07/30 12:25:21 tove Exp $
26701 +
26702 +MODULE_VERSION=0.27
26703 +MODULE_AUTHOR=SAPER
26704 +inherit perl-module
26705 +
26706 +DESCRIPTION="Provides same functionality as BSD syslog"
26707 +
26708 +LICENSE="|| ( Artistic GPL-2 )"
26709 +SLOT="0"
26710 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
26711 +IUSE=""
26712 +
26713 +DEPEND="dev-lang/perl"
26714 +
26715 +# Tests disabled - they attempt to verify on the live system
26716 +#SRC_TEST="do"
26717
26718 diff --git a/perl-core/Term-ANSIColor/Term-ANSIColor-3.0.0.ebuild b/perl-core/Term-ANSIColor/Term-ANSIColor-3.0.0.ebuild
26719 new file mode 100644
26720 index 0000000..764778c
26721 --- /dev/null
26722 +++ b/perl-core/Term-ANSIColor/Term-ANSIColor-3.0.0.ebuild
26723 @@ -0,0 +1,22 @@
26724 +# Copyright 1999-2011 Gentoo Foundation
26725 +# Distributed under the terms of the GNU General Public License v2
26726 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Term-ANSIColor/Term-ANSIColor-3.0.0.ebuild,v 1.1 2011/05/19 19:04:45 tove Exp $
26727 +
26728 +EAPI=3
26729 +
26730 +MY_PN="ANSIColor"
26731 +MODULE_AUTHOR=RRA
26732 +MODULE_VERSION=3.00
26733 +inherit perl-module
26734 +
26735 +DESCRIPTION="Color screen output using ANSI escape sequences."
26736 +
26737 +SLOT="0"
26738 +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26739 +IUSE="test"
26740 +
26741 +RDEPEND=""
26742 +DEPEND="${RDEPEND}
26743 + test? ( dev-perl/Test-Pod )"
26744 +
26745 +SRC_TEST="do"
26746
26747 diff --git a/perl-core/Test-Harness/Test-Harness-3.17.ebuild b/perl-core/Test-Harness/Test-Harness-3.17.ebuild
26748 new file mode 100644
26749 index 0000000..40e7dbc
26750 --- /dev/null
26751 +++ b/perl-core/Test-Harness/Test-Harness-3.17.ebuild
26752 @@ -0,0 +1,19 @@
26753 +# Copyright 1999-2011 Gentoo Foundation
26754 +# Distributed under the terms of the GNU General Public License v2
26755 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Test-Harness/Test-Harness-3.17.ebuild,v 1.11 2011/07/30 12:26:09 tove Exp $
26756 +
26757 +MODULE_AUTHOR=ANDYA
26758 +inherit perl-module
26759 +
26760 +DESCRIPTION="Runs perl standard test scripts with statistics"
26761 +
26762 +SLOT="0"
26763 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26764 +IUSE=""
26765 +
26766 +DEPEND="dev-lang/perl"
26767 +
26768 +PREFER_BUILDPL=no
26769 +SRC_TEST="do"
26770 +mydoc="rfc*.txt"
26771 +PATCHES=( "${FILESDIR}"/3.17-taint.patch )
26772
26773 diff --git a/perl-core/Test-Harness/Test-Harness-3.22.ebuild b/perl-core/Test-Harness/Test-Harness-3.22.ebuild
26774 new file mode 100644
26775 index 0000000..82c003c
26776 --- /dev/null
26777 +++ b/perl-core/Test-Harness/Test-Harness-3.22.ebuild
26778 @@ -0,0 +1,18 @@
26779 +# Copyright 1999-2011 Gentoo Foundation
26780 +# Distributed under the terms of the GNU General Public License v2
26781 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Test-Harness/Test-Harness-3.22.ebuild,v 1.2 2011/07/30 12:26:09 tove Exp $
26782 +
26783 +EAPI=3
26784 +
26785 +MODULE_AUTHOR=ANDYA
26786 +inherit perl-module
26787 +
26788 +DESCRIPTION="Runs perl standard test scripts with statistics"
26789 +
26790 +SLOT="0"
26791 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26792 +IUSE=""
26793 +
26794 +PREFER_BUILDPL=no
26795 +SRC_TEST="do"
26796 +mydoc="rfc*.txt"
26797
26798 diff --git a/perl-core/Test-Harness/Test-Harness-3.230.0.ebuild b/perl-core/Test-Harness/Test-Harness-3.230.0.ebuild
26799 new file mode 100644
26800 index 0000000..6df9389
26801 --- /dev/null
26802 +++ b/perl-core/Test-Harness/Test-Harness-3.230.0.ebuild
26803 @@ -0,0 +1,19 @@
26804 +# Copyright 1999-2012 Gentoo Foundation
26805 +# Distributed under the terms of the GNU General Public License v2
26806 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Test-Harness/Test-Harness-3.230.0.ebuild,v 1.10 2012/04/28 02:07:53 aballier Exp $
26807 +
26808 +EAPI=3
26809 +
26810 +MODULE_AUTHOR=ANDYA
26811 +MODULE_VERSION=3.23
26812 +inherit perl-module
26813 +
26814 +DESCRIPTION="Runs perl standard test scripts with statistics"
26815 +
26816 +SLOT="0"
26817 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26818 +IUSE=""
26819 +
26820 +PREFER_BUILDPL=no
26821 +SRC_TEST="do"
26822 +mydoc="rfc*.txt"
26823
26824 diff --git a/perl-core/Test-Harness/files/3.17-taint.patch b/perl-core/Test-Harness/files/3.17-taint.patch
26825 new file mode 100644
26826 index 0000000..ede8150
26827 --- /dev/null
26828 +++ b/perl-core/Test-Harness/files/3.17-taint.patch
26829 @@ -0,0 +1,19 @@
26830 +--- Test-Harness/t/sample-tests/taint
26831 ++++ Test-Harness/t/sample-tests/taint
26832 +@@ -3,5 +3,5 @@
26833 + use lib qw(t/lib);
26834 + use Test::More tests => 1;
26835 +
26836 +-eval { kill 0, $^X };
26837 ++eval { `$^X -e1` };
26838 + like( $@, '/^Insecure dependency/', '-T honored' );
26839 +--- Test-Harness/t/sample-tests/taint_warn
26840 ++++ Test-Harness/t/sample-tests/taint_warn
26841 +@@ -6,6 +6,6 @@ use Test::More tests => 1;
26842 + my $warnings = '';
26843 + {
26844 + local $SIG{__WARN__} = sub { $warnings .= join '', @_ };
26845 +- kill 0, $^X;
26846 ++ `$^X -e1`;
26847 + }
26848 + like( $warnings, '/^Insecure dependency/', '-t honored' );
26849
26850 diff --git a/perl-core/Test/Test-1.25.ebuild b/perl-core/Test/Test-1.25.ebuild
26851 new file mode 100644
26852 index 0000000..2524300
26853 --- /dev/null
26854 +++ b/perl-core/Test/Test-1.25.ebuild
26855 @@ -0,0 +1,17 @@
26856 +# Copyright 1999-2010 Gentoo Foundation
26857 +# Distributed under the terms of the GNU General Public License v2
26858 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Test/Test-1.25.ebuild,v 1.10 2010/01/21 09:33:03 tove Exp $
26859 +
26860 +MODULE_AUTHOR=SBURKE
26861 +inherit perl-module
26862 +
26863 +DESCRIPTION="Utilities for writing test scripts"
26864 +
26865 +LICENSE="|| ( Artistic GPL-2 )"
26866 +SLOT="0"
26867 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
26868 +IUSE=""
26869 +
26870 +DEPEND="dev-lang/perl"
26871 +
26872 +SRC_TEST="do"
26873
26874 diff --git a/perl-core/Time-HiRes/Time-HiRes-1.97.19.ebuild b/perl-core/Time-HiRes/Time-HiRes-1.97.19.ebuild
26875 new file mode 100644
26876 index 0000000..64da0d0
26877 --- /dev/null
26878 +++ b/perl-core/Time-HiRes/Time-HiRes-1.97.19.ebuild
26879 @@ -0,0 +1,22 @@
26880 +# Copyright 1999-2010 Gentoo Foundation
26881 +# Distributed under the terms of the GNU General Public License v2
26882 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Time-HiRes/Time-HiRes-1.97.19.ebuild,v 1.10 2010/01/05 19:25:22 nixnut Exp $
26883 +
26884 +inherit versionator
26885 +MODULE_AUTHOR=JHI
26886 +MY_P="${PN}-$(delete_version_separator 2)"
26887 +S=${WORKDIR}/${MY_P}
26888 +inherit perl-module
26889 +
26890 +DESCRIPTION="Perl Time::HiRes. High resolution alarm, sleep, gettimeofday, interval timers"
26891 +
26892 +LICENSE="|| ( Artistic GPL-2 )"
26893 +SLOT="0"
26894 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
26895 +IUSE=""
26896 +
26897 +DEPEND="dev-lang/perl"
26898 +
26899 +mydoc="TODO"
26900 +
26901 +SRC_TEST="do"
26902
26903 diff --git a/perl-core/Time-HiRes/Time-HiRes-1.97.21.ebuild b/perl-core/Time-HiRes/Time-HiRes-1.97.21.ebuild
26904 new file mode 100644
26905 index 0000000..ceb2a8b
26906 --- /dev/null
26907 +++ b/perl-core/Time-HiRes/Time-HiRes-1.97.21.ebuild
26908 @@ -0,0 +1,19 @@
26909 +# Copyright 1999-2010 Gentoo Foundation
26910 +# Distributed under the terms of the GNU General Public License v2
26911 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Time-HiRes/Time-HiRes-1.97.21.ebuild,v 1.1 2010/03/18 08:05:53 tove Exp $
26912 +
26913 +EAPI=2
26914 +
26915 +inherit versionator
26916 +MODULE_AUTHOR=JHI
26917 +MY_P="${PN}-$(delete_version_separator 2)"
26918 +S=${WORKDIR}/${MY_P}
26919 +inherit perl-module
26920 +
26921 +DESCRIPTION="Perl Time::HiRes. High resolution alarm, sleep, gettimeofday, interval timers"
26922 +
26923 +SLOT="0"
26924 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
26925 +IUSE=""
26926 +
26927 +SRC_TEST="do"
26928
26929 diff --git a/perl-core/Version-Requirements/Version-Requirements-0.101.20.ebuild b/perl-core/Version-Requirements/Version-Requirements-0.101.20.ebuild
26930 new file mode 100644
26931 index 0000000..883ec9f
26932 --- /dev/null
26933 +++ b/perl-core/Version-Requirements/Version-Requirements-0.101.20.ebuild
26934 @@ -0,0 +1,23 @@
26935 +# Copyright 1999-2012 Gentoo Foundation
26936 +# Distributed under the terms of the GNU General Public License v2
26937 +# $Header: /var/cvsroot/gentoo-x86/perl-core/Version-Requirements/Version-Requirements-0.101.20.ebuild,v 1.16 2012/05/15 19:13:39 halcy0n Exp $
26938 +
26939 +EAPI=3
26940 +
26941 +MODULE_AUTHOR=RJBS
26942 +MODULE_VERSION=0.101020
26943 +inherit perl-module
26944 +
26945 +DESCRIPTION="A set of version requirements for a CPAN dist"
26946 +
26947 +SLOT="0"
26948 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26949 +IUSE=""
26950 +
26951 +RDEPEND="
26952 + virtual/perl-Scalar-List-Utils
26953 + >=virtual/perl-version-0.77
26954 +"
26955 +DEPEND="${RDEPEND}"
26956 +
26957 +SRC_TEST="do"
26958
26959 diff --git a/perl-core/XSLoader/XSLoader-0.10.ebuild b/perl-core/XSLoader/XSLoader-0.10.ebuild
26960 new file mode 100644
26961 index 0000000..51d4db0
26962 --- /dev/null
26963 +++ b/perl-core/XSLoader/XSLoader-0.10.ebuild
26964 @@ -0,0 +1,17 @@
26965 +# Copyright 1999-2010 Gentoo Foundation
26966 +# Distributed under the terms of the GNU General Public License v2
26967 +# $Header: /var/cvsroot/gentoo-x86/perl-core/XSLoader/XSLoader-0.10.ebuild,v 1.6 2010/12/07 04:58:30 mattst88 Exp $
26968 +
26969 +EAPI=2
26970 +
26971 +MODULE_AUTHOR=SAPER
26972 +inherit perl-module
26973 +
26974 +DESCRIPTION="Dynamically load C libraries into Perl code"
26975 +
26976 +SLOT="0"
26977 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
26978 +IUSE=""
26979 +
26980 +PATCHES=( "${FILESDIR}"/91152fc1_rt54132_version081.patch )
26981 +SRC_TEST=do
26982
26983 diff --git a/perl-core/XSLoader/files/91152fc1_rt54132_version081.patch b/perl-core/XSLoader/files/91152fc1_rt54132_version081.patch
26984 new file mode 100644
26985 index 0000000..be052eb
26986 --- /dev/null
26987 +++ b/perl-core/XSLoader/files/91152fc1_rt54132_version081.patch
26988 @@ -0,0 +1,27 @@
26989 +diff --git a/dist/XSLoader/t/XSLoader.t b/dist/XSLoader/t/XSLoader.t
26990 +index 038986e..211c4d8 100644
26991 +--- a/dist/XSLoader/t/XSLoader.t
26992 ++++ b/dist/XSLoader/t/XSLoader.t
26993 +@@ -30,7 +30,7 @@ my %modules = (
26994 + 'Time::HiRes'=> q| ::can_ok( 'Time::HiRes' => 'usleep' ) |, # 5.7.3
26995 + );
26996 +
26997 +-plan tests => keys(%modules) * 4 + 5;
26998 ++plan tests => keys(%modules) * 3 + 5;
26999 +
27000 + # Try to load the module
27001 + use_ok( 'XSLoader' );
27002 +@@ -65,11 +65,9 @@ for my $module (sort keys %modules) {
27003 + SKIP: {
27004 + skip "$module not available", 4 if $extensions !~ /\b$module\b/;
27005 +
27006 +- eval qq{ package $module; XSLoader::load('$module', "qunckkk"); };
27007 +- like( $@, "/^$module object version \\S+ does not match bootstrap parameter (?:qunckkk|0)/",
27008 ++ eval qq{ package $module; XSLoader::load('$module', "12345678"); };
27009 ++ like( $@, "/^$module object version \\S+ does not match bootstrap parameter (?:12345678|0)/",
27010 + "calling XSLoader::load() with a XS module and an incorrect version" );
27011 +- like( $warnings, "/^\$|^Version string 'qunckkk' contains invalid data; ignoring: 'qunckkk'/",
27012 +- "in Perl 5.10, DynaLoader warns about the incorrect version string" );
27013 +
27014 + eval qq{ package $module; XSLoader::load('$module'); };
27015 + is( $@, '', "XSLoader::load($module)");
27016
27017 diff --git a/perl-core/bignum/bignum-0.23.ebuild b/perl-core/bignum/bignum-0.23.ebuild
27018 new file mode 100644
27019 index 0000000..919d14e
27020 --- /dev/null
27021 +++ b/perl-core/bignum/bignum-0.23.ebuild
27022 @@ -0,0 +1,23 @@
27023 +# Copyright 1999-2010 Gentoo Foundation
27024 +# Distributed under the terms of the GNU General Public License v2
27025 +# $Header: /var/cvsroot/gentoo-x86/perl-core/bignum/bignum-0.23.ebuild,v 1.7 2010/01/05 19:03:03 nixnut Exp $
27026 +
27027 +MODULE_AUTHOR=TELS
27028 +MODULE_SECTION=math
27029 +inherit perl-module
27030 +
27031 +DESCRIPTION="Transparent BigNumber/BigRational support for Perl"
27032 +
27033 +LICENSE="|| ( Artistic GPL-2 )"
27034 +SLOT="0"
27035 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc s390 sh sparc x86"
27036 +IUSE="test"
27037 +
27038 +SRC_TEST="do"
27039 +PREFER_BUILDPL="no"
27040 +
27041 +RDEPEND=">=perl-core/Math-BigInt-1.88
27042 + >=perl-core/Math-BigRat-0.21
27043 + dev-lang/perl"
27044 +DEPEND="${RDEPEND}
27045 + test? ( >=dev-perl/Test-Pod-Coverage-1.08 )"
27046
27047 diff --git a/perl-core/bignum/bignum-0.24.ebuild b/perl-core/bignum/bignum-0.24.ebuild
27048 new file mode 100644
27049 index 0000000..d19ca5c
27050 --- /dev/null
27051 +++ b/perl-core/bignum/bignum-0.24.ebuild
27052 @@ -0,0 +1,22 @@
27053 +# Copyright 1999-2010 Gentoo Foundation
27054 +# Distributed under the terms of the GNU General Public License v2
27055 +# $Header: /var/cvsroot/gentoo-x86/perl-core/bignum/bignum-0.24.ebuild,v 1.1 2010/09/05 08:34:11 tove Exp $
27056 +
27057 +EAPI=3
27058 +
27059 +MODULE_AUTHOR=FLORA
27060 +inherit perl-module
27061 +
27062 +DESCRIPTION="Transparent BigNumber/BigRational support for Perl"
27063 +
27064 +SLOT="0"
27065 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86"
27066 +IUSE="test"
27067 +
27068 +RDEPEND=">=perl-core/Math-BigInt-1.88
27069 + >=perl-core/Math-BigRat-0.21"
27070 +DEPEND="${RDEPEND}
27071 + test? ( dev-perl/Test-Pod
27072 + >=dev-perl/Test-Pod-Coverage-1.08 )"
27073 +
27074 +SRC_TEST="do"
27075
27076 diff --git a/perl-core/bignum/bignum-0.25.ebuild b/perl-core/bignum/bignum-0.25.ebuild
27077 new file mode 100644
27078 index 0000000..40e42b4
27079 --- /dev/null
27080 +++ b/perl-core/bignum/bignum-0.25.ebuild
27081 @@ -0,0 +1,22 @@
27082 +# Copyright 1999-2011 Gentoo Foundation
27083 +# Distributed under the terms of the GNU General Public License v2
27084 +# $Header: /var/cvsroot/gentoo-x86/perl-core/bignum/bignum-0.25.ebuild,v 1.3 2011/06/24 14:37:57 grobian Exp $
27085 +
27086 +EAPI=3
27087 +
27088 +MODULE_AUTHOR=FLORA
27089 +inherit perl-module
27090 +
27091 +DESCRIPTION="Transparent BigNumber/BigRational support for Perl"
27092 +
27093 +SLOT="0"
27094 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~ppc-macos ~x86-solaris"
27095 +IUSE="test"
27096 +
27097 +RDEPEND=">=perl-core/Math-BigInt-1.88
27098 + >=perl-core/Math-BigRat-0.21"
27099 +DEPEND="${RDEPEND}
27100 + test? ( dev-perl/Test-Pod
27101 + >=dev-perl/Test-Pod-Coverage-1.08 )"
27102 +
27103 +SRC_TEST="do"
27104
27105 diff --git a/perl-core/digest-base/digest-base-1.160.0.ebuild b/perl-core/digest-base/digest-base-1.160.0.ebuild
27106 new file mode 100644
27107 index 0000000..cbfca15
27108 --- /dev/null
27109 +++ b/perl-core/digest-base/digest-base-1.160.0.ebuild
27110 @@ -0,0 +1,22 @@
27111 +# Copyright 1999-2011 Gentoo Foundation
27112 +# Distributed under the terms of the GNU General Public License v2
27113 +# $Header: /var/cvsroot/gentoo-x86/perl-core/digest-base/digest-base-1.160.0.ebuild,v 1.2 2011/07/30 12:28:27 tove Exp $
27114 +
27115 +EAPI=2
27116 +
27117 +MY_PN=Digest
27118 +MODULE_AUTHOR=GAAS
27119 +MODULE_VERSION=1.16
27120 +inherit perl-module
27121 +
27122 +DESCRIPTION="Modules that calculate message digests"
27123 +
27124 +SLOT="0"
27125 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
27126 +IUSE=""
27127 +
27128 +RDEPEND="virtual/perl-MIME-Base64"
27129 +DEPEND="${RDEPEND}"
27130 +
27131 +SRC_TEST="do"
27132 +mydoc="rfc*.txt"
27133
27134 diff --git a/perl-core/locale-maketext/files/1.13-defined.patch b/perl-core/locale-maketext/files/1.13-defined.patch
27135 new file mode 100644
27136 index 0000000..6fd3d6f
27137 --- /dev/null
27138 +++ b/perl-core/locale-maketext/files/1.13-defined.patch
27139 @@ -0,0 +1,11 @@
27140 +--- Locale-Maketext-1.13/lib/Locale/Maketext.pm
27141 ++++ Locale-Maketext-1.13/lib/Locale/Maketext.pm
27142 +@@ -401,7 +401,7 @@
27143 + my $module = $_[0]; # ASSUME sane module name!
27144 + { no strict 'refs';
27145 + return($tried{$module} = 1)
27146 +- if defined(%{$module . '::Lexicon'}) or defined(@{$module . '::ISA'});
27147 ++ if %{$module . '::Lexicon'} or @{$module . '::ISA'};
27148 + # weird case: we never use'd it, but there it is!
27149 + }
27150 +
27151
27152 diff --git a/perl-core/locale-maketext/locale-maketext-1.13-r1.ebuild b/perl-core/locale-maketext/locale-maketext-1.13-r1.ebuild
27153 new file mode 100644
27154 index 0000000..f5d138a
27155 --- /dev/null
27156 +++ b/perl-core/locale-maketext/locale-maketext-1.13-r1.ebuild
27157 @@ -0,0 +1,23 @@
27158 +# Copyright 1999-2010 Gentoo Foundation
27159 +# Distributed under the terms of the GNU General Public License v2
27160 +# $Header: /var/cvsroot/gentoo-x86/perl-core/locale-maketext/locale-maketext-1.13-r1.ebuild,v 1.7 2010/11/13 14:34:34 armin76 Exp $
27161 +
27162 +EAPI=3
27163 +
27164 +MY_PN=Locale-Maketext
27165 +MY_P=${MY_PN}-${PV}
27166 +S=${WORKDIR}/${MY_P}
27167 +MODULE_AUTHOR=FERREIRA
27168 +
27169 +inherit perl-module
27170 +
27171 +DESCRIPTION="Localization framework for Perl programs"
27172 +
27173 +SLOT="0"
27174 +KEYWORDS="alpha amd64 arm hppa ia64 ppc s390 sh sparc x86"
27175 +IUSE=""
27176 +
27177 +DEPEND=">=virtual/perl-i18n-langtags-0.30"
27178 +
27179 +SRC_TEST="do"
27180 +PATCHES=( "${FILESDIR}"/1.13-defined.patch )
27181
27182 diff --git a/perl-core/locale-maketext/locale-maketext-1.17.ebuild b/perl-core/locale-maketext/locale-maketext-1.17.ebuild
27183 new file mode 100644
27184 index 0000000..e5491df
27185 --- /dev/null
27186 +++ b/perl-core/locale-maketext/locale-maketext-1.17.ebuild
27187 @@ -0,0 +1,23 @@
27188 +# Copyright 1999-2010 Gentoo Foundation
27189 +# Distributed under the terms of the GNU General Public License v2
27190 +# $Header: /var/cvsroot/gentoo-x86/perl-core/locale-maketext/locale-maketext-1.17.ebuild,v 1.1 2010/10/21 08:39:14 tove Exp $
27191 +
27192 +EAPI=3
27193 +
27194 +MY_PN=Locale-Maketext
27195 +MY_P=${MY_PN}-${PV}
27196 +S=${WORKDIR}/${MY_P}
27197 +MODULE_AUTHOR=TODDR
27198 +
27199 +inherit perl-module
27200 +
27201 +DESCRIPTION="Localization framework for Perl programs"
27202 +
27203 +SLOT="0"
27204 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
27205 +IUSE=""
27206 +
27207 +RDEPEND=">=virtual/perl-i18n-langtags-0.31"
27208 +DEPEND="${RDEPEND}"
27209 +
27210 +SRC_TEST="do"
27211
27212 diff --git a/perl-core/podlators/podlators-2.2.2.ebuild b/perl-core/podlators/podlators-2.2.2.ebuild
27213 new file mode 100644
27214 index 0000000..552cf6c
27215 --- /dev/null
27216 +++ b/perl-core/podlators/podlators-2.2.2.ebuild
27217 @@ -0,0 +1,20 @@
27218 +# Copyright 1999-2009 Gentoo Foundation
27219 +# Distributed under the terms of the GNU General Public License v2
27220 +# $Header: /var/cvsroot/gentoo-x86/perl-core/podlators/podlators-2.2.2.ebuild,v 1.2 2009/11/16 13:16:33 tove Exp $
27221 +
27222 +EAPI=2
27223 +
27224 +MODULE_AUTHOR=RRA
27225 +inherit perl-module
27226 +
27227 +DESCRIPTION="Format POD source into various output formats"
27228 +
27229 +SLOT="0"
27230 +KEYWORDS="~amd64 ~x86"
27231 +IUSE=""
27232 +
27233 +RDEPEND=">=dev-lang/perl-5.8.8-r8
27234 + virtual/perl-Pod-Simple"
27235 +DEPEND="${RDEPEND}"
27236 +
27237 +SRC_TEST=do
27238
27239 diff --git a/perl-core/podlators/podlators-2.3.0.ebuild b/perl-core/podlators/podlators-2.3.0.ebuild
27240 new file mode 100644
27241 index 0000000..e01f894
27242 --- /dev/null
27243 +++ b/perl-core/podlators/podlators-2.3.0.ebuild
27244 @@ -0,0 +1,20 @@
27245 +# Copyright 1999-2010 Gentoo Foundation
27246 +# Distributed under the terms of the GNU General Public License v2
27247 +# $Header: /var/cvsroot/gentoo-x86/perl-core/podlators/podlators-2.3.0.ebuild,v 1.1 2010/01/07 20:46:51 tove Exp $
27248 +
27249 +EAPI=2
27250 +
27251 +MODULE_AUTHOR=RRA
27252 +inherit perl-module
27253 +
27254 +DESCRIPTION="Format POD source into various output formats"
27255 +
27256 +SLOT="0"
27257 +KEYWORDS="~amd64 ~x86"
27258 +IUSE=""
27259 +
27260 +RDEPEND=">=dev-lang/perl-5.8.8-r8
27261 + >=virtual/perl-Pod-Simple-3.06"
27262 +DEPEND="${RDEPEND}"
27263 +
27264 +SRC_TEST=do
27265
27266 diff --git a/perl-core/podlators/podlators-2.3.1.ebuild b/perl-core/podlators/podlators-2.3.1.ebuild
27267 new file mode 100644
27268 index 0000000..c704edc
27269 --- /dev/null
27270 +++ b/perl-core/podlators/podlators-2.3.1.ebuild
27271 @@ -0,0 +1,20 @@
27272 +# Copyright 1999-2010 Gentoo Foundation
27273 +# Distributed under the terms of the GNU General Public License v2
27274 +# $Header: /var/cvsroot/gentoo-x86/perl-core/podlators/podlators-2.3.1.ebuild,v 1.1 2010/02/19 13:30:28 tove Exp $
27275 +
27276 +EAPI=2
27277 +
27278 +MODULE_AUTHOR=RRA
27279 +inherit perl-module
27280 +
27281 +DESCRIPTION="Format POD source into various output formats"
27282 +
27283 +SLOT="0"
27284 +KEYWORDS="~amd64 ~x86"
27285 +IUSE=""
27286 +
27287 +RDEPEND=">=dev-lang/perl-5.8.8-r8
27288 + >=virtual/perl-Pod-Simple-3.06"
27289 +DEPEND="${RDEPEND}"
27290 +
27291 +SRC_TEST=do
27292
27293 diff --git a/perl-core/podlators/podlators-2.4.0.ebuild b/perl-core/podlators/podlators-2.4.0.ebuild
27294 new file mode 100644
27295 index 0000000..a8aaaf3
27296 --- /dev/null
27297 +++ b/perl-core/podlators/podlators-2.4.0.ebuild
27298 @@ -0,0 +1,20 @@
27299 +# Copyright 1999-2011 Gentoo Foundation
27300 +# Distributed under the terms of the GNU General Public License v2
27301 +# $Header: /var/cvsroot/gentoo-x86/perl-core/podlators/podlators-2.4.0.ebuild,v 1.1 2011/01/27 02:49:00 robbat2 Exp $
27302 +
27303 +EAPI=2
27304 +
27305 +MODULE_AUTHOR=RRA
27306 +inherit perl-module
27307 +
27308 +DESCRIPTION="Format POD source into various output formats"
27309 +
27310 +SLOT="0"
27311 +KEYWORDS="~amd64 ~x86"
27312 +IUSE=""
27313 +
27314 +RDEPEND=">=dev-lang/perl-5.8.8-r8
27315 + >=virtual/perl-Pod-Simple-3.06"
27316 +DEPEND="${RDEPEND}"
27317 +
27318 +SRC_TEST=do
27319
27320 diff --git a/perl-core/threads-shared/threads-shared-1.32.ebuild b/perl-core/threads-shared/threads-shared-1.32.ebuild
27321 new file mode 100644
27322 index 0000000..3128fc6
27323 --- /dev/null
27324 +++ b/perl-core/threads-shared/threads-shared-1.32.ebuild
27325 @@ -0,0 +1,20 @@
27326 +# Copyright 1999-2010 Gentoo Foundation
27327 +# Distributed under the terms of the GNU General Public License v2
27328 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads-shared/threads-shared-1.32.ebuild,v 1.1 2010/02/15 19:41:27 tove Exp $
27329 +
27330 +EAPI=2
27331 +
27332 +MODULE_AUTHOR=JDHEDDEN
27333 +inherit perl-module
27334 +
27335 +DESCRIPTION="Extension for sharing data structures between threads"
27336 +
27337 +SLOT="0"
27338 +KEYWORDS="~amd64 ~x86"
27339 +IUSE=""
27340 +
27341 +RDEPEND="dev-lang/perl[ithreads]
27342 + >=virtual/perl-threads-1.71"
27343 +DEPEND="${RDEPEND}"
27344 +
27345 +SRC_TEST=do
27346
27347 diff --git a/perl-core/threads-shared/threads-shared-1.33.ebuild b/perl-core/threads-shared/threads-shared-1.33.ebuild
27348 new file mode 100644
27349 index 0000000..271c56d
27350 --- /dev/null
27351 +++ b/perl-core/threads-shared/threads-shared-1.33.ebuild
27352 @@ -0,0 +1,20 @@
27353 +# Copyright 1999-2010 Gentoo Foundation
27354 +# Distributed under the terms of the GNU General Public License v2
27355 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads-shared/threads-shared-1.33.ebuild,v 1.1 2010/03/14 09:58:00 tove Exp $
27356 +
27357 +EAPI=2
27358 +
27359 +MODULE_AUTHOR=JDHEDDEN
27360 +inherit perl-module
27361 +
27362 +DESCRIPTION="Extension for sharing data structures between threads"
27363 +
27364 +SLOT="0"
27365 +KEYWORDS="~amd64 ~x86"
27366 +IUSE=""
27367 +
27368 +RDEPEND="dev-lang/perl[ithreads]
27369 + >=virtual/perl-threads-1.71"
27370 +DEPEND="${RDEPEND}"
27371 +
27372 +SRC_TEST=do
27373
27374 diff --git a/perl-core/threads-shared/threads-shared-1.34.ebuild b/perl-core/threads-shared/threads-shared-1.34.ebuild
27375 new file mode 100644
27376 index 0000000..40988c2
27377 --- /dev/null
27378 +++ b/perl-core/threads-shared/threads-shared-1.34.ebuild
27379 @@ -0,0 +1,20 @@
27380 +# Copyright 1999-2010 Gentoo Foundation
27381 +# Distributed under the terms of the GNU General Public License v2
27382 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads-shared/threads-shared-1.34.ebuild,v 1.1 2010/10/11 07:20:16 tove Exp $
27383 +
27384 +EAPI=3
27385 +
27386 +MODULE_AUTHOR=JDHEDDEN
27387 +inherit perl-module
27388 +
27389 +DESCRIPTION="Extension for sharing data structures between threads"
27390 +
27391 +SLOT="0"
27392 +KEYWORDS="~amd64 ~x86"
27393 +IUSE=""
27394 +
27395 +RDEPEND="dev-lang/perl[ithreads]
27396 + >=virtual/perl-threads-1.71"
27397 +DEPEND="${RDEPEND}"
27398 +
27399 +SRC_TEST=do
27400
27401 diff --git a/perl-core/threads-shared/threads-shared-1.360.ebuild b/perl-core/threads-shared/threads-shared-1.360.ebuild
27402 new file mode 100644
27403 index 0000000..314a47b
27404 --- /dev/null
27405 +++ b/perl-core/threads-shared/threads-shared-1.360.ebuild
27406 @@ -0,0 +1,21 @@
27407 +# Copyright 1999-2011 Gentoo Foundation
27408 +# Distributed under the terms of the GNU General Public License v2
27409 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads-shared/threads-shared-1.360.ebuild,v 1.1 2011/01/13 08:11:41 tove Exp $
27410 +
27411 +EAPI=3
27412 +
27413 +MODULE_AUTHOR=JDHEDDEN
27414 +MODULE_VERSION=1.36
27415 +inherit perl-module
27416 +
27417 +DESCRIPTION="Extension for sharing data structures between threads"
27418 +
27419 +SLOT="0"
27420 +KEYWORDS="~amd64 ~x86"
27421 +IUSE=""
27422 +
27423 +RDEPEND="dev-lang/perl[ithreads]
27424 + >=virtual/perl-threads-1.71"
27425 +DEPEND="${RDEPEND}"
27426 +
27427 +SRC_TEST=do
27428
27429 diff --git a/perl-core/threads/threads-1.75.ebuild b/perl-core/threads/threads-1.75.ebuild
27430 new file mode 100644
27431 index 0000000..9df0983
27432 --- /dev/null
27433 +++ b/perl-core/threads/threads-1.75.ebuild
27434 @@ -0,0 +1,19 @@
27435 +# Copyright 1999-2010 Gentoo Foundation
27436 +# Distributed under the terms of the GNU General Public License v2
27437 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.75.ebuild,v 1.1 2010/02/15 19:33:56 tove Exp $
27438 +
27439 +EAPI=2
27440 +
27441 +MODULE_AUTHOR=JDHEDDEN
27442 +inherit perl-module
27443 +
27444 +DESCRIPTION="Perl interpreter-based threads"
27445 +
27446 +SLOT="0"
27447 +KEYWORDS="~amd64 ~x86"
27448 +IUSE=""
27449 +
27450 +RDEPEND="dev-lang/perl[ithreads]"
27451 +DEPEND="${RDEPEND}"
27452 +
27453 +SRC_TEST=do
27454
27455 diff --git a/perl-core/threads/threads-1.76.ebuild b/perl-core/threads/threads-1.76.ebuild
27456 new file mode 100644
27457 index 0000000..41d9a97
27458 --- /dev/null
27459 +++ b/perl-core/threads/threads-1.76.ebuild
27460 @@ -0,0 +1,19 @@
27461 +# Copyright 1999-2010 Gentoo Foundation
27462 +# Distributed under the terms of the GNU General Public License v2
27463 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.76.ebuild,v 1.1 2010/03/14 09:55:10 tove Exp $
27464 +
27465 +EAPI=2
27466 +
27467 +MODULE_AUTHOR=JDHEDDEN
27468 +inherit perl-module
27469 +
27470 +DESCRIPTION="Perl interpreter-based threads"
27471 +
27472 +SLOT="0"
27473 +KEYWORDS="~amd64 ~x86"
27474 +IUSE=""
27475 +
27476 +RDEPEND="dev-lang/perl[ithreads]"
27477 +DEPEND="${RDEPEND}"
27478 +
27479 +SRC_TEST=do
27480
27481 diff --git a/perl-core/threads/threads-1.77.ebuild b/perl-core/threads/threads-1.77.ebuild
27482 new file mode 100644
27483 index 0000000..9d81af7
27484 --- /dev/null
27485 +++ b/perl-core/threads/threads-1.77.ebuild
27486 @@ -0,0 +1,19 @@
27487 +# Copyright 1999-2010 Gentoo Foundation
27488 +# Distributed under the terms of the GNU General Public License v2
27489 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.77.ebuild,v 1.1 2010/03/27 08:51:52 tove Exp $
27490 +
27491 +EAPI=2
27492 +
27493 +MODULE_AUTHOR=JDHEDDEN
27494 +inherit perl-module
27495 +
27496 +DESCRIPTION="Perl interpreter-based threads"
27497 +
27498 +SLOT="0"
27499 +KEYWORDS="~amd64 ~x86"
27500 +IUSE=""
27501 +
27502 +RDEPEND="dev-lang/perl[ithreads]"
27503 +DEPEND="${RDEPEND}"
27504 +
27505 +SRC_TEST=do
27506
27507 diff --git a/perl-core/threads/threads-1.79.ebuild b/perl-core/threads/threads-1.79.ebuild
27508 new file mode 100644
27509 index 0000000..e6c1219
27510 --- /dev/null
27511 +++ b/perl-core/threads/threads-1.79.ebuild
27512 @@ -0,0 +1,19 @@
27513 +# Copyright 1999-2010 Gentoo Foundation
27514 +# Distributed under the terms of the GNU General Public License v2
27515 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.79.ebuild,v 1.1 2010/09/26 07:29:21 tove Exp $
27516 +
27517 +EAPI=3
27518 +
27519 +MODULE_AUTHOR=JDHEDDEN
27520 +inherit perl-module
27521 +
27522 +DESCRIPTION="Perl interpreter-based threads"
27523 +
27524 +SLOT="0"
27525 +KEYWORDS="~amd64 ~x86"
27526 +IUSE=""
27527 +
27528 +RDEPEND="dev-lang/perl[ithreads]"
27529 +DEPEND="${RDEPEND}"
27530 +
27531 +SRC_TEST=do
27532
27533 diff --git a/perl-core/threads/threads-1.81.ebuild b/perl-core/threads/threads-1.81.ebuild
27534 new file mode 100644
27535 index 0000000..e03c264
27536 --- /dev/null
27537 +++ b/perl-core/threads/threads-1.81.ebuild
27538 @@ -0,0 +1,19 @@
27539 +# Copyright 1999-2010 Gentoo Foundation
27540 +# Distributed under the terms of the GNU General Public License v2
27541 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.81.ebuild,v 1.1 2010/09/28 12:48:50 tove Exp $
27542 +
27543 +EAPI=3
27544 +
27545 +MODULE_AUTHOR=JDHEDDEN
27546 +inherit perl-module
27547 +
27548 +DESCRIPTION="Perl interpreter-based threads"
27549 +
27550 +SLOT="0"
27551 +KEYWORDS="~amd64 ~x86"
27552 +IUSE=""
27553 +
27554 +RDEPEND="dev-lang/perl[ithreads]"
27555 +DEPEND="${RDEPEND}"
27556 +
27557 +SRC_TEST=do
27558
27559 diff --git a/perl-core/threads/threads-1.820.ebuild b/perl-core/threads/threads-1.820.ebuild
27560 new file mode 100644
27561 index 0000000..4cf601a
27562 --- /dev/null
27563 +++ b/perl-core/threads/threads-1.820.ebuild
27564 @@ -0,0 +1,20 @@
27565 +# Copyright 1999-2011 Gentoo Foundation
27566 +# Distributed under the terms of the GNU General Public License v2
27567 +# $Header: /var/cvsroot/gentoo-x86/perl-core/threads/threads-1.820.ebuild,v 1.1 2011/01/13 08:14:37 tove Exp $
27568 +
27569 +EAPI=3
27570 +
27571 +MODULE_AUTHOR=JDHEDDEN
27572 +MODULE_VERSION=1.82
27573 +inherit perl-module
27574 +
27575 +DESCRIPTION="Perl interpreter-based threads"
27576 +
27577 +SLOT="0"
27578 +KEYWORDS="~amd64 ~x86"
27579 +IUSE=""
27580 +
27581 +RDEPEND="dev-lang/perl[ithreads]"
27582 +DEPEND="${RDEPEND}"
27583 +
27584 +SRC_TEST=do
27585
27586 diff --git a/perl-core/version/version-0.82.ebuild b/perl-core/version/version-0.82.ebuild
27587 new file mode 100644
27588 index 0000000..f10d41b
27589 --- /dev/null
27590 +++ b/perl-core/version/version-0.82.ebuild
27591 @@ -0,0 +1,23 @@
27592 +# Copyright 1999-2011 Gentoo Foundation
27593 +# Distributed under the terms of the GNU General Public License v2
27594 +# $Header: /var/cvsroot/gentoo-x86/perl-core/version/version-0.82.ebuild,v 1.9 2011/07/30 12:30:03 tove Exp $
27595 +
27596 +EAPI=2
27597 +
27598 +#inherit versionator
27599 +#MY_P=${PN}-$(delete_version_separator 2 )
27600 +#S=${WORKDIR}/${MY_P}
27601 +MODULE_AUTHOR=JPEACOCK
27602 +inherit perl-module
27603 +
27604 +DESCRIPTION="Perl extension for Version Objects"
27605 +
27606 +SLOT="0"
27607 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
27608 +IUSE=""
27609 +
27610 +RDEPEND=""
27611 +DEPEND="${RDEPEND}
27612 + >=virtual/perl-Module-Build-0.33.05"
27613 +
27614 +SRC_TEST="do"
27615
27616 diff --git a/perl-core/version/version-0.880.0.ebuild b/perl-core/version/version-0.880.0.ebuild
27617 new file mode 100644
27618 index 0000000..6dcde35
27619 --- /dev/null
27620 +++ b/perl-core/version/version-0.880.0.ebuild
27621 @@ -0,0 +1,17 @@
27622 +# Copyright 1999-2011 Gentoo Foundation
27623 +# Distributed under the terms of the GNU General Public License v2
27624 +# $Header: /var/cvsroot/gentoo-x86/perl-core/version/version-0.880.0.ebuild,v 1.2 2011/07/30 12:30:03 tove Exp $
27625 +
27626 +EAPI=3
27627 +
27628 +MODULE_AUTHOR=JPEACOCK
27629 +MODULE_VERSION=0.88
27630 +inherit perl-module
27631 +
27632 +DESCRIPTION="Perl extension for Version Objects"
27633 +
27634 +SLOT="0"
27635 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
27636 +IUSE=""
27637 +
27638 +SRC_TEST="do"
27639
27640 diff --git a/profiles/base/package.keywords b/profiles/base/package.keywords
27641 new file mode 100644
27642 index 0000000..70e1b67
27643 --- /dev/null
27644 +++ b/profiles/base/package.keywords
27645 @@ -0,0 +1 @@
27646 +=sys-apps/portage-9999 amd64 x86
27647
27648 diff --git a/sys-auth/polkit/.#Manifest.1.91 b/sys-auth/polkit/.#Manifest.1.91
27649 new file mode 100644
27650 index 0000000..e2eec33
27651 --- /dev/null
27652 +++ b/sys-auth/polkit/.#Manifest.1.91
27653 @@ -0,0 +1,8 @@
27654 +DIST polkit-0.104.tar.gz 1416583 RMD160 244e825347a463ff4b9eb0a2318ab04c821bded9 SHA1 599208cf584b9e13f8c9d863238a8271af4aba62 SHA256 6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9
27655 +DIST polkit-0.105.tar.gz 1431080 RMD160 cd1100ee69a308d620e437d34e471580bb6dcf5a SHA1 53d56484a5bffb0aaf645c8d813b3063e01e8423 SHA256 8fdc7cc8ba4750fcce1a4db9daa759c12afebc7901237e1c993c38f08985e1df
27656 +DIST polkit-0.106.tar.gz 1381428 RMD160 6fa79aaa4e67e072d16860f1a242b053cc311bc3 SHA1 665624f5d69876ec5833f7952290188ca594aac0 SHA256 4005076a67aaa182872c1e316939fcb0ba74a89298e6330d72cfdac6624c984e
27657 +EBUILD polkit-0.104-r1.ebuild 3548 RMD160 e056d1186192d865a610ebe1250e8adf9250eed7 SHA1 1a7cec206005fdb8985fc308f16bbe6f76b45c34 SHA256 a038cdfd2381bd5ddbd6cf4feef8a3aaa126b4e80a6205979538c9ebcbf0b9a0
27658 +EBUILD polkit-0.105.ebuild 2194 RMD160 7f46dccee0326480a5c1c2fd276df48553abd630 SHA1 f41f0393be142066d39d52994f7f29f52c336f2c SHA256 15339d2d61f350eec88ad0fd90cec401df45106fc2ee52ee7b8b051103a5279e
27659 +EBUILD polkit-0.106-r2.ebuild 3053 RMD160 c72671afc8f157b80374a0c34a5587b157f002e9 SHA1 0b8c5a8bd8d9a6b32d3c300be045eca08804e4eb SHA256 9c7be04b6b0528204f857219983322f3aa38e400dae46574fa512badd9589eed
27660 +MISC ChangeLog 11429 RMD160 76e2a57cbab4a45cd81755793401fee45aa80fcc SHA1 7349a702b23cee2eea9677a9decf8cd2a8d660d8 SHA256 5526adf7f5b12cd0ab4aa6586c992e026f4603dc61dd597faefad35c37dab259
27661 +MISC metadata.xml 516 RMD160 0c65650680494cadd548ec430b11facf2cc28912 SHA1 092816617aa2ab7a9047298b6752b82bbab33520 SHA256 be8c8239fecd14fd1a9c1dee11ccb98b1188aceacf6ea58233a0f958ab648aba
27662
27663 diff --git a/sys-auth/polkit/.#Manifest.1.93 b/sys-auth/polkit/.#Manifest.1.93
27664 new file mode 100644
27665 index 0000000..40a638a
27666 --- /dev/null
27667 +++ b/sys-auth/polkit/.#Manifest.1.93
27668 @@ -0,0 +1,9 @@
27669 +DIST polkit-0.104.tar.gz 1416583 RMD160 244e825347a463ff4b9eb0a2318ab04c821bded9 SHA1 599208cf584b9e13f8c9d863238a8271af4aba62 SHA256 6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9
27670 +DIST polkit-0.105.tar.gz 1431080 RMD160 cd1100ee69a308d620e437d34e471580bb6dcf5a SHA1 53d56484a5bffb0aaf645c8d813b3063e01e8423 SHA256 8fdc7cc8ba4750fcce1a4db9daa759c12afebc7901237e1c993c38f08985e1df
27671 +DIST polkit-0.106.tar.gz 1381428 RMD160 6fa79aaa4e67e072d16860f1a242b053cc311bc3 SHA1 665624f5d69876ec5833f7952290188ca594aac0 SHA256 4005076a67aaa182872c1e316939fcb0ba74a89298e6330d72cfdac6624c984e
27672 +EBUILD polkit-0.104-r1.ebuild 3548 RMD160 e056d1186192d865a610ebe1250e8adf9250eed7 SHA1 1a7cec206005fdb8985fc308f16bbe6f76b45c34 SHA256 a038cdfd2381bd5ddbd6cf4feef8a3aaa126b4e80a6205979538c9ebcbf0b9a0
27673 +EBUILD polkit-0.105.ebuild 2194 RMD160 7f46dccee0326480a5c1c2fd276df48553abd630 SHA1 f41f0393be142066d39d52994f7f29f52c336f2c SHA256 15339d2d61f350eec88ad0fd90cec401df45106fc2ee52ee7b8b051103a5279e
27674 +EBUILD polkit-0.106-r2.ebuild 2944 RMD160 692481f847aff6601a3468e938bff3334698ef8c SHA1 4fe3ae9cea9a1494d9575ede92197ee1b4301682 SHA256 f17b750e069cff665a55072c6a3ef964ddb7a37864f1d9f49e1bfc3b67aae0bb
27675 +EBUILD polkit-0.106-r3.ebuild 3066 RMD160 18ef1dfed87b146c977ac3e8d40545ed83e9a2e3 SHA1 4641692d6a936966ba2beead438f2371f2e1b2be SHA256 97887b7820e97d15827df50b47348aa1d12aeeae8b0f7f0c74561a0f02973f9c
27676 +MISC ChangeLog 11790 RMD160 aba3b3f69b9238d3038b05ad8bcc9bc4d9a62b23 SHA1 811278ba40af831262c80864f2b4b23f22d3876f SHA256 7e4a016b9aacc2cf594287b4cdf0dee073490e0cf2ee656de63097540d5fb3ce
27677 +MISC metadata.xml 516 RMD160 0c65650680494cadd548ec430b11facf2cc28912 SHA1 092816617aa2ab7a9047298b6752b82bbab33520 SHA256 be8c8239fecd14fd1a9c1dee11ccb98b1188aceacf6ea58233a0f958ab648aba
27678
27679 diff --git a/sys-auth/polkit/.#polkit-0.106-r2.ebuild.1.3 b/sys-auth/polkit/.#polkit-0.106-r2.ebuild.1.3
27680 new file mode 100644
27681 index 0000000..3bac9f4
27682 --- /dev/null
27683 +++ b/sys-auth/polkit/.#polkit-0.106-r2.ebuild.1.3
27684 @@ -0,0 +1,108 @@
27685 +# Copyright 1999-2012 Gentoo Foundation
27686 +# Distributed under the terms of the GNU General Public License v2
27687 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.106-r2.ebuild,v 1.3 2012/06/19 12:04:07 ssuominen Exp $
27688 +
27689 +EAPI=4
27690 +inherit eutils pam systemd user
27691 +
27692 +DESCRIPTION="Policy framework for controlling privileges for system-wide services"
27693 +HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit"
27694 +SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
27695 +
27696 +LICENSE="LGPL-2"
27697 +SLOT="0"
27698 +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
27699 +IUSE="debug examples gtk +introspection kde nls pam systemd"
27700 +
27701 +RDEPEND=">=dev-lang/spidermonkey-1.8.5
27702 + >=dev-libs/glib-2.32
27703 + >=dev-libs/expat-2
27704 + introspection? ( >=dev-libs/gobject-introspection-1 )
27705 + pam? (
27706 + sys-auth/pambase
27707 + virtual/pam
27708 + )
27709 + systemd? ( sys-apps/systemd )"
27710 +DEPEND="${RDEPEND}
27711 + app-text/docbook-xml-dtd:4.1.2
27712 + app-text/docbook-xsl-stylesheets
27713 + dev-libs/libxslt
27714 + dev-util/intltool
27715 + virtual/pkgconfig"
27716 +PDEPEND="
27717 + gtk? ( || (
27718 + >=gnome-extra/polkit-gnome-0.105
27719 + lxde-base/lxpolkit
27720 + ) )
27721 + kde? ( sys-auth/polkit-kde-agent )
27722 + pam? (
27723 + systemd? ( sys-auth/pambase[systemd] )
27724 + !systemd? ( sys-auth/pambase[consolekit] )
27725 + )
27726 + !systemd? ( >=sys-auth/consolekit-0.4.5_p2012[policykit] )"
27727 +
27728 +DOCS="docs/TODO HACKING NEWS README"
27729 +
27730 +pkg_setup() {
27731 + enewgroup polkitd
27732 + enewuser polkitd -1 -1 /var/lib/polkit-1 polkitd
27733 + esethome polkitd /var/lib/polkit-1
27734 +}
27735 +
27736 +src_prepare() {
27737 + sed -i -e '/unix-group/s:wheel:adm:' src/polkitbackend/*-default.rules || die #401513
27738 +
27739 + has_version ">=dev-lang/spidermonkey-1.8.7" && { sed -i -e '/mozjs/s:185:187:g' configure || die; }
27740 +}
27741 +
27742 +src_configure() {
27743 + local myconf="--with-authfw=shadow"
27744 + use pam && \
27745 + myconf="--with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir) --with-pam-include=system-local-login"
27746 +
27747 + econf \
27748 + --localstatedir="${EPREFIX}"/var \
27749 + --disable-static \
27750 + $(use_enable debug verbose-mode) \
27751 + --enable-man-pages \
27752 + --disable-gtk-doc \
27753 + $(use_enable systemd libsystemd-login) \
27754 + $(use_enable introspection) \
27755 + --disable-examples \
27756 + $(use_enable nls) \
27757 + --with-os-type=gentoo \
27758 + "$(systemd_with_unitdir)" \
27759 + ${myconf}
27760 +}
27761 +
27762 +src_install() {
27763 + default
27764 +
27765 + fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
27766 +
27767 + prune_libtool_files
27768 +
27769 + diropts -m0700 -o polkitd -g polkitd
27770 + keepdir /var/lib/polkit-1
27771 +
27772 + if use examples; then
27773 + insinto /usr/share/doc/${PF}/examples
27774 + doins src/examples/{*.c,*.policy*}
27775 + fi
27776 +}
27777 +
27778 +pkg_postinst() {
27779 + chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
27780 + chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
27781 +
27782 + echo
27783 + ewarn "If home directory of unix-user \"polkitd\" is set to /dev/null, run:"
27784 + ewarn "# usermod -d /var/lib/polkit-1 polkitd"
27785 +
27786 + echo
27787 + ewarn "The default administrator unix-group was changed from \"wheel\" to"
27788 + ewarn "\"adm\", see *-default.rules in /etc/polkit-1/rules.d"
27789 + ewarn "Users of unix-group \"adm\" can run, for example, \"pkexec /bin/sh\""
27790 + ewarn "to gain root shell without root password."
27791 + ewarn "For more information, see http://bugs.gentoo.org/401513"
27792 +}
27793
27794 diff --git a/sys-auth/polkit/Manifest b/sys-auth/polkit/Manifest
27795 new file mode 100644
27796 index 0000000..11cf7c8
27797 --- /dev/null
27798 +++ b/sys-auth/polkit/Manifest
27799 @@ -0,0 +1,8 @@
27800 +DIST polkit-0.104.tar.gz 1416583 RMD160 244e825347a463ff4b9eb0a2318ab04c821bded9 SHA1 599208cf584b9e13f8c9d863238a8271af4aba62 SHA256 6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9
27801 +DIST polkit-0.105.tar.gz 1431080 RMD160 cd1100ee69a308d620e437d34e471580bb6dcf5a SHA1 53d56484a5bffb0aaf645c8d813b3063e01e8423 SHA256 8fdc7cc8ba4750fcce1a4db9daa759c12afebc7901237e1c993c38f08985e1df
27802 +DIST polkit-0.106.tar.gz 1381428 RMD160 6fa79aaa4e67e072d16860f1a242b053cc311bc3 SHA1 665624f5d69876ec5833f7952290188ca594aac0 SHA256 4005076a67aaa182872c1e316939fcb0ba74a89298e6330d72cfdac6624c984e
27803 +EBUILD polkit-0.104-r1.ebuild 3548 RMD160 e056d1186192d865a610ebe1250e8adf9250eed7 SHA1 1a7cec206005fdb8985fc308f16bbe6f76b45c34 SHA256 a038cdfd2381bd5ddbd6cf4feef8a3aaa126b4e80a6205979538c9ebcbf0b9a0
27804 +EBUILD polkit-0.105.ebuild 2194 RMD160 7f46dccee0326480a5c1c2fd276df48553abd630 SHA1 f41f0393be142066d39d52994f7f29f52c336f2c SHA256 15339d2d61f350eec88ad0fd90cec401df45106fc2ee52ee7b8b051103a5279e
27805 +EBUILD polkit-0.106-r5.ebuild 3017 RMD160 aca1a2a7f62a8f2beb4a7d1edce686f5d90f4775 SHA1 63c1fe580c91ade8cff55fd704d33d82506e8df4 SHA256 b41c3e0ab952787e0a261984c75ac1f794e6280776d18ca7179f3b171c5558c2
27806 +MISC ChangeLog 12970 RMD160 14e39e225b9973a37c6bd58f3d9b4f64b6814628 SHA1 5995158febaff4b447bd798ce980596c3a5521fc SHA256 99cc239c819a8ef2cd7ebb37a84275bab14b50012cd19017f692e427b2386741
27807 +MISC metadata.xml 516 RMD160 0c65650680494cadd548ec430b11facf2cc28912 SHA1 092816617aa2ab7a9047298b6752b82bbab33520 SHA256 be8c8239fecd14fd1a9c1dee11ccb98b1188aceacf6ea58233a0f958ab648aba
27808
27809 diff --git a/sys-auth/polkit/polkit-0.104-r1.ebuild b/sys-auth/polkit/polkit-0.104-r1.ebuild
27810 new file mode 100644
27811 index 0000000..bdccc3d
27812 --- /dev/null
27813 +++ b/sys-auth/polkit/polkit-0.104-r1.ebuild
27814 @@ -0,0 +1,109 @@
27815 +# Copyright 1999-2012 Gentoo Foundation
27816 +# Distributed under the terms of the GNU General Public License v2
27817 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.104-r1.ebuild,v 1.9 2012/05/04 18:57:21 jdhore Exp $
27818 +
27819 +EAPI=4
27820 +inherit pam
27821 +
27822 +DESCRIPTION="Policy framework for controlling privileges for system-wide services"
27823 +HOMEPAGE="http://hal.freedesktop.org/docs/polkit/"
27824 +SRC_URI="http://hal.freedesktop.org/releases/${P}.tar.gz"
27825 +
27826 +LICENSE="GPL-2"
27827 +SLOT="0"
27828 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
27829 +IUSE="debug doc examples gtk +introspection kde nls pam systemd"
27830 +
27831 +RDEPEND=">=dev-libs/glib-2.30
27832 + dev-libs/expat
27833 + introspection? ( >=dev-libs/gobject-introspection-0.6.2 )
27834 + pam? ( virtual/pam )
27835 + systemd? ( sys-apps/systemd )"
27836 +DEPEND="${RDEPEND}
27837 + app-text/docbook-xml-dtd:4.1.2
27838 + app-text/docbook-xsl-stylesheets
27839 + dev-libs/libxslt
27840 + dev-util/intltool
27841 + virtual/pkgconfig
27842 + doc? ( >=dev-util/gtk-doc-1.13 )"
27843 +PDEPEND="!systemd? ( >=sys-auth/consolekit-0.4.5[policykit] )
27844 + pam? ( sys-auth/pambase[consolekit] )
27845 + gtk? ( || ( >=gnome-extra/polkit-gnome-${PV} lxde-base/lxpolkit ) )
27846 + kde? ( sys-auth/polkit-kde-agent )"
27847 +
27848 +DOCS=( docs/TODO HACKING NEWS README )
27849 +
27850 +src_prepare() {
27851 + cat <<-EOF > "${T}"/60-gentoo.conf
27852 + # This file will override 50-localauthority.conf, see:
27853 + # man 8 pklocalauthority
27854 + [Configuration]
27855 + AdminIdentities=unix-group:0
27856 + EOF
27857 +}
27858 +
27859 +src_configure() {
27860 + local myauth="--with-authfw=shadow"
27861 + use pam && myauth="--with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
27862 +
27863 + econf \
27864 + --localstatedir="${EPREFIX}"/var \
27865 + --disable-static \
27866 + $(use_enable debug verbose-mode) \
27867 + --enable-man-pages \
27868 + $(use_enable doc gtk-doc) \
27869 + $(use_enable systemd) \
27870 + $(use_enable introspection) \
27871 + --disable-examples \
27872 + $(use_enable nls) \
27873 + --with-os-type=gentoo \
27874 + ${myauth}
27875 +}
27876 +
27877 +src_install() {
27878 + default
27879 +
27880 + insinto /etc/polkit-1/localauthority.conf.d
27881 + doins "${T}"/60-gentoo.conf
27882 +
27883 + find "${ED}" -name '*.la' -exec rm -f {} +
27884 +
27885 + # We disable example compilation above, and handle it here
27886 + if use examples; then
27887 + insinto /usr/share/doc/${PF}/examples
27888 + doins src/examples/{*.c,*.policy*}
27889 + fi
27890 +
27891 + # Need to keep a few directories around...
27892 + diropts -m0700 -o root -g root
27893 + keepdir /var/lib/polkit-1
27894 + #keepdir /var/run/polkit-1 #387903
27895 +}
27896 +
27897 +pkg_postinst() {
27898 + # Make sure that the user has consolekit sessions working so that the
27899 + # 'allow_active' directive in polkit action policies works
27900 + if has_version 'gnome-base/gdm' && ! has_version 'gnome-base/gdm[consolekit]'; then
27901 + # If user has GDM installed, but USE=-consolekit, warn them
27902 + ewarn "You have GDM installed, but it does not have USE=consolekit"
27903 + ewarn "If you login using GDM, polkit authorizations will not work"
27904 + ewarn "unless you enable USE=consolekit"
27905 + einfo
27906 + fi
27907 + if has_version 'kde-base/kdm' && ! has_version 'kde-base/kdm[consolekit]'; then
27908 + # If user has KDM installed, but USE=-consolekit, warn them
27909 + ewarn "You have KDM installed, but it does not have USE=consolekit"
27910 + ewarn "If you login using KDM, polkit authorizations will not work"
27911 + ewarn "unless you enable USE=consolekit"
27912 + einfo
27913 + fi
27914 + if ! has_version 'gnome-base/gdm[consolekit]' && \
27915 + ! has_version 'kde-base/kdm[consolekit]'; then
27916 + # Inform user about the alternative method
27917 + ewarn "If you don't use GDM or KDM for logging in,"
27918 + ewarn "you must start your desktop environment (DE) as follows:"
27919 + ewarn " ck-launch-session \$STARTGUI"
27920 + ewarn "Where \$STARTGUI is a DE-starting command such as 'gnome-session'."
27921 + ewarn "You should add this to your ~/.xinitrc if you use startx."
27922 + fi
27923 +}
27924
27925 diff --git a/sys-auth/polkit/polkit-0.105.ebuild b/sys-auth/polkit/polkit-0.105.ebuild
27926 new file mode 100644
27927 index 0000000..63b4532
27928 --- /dev/null
27929 +++ b/sys-auth/polkit/polkit-0.105.ebuild
27930 @@ -0,0 +1,80 @@
27931 +# Copyright 1999-2012 Gentoo Foundation
27932 +# Distributed under the terms of the GNU General Public License v2
27933 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.105.ebuild,v 1.2 2012/05/20 13:15:43 ssuominen Exp $
27934 +
27935 +EAPI=4
27936 +inherit pam
27937 +
27938 +DESCRIPTION="Policy framework for controlling privileges for system-wide services"
27939 +HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit"
27940 +SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
27941 +
27942 +LICENSE="GPL-2"
27943 +SLOT="0"
27944 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
27945 +IUSE="debug doc examples gtk +introspection kde nls pam systemd"
27946 +
27947 +RDEPEND=">=dev-libs/glib-2.30
27948 + >=dev-libs/expat-2
27949 + introspection? ( >=dev-libs/gobject-introspection-0.6.2 )
27950 + pam? ( virtual/pam )
27951 + systemd? ( sys-apps/systemd )"
27952 +DEPEND="${RDEPEND}
27953 + app-text/docbook-xml-dtd:4.1.2
27954 + app-text/docbook-xsl-stylesheets
27955 + dev-libs/libxslt
27956 + >=dev-util/intltool-0.40
27957 + virtual/pkgconfig
27958 + doc? ( >=dev-util/gtk-doc-1.13 )"
27959 +PDEPEND="gtk? ( || ( >=gnome-extra/polkit-gnome-${PV} lxde-base/lxpolkit ) )
27960 + kde? ( sys-auth/polkit-kde-agent )
27961 + !systemd? (
27962 + >=sys-auth/consolekit-0.4.5_p20120320[policykit]
27963 + pam? ( >=sys-auth/pambase-20101024-r2[consolekit] )
27964 + )"
27965 +
27966 +DOCS=( docs/TODO HACKING NEWS README )
27967 +
27968 +src_prepare() {
27969 + cat <<-EOF > "${T}"/60-gentoo.conf
27970 + # This file will override 50-localauthority.conf, see:
27971 + # man 8 pklocalauthority
27972 + [Configuration]
27973 + AdminIdentities=unix-group:0
27974 + EOF
27975 +}
27976 +
27977 +src_configure() {
27978 + local myauth="--with-authfw=shadow"
27979 + use pam && myauth="--with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
27980 +
27981 + econf \
27982 + --localstatedir="${EPREFIX}"/var \
27983 + --disable-static \
27984 + $(use_enable debug verbose-mode) \
27985 + --enable-man-pages \
27986 + $(use_enable doc gtk-doc) \
27987 + $(use_enable systemd) \
27988 + $(use_enable introspection) \
27989 + --disable-examples \
27990 + $(use_enable nls) \
27991 + --with-os-type=gentoo \
27992 + ${myauth}
27993 +}
27994 +
27995 +src_install() {
27996 + default
27997 +
27998 + insinto /etc/polkit-1/localauthority.conf.d
27999 + doins "${T}"/60-gentoo.conf
28000 +
28001 + find "${ED}" -name '*.la' -exec rm -f {} +
28002 +
28003 + if use examples; then
28004 + insinto /usr/share/doc/${PF}/examples
28005 + doins src/examples/{*.c,*.policy*}
28006 + fi
28007 +
28008 + diropts -m0700 -o root -g root
28009 + keepdir /var/lib/polkit-1
28010 +}
28011
28012 diff --git a/sys-auth/polkit/polkit-0.106-r5.ebuild b/sys-auth/polkit/polkit-0.106-r5.ebuild
28013 new file mode 100644
28014 index 0000000..d61e480
28015 --- /dev/null
28016 +++ b/sys-auth/polkit/polkit-0.106-r5.ebuild
28017 @@ -0,0 +1,108 @@
28018 +# Copyright 1999-2012 Gentoo Foundation
28019 +# Distributed under the terms of the GNU General Public License v2
28020 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.106-r5.ebuild,v 1.3 2012/06/27 11:56:12 ssuominen Exp $
28021 +
28022 +EAPI="4-slot-abi"
28023 +inherit eutils multilib pam pax-utils systemd user
28024 +
28025 +DESCRIPTION="Policy framework for controlling privileges for system-wide services"
28026 +HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit"
28027 +SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
28028 +
28029 +LICENSE="LGPL-2"
28030 +SLOT="0"
28031 +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
28032 +IUSE="debug examples gtk +introspection kde nls pam systemd"
28033 +
28034 +RDEPEND=">=dev-lang/spidermonkey-1.8.5:=
28035 + >=dev-libs/glib-2.32
28036 + >=dev-libs/expat-2
28037 + introspection? ( >=dev-libs/gobject-introspection-1 )
28038 + pam? (
28039 + sys-auth/pambase
28040 + virtual/pam
28041 + )
28042 + systemd? ( sys-apps/systemd )"
28043 +DEPEND="${RDEPEND}
28044 + app-text/docbook-xml-dtd:4.1.2
28045 + app-text/docbook-xsl-stylesheets
28046 + dev-libs/libxslt
28047 + dev-util/intltool
28048 + virtual/pkgconfig"
28049 +PDEPEND="
28050 + gtk? ( || (
28051 + >=gnome-extra/polkit-gnome-0.105
28052 + lxde-base/lxpolkit
28053 + ) )
28054 + kde? ( sys-auth/polkit-kde-agent )
28055 + pam? (
28056 + systemd? ( sys-auth/pambase[systemd] )
28057 + !systemd? ( sys-auth/pambase[consolekit] )
28058 + )
28059 + !systemd? ( >=sys-auth/consolekit-0.4.5_p2012[policykit] )"
28060 +
28061 +pkg_setup() {
28062 + local u=polkitd
28063 + local g=polkitd
28064 + local h=/var/lib/polkit-1
28065 +
28066 + enewgroup ${g}
28067 + enewuser ${u} -1 -1 ${h} ${g}
28068 + esethome ${u} ${h}
28069 +}
28070 +
28071 +src_prepare() {
28072 + sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513
28073 + has_version "dev-lang/spidermonkey:0/187" && { sed -i -e '/mozjs/s:185:187:g' configure || die; }
28074 +}
28075 +
28076 +src_configure() {
28077 + econf \
28078 + --localstatedir="${EPREFIX}"/var \
28079 + --disable-static \
28080 + $(use_enable debug verbose-mode) \
28081 + --enable-man-pages \
28082 + --disable-gtk-doc \
28083 + $(use_enable systemd libsystemd-login) \
28084 + $(use_enable introspection) \
28085 + --disable-examples \
28086 + $(use_enable nls) \
28087 + "$(systemd_with_unitdir)" \
28088 + --with-authfw=$(usex pam pam shadow) \
28089 + $(use pam && echo --with-pam-module-dir="$(getpam_mod_dir)") \
28090 + --with-os-type=gentoo
28091 +}
28092 +
28093 +src_install() {
28094 + emake \
28095 + DESTDIR="${D}" \
28096 + libprivdir="${EPREFIX}"/usr/$(get_libdir)/polkit-1 \
28097 + install
28098 +
28099 + dodoc docs/TODO HACKING NEWS README
28100 +
28101 + fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
28102 +
28103 + diropts -m0700 -o polkitd -g polkitd
28104 + keepdir /var/lib/polkit-1
28105 +
28106 + if use examples; then
28107 + insinto /usr/share/doc/${PF}/examples
28108 + doins src/examples/{*.c,*.policy*}
28109 + fi
28110 +
28111 + prune_libtool_files
28112 + rm -f "${ED}"/usr/lib*/pkgconfig/polkit-backend-1.pc #423431
28113 +
28114 + # Required for polkitd on hardened/PaX due to spidermonkey's JIT
28115 + if has_version '<dev-lang/spidermonkey-1.8.7'; then
28116 + pax-mark mr "${ED}"/usr/$(get_libdir)/polkit-1/polkitd
28117 + elif has_version '>=dev-lang/spidermonkey-1.8.7[jit]'; then
28118 + pax-mark m "${ED}"/usr/$(get_libdir)/polkit-1/polkitd
28119 + fi
28120 +}
28121 +
28122 +pkg_postinst() {
28123 + chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
28124 + chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
28125 +}
28126
28127 diff --git a/www-client/elinks/Manifest b/www-client/elinks/Manifest
28128 new file mode 100644
28129 index 0000000..3bb3134
28130 --- /dev/null
28131 +++ b/www-client/elinks/Manifest
28132 @@ -0,0 +1,17 @@
28133 +AUX elinks-0.10.1-utf_8_io-default.patch 456 RMD160 69bcd2fe9a85381d53ef7d2c3da32e15d8eae36b SHA1 c9141e89ba62da5277d0df42e73f4eb258e23552 SHA256 3255c36e7107323d7415995c3c5d2458acf7b739848fb9804157b708956a7010
28134 +AUX elinks-0.10.4.conf-syscharset.diff 2580 RMD160 3bb9037e75adc225915a4a6b41afff0ef09f1eba SHA1 fe28f5ae8f290f15f1165273f22e9417f5648e40 SHA256 3269413843aabff245ee3dce522a475e5b3042adf4676b644a63d323bb77818c
28135 +AUX elinks-0.11.2-lua-5.1.patch 538 RMD160 7bd83ed15ea14cc41b909c4022eee082a47fb706 SHA1 0183f106db71725ccb0f2b83746373ca9e5f0522 SHA256 d931af4db13b53be32def17417d86ee916511209ce9a54f25d017ee2d24473d4
28136 +AUX elinks-0.11.2-lua-5.patch 2125 RMD160 be94e085a7b231dad1681566c533699b2a6d2745 SHA1 d1af052c0700951c703f26ac39f09d1cbbf43081 SHA256 4e0f7b622111696e52e15745d8ac35249a95def36eb5aa782487c7901125260c
28137 +AUX elinks-0.11.3-lua-5.patch 1841 RMD160 61ef22891e59893542326df7803c63ac81117622 SHA1 17682210d407b3efb47bbab9b47463b937d6bffe SHA256 f04d11e01824fb2cf4387b87cd531d64ad280d21e9bcb57e461ace56419d1220
28138 +AUX elinks-0.11.5-makefile.patch 1109 RMD160 7d20513b6922f895b4e4050a37550706500952c7 SHA1 4edd6e791ac08f37ee933652ded7049e04e3b6c2 SHA256 5b37be9328b80b9a995de94cf0a053ad63d43a2e0550df6e0c5a4cdc94276e1f
28139 +AUX elinks-0.12_pre5-compilation-fix.patch 464 RMD160 afe5e31db6a7ed454052e8f0220e3a5c35aca0e1 SHA1 58a69b5b48f1699451e7a508540b14962888b4d8 SHA256 984c3e1127c18eb0925fbe1cca5bb2a7b214c6cd082db434e8fe37e082715e7e
28140 +AUX elinks-0.12_pre5-sm185-jsval-fixes.patch 3921 RMD160 3926023d28e2442dc0451e6590b234bb07dc02e1 SHA1 b69a66f85af8f7fc5eb01839afffaab81b85230b SHA256 d59f9e97f5d495803e0ac35726bf42592a8f726c2367fbc08b8fe9de79de4a2f
28141 +AUX elinks-0.12pre5-spidermonkey-callback.patch 513 RMD160 50dc290e366e92b3c6235571e5772fc80fdf3e60 SHA1 50bedb0a965db8f455110d75ae24cb857c55d00b SHA256 14b65ba92e8693105945d20de6e8f07ec946f17fbbf5248b4f8c431a92b88982
28142 +DIST elinks-0.10.4.conf.bz2 5370 RMD160 5a0935ed8b035cd2f7636516b0e226a8065d1c70 SHA1 7f7b009b1b6cb746e90835d2b612f1aa6b5d3a1e SHA256 cb0fcd10cc592697de5d8d9358447a770d2b4613b17b629c0f0e05965baa6209
28143 +DIST elinks-0.11.7.tar.bz2 2467915 RMD160 2e6e863d08f9accb71892ba6f236f795c83cba9c SHA1 d13edc1477d0ab32cafe7d3c1f3a23ae1c0a5c54 SHA256 456db6f704c591b1298b0cd80105f459ff8a1fc07a0ec1156a36c4da6f898979
28144 +DIST elinks-0.12_pre5-js185-patches.tar.bz2 13820 RMD160 14936822390e22e95bf2fc8d60fd16fa9c484629 SHA1 95658432dc826e6fa618fe23cf250a50aeff2dd9 SHA256 64f7c4a657128983d054bd0d2027e11facd42fcc86bd8dfdf5b27ffbacbd54c8
28145 +DIST elinks-0.12pre5.tar.bz2 2783523 RMD160 4983083f21928da78f937b4dea09f8937c3a9cb9 SHA1 15fb38fa938a0eec9d5f22fdd538a6785e2854af SHA256 2d19547831098acff0c5f97f9fbc7912240f122961fd49fb8b76738417dd24d2
28146 +EBUILD elinks-0.11.7.ebuild 4358 RMD160 afd06665d1a437205efb1452ae4a0a00c2ff5e78 SHA1 484b2b315d846c71f4f1f5f1ac4363199104c62a SHA256 2824d95dc5f12044a82a944c506dea477e1db14ed3d370062c23284b8e6a4bd4
28147 +EBUILD elinks-0.12_pre5-r2.ebuild 5185 RMD160 0fc45dd3a89745dda07b6638d0143f9a0edd10e5 SHA1 004b280e1c2586a7cd1225285dd65c9e421eefa2 SHA256 babafe41aad903b9efc241658154761137079fcdd32cc443d89077d26451bdca
28148 +MISC ChangeLog 27580 RMD160 690d12cea62160a8bc1116ecf4e69a6c5b4a8e06 SHA1 d7dd368e33a0db892d6b72fbe36b1d542a862c73 SHA256 562c77fb9d1ce5fb8d0dc5fcaafa61e71e3dd8bba12141d8a8c230a31dab32f4
28149 +MISC metadata.xml 497 RMD160 3b538ecd57ee0fb1e4ca34240313abc7288e0f35 SHA1 6025d6b01f0ecbd3e4023552ae16f9f483f3e882 SHA256 46c078d1cc7e933e17fc97f3fba58c8a6de73e65dc240cf96b18a7e5f9912b31
28150
28151 diff --git a/www-client/elinks/elinks-0.11.7.ebuild b/www-client/elinks/elinks-0.11.7.ebuild
28152 new file mode 100644
28153 index 0000000..2124da5
28154 --- /dev/null
28155 +++ b/www-client/elinks/elinks-0.11.7.ebuild
28156 @@ -0,0 +1,140 @@
28157 +# Copyright 1999-2011 Gentoo Foundation
28158 +# Distributed under the terms of the GNU General Public License v2
28159 +# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/elinks-0.11.7.ebuild,v 1.17 2011/06/22 02:33:17 nirbheek Exp $
28160 +
28161 +EAPI="2"
28162 +
28163 +inherit eutils autotools flag-o-matic
28164 +
28165 +MY_P="${P/_/}"
28166 +DESCRIPTION="Advanced and well-established text-mode web browser"
28167 +HOMEPAGE="http://elinks.or.cz/"
28168 +SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
28169 + http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2"
28170 +
28171 +LICENSE="GPL-2"
28172 +SLOT="0"
28173 +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
28174 +IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
28175 + javascript lua nls nntp perl ruby ssl unicode X zlib"
28176 +RESTRICT="test"
28177 +
28178 +DEPEND=">=dev-libs/expat-1.95.4
28179 + bzip2? ( >=app-arch/bzip2-1.0.2 )
28180 + ssl? ( >=dev-libs/openssl-0.9.6g )
28181 + X? ( x11-libs/libX11 x11-libs/libXt )
28182 + lua? ( >=dev-lang/lua-5 )
28183 + gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
28184 + guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated,discouraged] )
28185 + idn? ( net-dns/libidn )
28186 + perl? ( sys-devel/libperl )
28187 + ruby? ( dev-lang/ruby dev-ruby/rubygems )
28188 + javascript? ( <=dev-lang/spidermonkey-1.8 )"
28189 +RDEPEND="${DEPEND}"
28190 +
28191 +S="${WORKDIR}/${MY_P}"
28192 +
28193 +src_prepare() {
28194 + cd "${WORKDIR}"
28195 + epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
28196 + mv "${PN}-0.10.4.conf" "${PN}.conf"
28197 + if ! use ftp ; then
28198 + sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
28199 + fi
28200 + sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
28201 + cd "${S}"
28202 + epatch "${FILESDIR}"/${PN}-0.11.3-lua-5.patch
28203 +
28204 + if use lua && has_version ">=dev-lang/lua-5.1"; then
28205 + epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
28206 + fi
28207 +
28208 + if use unicode ; then
28209 + epatch "${FILESDIR}"/elinks-0.10.1-utf_8_io-default.patch
28210 + fi
28211 +
28212 + epatch "${FILESDIR}"/elinks-0.11.5-makefile.patch
28213 +
28214 + sed -i -e 's/-Werror//' configure*
28215 + eautoreconf
28216 +}
28217 +
28218 +src_configure() {
28219 + # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
28220 + # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
28221 + # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
28222 + local myconf=""
28223 +
28224 + if use debug ; then
28225 + myconf="--enable-debug"
28226 + else
28227 + myconf="--enable-fastmem"
28228 + fi
28229 +
28230 + if use ssl ; then
28231 + myconf="${myconf} --with-openssl"
28232 + else
28233 + myconf="${myconf} --without-openssl --without-gnutls"
28234 + fi
28235 +
28236 + # zlib support disabled due to bug #365585
28237 + econf \
28238 + --sysconfdir=/etc/elinks \
28239 + --enable-leds \
28240 + --enable-88-colors \
28241 + --enable-256-colors \
28242 + --enable-html-highlight \
28243 + --without-zlib \
28244 + $(use_with gpm) \
28245 + $(use_with bzip2 bzlib) \
28246 + $(use_with X x) \
28247 + $(use_with lua) \
28248 + $(use_with guile) \
28249 + $(use_with perl) \
28250 + $(use_with ruby) \
28251 + $(use_with idn) \
28252 + $(use_with javascript spidermonkey) \
28253 + $(use_enable bittorrent) \
28254 + $(use_enable nls) \
28255 + $(use_enable ipv6) \
28256 + $(use_enable ftp) \
28257 + $(use_enable gopher) \
28258 + $(use_enable nntp) \
28259 + $(use_enable finger) \
28260 + ${myconf} || die
28261 +}
28262 +
28263 +src_install() {
28264 + make DESTDIR="${D}" install || die
28265 +
28266 + insopts -m 644 ; insinto /etc/elinks
28267 + doins "${WORKDIR}"/elinks.conf
28268 + newins contrib/keybind-full.conf keybind-full.sample
28269 + newins contrib/keybind.conf keybind.conf.sample
28270 +
28271 + dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
28272 + docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
28273 + insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
28274 + insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
28275 + insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
28276 +
28277 + # Remove some conflicting files on OSX. The files provided by OSX 10.4
28278 + # are more or less the same. -- Fabian Groffen (2005-06-30)
28279 + rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
28280 +}
28281 +
28282 +pkg_postinst() {
28283 + einfo "This ebuild provides a default config for ELinks."
28284 + einfo "Please check /etc/elinks/elinks.conf"
28285 + einfo
28286 + einfo "You may want to convert your html.cfg and links.cfg of"
28287 + einfo "Links or older ELinks versions to the new ELinks elinks.conf"
28288 + einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
28289 + einfo
28290 + einfo "Please have a look at /etc/elinks/keybind-full.sample and"
28291 + einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
28292 + einfo
28293 + einfo "You will have to set your TERM variable to 'xterm-256color'"
28294 + einfo "to be able to use 256 colors in elinks."
28295 + echo
28296 +}
28297
28298 diff --git a/www-client/elinks/elinks-0.12_pre5-r2.ebuild b/www-client/elinks/elinks-0.12_pre5-r2.ebuild
28299 new file mode 100644
28300 index 0000000..692bade
28301 --- /dev/null
28302 +++ b/www-client/elinks/elinks-0.12_pre5-r2.ebuild
28303 @@ -0,0 +1,156 @@
28304 +# Copyright 1999-2012 Gentoo Foundation
28305 +# Distributed under the terms of the GNU General Public License v2
28306 +# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/elinks-0.12_pre5-r2.ebuild,v 1.2 2012/06/28 17:05:31 axs Exp $
28307 +
28308 +EAPI="4-slot-abi"
28309 +inherit eutils autotools flag-o-matic
28310 +
28311 +MY_P="${P/_/}"
28312 +DESCRIPTION="Advanced and well-established text-mode web browser"
28313 +HOMEPAGE="http://elinks.or.cz/"
28314 +SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
28315 + http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2
28316 + http://dev.gentoo.org/~axs/distfiles/${P}-js185-patches.tar.bz2"
28317 +
28318 +LICENSE="GPL-2"
28319 +SLOT="0"
28320 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
28321 +IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
28322 + javascript lua +mouse nls nntp perl ruby samba ssl unicode X zlib"
28323 +RESTRICT="test"
28324 +
28325 +DEPEND="dev-libs/boehm-gc
28326 + >=dev-libs/expat-1.95.4
28327 + bzip2? ( >=app-arch/bzip2-1.0.2 )
28328 + ssl? ( >=dev-libs/openssl-0.9.6g )
28329 + X? ( x11-libs/libX11 x11-libs/libXt )
28330 + zlib? ( >=sys-libs/zlib-1.1.4 )
28331 + lua? ( >=dev-lang/lua-5 )
28332 + gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
28333 + guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated,discouraged] )
28334 + idn? ( net-dns/libidn )
28335 + perl? ( sys-devel/libperl )
28336 + ruby? ( dev-lang/ruby dev-ruby/rubygems )
28337 + samba? ( net-fs/samba )
28338 + javascript? ( dev-lang/spidermonkey:= )"
28339 +RDEPEND="${DEPEND}"
28340 +
28341 +S="${WORKDIR}/${MY_P}"
28342 +
28343 +src_prepare() {
28344 + cd "${WORKDIR}"
28345 + epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
28346 + mv "${PN}-0.10.4.conf" "${PN}.conf"
28347 + if ! use ftp ; then
28348 + sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
28349 + fi
28350 + sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
28351 + cd "${S}"
28352 +
28353 + if use lua && has_version ">=dev-lang/lua-5.1"; then
28354 + epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
28355 + fi
28356 +
28357 + epatch "${FILESDIR}"/${PN}-0.11.5-makefile.patch
28358 + epatch "${FILESDIR}"/${P}-compilation-fix.patch
28359 +
28360 + if use javascript && has_version ">=dev-lang/spidermonkey-1.8"; then
28361 + if has_version ">=dev-lang/spidermonkey-1.8.5"; then
28362 + epatch "${WORKDIR}"/patches/${P}-js185-1-heartbeat.patch
28363 + epatch "${WORKDIR}"/patches/${P}-js185-2-up.patch
28364 + epatch "${WORKDIR}"/patches/${P}-js185-3-histback.patch
28365 + epatch "${FILESDIR}"/${P}-sm185-jsval-fixes.patch
28366 + # expand lib check to also match mozjs187
28367 + if has_version ">=dev-lang/spidermonkey-1.8.7"; then
28368 + sed -i 's:mozjs185:mozjs187 mozjs185:' configure.in
28369 + fi
28370 + else
28371 + epatch "${FILESDIR}"/${MY_P}-spidermonkey-callback.patch
28372 + fi
28373 + fi
28374 +
28375 + sed -i -e 's/-Werror//' configure*
28376 + eautoreconf
28377 +}
28378 +
28379 +src_configure() {
28380 + # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
28381 + # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
28382 + # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
28383 + local myconf=""
28384 +
28385 + if use debug ; then
28386 + myconf="--enable-debug"
28387 + else
28388 + myconf="--enable-fastmem"
28389 + fi
28390 +
28391 + if use ssl ; then
28392 + myconf="${myconf} --with-openssl=${EPREFIX}/usr"
28393 + else
28394 + myconf="${myconf} --without-openssl --without-gnutls"
28395 + fi
28396 +
28397 + econf \
28398 + --sysconfdir="${EPREFIX}"/etc/elinks \
28399 + --enable-leds \
28400 + --enable-88-colors \
28401 + --enable-256-colors \
28402 + --enable-true-color \
28403 + --enable-html-highlight \
28404 + $(use_with gpm) \
28405 + $(use_with zlib) \
28406 + $(use_with bzip2 bzlib) \
28407 + $(use_with X x) \
28408 + $(use_with lua) \
28409 + $(use_with guile) \
28410 + $(use_with perl) \
28411 + $(use_with ruby) \
28412 + $(use_with idn) \
28413 + $(use_with javascript spidermonkey) \
28414 + $(use_enable bittorrent) \
28415 + $(use_enable nls) \
28416 + $(use_enable ipv6) \
28417 + $(use_enable ftp) \
28418 + $(use_enable gopher) \
28419 + $(use_enable nntp) \
28420 + $(use_enable finger) \
28421 + $(use_enable samba smb) \
28422 + $(use_enable mouse) \
28423 + ${myconf}
28424 +}
28425 +
28426 +src_install() {
28427 + emake DESTDIR="${D}" install
28428 +
28429 + insopts -m 644 ; insinto /etc/elinks
28430 + doins "${WORKDIR}"/elinks.conf
28431 + newins contrib/keybind-full.conf keybind-full.sample
28432 + newins contrib/keybind.conf keybind.conf.sample
28433 +
28434 + dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
28435 + docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
28436 + insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
28437 + insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
28438 + insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
28439 +
28440 + # Remove some conflicting files on OSX. The files provided by OSX 10.4
28441 + # are more or less the same. -- Fabian Groffen (2005-06-30)
28442 + rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias || die
28443 +}
28444 +
28445 +pkg_postinst() {
28446 + einfo "This ebuild provides a default config for ELinks."
28447 + einfo "Please check /etc/elinks/elinks.conf"
28448 + einfo
28449 + einfo "You may want to convert your html.cfg and links.cfg of"
28450 + einfo "Links or older ELinks versions to the new ELinks elinks.conf"
28451 + einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
28452 + einfo
28453 + einfo "Please have a look at /etc/elinks/keybind-full.sample and"
28454 + einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
28455 + einfo
28456 + einfo "You will have to set your TERM variable to 'xterm-256color'"
28457 + einfo "to be able to use 256 colors in elinks."
28458 + echo
28459 +}
28460
28461 diff --git a/www-client/elinks/files/elinks-0.10.1-utf_8_io-default.patch b/www-client/elinks/files/elinks-0.10.1-utf_8_io-default.patch
28462 new file mode 100644
28463 index 0000000..e0f59cd
28464 --- /dev/null
28465 +++ b/www-client/elinks/files/elinks-0.10.1-utf_8_io-default.patch
28466 @@ -0,0 +1,11 @@
28467 +--- elinks-0.10.1/src/config/options.inc.utf_8_io-default 2005-01-04 01:42:56.000000000 +0100
28468 ++++ elinks-0.10.1/src/config/options.inc 2005-01-28 17:54:42.568968720 +0100
28469 +@@ -747,7 +747,7 @@
28470 + "terminal.")),
28471 +
28472 + INIT_OPT_BOOL("terminal._template_", N_("UTF-8 I/O"),
28473 +- "utf_8_io", 0, 0,
28474 ++ "utf_8_io", 0, 1,
28475 + N_("Enable I/O in UTF8 for Unicode terminals. Note that currently,\n"
28476 + "only the subset of UTF8 according to terminal codepage is used.")),
28477 +
28478
28479 diff --git a/www-client/elinks/files/elinks-0.10.4.conf-syscharset.diff b/www-client/elinks/files/elinks-0.10.4.conf-syscharset.diff
28480 new file mode 100644
28481 index 0000000..dc64712
28482 --- /dev/null
28483 +++ b/www-client/elinks/files/elinks-0.10.4.conf-syscharset.diff
28484 @@ -0,0 +1,79 @@
28485 +--- elinks-0.10.4.conf 2005-04-08 15:29:49.000000000 -0700
28486 ++++ elinks-0.10.4-syscharset.conf 2006-11-04 00:26:26.000000000 -0800
28487 +@@ -12,8 +12,6 @@
28488 + # obsolete config.saving_style. You shouldn't touch it.
28489 + set config.saving_style_w = 1
28490 +
28491 +- ## terminal.linux.charset <codepage>
28492 +- set terminal.linux.charset = "us-ascii"
28493 + ## terminal.linux.transparency [0|1]
28494 + set terminal.linux.transparency = 1
28495 + ## terminal.linux.colors [0|1]
28496 +@@ -29,8 +27,6 @@
28497 + ## terminal.linux.type <num>
28498 + set terminal.linux.type = 2
28499 +
28500 +- ## terminal.vt100.charset <codepage>
28501 +- set terminal.vt100.charset = "us-ascii"
28502 + ## terminal.vt100.transparency [0|1]
28503 + set terminal.vt100.transparency = 1
28504 + ## terminal.vt100.colors [0|1]
28505 +@@ -46,8 +42,6 @@
28506 + ## terminal.vt100.type <num>
28507 + set terminal.vt100.type = 1
28508 +
28509 +- ## terminal.vt110.charset <codepage>
28510 +- set terminal.vt110.charset = "us-ascii"
28511 + ## terminal.vt110.transparency [0|1]
28512 + set terminal.vt110.transparency = 1
28513 + ## terminal.vt110.colors [0|1]
28514 +@@ -63,8 +57,6 @@
28515 + ## terminal.vt110.type <num>
28516 + set terminal.vt110.type = 1
28517 +
28518 +- ## terminal.xterm.charset <codepage>
28519 +- set terminal.xterm.charset = "us-ascii"
28520 + ## terminal.xterm.transparency [0|1]
28521 + set terminal.xterm.transparency = 1
28522 + ## terminal.xterm.colors [0|1]
28523 +@@ -80,8 +72,6 @@
28524 + ## terminal.xterm.type <num>
28525 + set terminal.xterm.type = 1
28526 +
28527 +- ## terminal.xterm-color.charset <codepage>
28528 +- set terminal.xterm-color.charset = "us-ascii"
28529 + ## terminal.xterm-color.transparency [0|1]
28530 + set terminal.xterm-color.transparency = 1
28531 + ## terminal.xterm-color.colors [0|1]
28532 +@@ -96,8 +86,7 @@
28533 + set terminal.xterm-color.m11_hack = 0
28534 + ## terminal.xterm-color.type <num>
28535 + set terminal.xterm-color.type = 1
28536 +- ## terminal.screen.charset <codepage>
28537 +- set terminal.screen.charset = "us-ascii"
28538 ++
28539 + ## terminal.screen.transparency [0|1]
28540 + set terminal.screen.transparency = 1
28541 + ## terminal.screen.colors [0|1]
28542 +@@ -270,10 +259,6 @@
28543 +
28544 +
28545 +
28546 +- ## document.codepage.assume <codepage>
28547 +- # Default document codepage.
28548 +- set document.codepage.assume = "ISO-8859-1"
28549 +-
28550 + ## document.codepage.force_assumed [0|1]
28551 + # Ignore charset info sent by server.
28552 + set document.codepage.force_assumed = 0
28553 +@@ -343,10 +328,6 @@
28554 +
28555 +
28556 +
28557 +- ## document.dump.codepage <codepage>
28558 +- # Codepage used in dump output.
28559 +- set document.dump.codepage = "us-ascii"
28560 +-
28561 + ## document.dump.width <num>
28562 + # Width of screen in characters when dumping a HTML document.
28563 + set document.dump.width = 80
28564
28565 diff --git a/www-client/elinks/files/elinks-0.11.2-lua-5.1.patch b/www-client/elinks/files/elinks-0.11.2-lua-5.1.patch
28566 new file mode 100644
28567 index 0000000..20db8a4
28568 --- /dev/null
28569 +++ b/www-client/elinks/files/elinks-0.11.2-lua-5.1.patch
28570 @@ -0,0 +1,16 @@
28571 +diff -Naurp elinks-0.11.2/src/scripting/lua/core.c elinks-0.11.2-lua/src/scripting/lua/core.c
28572 +--- elinks-0.11.2/src/scripting/lua/core.c 2006-11-19 14:46:37.000000000 +0100
28573 ++++ elinks-0.11.2-lua/src/scripting/lua/core.c 2007-03-10 15:34:47.000000000 +0100
28574 +@@ -646,11 +646,7 @@ init_lua(struct module *module)
28575 + {
28576 + L = lua_open();
28577 +
28578 +- luaopen_base(L);
28579 +- luaopen_table(L);
28580 +- luaopen_io(L);
28581 +- luaopen_string(L);
28582 +- luaopen_math(L);
28583 ++ luaL_openlibs(L);
28584 +
28585 + lua_register(L, LUA_ALERT, l_alert);
28586 + lua_register(L, "current_url", l_current_url);
28587
28588 diff --git a/www-client/elinks/files/elinks-0.11.2-lua-5.patch b/www-client/elinks/files/elinks-0.11.2-lua-5.patch
28589 new file mode 100644
28590 index 0000000..2b4bf61
28591 --- /dev/null
28592 +++ b/www-client/elinks/files/elinks-0.11.2-lua-5.patch
28593 @@ -0,0 +1,60 @@
28594 +diff -Naur elinks-0.11.1.orig/configure.in elinks-0.11.1/configure.in
28595 +--- elinks-0.11.1.orig/configure.in 2006-01-29 14:10:33.000000000 +0100
28596 ++++ elinks-0.11.1/configure.in 2006-03-01 17:32:58.000000000 +0100
28597 +@@ -739,7 +739,7 @@
28598 + for luadir in "$withval" "" /usr /usr/local; do
28599 + for suffix in "" 50 51; do
28600 + if test "$cf_result" = no; then
28601 +- LUA_LIBS="-llua$suffix -llualib$suffix -lm"
28602 ++ LUA_LIBS="`pkg-config --libs lua`"
28603 +
28604 + if test ! -z "$luadir"; then
28605 + LUA_LIBS="-L$luadir/lib $LUA_LIBS"
28606 +@@ -754,10 +754,10 @@
28607 + AC_TRY_LINK([ #include <lua.h>
28608 + #include <lualib.h>],
28609 + [ lua_State *L = lua_open();
28610 +- lua_baselibopen(L);
28611 +- lua_mathlibopen(L);
28612 +- lua_strlibopen(L);
28613 +- lua_tablibopen(L);
28614 ++ luaopen_base(L);
28615 ++ luaopen_math(L);
28616 ++ luaopen_string(L);
28617 ++ luaopen_table(L);
28618 + lua_pushboolean(L, 1);
28619 + lua_close(L);],
28620 + cf_result=yes, cf_result=no)
28621 +diff -Naur elinks-0.11.1.orig/src/scripting/lua/core.c elinks-0.11.1/src/scripting/lua/core.c
28622 +--- elinks-0.11.1.orig/src/scripting/lua/core.c 2006-01-29 14:10:39.000000000 +0100
28623 ++++ elinks-0.11.1/src/scripting/lua/core.c 2006-03-01 17:41:43.000000000 +0100
28624 +@@ -633,7 +633,7 @@
28625 + if (file_can_read(file)) {
28626 + int oldtop = lua_gettop(S);
28627 +
28628 +- if (lua_dofile(S, file) != 0)
28629 ++ if (luaL_dofile(S, file) != 0)
28630 + sleep(3); /* Let some time to see error messages. */
28631 + lua_settop(S, oldtop);
28632 + }
28633 +@@ -755,7 +755,7 @@
28634 + int oldtop = lua_gettop(L);
28635 +
28636 + if (prepare_lua(ses) == 0) {
28637 +- lua_dostring(L, expr);
28638 ++ luaL_dostring(L, expr);
28639 + lua_settop(L, oldtop);
28640 + finish_lua();
28641 + }
28642 +diff -Naur elinks-0.11.1.orig/src/scripting/lua/hooks.c elinks-0.11.1/src/scripting/lua/hooks.c
28643 +--- elinks-0.11.1.orig/src/scripting/lua/hooks.c 2006-01-29 14:10:39.000000000 +0100
28644 ++++ elinks-0.11.1/src/scripting/lua/hooks.c 2006-03-01 17:41:07.000000000 +0100
28645 +@@ -200,7 +200,7 @@
28646 + script_hook_quit(va_list ap, void *data)
28647 + {
28648 + if (!prepare_lua(NULL)) {
28649 +- lua_dostring(lua_state, "if quit_hook then quit_hook() end");
28650 ++ luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
28651 + finish_lua();
28652 + }
28653 +
28654
28655 diff --git a/www-client/elinks/files/elinks-0.11.3-lua-5.patch b/www-client/elinks/files/elinks-0.11.3-lua-5.patch
28656 new file mode 100644
28657 index 0000000..93b9599
28658 --- /dev/null
28659 +++ b/www-client/elinks/files/elinks-0.11.3-lua-5.patch
28660 @@ -0,0 +1,45 @@
28661 +diff -Naurp elinks-0.11.3-orig/configure.in elinks-0.11.3/configure.in
28662 +--- elinks-0.11.3-orig/configure.in 2007-05-13 11:51:34.000000000 +0200
28663 ++++ elinks-0.11.3/configure.in 2007-05-13 11:52:30.000000000 +0200
28664 +@@ -727,7 +727,7 @@ if test -z "$disable_lua"; then
28665 + for luadir in "$withval" "" /usr /usr/local; do
28666 + for suffix in "" 50 51; do
28667 + if test "$cf_result" = no; then
28668 +- LUA_LIBS="-llua$suffix -llualib$suffix -lm"
28669 ++ LUA_LIBS="`pkg-config --libs lua`"
28670 +
28671 + if test ! -z "$luadir"; then
28672 + LUA_LIBS="-L$luadir/lib $LUA_LIBS"
28673 +diff -Naurp elinks-0.11.3-orig/src/scripting/lua/core.c elinks-0.11.3/src/scripting/lua/core.c
28674 +--- elinks-0.11.3-orig/src/scripting/lua/core.c 2007-05-13 11:51:34.000000000 +0200
28675 ++++ elinks-0.11.3/src/scripting/lua/core.c 2007-05-13 11:51:49.000000000 +0200
28676 +@@ -633,7 +633,7 @@ do_hooks_file(LS, unsigned char *prefix,
28677 + if (file_can_read(file)) {
28678 + int oldtop = lua_gettop(S);
28679 +
28680 +- if (lua_dofile(S, file) != 0)
28681 ++ if (luaL_dofile(S, file) != 0)
28682 + sleep(3); /* Let some time to see error messages. */
28683 + lua_settop(S, oldtop);
28684 + }
28685 +@@ -755,7 +755,7 @@ handle_ret_eval(struct session *ses)
28686 + int oldtop = lua_gettop(L);
28687 +
28688 + if (prepare_lua(ses) == 0) {
28689 +- lua_dostring(L, expr);
28690 ++ luaL_dostring(L, expr);
28691 + lua_settop(L, oldtop);
28692 + finish_lua();
28693 + }
28694 +diff -Naurp elinks-0.11.3-orig/src/scripting/lua/hooks.c elinks-0.11.3/src/scripting/lua/hooks.c
28695 +--- elinks-0.11.3-orig/src/scripting/lua/hooks.c 2007-05-13 11:51:34.000000000 +0200
28696 ++++ elinks-0.11.3/src/scripting/lua/hooks.c 2007-05-13 11:51:49.000000000 +0200
28697 +@@ -200,7 +200,7 @@ static enum evhook_status
28698 + script_hook_quit(va_list ap, void *data)
28699 + {
28700 + if (!prepare_lua(NULL)) {
28701 +- lua_dostring(lua_state, "if quit_hook then quit_hook() end");
28702 ++ luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
28703 + finish_lua();
28704 + }
28705 +
28706
28707 diff --git a/www-client/elinks/files/elinks-0.11.5-makefile.patch b/www-client/elinks/files/elinks-0.11.5-makefile.patch
28708 new file mode 100644
28709 index 0000000..beab9a9
28710 --- /dev/null
28711 +++ b/www-client/elinks/files/elinks-0.11.5-makefile.patch
28712 @@ -0,0 +1,30 @@
28713 +diff -Naurp elinks-0.11.5-orig/Makefile.lib elinks-0.11.5/Makefile.lib
28714 +--- elinks-0.11.5-orig/Makefile.lib 2008-11-30 13:30:08.000000000 +0100
28715 ++++ elinks-0.11.5/Makefile.lib 2008-11-30 19:50:46.000000000 +0100
28716 +@@ -95,9 +95,14 @@ endif
28717 +
28718 + # All files in $(OBJS) and any $(subdir)/lib.o are linked into lib.o.
28719 + # Sort them to filter out duplicated and get uniform order.
28720 ++SUBDIR_LIB_O_DEPS = \
28721 ++ $(foreach subdir,$(sort $(SUBDIRS)),$(subdir)/$(LIB_O_NAME))
28722 ++
28723 + LIB_O_DEPS = \
28724 +- $(sort $(filter-out $(LIB_O_NAME),$(OBJS))) \
28725 +- $(foreach subdir,$(sort $(SUBDIRS)),$(wildcard $(subdir)/$(LIB_O_NAME)))
28726 ++ $(sort $(filter-out $(LIB_O_NAME),$(OBJS))) $(SUBDIR_LIB_O_DEPS)
28727 ++
28728 ++$(SUBDIR_LIB_O_DEPS):
28729 ++ @$(call ncmd,recmake,$(subst /$(LIB_O_NAME),,$@),all) || exit 1;
28730 +
28731 + $(LIB_O_NAME): $(LIB_O_DEPS)
28732 + $(call cmd,ld_objs)
28733 +@@ -222,7 +227,8 @@ $(RULES_LOCAL):
28734 +
28735 + # Default deps
28736 + rule_deps = $(1)-recursive $(1)-default $(1)-local
28737 +-all: $(call rule_deps,all)
28738 ++all: all-default all-local
28739 ++ @$(MAKE) all-recursive
28740 + install: $(call rule_deps,install)
28741 + clean: $(call rule_deps,clean)
28742 + cleanall: $(call rule_deps,cleanall)
28743
28744 diff --git a/www-client/elinks/files/elinks-0.12_pre5-compilation-fix.patch b/www-client/elinks/files/elinks-0.12_pre5-compilation-fix.patch
28745 new file mode 100644
28746 index 0000000..dee09a6
28747 --- /dev/null
28748 +++ b/www-client/elinks/files/elinks-0.12_pre5-compilation-fix.patch
28749 @@ -0,0 +1,12 @@
28750 +diff -Naurp elinks-0.12pre5-orig//src/intl/charsets.c elinks-0.12pre5/src/intl/charsets.c
28751 +--- elinks-0.12pre5-orig//src/intl/charsets.c 2010-04-04 12:19:02.000000000 +0200
28752 ++++ elinks-0.12pre5/src/intl/charsets.c 2010-04-04 12:19:20.000000000 +0200
28753 +@@ -821,7 +821,7 @@ free_utf_table(void)
28754 +
28755 + /* Cast away const. */
28756 + for (i = 128; i < 256; i++)
28757 +- mem_free((unsigned char *) utf_table[i].u.str);
28758 ++ mem_free(utf_table[i].u.str);
28759 + }
28760 +
28761 + static struct conv_table *
28762
28763 diff --git a/www-client/elinks/files/elinks-0.12_pre5-sm185-jsval-fixes.patch b/www-client/elinks/files/elinks-0.12_pre5-sm185-jsval-fixes.patch
28764 new file mode 100644
28765 index 0000000..ee2e5e8
28766 --- /dev/null
28767 +++ b/www-client/elinks/files/elinks-0.12_pre5-sm185-jsval-fixes.patch
28768 @@ -0,0 +1,124 @@
28769 +--- a/src/scripting/smjs/action_object.c 2012-06-28 11:46:58.000000000 -0400
28770 ++++ b/src/scripting/smjs/action_object.c 2012-06-28 11:52:42.000000000 -0400
28771 +@@ -50,7 +50,7 @@
28772 + assert(smjs_ctx);
28773 + if_assert_failed return JS_FALSE;
28774 +
28775 +- value = JS_FALSE;
28776 ++ value = JSVAL_FALSE;
28777 +
28778 + if (JS_TRUE != JS_ValueToObject(ctx, argv[-2], &fn_obj)) {
28779 + JS_SET_RVAL(ctx, rval, value);
28780 +@@ -76,7 +76,7 @@
28781 +
28782 + do_action(hop->ses, hop->action_id, 1);
28783 +
28784 +- value = JS_TRUE;
28785 ++ value = JSVAL_TRUE;
28786 + JS_SET_RVAL(ctx, rval, value);
28787 +
28788 + return JS_TRUE;
28789 +--- a/src/scripting/smjs/bookmarks.c 2012-06-28 11:57:40.000000000 -0400
28790 ++++ b/src/scripting/smjs/bookmarks.c 2012-06-28 12:08:20.000000000 -0400
28791 +@@ -250,11 +250,20 @@
28792 +
28793 + /* @bookmark_folder_class.getProperty */
28794 + static JSBool
28795 ++#if JS_VERSION >= 185
28796 ++bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsid iid, jsval *vp)
28797 ++#else
28798 + bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsid id, jsval *vp)
28799 ++#endif
28800 + {
28801 + struct bookmark *bookmark;
28802 + struct bookmark *folder;
28803 + unsigned char *title = NULL;
28804 ++#if JS_VERSION >= 185
28805 ++ jsval id;
28806 ++ if (!JS_IdToValue(ctx,iid,&id))
28807 ++ return JS_FALSE;
28808 ++#endif
28809 +
28810 + /* This can be called if @obj if not itself an instance of the
28811 + * appropriate class but has one in its prototype chain. Fail
28812 +--- a/src/scripting/smjs/elinks_object.c 2012-06-28 12:11:15.000000000 -0400
28813 ++++ b/src/scripting/smjs/elinks_object.c 2012-06-28 12:14:50.000000000 -0400
28814 +@@ -185,7 +185,7 @@
28815 + method, rval))
28816 + return JS_FALSE;
28817 +
28818 +- if (JSVAL_VOID == *rval)
28819 ++ if (JSVAL_IS_VOID(*rval))
28820 + return JS_FALSE;
28821 +
28822 + return JS_CallFunctionValue(smjs_ctx, smjs_elinks_object,
28823 +--- a/src/scripting/smjs/globhist.c 2012-06-28 12:20:25.000000000 -0400
28824 ++++ b/src/scripting/smjs/globhist.c 2012-06-28 12:20:15.000000000 -0400
28825 +@@ -201,11 +201,20 @@
28826 +
28827 + /* @smjs_globhist_class.getProperty */
28828 + static JSBool
28829 +-smjs_globhist_get_property(JSContext *ctx, JSObject *obj, jsid id, jsval *vp)
28830 ++#if JS_VERSION >= 185
28831 ++smjs_globhist_get_property(JSContext *ctx, JSObject *obj, jsid iid, jsval *vp)
28832 ++#else
28833 ++smjs_globhist_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
28834 ++#endif
28835 + {
28836 + JSObject *jsobj;
28837 + unsigned char *uri_string;
28838 + struct global_history_item *history_item;
28839 ++#if JS_VERSION >= 185
28840 ++ jsval id;
28841 ++ if (!JS_IdToValue(ctx,iid,&id))
28842 ++ return JS_FALSE;
28843 ++#endif
28844 +
28845 + uri_string = JS_EncodeString(ctx, JS_ValueToString(ctx, id));
28846 + if (!uri_string) goto ret_null;
28847 +--- a/src/scripting/smjs/keybinding.c 2012-06-28 12:21:39.000000000 -0400
28848 ++++ b/src/scripting/smjs/keybinding.c.new 2012-06-28 12:48:00.000000000 -0400
28849 +@@ -17,11 +17,20 @@
28850 +
28851 + /* @keymap_class.getProperty */
28852 + static JSBool
28853 +-keymap_get_property(JSContext *ctx, JSObject *obj, jsid id, jsval *vp)
28854 ++#if JS_VERSION >= 185
28855 ++keymap_get_property(JSContext *ctx, JSObject *obj, jsid iid, jsval *vp)
28856 ++#else
28857 ++keymap_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
28858 ++#endif
28859 + {
28860 + unsigned char *action_str;
28861 + const unsigned char *keystroke_str;
28862 + int *data;
28863 ++#if JS_VERSION >= 185
28864 ++ jsval id;
28865 ++ if (!JS_IdToValue(ctx,iid,&id))
28866 ++ return JS_FALSE;
28867 ++#endif
28868 +
28869 + /* This can be called if @obj if not itself an instance of the
28870 + * appropriate class but has one in its prototype chain. Fail
28871 +@@ -70,11 +79,20 @@
28872 +
28873 + /* @keymap_class.setProperty */
28874 + static JSBool
28875 +-keymap_set_property(JSContext *ctx, JSObject *obj, jsid id, JSBool strict, jsval *vp)
28876 ++#if JS_VERSION >= 185
28877 ++keymap_set_property(JSContext *ctx, JSObject *obj, jsid iid, JSBool strict, jsval *vp)
28878 ++#else
28879 ++keymap_set_property(JSContext *ctx, JSObject *obj, jsval id, JSBool strict, jsval *vp)
28880 ++#endif
28881 + {
28882 + int *data;
28883 + unsigned char *keymap_str;
28884 + const unsigned char *keystroke_str;
28885 ++#if JS_VERSION >= 185
28886 ++ jsval id;
28887 ++ if (!JS_IdToValue(ctx,iid,&id))
28888 ++ return JS_FALSE;
28889 ++#endif
28890 +
28891 + /* This can be called if @obj if not itself an instance of the
28892 + * appropriate class but has one in its prototype chain. Fail
28893
28894 diff --git a/www-client/elinks/files/elinks-0.12pre5-spidermonkey-callback.patch b/www-client/elinks/files/elinks-0.12pre5-spidermonkey-callback.patch
28895 new file mode 100644
28896 index 0000000..b48ddae
28897 --- /dev/null
28898 +++ b/www-client/elinks/files/elinks-0.12pre5-spidermonkey-callback.patch
28899 @@ -0,0 +1,12 @@
28900 +diff -Naurp elinks-0.12pre5-orig/src/ecmascript/spidermonkey.c elinks-0.12pre5/src/ecmascript/spidermonkey.c
28901 +--- elinks-0.12pre5-orig/src/ecmascript/spidermonkey.c 2011-06-12 01:03:02.427000686 +0200
28902 ++++ elinks-0.12pre5/src/ecmascript/spidermonkey.c 2011-06-12 01:03:31.368000736 +0200
28903 +@@ -130,7 +130,7 @@ setup_safeguard(struct ecmascript_interp
28904 + JSContext *ctx)
28905 + {
28906 + interpreter->exec_start = time(NULL);
28907 +- JS_SetBranchCallback(ctx, safeguard);
28908 ++ JS_SetOperationCallback(ctx, safeguard);
28909 + }
28910 +
28911 +
28912
28913 diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest
28914 new file mode 100644
28915 index 0000000..d70d2cb
28916 --- /dev/null
28917 +++ b/x11-base/xorg-server/Manifest
28918 @@ -0,0 +1,28 @@
28919 +AUX xdm-setup.initd-1 346 RMD160 e68512e71adbf15743f789bb6b5587b07a9812a3 SHA1 f25303b8bcef0c5d2eb61517d5347b4b88736cd4 SHA256 942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406
28920 +AUX xdm.confd-3 853 RMD160 363cd18f760650923e16579bf55f661e93dad63b SHA1 0027b98f2aeb5c43219fa4f9b7d81a05101bec6f SHA256 00af0d957ff1b4f31c1aa4701d93a54080408548792deafac5414cbfa13b89ec
28921 +AUX xdm.confd-4 562 RMD160 3440e564c5d52ec1d30902c870daf282698f04c4 SHA1 630b8e05706050a6b7260d2a1a19d6d54cba59fa SHA256 9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8
28922 +AUX xdm.initd-3 5662 RMD160 f59d08d172681b349496ff4274f7e9f7cad51682 SHA1 3abf99cb2e8de0afd277f4b1a0224e7c6466c66f SHA256 36a4b4e5fcb4f7ae303e1dfc20b1ec005a7ada9448ebb96e518d8c992feb5475
28923 +AUX xdm.initd-5 5721 RMD160 785b7b3a8fc15439ed650d4ebb4f57cd28063ea2 SHA1 91905d67069cd82b4f39f6a7997ce3763fc70dae SHA256 de1a07296c7248a90fc39212f9b586816fd2f911af71624ad13ef55bf8a0fefa
28924 +AUX xdm.initd-8 5702 RMD160 aef613766ffdd803e86914eecf101103bfcde28d SHA1 6667598ff1b0e02df286932bec934eea7e964d2c SHA256 f5f97f5ac47738f352d172185b9256c78562a91510fd3d69dbc87bb3a5d0814f
28925 +AUX xorg-cve-2011-4028+4029.patch 671 RMD160 f9c607b5bfe20259f2adb320b6a1a0819f59f7ab SHA1 84797b66434aa05acc9f6881050d1b46487caf77 SHA256 76b9bb4a928fa7179eb52ab3b2bd2ef6d7db83e0543ba80de37cdab05efa601c
28926 +AUX xorg-server-1.11-disable-tests-without-ddx.patch 2184 RMD160 4648fafbadebc3bc72f6a7fcac56d4e0e7fbf8ef SHA1 381c6a485505641a41337508be50cc829b17aca8 SHA256 e3b92e31843ff5046a96d3c4eb6ce67ab00e6422ffe92e7e7d13424b67dc844e
28927 +AUX xorg-server-1.11-dix-pointerrootwin-send-focusin.patch 970 RMD160 e1384bc8e6345bb9bcfa16874e5032e1ad389af6 SHA1 2f7ab2bd9a405b77d6c1538784152b68777705cd SHA256 c65e3499f6f2974d00bfcec6f6c6826982e87327b61d9621dce6c2bf26949a7d
28928 +AUX xorg-server-1.11-dix-send-focus-events.patch 2345 RMD160 286ed4b953c329b8bf289cb759ad986a6ab8a240 SHA1 8065f0c170df65665d992f013e2409bb3a62cb3b SHA256 77e1ce80ebf57718b5aa7cfdb1add109c62c8b8728899405c212239b2576d110
28929 +AUX xorg-server-1.11-log-format-fix.patch 13585 RMD160 2c8328b8f2448bc206d358e95ddbb8f7f1ecfa53 SHA1 cfcc384f189237a28104f49f71e70ff613f76c84 SHA256 2a70be6fa9d77c5dbc831cc1891eb7426005a22fc3e03707810a2e07eebd58c0
28930 +AUX xorg-server-1.12-disable-acpi.patch 275 RMD160 01244888695fc7928c81c06cc1f4fcd3625fc9de SHA1 555a4d16f38ed54ed9efa6fff9ec230d11362e30 SHA256 1d3878d44e2b8690bb7d1595960d06acee7f86a6a4724236a09a74900404e953
28931 +AUX xorg-server-1.12-xf86edidmodes-array-bounds.patch 1219 RMD160 3b16fb00a44d493e452487c08cf4bd161e72545d SHA1 036a7b31c108dc25250a070aaa48be069d5b31c3 SHA256 d781acc0ab5c34ab52d87135346a1346b529dce663779d1e8641252e260d4de2
28932 +AUX xorg-server-1.9-nouveau-default.patch 916 RMD160 0ebdf0fb76364b7fd0c520c3a2f7cc2cc1a83446 SHA1 daddde0f4f4276e12b87354d2e6825ed5c74c6eb SHA256 a7ff421dd928e3025194279f9afb7cc033a896b3417abe339741e9c6ed4b54ea
28933 +AUX xorg-server-disable-acpi.patch 663 RMD160 7074ca5276369b746ea7606a0795232aafe07c90 SHA1 d300a37dd2e0a8aa3965948c13f6995e6767841d SHA256 5b3cc7c8bea18fe3ba81851d2846d19ffd8fab9cdf5d8f3a274846847e734200
28934 +AUX xorg-server-glapi_c.patch 2215 RMD160 2df0b6ef296744b0c6951f4ba76bfeeb09196d62 SHA1 5bb85cef608bd75eca7a091fb581c0243cb36598 SHA256 5f59b883d49f53d2f6f71cbbf5e4ef74bdf545238afd61fa3011e0eb311cfb3b
28935 +AUX xorg-sets.conf 199 RMD160 33815115b6e8b8360af4f0778b0e2c5fb1a9aaee SHA1 b5a2fd01a97558fa909c67f510d8a59b55e20f57 SHA256 1201d0337ac69d9715f4454a86dfb8a7bd1ae6f4c2578042fc08f283a997597c
28936 +DIST xorg-server-1.10.6.tar.bz2 5406712 RMD160 a920b609e462e1b6ac750e6e1466aa0f880b41a8 SHA1 398b5ba7332829f1831b8fa69e2ea071fb7d1e59 SHA256 c4da5a97b6986688efe74bc9bff6a38795977019ac032dd6d787abad32c50682
28937 +DIST xorg-server-1.11.4.tar.bz2 4900810 RMD160 26eafdda9e7c9e21e606281dacc13e67d0144eef SHA1 adb5b0bf95a943385c08f826a647871aa1d8d6eb SHA256 3e2935bc400612df58d5b5e6840829e2c63af02c2e7d2893092500358a4366fc
28938 +DIST xorg-server-1.12.2.tar.bz2 5431841 RMD160 47530836ebe44e8823848fb87ef979c7dd805f66 SHA1 2edb151d39571dc0fcdedc299ea0a77fe6bfc076 SHA256 ca9f9e22f432f1ccbf8e7a21e746e02be4081a0f3975eb7cff276483193cc5f5
28939 +DIST xorg-server-1.9.5.tar.bz2 5172054 RMD160 6383b126ed313943fc5cb0939fdae4a737aabb70 SHA1 03be24d6906f3ed3237057a5a7df2b02723c9749 SHA256 3fc775097c4f0e8f731447d0183ee709ae37c44c0c286ba00a4b028274e029dc
28940 +EBUILD xorg-server-1.10.6-r1.ebuild 7160 RMD160 5865b675a196f2a0f41a09266e000f21e9f9f7d9 SHA1 4f2949e06f67647594e1fdecb423d576be48f98c SHA256 39806355cf68907fd1b1d07c4218cbe440c73b63bb3d4f482e9ab6b749c817db
28941 +EBUILD xorg-server-1.11.4-r1.ebuild 7170 RMD160 d9e6f36286f1403329f837ae82f54d9739974693 SHA1 f57ba727c7d2665151ce1054cb1b7782d9df370d SHA256 ed4b129bdfce77dab792d6bbad7913687605867e023a8b44c540ed165bf294e8
28942 +EBUILD xorg-server-1.12.2.ebuild 6888 RMD160 9347f1620cdf6b595fbaed83c806489fcc5b6036 SHA1 6ef98c48b331c7f9a4426a8ef8485ca1664ccf43 SHA256 f0fe3864de9488daa5f46ea30230c3abd24ac3e1013dc817ef5d8319b46751a1
28943 +EBUILD xorg-server-1.9.5-r1.ebuild 7863 RMD160 73cfb9828e9456277703076ca1e58708187035e2 SHA1 c0124e2c27bfc3d02ea40fa21558db1c836f7b92 SHA256 92cd8aba95353f41ced9c7f3122583fbfd182d9f1d7e093bb2a68a53b9d10399
28944 +MISC ChangeLog 32035 RMD160 ee741c24e20eb255d649695c85f6dffed532f35f SHA1 90ab3382b3a33eeb373aeeac605089105e4fe7dd SHA256 30ea6c09969166459cc0a5ac57137728631c8059e961e2d5c727c5bb40a3af1a
28945 +MISC ChangeLog-2009 109242 RMD160 49689c8b1497d684a401769d514b6878f3630361 SHA1 aba977db6bc09bec3d0cafdefc2f0e480beabc8e SHA256 76119bd85f64b74b4f8129911eef944e8f1baa3ae38bbfb65bcd6197a6f58c88
28946 +MISC metadata.xml 537 RMD160 36f5ed1e9869e06c50c882193aad04d9553fbab9 SHA1 505782abd459abe3ba35969cc190675e00c65408 SHA256 38cd6ed34cf5447cbc3e0a9c4a9e24d5af12e2a12b80b106821bb19e69d2281f
28947
28948 diff --git a/x11-base/xorg-server/files/xdm-setup.initd-1 b/x11-base/xorg-server/files/xdm-setup.initd-1
28949 new file mode 100644
28950 index 0000000..365664e
28951 --- /dev/null
28952 +++ b/x11-base/xorg-server/files/xdm-setup.initd-1
28953 @@ -0,0 +1,14 @@
28954 +#!/sbin/runscript
28955 +# Copyright 1999-2009 Gentoo Foundation
28956 +# Distributed under the terms of the GNU General Public License v2
28957 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm-setup.initd-1,v 1.1 2010/04/13 10:07:39 scarabeus Exp $
28958 +
28959 +depend() {
28960 + need localmount
28961 +}
28962 +
28963 +start() {
28964 + if get_bootparam "nox" ; then
28965 + touch /etc/.noxdm
28966 + fi
28967 +}
28968
28969 diff --git a/x11-base/xorg-server/files/xdm.confd-3 b/x11-base/xorg-server/files/xdm.confd-3
28970 new file mode 100644
28971 index 0000000..9c560bb
28972 --- /dev/null
28973 +++ b/x11-base/xorg-server/files/xdm.confd-3
28974 @@ -0,0 +1,16 @@
28975 +# We always try and start X on a static VT. The various DMs normally default
28976 +# to using VT7. If you wish to use the xdm init script, then you should ensure
28977 +# that the VT checked is the same VT your DM wants to use. We do this check to
28978 +# ensure that you haven't accidentally configured something to run on the VT
28979 +# in your /etc/inittab file so that you don't get a dead keyboard.
28980 +CHECKVT=7
28981 +
28982 +# What display manager do you use ? [ xdm | gdm | kdm | kdm-4.3 | gpe | entrance ]
28983 +# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
28984 +#
28985 +# KDE-specific note:
28986 +# - If you are using kdeprefix go with "kdm-4.Y", e.g. "kdm-4.3".
28987 +# You can find possible versions by looking at the directories in /usr/kde/.
28988 +# - Else, if you are using KDE 3 enter "kdm-3.5"
28989 +# - Else, if you are using KDE 4 enter "kdm" without a version
28990 +DISPLAYMANAGER="xdm"
28991 \ No newline at end of file
28992
28993 diff --git a/x11-base/xorg-server/files/xdm.confd-4 b/x11-base/xorg-server/files/xdm.confd-4
28994 new file mode 100644
28995 index 0000000..c82fece
28996 --- /dev/null
28997 +++ b/x11-base/xorg-server/files/xdm.confd-4
28998 @@ -0,0 +1,10 @@
28999 +# We always try and start X on a static VT. The various DMs normally default
29000 +# to using VT7. If you wish to use the xdm init script, then you should ensure
29001 +# that the VT checked is the same VT your DM wants to use. We do this check to
29002 +# ensure that you haven't accidentally configured something to run on the VT
29003 +# in your /etc/inittab file so that you don't get a dead keyboard.
29004 +CHECKVT=7
29005 +
29006 +# What display manager do you use ? [ xdm | gdm | kdm | gpe | entrance ]
29007 +# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
29008 +DISPLAYMANAGER="xdm"
29009
29010 diff --git a/x11-base/xorg-server/files/xdm.initd-3 b/x11-base/xorg-server/files/xdm.initd-3
29011 new file mode 100644
29012 index 0000000..4e4c8b2
29013 --- /dev/null
29014 +++ b/x11-base/xorg-server/files/xdm.initd-3
29015 @@ -0,0 +1,218 @@
29016 +#!/sbin/runscript
29017 +# Copyright 1999-2012 Gentoo Foundation
29018 +# Distributed under the terms of the GNU General Public License, v2
29019 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-3,v 1.5 2012/06/12 11:27:07 chithanh Exp $
29020 +
29021 +# This is here to serve as a note to myself, and future developers.
29022 +#
29023 +# Any Display manager (gdm,kdm,xdm) has the following problem: if
29024 +# it is started before any getty, and no vt is specified, it will
29025 +# usually run on vt2. When the getty on vt2 then starts, and the
29026 +# DM is already started, the getty will take control of the keyboard,
29027 +# leaving us with a "dead" keyboard.
29028 +#
29029 +# Resolution: add the following line to /etc/inittab
29030 +#
29031 +# x:a:once:/etc/X11/startDM.sh
29032 +#
29033 +# and have /etc/X11/startDM.sh start the DM in daemon mode if
29034 +# a lock is present (with the info of what DM should be started),
29035 +# else just fall through.
29036 +#
29037 +# How this basically works, is the "a" runlevel is a additional
29038 +# runlevel that you can use to fork processes with init, but the
29039 +# runlevel never gets changed to this runlevel. Along with the "a"
29040 +# runlevel, the "once" key word means that startDM.sh will only be
29041 +# run when we specify it to run, thus eliminating respawning
29042 +# startDM.sh when "xdm" is not added to the default runlevel, as was
29043 +# done previously.
29044 +#
29045 +# This script then just calls "telinit a", and init will run
29046 +# /etc/X11/startDM.sh after the current runlevel completes (this
29047 +# script should only be added to the actual runlevel the user is
29048 +# using).
29049 +#
29050 +# Martin Schlemmer
29051 +# aka Azarah
29052 +# 04 March 2002
29053 +
29054 +depend() {
29055 + need localmount xdm-setup
29056 +
29057 + # this should start as early as possible
29058 + # we can't do 'before *' as that breaks it
29059 + # (#139824) Start after ypbind and autofs for network authentication
29060 + # (#145219 #180163) Could use lirc mouse as input device
29061 + # (#70689 comment #92) Start after consolefont to avoid display corruption
29062 + # (#291269) Start after quota, since some dm need readable home
29063 + after bootmisc consolefont modules netmount
29064 + after readahead-list ypbind autofs openvpn gpm lircmd
29065 + after quota
29066 + before alsasound
29067 +
29068 + # Start before X
29069 + use consolekit xfs
29070 +}
29071 +
29072 +setup_dm() {
29073 + local MY_XDM
29074 +
29075 + MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')
29076 +
29077 + # Load our root path from profile.env
29078 + # Needed for kdm
29079 + PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")
29080 +
29081 + NAME=
29082 + case "${MY_XDM}" in
29083 + kdm|kde)
29084 + EXE="$(which kdm)"
29085 + PIDFILE=/var/run/kdm.pid
29086 + ;;
29087 + kdm-*)
29088 + EXE="/usr/kde/${MY_XDM#kdm-}/bin/kdm"
29089 + PIDFILE=/var/run/kdm.pid
29090 + ;;
29091 + entrance*)
29092 + EXE=/usr/sbin/entranced
29093 + PIDFILE=/var/lib/entranced.pid
29094 + ;;
29095 + gdm|gnome)
29096 + EXE=/usr/bin/gdm
29097 + [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
29098 + PIDFILE=/var/run/gdm.pid
29099 + ;;
29100 + wdm)
29101 + EXE=/usr/bin/wdm
29102 + PIDFILE=
29103 + ;;
29104 + gpe)
29105 + EXE=/usr/bin/gpe-dm
29106 + PIDFILE=/var/run/gpe-dm.pid
29107 + ;;
29108 + lxdm)
29109 + EXE=/usr/sbin/lxdm-binary
29110 + PIDFILE=/var/run/lxdm.pid
29111 + START_STOP_ARGS="--background"
29112 + ;;
29113 + lightdm)
29114 + EXE=/usr/sbin/lightdm
29115 + PIDFILE=/var/run/lightdm.pid
29116 + START_STOP_ARGS="--background"
29117 + ;;
29118 + *)
29119 + # first find out if there is such executable
29120 + EXE="$(which ${MY_XDM} 2>/dev/null)"
29121 + PIDFILE="/var/run/${MY_XDM}.pid"
29122 +
29123 + # warn user that he is doing sick things if the exe was not found
29124 + if [ -z "${EXE}" ]; then
29125 + echo "ERROR: Your XDM value is invalid."
29126 + echo " No ${MY_XDM} executable could be found on your system."
29127 + fi
29128 + ;;
29129 + esac
29130 +
29131 + if ! [ -x "${EXE}" ]; then
29132 + EXE=/usr/bin/xdm
29133 + PIDFILE=/var/run/xdm.pid
29134 + if ! [ -x "/usr/bin/xdm" ]; then
29135 + echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
29136 + echo " or install x11-apps/xdm package"
29137 + eend 255
29138 + fi
29139 + fi
29140 +}
29141 +
29142 +# Check to see if something is defined on our VT
29143 +vtstatic() {
29144 + if [ -e /etc/inittab ] ; then
29145 + grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
29146 + elif [ -e /etc/ttys ] ; then
29147 + grep -q "^ttyv$(($1 - 1))" /etc/ttys
29148 + else
29149 + return 1
29150 + fi
29151 +}
29152 +
29153 +start() {
29154 + local EXE NAME PIDFILE
29155 + setup_dm
29156 +
29157 + if [ -f /etc/.noxdm ]; then
29158 + einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
29159 + rm /etc/.noxdm
29160 + return 0
29161 + fi
29162 +
29163 + ebegin "Setting up ${EXE##*/}"
29164 +
29165 + # save the prefered DM
29166 + save_options "service" "${EXE}"
29167 + save_options "name" "${NAME}"
29168 + save_options "pidfile" "${PIDFILE}"
29169 + save_options "start_stop_args" "${START_STOP_ARGS}"
29170 +
29171 + if [ -n "${CHECKVT-y}" ] ; then
29172 + if vtstatic "${CHECKVT:-7}" ; then
29173 + if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
29174 + ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
29175 + telinit a >/dev/null 2>&1
29176 + return 0
29177 + else
29178 + eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
29179 + return 1
29180 + fi
29181 + fi
29182 + fi
29183 +
29184 + /etc/X11/startDM.sh
29185 + eend 0
29186 +}
29187 +
29188 +stop() {
29189 + local curvt retval
29190 +
29191 + retval=0
29192 + if [ -t 0 ]; then
29193 + if type fgconsole >/dev/null 2>&1; then
29194 + curvt=$(fgconsole 2>/dev/null)
29195 + else
29196 + curvt=$(tty)
29197 + case "${curvt}" in
29198 + /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
29199 + *) curvt= ;;
29200 + esac
29201 + fi
29202 + fi
29203 + local myexe myname mypidfile myservice
29204 + myexe=$(get_options "service")
29205 + myname=$(get_options "name")
29206 + mypidfile=$(get_options "pidfile")
29207 + myservice=${myexe##*/}
29208 +
29209 + [ -z "${myexe}" ] && return 0
29210 +
29211 + ebegin "Stopping ${myservice}"
29212 +
29213 + if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
29214 + start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
29215 + ${mypidfile:+--pidfile} ${mypidfile} \
29216 + ${myname:+--name} ${myname}
29217 + retval=${?}
29218 + fi
29219 +
29220 + # switch back to original vt
29221 + if [ -n "${curvt}" ]; then
29222 + if type chvt >/dev/null 2>&1; then
29223 + chvt "${curvt}"
29224 + else
29225 + vidcontrol -s "$((curvt + 1))"
29226 + fi
29227 + fi
29228 +
29229 + eend ${retval} "Error stopping ${myservice}"
29230 + return ${retval}
29231 +}
29232 +
29233 +# vim: set ts=4 :
29234
29235 diff --git a/x11-base/xorg-server/files/xdm.initd-5 b/x11-base/xorg-server/files/xdm.initd-5
29236 new file mode 100644
29237 index 0000000..c152e40
29238 --- /dev/null
29239 +++ b/x11-base/xorg-server/files/xdm.initd-5
29240 @@ -0,0 +1,219 @@
29241 +#!/sbin/runscript
29242 +# Copyright 1999-2011 Gentoo Foundation
29243 +# Distributed under the terms of the GNU General Public License, v2
29244 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-5,v 1.1 2011/11/24 13:09:40 chithanh Exp $
29245 +
29246 +# This is here to serve as a note to myself, and future developers.
29247 +#
29248 +# Any Display manager (gdm,kdm,xdm) has the following problem: if
29249 +# it is started before any getty, and no vt is specified, it will
29250 +# usually run on vt2. When the getty on vt2 then starts, and the
29251 +# DM is already started, the getty will take control of the keyboard,
29252 +# leaving us with a "dead" keyboard.
29253 +#
29254 +# Resolution: add the following line to /etc/inittab
29255 +#
29256 +# x:a:once:/etc/X11/startDM.sh
29257 +#
29258 +# and have /etc/X11/startDM.sh start the DM in daemon mode if
29259 +# a lock is present (with the info of what DM should be started),
29260 +# else just fall through.
29261 +#
29262 +# How this basically works, is the "a" runlevel is a additional
29263 +# runlevel that you can use to fork processes with init, but the
29264 +# runlevel never gets changed to this runlevel. Along with the "a"
29265 +# runlevel, the "once" key word means that startDM.sh will only be
29266 +# run when we specify it to run, thus eliminating respawning
29267 +# startDM.sh when "xdm" is not added to the default runlevel, as was
29268 +# done previously.
29269 +#
29270 +# This script then just calls "telinit a", and init will run
29271 +# /etc/X11/startDM.sh after the current runlevel completes (this
29272 +# script should only be added to the actual runlevel the user is
29273 +# using).
29274 +#
29275 +# Martin Schlemmer
29276 +# aka Azarah
29277 +# 04 March 2002
29278 +
29279 +depend() {
29280 + need localmount xdm-setup
29281 +
29282 + # this should start as early as possible
29283 + # we can't do 'before *' as that breaks it
29284 + # (#139824) Start after ypbind and autofs for network authentication
29285 + # (#145219 #180163) Could use lirc mouse as input device
29286 + # (#70689 comment #92) Start after consolefont to avoid display corruption
29287 + # (#291269) Start after quota, since some dm need readable home
29288 + # (#390609) gdm-3 will fail when dbus is not running
29289 + after bootmisc consolefont modules netmount
29290 + after readahead-list ypbind autofs openvpn gpm lircmd
29291 + after quota
29292 + before alsasound
29293 +
29294 + # Start before X
29295 + use consolekit dbus xfs
29296 +}
29297 +
29298 +setup_dm() {
29299 + local MY_XDM
29300 +
29301 + MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')
29302 +
29303 + # Load our root path from profile.env
29304 + # Needed for kdm
29305 + PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")
29306 +
29307 + NAME=
29308 + case "${MY_XDM}" in
29309 + kdm|kde)
29310 + EXE="$(which kdm)"
29311 + PIDFILE=/var/run/kdm.pid
29312 + ;;
29313 + kdm-*)
29314 + EXE="/usr/kde/${MY_XDM#kdm-}/bin/kdm"
29315 + PIDFILE=/var/run/kdm.pid
29316 + ;;
29317 + entrance*)
29318 + EXE=/usr/sbin/entranced
29319 + PIDFILE=/var/lib/entranced.pid
29320 + ;;
29321 + gdm|gnome)
29322 + EXE=/usr/bin/gdm
29323 + [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
29324 + PIDFILE=/var/run/gdm.pid
29325 + ;;
29326 + wdm)
29327 + EXE=/usr/bin/wdm
29328 + PIDFILE=
29329 + ;;
29330 + gpe)
29331 + EXE=/usr/bin/gpe-dm
29332 + PIDFILE=/var/run/gpe-dm.pid
29333 + ;;
29334 + lxdm)
29335 + EXE=/usr/sbin/lxdm-binary
29336 + PIDFILE=/var/run/lxdm.pid
29337 + START_STOP_ARGS="--background"
29338 + ;;
29339 + lightdm)
29340 + EXE=/usr/sbin/lightdm
29341 + PIDFILE=/var/run/lightdm.pid
29342 + START_STOP_ARGS="--background"
29343 + ;;
29344 + *)
29345 + # first find out if there is such executable
29346 + EXE="$(which ${MY_XDM} 2>/dev/null)"
29347 + PIDFILE="/var/run/${MY_XDM}.pid"
29348 +
29349 + # warn user that he is doing sick things if the exe was not found
29350 + if [ -z "${EXE}" ]; then
29351 + echo "ERROR: Your XDM value is invalid."
29352 + echo " No ${MY_XDM} executable could be found on your system."
29353 + fi
29354 + ;;
29355 + esac
29356 +
29357 + if ! [ -x "${EXE}" ]; then
29358 + EXE=/usr/bin/xdm
29359 + PIDFILE=/var/run/xdm.pid
29360 + if ! [ -x "/usr/bin/xdm" ]; then
29361 + echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
29362 + echo " or install x11-apps/xdm package"
29363 + eend 255
29364 + fi
29365 + fi
29366 +}
29367 +
29368 +# Check to see if something is defined on our VT
29369 +vtstatic() {
29370 + if [ -e /etc/inittab ] ; then
29371 + grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
29372 + elif [ -e /etc/ttys ] ; then
29373 + grep -q "^ttyv$(($1 - 1))" /etc/ttys
29374 + else
29375 + return 1
29376 + fi
29377 +}
29378 +
29379 +start() {
29380 + local EXE NAME PIDFILE
29381 + setup_dm
29382 +
29383 + if [ -f /etc/.noxdm ]; then
29384 + einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
29385 + rm /etc/.noxdm
29386 + return 0
29387 + fi
29388 +
29389 + ebegin "Setting up ${EXE##*/}"
29390 +
29391 + # save the prefered DM
29392 + save_options "service" "${EXE}"
29393 + save_options "name" "${NAME}"
29394 + save_options "pidfile" "${PIDFILE}"
29395 + save_options "start_stop_args" "${START_STOP_ARGS}"
29396 +
29397 + if [ -n "${CHECKVT-y}" ] ; then
29398 + if vtstatic "${CHECKVT:-7}" ; then
29399 + if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
29400 + ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
29401 + telinit a >/dev/null 2>&1
29402 + return 0
29403 + else
29404 + eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
29405 + return 1
29406 + fi
29407 + fi
29408 + fi
29409 +
29410 + /etc/X11/startDM.sh
29411 + eend 0
29412 +}
29413 +
29414 +stop() {
29415 + local curvt retval
29416 +
29417 + retval=0
29418 + if [ -t 0 ]; then
29419 + if type fgconsole >/dev/null 2>&1; then
29420 + curvt=$(fgconsole 2>/dev/null)
29421 + else
29422 + curvt=$(tty)
29423 + case "${curvt}" in
29424 + /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
29425 + *) curvt= ;;
29426 + esac
29427 + fi
29428 + fi
29429 + local myexe myname mypidfile myservice
29430 + myexe=$(get_options "service")
29431 + myname=$(get_options "name")
29432 + mypidfile=$(get_options "pidfile")
29433 + myservice=${myexe##*/}
29434 +
29435 + [ -z "${myexe}" ] && return 0
29436 +
29437 + ebegin "Stopping ${myservice}"
29438 +
29439 + if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
29440 + start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
29441 + ${mypidfile:+--pidfile} ${mypidfile} \
29442 + ${myname:+--name} ${myname}
29443 + retval=${?}
29444 + fi
29445 +
29446 + # switch back to original vt
29447 + if [ -n "${curvt}" ]; then
29448 + if type chvt >/dev/null 2>&1; then
29449 + chvt "${curvt}"
29450 + else
29451 + vidcontrol -s "$((curvt + 1))"
29452 + fi
29453 + fi
29454 +
29455 + eend ${retval} "Error stopping ${myservice}"
29456 + return ${retval}
29457 +}
29458 +
29459 +# vim: set ts=4 :
29460
29461 diff --git a/x11-base/xorg-server/files/xdm.initd-8 b/x11-base/xorg-server/files/xdm.initd-8
29462 new file mode 100644
29463 index 0000000..539cac1
29464 --- /dev/null
29465 +++ b/x11-base/xorg-server/files/xdm.initd-8
29466 @@ -0,0 +1,216 @@
29467 +#!/sbin/runscript
29468 +# Copyright 1999-2012 Gentoo Foundation
29469 +# Distributed under the terms of the GNU General Public License, v2
29470 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-8,v 1.1 2012/05/01 22:08:46 chithanh Exp $
29471 +
29472 +# This is here to serve as a note to myself, and future developers.
29473 +#
29474 +# Any Display manager (gdm,kdm,xdm) has the following problem: if
29475 +# it is started before any getty, and no vt is specified, it will
29476 +# usually run on vt2. When the getty on vt2 then starts, and the
29477 +# DM is already started, the getty will take control of the keyboard,
29478 +# leaving us with a "dead" keyboard.
29479 +#
29480 +# Resolution: add the following line to /etc/inittab
29481 +#
29482 +# x:a:once:/etc/X11/startDM.sh
29483 +#
29484 +# and have /etc/X11/startDM.sh start the DM in daemon mode if
29485 +# a lock is present (with the info of what DM should be started),
29486 +# else just fall through.
29487 +#
29488 +# How this basically works, is the "a" runlevel is a additional
29489 +# runlevel that you can use to fork processes with init, but the
29490 +# runlevel never gets changed to this runlevel. Along with the "a"
29491 +# runlevel, the "once" key word means that startDM.sh will only be
29492 +# run when we specify it to run, thus eliminating respawning
29493 +# startDM.sh when "xdm" is not added to the default runlevel, as was
29494 +# done previously.
29495 +#
29496 +# This script then just calls "telinit a", and init will run
29497 +# /etc/X11/startDM.sh after the current runlevel completes (this
29498 +# script should only be added to the actual runlevel the user is
29499 +# using).
29500 +#
29501 +# Martin Schlemmer
29502 +# aka Azarah
29503 +# 04 March 2002
29504 +
29505 +depend() {
29506 + need localmount xdm-setup
29507 +
29508 + # this should start as early as possible
29509 + # we can't do 'before *' as that breaks it
29510 + # (#139824) Start after ypbind and autofs for network authentication
29511 + # (#145219 #180163) Could use lirc mouse as input device
29512 + # (#70689 comment #92) Start after consolefont to avoid display corruption
29513 + # (#291269) Start after quota, since some dm need readable home
29514 + # (#390609) gdm-3 will fail when dbus is not running
29515 + # (#366753) starting keymaps after X causes problems
29516 + after bootmisc consolefont modules netmount
29517 + after readahead-list ypbind autofs openvpn gpm lircmd
29518 + after quota keymaps
29519 + before alsasound
29520 +
29521 + # Start before X
29522 + use consolekit dbus xfs
29523 +}
29524 +
29525 +setup_dm() {
29526 + local MY_XDM
29527 +
29528 + MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')
29529 +
29530 + # Load our root path from profile.env
29531 + # Needed for kdm
29532 + PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")
29533 +
29534 + NAME=
29535 + case "${MY_XDM}" in
29536 + kdm|kde)
29537 + EXE=/usr/bin/kdm
29538 + PIDFILE=/var/run/kdm.pid
29539 + ;;
29540 + entrance*)
29541 + EXE=/usr/sbin/entranced
29542 + PIDFILE=/var/lib/entranced.pid
29543 + ;;
29544 + gdm|gnome)
29545 + EXE=/usr/bin/gdm
29546 + [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
29547 + PIDFILE=/var/run/gdm.pid
29548 + ;;
29549 + wdm)
29550 + EXE=/usr/bin/wdm
29551 + PIDFILE=
29552 + ;;
29553 + gpe)
29554 + EXE=/usr/bin/gpe-dm
29555 + PIDFILE=/var/run/gpe-dm.pid
29556 + ;;
29557 + lxdm)
29558 + EXE=/usr/sbin/lxdm-binary
29559 + PIDFILE=/var/run/lxdm.pid
29560 + START_STOP_ARGS="--background"
29561 + ;;
29562 + lightdm)
29563 + EXE=/usr/sbin/lightdm
29564 + PIDFILE=/var/run/lightdm.pid
29565 + START_STOP_ARGS="--background"
29566 + ;;
29567 + *)
29568 + # first find out if there is such executable
29569 + EXE="$(command -v ${MY_XDM} 2>/dev/null)"
29570 + PIDFILE="/var/run/${MY_XDM}.pid"
29571 +
29572 + # warn user that he is doing sick things if the exe was not found
29573 + if [ -z "${EXE}" ]; then
29574 + echo "ERROR: Your XDM value is invalid."
29575 + echo " No ${MY_XDM} executable could be found on your system."
29576 + fi
29577 + ;;
29578 + esac
29579 +
29580 + if ! [ -x "${EXE}" ]; then
29581 + EXE=/usr/bin/xdm
29582 + PIDFILE=/var/run/xdm.pid
29583 + if ! [ -x "/usr/bin/xdm" ]; then
29584 + echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
29585 + echo " or install x11-apps/xdm package"
29586 + eend 255
29587 + fi
29588 + fi
29589 +}
29590 +
29591 +# Check to see if something is defined on our VT
29592 +vtstatic() {
29593 + if [ -e /etc/inittab ] ; then
29594 + grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
29595 + elif [ -e /etc/ttys ] ; then
29596 + grep -q "^ttyv$(($1 - 1))" /etc/ttys
29597 + else
29598 + return 1
29599 + fi
29600 +}
29601 +
29602 +start() {
29603 + local EXE NAME PIDFILE
29604 + setup_dm
29605 +
29606 + if [ -f /etc/.noxdm ]; then
29607 + einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
29608 + rm /etc/.noxdm
29609 + return 0
29610 + fi
29611 +
29612 + ebegin "Setting up ${EXE##*/}"
29613 +
29614 + # save the prefered DM
29615 + save_options "service" "${EXE}"
29616 + save_options "name" "${NAME}"
29617 + save_options "pidfile" "${PIDFILE}"
29618 + save_options "start_stop_args" "${START_STOP_ARGS}"
29619 +
29620 + if [ -n "${CHECKVT-y}" ] ; then
29621 + if vtstatic "${CHECKVT:-7}" ; then
29622 + if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
29623 + ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
29624 + telinit a >/dev/null 2>&1
29625 + return 0
29626 + else
29627 + eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
29628 + return 1
29629 + fi
29630 + fi
29631 + fi
29632 +
29633 + /etc/X11/startDM.sh
29634 + eend 0
29635 +}
29636 +
29637 +stop() {
29638 + local curvt retval
29639 +
29640 + retval=0
29641 + if [ -t 0 ]; then
29642 + if type fgconsole >/dev/null 2>&1; then
29643 + curvt=$(fgconsole 2>/dev/null)
29644 + else
29645 + curvt=$(tty)
29646 + case "${curvt}" in
29647 + /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
29648 + *) curvt= ;;
29649 + esac
29650 + fi
29651 + fi
29652 + local myexe myname mypidfile myservice
29653 + myexe=$(get_options "service")
29654 + myname=$(get_options "name")
29655 + mypidfile=$(get_options "pidfile")
29656 + myservice=${myexe##*/}
29657 +
29658 + [ -z "${myexe}" ] && return 0
29659 +
29660 + ebegin "Stopping ${myservice}"
29661 +
29662 + if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
29663 + start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
29664 + ${mypidfile:+--pidfile} ${mypidfile} \
29665 + ${myname:+--name} ${myname}
29666 + retval=${?}
29667 + fi
29668 +
29669 + # switch back to original vt
29670 + if [ -n "${curvt}" ]; then
29671 + if type chvt >/dev/null 2>&1; then
29672 + chvt "${curvt}"
29673 + else
29674 + vidcontrol -s "$((curvt + 1))"
29675 + fi
29676 + fi
29677 +
29678 + eend ${retval} "Error stopping ${myservice}"
29679 + return ${retval}
29680 +}
29681 +
29682 +# vim: set ts=4 :
29683
29684 diff --git a/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch b/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
29685 new file mode 100644
29686 index 0000000..66e77f6
29687 --- /dev/null
29688 +++ b/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
29689 @@ -0,0 +1,22 @@
29690 +diff --git a/os/utils.c b/os/utils.c
29691 +index e8ecb71..18ff1ca 100644
29692 +--- a/os/utils.c
29693 ++++ b/os/utils.c
29694 +@@ -297,7 +297,7 @@ LockServer(void)
29695 + FatalError("Could not create lock file in %s\n", tmp);
29696 + (void) sprintf(pid_str, "%10ld\n", (long)getpid());
29697 + (void) write(lfd, pid_str, 11);
29698 +- (void) chmod(tmp, 0444);
29699 ++ (void) fchmod(lfd, 0444);
29700 + (void) close(lfd);
29701 +
29702 + /*
29703 +@@ -318,7 +318,7 @@ LockServer(void)
29704 + /*
29705 + * Read the pid from the existing file
29706 + */
29707 +- lfd = open(LockFile, O_RDONLY);
29708 ++ lfd = open(LockFile, O_RDONLY|O_NOFOLLOW);
29709 + if (lfd < 0) {
29710 + unlink(tmp);
29711 + FatalError("Can't read lock file %s\n", LockFile);
29712
29713 diff --git a/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch b/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch
29714 new file mode 100644
29715 index 0000000..facb972
29716 --- /dev/null
29717 +++ b/x11-base/xorg-server/files/xorg-server-1.11-disable-tests-without-ddx.patch
29718 @@ -0,0 +1,64 @@
29719 +diff -ur a/test/Makefile.am b/test/Makefile.am
29720 +--- a/test/Makefile.am 2011-07-15 15:26:40.000000000 +0200
29721 ++++ b/test/Makefile.am 2012-01-02 01:03:15.232740535 +0100
29722 +@@ -1,21 +1,32 @@
29723 + if ENABLE_UNIT_TESTS
29724 + if HAVE_LD_WRAP
29725 +-SUBDIRS= . xi2
29726 +-noinst_PROGRAMS = xkb input xtest list misc fixes
29727 ++SUBDIRS= .
29728 ++noinst_PROGRAMS = list
29729 ++if XORG
29730 ++# Tests that require at least some DDX functions in order to fully link
29731 ++# For now, requires xf86 ddx, could be adjusted to use another
29732 ++SUBDIRS += xi2
29733 ++noinst_PROGRAMS += xkb input xtest misc fixes
29734 ++endif
29735 + check_LTLIBRARIES = libxservertest.la
29736 +
29737 + TESTS=$(noinst_PROGRAMS)
29738 +
29739 + AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
29740 +-INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser \
29741 +- -I$(top_srcdir)/miext/cw -I$(top_srcdir)/hw/xfree86/ddc \
29742 ++INCLUDES = $(XORG_INCS) -I$(top_srcdir)/miext/cw
29743 ++if XORG
29744 ++INCLUDES += -I$(top_srcdir)/hw/xfree86/parser \
29745 ++ -I$(top_srcdir)/hw/xfree86/ddc \
29746 + -I$(top_srcdir)/hw/xfree86/i2c -I$(top_srcdir)/hw/xfree86/modes \
29747 + -I$(top_srcdir)/hw/xfree86/ramdac
29748 ++endif
29749 + TEST_LDADD=libxservertest.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS)
29750 +
29751 ++if XORG
29752 + if SPECIAL_DTRACE_OBJECTS
29753 + TEST_LDADD += $(OS_LIB) $(DIX_LIB)
29754 + endif
29755 ++endif
29756 +
29757 + xkb_LDADD=$(TEST_LDADD)
29758 + input_LDADD=$(TEST_LDADD)
29759 +@@ -24,9 +35,10 @@
29760 + misc_LDADD=$(TEST_LDADD)
29761 + fixes_LDADD=$(TEST_LDADD)
29762 +
29763 ++libxservertest_la_LIBADD = $(XSERVER_LIBS)
29764 ++if XORG
29765 + nodist_libxservertest_la_SOURCES = $(top_builddir)/hw/xfree86/sdksyms.c
29766 +-libxservertest_la_LIBADD = \
29767 +- $(XSERVER_LIBS) \
29768 ++libxservertest_la_LIBADD += \
29769 + $(top_builddir)/hw/xfree86/loader/libloader.la \
29770 + $(top_builddir)/hw/xfree86/os-support/libxorgos.la \
29771 + $(top_builddir)/hw/xfree86/common/libcommon.la \
29772 +@@ -36,7 +48,9 @@
29773 + $(top_builddir)/hw/xfree86/ramdac/libramdac.la \
29774 + $(top_builddir)/hw/xfree86/ddc/libddc.la \
29775 + $(top_builddir)/hw/xfree86/i2c/libi2c.la \
29776 +- $(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la \
29777 ++ $(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la
29778 ++endif
29779 ++libxservertest_la_LIBADD += \
29780 + $(top_builddir)/mi/libmi.la \
29781 + $(top_builddir)/os/libos.la \
29782 + @XORG_LIBS@
29783
29784 diff --git a/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch b/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch
29785 new file mode 100644
29786 index 0000000..d548c89
29787 --- /dev/null
29788 +++ b/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch
29789 @@ -0,0 +1,27 @@
29790 +From 3ce102c362cadcd7087bdcf48440d9498eaf77d0 Mon Sep 17 00:00:00 2001
29791 +From: Peter Hutterer <peter.hutterer@×××××.net>
29792 +Date: Thu, 05 Jan 2012 12:08:01 +0000
29793 +Subject: dix: on PointerRootWin send a FocusIn to the sprite window too
29794 +
29795 +XTS XSetDeviceFocus-7
29796 +
29797 +Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net>
29798 +Reviewed-by: Chase Douglas <chase.douglas@×××××××××.com>
29799 +---
29800 +diff --git a/dix/enterleave.c b/dix/enterleave.c
29801 +index 2b8c7c5..89a82ab 100644
29802 +--- a/dix/enterleave.c
29803 ++++ b/dix/enterleave.c
29804 +@@ -1299,7 +1299,10 @@ DeviceFocusEvents(DeviceIntPtr dev,
29805 + for (i = 0; i < nscreens; i++)
29806 + DeviceFocusEvent(dev, XI_FocusIn, mode, in, screenInfo.screens[i]->root);
29807 + if (to == PointerRootWin)
29808 ++ {
29809 + DeviceFocusInEvents(dev, GetCurrentRootWindow(dev), sprite->win, mode, NotifyPointer);
29810 ++ DeviceFocusEvent(dev, XI_FocusIn, mode, NotifyPointer, sprite->win);
29811 ++ }
29812 + }
29813 + else
29814 + {
29815 +--
29816 +cgit v0.9.0.2-2-gbebe
29817
29818 diff --git a/x11-base/xorg-server/files/xorg-server-1.11-dix-send-focus-events.patch b/x11-base/xorg-server/files/xorg-server-1.11-dix-send-focus-events.patch
29819 new file mode 100644
29820 index 0000000..e9ba0a7
29821 --- /dev/null
29822 +++ b/x11-base/xorg-server/files/xorg-server-1.11-dix-send-focus-events.patch
29823 @@ -0,0 +1,48 @@
29824 +From a125aabda3a5cf27aa98cb61f16e49280b66f451 Mon Sep 17 00:00:00 2001
29825 +From: Peter Hutterer <peter.hutterer@×××××.net>
29826 +Date: Thu, 05 Jan 2012 12:02:51 +0000
29827 +Subject: dix: send focus events to the immediate parent (#44079)
29828 +
29829 +For a transition from windows A to B, A->parent did not receive an event.
29830 +DeviceFocusOutEvents sends to windows ]from, to[, so start with the actual
29831 +window, not it's parent.
29832 +
29833 +X.Org Bug 44079 <http://bugs.freedesktop.org/show_bug.cgi?id=44079>
29834 +
29835 +Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net>
29836 +Reviewed-by: Chase Douglas <chase.douglas@×××××××××.com>
29837 +Reviewed-by: Keith Packard <keithp@××××××.com>
29838 +---
29839 +diff --git a/dix/enterleave.c b/dix/enterleave.c
29840 +index a39e640..2b8c7c5 100644
29841 +--- a/dix/enterleave.c
29842 ++++ b/dix/enterleave.c
29843 +@@ -1292,7 +1292,7 @@ DeviceFocusEvents(DeviceIntPtr dev,
29844 + NotifyPointer);
29845 + DeviceFocusEvent(dev, XI_FocusOut, mode, NotifyNonlinear, from);
29846 + /* next call catches the root too, if the screen changed */
29847 +- DeviceFocusOutEvents(dev, from->parent, NullWindow, mode,
29848 ++ DeviceFocusOutEvents(dev, from, NullWindow, mode,
29849 + NotifyNonlinearVirtual);
29850 + }
29851 + /* Notify all the roots */
29852 +@@ -1321,7 +1321,7 @@ DeviceFocusEvents(DeviceIntPtr dev,
29853 + if (IsParent(to, from))
29854 + {
29855 + DeviceFocusEvent(dev, XI_FocusOut, mode, NotifyAncestor, from);
29856 +- DeviceFocusOutEvents(dev, from->parent, to, mode,
29857 ++ DeviceFocusOutEvents(dev, from, to, mode,
29858 + NotifyVirtual);
29859 + DeviceFocusEvent(dev, XI_FocusIn, mode, NotifyInferior, to);
29860 + if ((IsParent(to, sprite->win)) &&
29861 +@@ -1353,7 +1353,7 @@ DeviceFocusEvents(DeviceIntPtr dev,
29862 + NotifyPointer);
29863 + DeviceFocusEvent(dev, XI_FocusOut, mode, NotifyNonlinear, from);
29864 + if (from->parent != NullWindow)
29865 +- DeviceFocusOutEvents(dev, from->parent, common, mode,
29866 ++ DeviceFocusOutEvents(dev, from, common, mode,
29867 + NotifyNonlinearVirtual);
29868 + if (to->parent != NullWindow)
29869 + DeviceFocusInEvents(dev, common, to, mode, NotifyNonlinearVirtual);
29870 +--
29871 +cgit v0.9.0.2-2-gbebe
29872
29873 diff --git a/x11-base/xorg-server/files/xorg-server-1.11-log-format-fix.patch b/x11-base/xorg-server/files/xorg-server-1.11-log-format-fix.patch
29874 new file mode 100644
29875 index 0000000..61e7eae
29876 --- /dev/null
29877 +++ b/x11-base/xorg-server/files/xorg-server-1.11-log-format-fix.patch
29878 @@ -0,0 +1,441 @@
29879 +Description: extreme backport of upstream log format fixes (CVE-2012-2118).
29880 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/996250
29881 +Origin: http://patchwork.freedesktop.org/patch/10001/
29882 +
29883 +Index: xorg-server-1.11.4/os/log.c
29884 +===================================================================
29885 +--- xorg-server-1.11.4.orig/os/log.c 2012-05-06 11:03:17.621808123 -0700
29886 ++++ xorg-server-1.11.4/os/log.c 2012-05-06 11:03:18.057814189 -0700
29887 +@@ -167,6 +167,12 @@
29888 + #ifndef X_NOT_IMPLEMENTED_STRING
29889 + #define X_NOT_IMPLEMENTED_STRING "(NI)"
29890 + #endif
29891 ++#ifndef X_DEBUG_STRING
29892 ++#define X_DEBUG_STRING "(DB)"
29893 ++#endif
29894 ++#ifndef X_NONE_STRING
29895 ++#define X_NONE_STRING ""
29896 ++#endif
29897 +
29898 + /*
29899 + * LogInit is called to start logging to a file. It is also called (with
29900 +@@ -223,7 +229,7 @@
29901 + * needed.
29902 + */
29903 + if (saveBuffer && bufferSize > 0) {
29904 +- free(saveBuffer); /* Must be free(), not free() */
29905 ++ free(saveBuffer);
29906 + saveBuffer = NULL;
29907 + bufferSize = 0;
29908 + }
29909 +@@ -265,36 +271,19 @@
29910 + }
29911 +
29912 + /* This function does the actual log message writes. */
29913 +-
29914 +-void
29915 +-LogVWrite(int verb, const char *f, va_list args)
29916 ++static void
29917 ++LogSWrite(int verb, const char *buf, size_t len, Bool end_line)
29918 + {
29919 +- static char tmpBuffer[1024];
29920 +- int len = 0;
29921 + static Bool newline = TRUE;
29922 +
29923 +- if (newline) {
29924 +- sprintf(tmpBuffer, "[%10.3f] ", GetTimeInMillis() / 1000.0);
29925 +- len = strlen(tmpBuffer);
29926 +- if (logFile)
29927 +- fwrite(tmpBuffer, len, 1, logFile);
29928 +- }
29929 +-
29930 +- /*
29931 +- * Since a va_list can only be processed once, write the string to a
29932 +- * buffer, and then write the buffer out to the appropriate output
29933 +- * stream(s).
29934 +- */
29935 +- if (verb < 0 || logFileVerbosity >= verb || logVerbosity >= verb) {
29936 +- vsnprintf(tmpBuffer, sizeof(tmpBuffer), f, args);
29937 +- len = strlen(tmpBuffer);
29938 +- }
29939 +- newline = (tmpBuffer[len-1] == '\n');
29940 +- if ((verb < 0 || logVerbosity >= verb) && len > 0)
29941 +- fwrite(tmpBuffer, len, 1, stderr);
29942 +- if ((verb < 0 || logFileVerbosity >= verb) && len > 0) {
29943 ++ if (verb < 0 || logVerbosity >= verb)
29944 ++ fwrite(buf, len, 1, stderr);
29945 ++ if (verb < 0 || logFileVerbosity >= verb) {
29946 + if (logFile) {
29947 +- fwrite(tmpBuffer, len, 1, logFile);
29948 ++ if (newline)
29949 ++ fprintf(logFile, "[%10.3f] ", GetTimeInMillis() / 1000.0);
29950 ++ newline = end_line;
29951 ++ fwrite(buf, len, 1, logFile);
29952 + if (logFlush) {
29953 + fflush(logFile);
29954 + #ifndef WIN32
29955 +@@ -311,13 +300,19 @@
29956 + FatalError("realloc() failed while saving log messages\n");
29957 + }
29958 + bufferUnused -= len;
29959 +- memcpy(saveBuffer + bufferPos, tmpBuffer, len);
29960 ++ memcpy(saveBuffer + bufferPos, buf, len);
29961 + bufferPos += len;
29962 + }
29963 + }
29964 + }
29965 +
29966 + void
29967 ++LogVWrite(int verb, const char *f, va_list args)
29968 ++{
29969 ++ return LogVMessageVerb(X_NONE, verb, f, args);
29970 ++}
29971 ++
29972 ++void
29973 + LogWrite(int verb, const char *f, ...)
29974 + {
29975 + va_list args;
29976 +@@ -327,60 +322,75 @@
29977 + va_end(args);
29978 + }
29979 +
29980 +-void
29981 +-LogVMessageVerb(MessageType type, int verb, const char *format, va_list args)
29982 ++/* Returns the Message Type string to prepend to a logging message, or NULL
29983 ++ * if the message will be dropped due to insufficient verbosity. */
29984 ++static const char *
29985 ++LogMessageTypeVerbString(MessageType type, int verb)
29986 + {
29987 +- const char *s = X_UNKNOWN_STRING;
29988 +- char tmpBuf[1024];
29989 ++ if (type == X_ERROR)
29990 ++ verb = 0;
29991 +
29992 +- /* Ignore verbosity for X_ERROR */
29993 +- if (logVerbosity >= verb || logFileVerbosity >= verb || type == X_ERROR) {
29994 +- switch (type) {
29995 +- case X_PROBED:
29996 +- s = X_PROBE_STRING;
29997 +- break;
29998 +- case X_CONFIG:
29999 +- s = X_CONFIG_STRING;
30000 +- break;
30001 +- case X_DEFAULT:
30002 +- s = X_DEFAULT_STRING;
30003 +- break;
30004 +- case X_CMDLINE:
30005 +- s = X_CMDLINE_STRING;
30006 +- break;
30007 +- case X_NOTICE:
30008 +- s = X_NOTICE_STRING;
30009 +- break;
30010 +- case X_ERROR:
30011 +- s = X_ERROR_STRING;
30012 +- if (verb > 0)
30013 +- verb = 0;
30014 +- break;
30015 +- case X_WARNING:
30016 +- s = X_WARNING_STRING;
30017 +- break;
30018 +- case X_INFO:
30019 +- s = X_INFO_STRING;
30020 +- break;
30021 +- case X_NOT_IMPLEMENTED:
30022 +- s = X_NOT_IMPLEMENTED_STRING;
30023 +- break;
30024 +- case X_UNKNOWN:
30025 +- s = X_UNKNOWN_STRING;
30026 +- break;
30027 +- case X_NONE:
30028 +- s = NULL;
30029 +- break;
30030 +- }
30031 ++ if (logVerbosity < verb && logFileVerbosity < verb)
30032 ++ return NULL;
30033 +
30034 +- /* if s is not NULL we need a space before format */
30035 +- snprintf(tmpBuf, sizeof(tmpBuf), "%s%s%s", s ? s : "",
30036 +- s ? " " : "",
30037 +- format);
30038 +- LogVWrite(verb, tmpBuf, args);
30039 ++ switch (type) {
30040 ++ case X_PROBED:
30041 ++ return X_PROBE_STRING;
30042 ++ case X_CONFIG:
30043 ++ return X_CONFIG_STRING;
30044 ++ case X_DEFAULT:
30045 ++ return X_DEFAULT_STRING;
30046 ++ case X_CMDLINE:
30047 ++ return X_CMDLINE_STRING;
30048 ++ case X_NOTICE:
30049 ++ return X_NOTICE_STRING;
30050 ++ case X_ERROR:
30051 ++ return X_ERROR_STRING;
30052 ++ case X_WARNING:
30053 ++ return X_WARNING_STRING;
30054 ++ case X_INFO:
30055 ++ return X_INFO_STRING;
30056 ++ case X_NOT_IMPLEMENTED:
30057 ++ return X_NOT_IMPLEMENTED_STRING;
30058 ++ case X_UNKNOWN:
30059 ++ return X_UNKNOWN_STRING;
30060 ++ case X_NONE:
30061 ++ return X_NONE_STRING;
30062 ++ case X_DEBUG:
30063 ++ return X_DEBUG_STRING;
30064 ++ default:
30065 ++ return X_UNKNOWN_STRING;
30066 + }
30067 + }
30068 +
30069 ++void
30070 ++LogVMessageVerb(MessageType type, int verb, const char *format, va_list args)
30071 ++{
30072 ++ const char *type_str;
30073 ++ char buf[1024];
30074 ++ const size_t size = sizeof(buf);
30075 ++ Bool newline;
30076 ++ size_t len = 0;
30077 ++
30078 ++ type_str = LogMessageTypeVerbString(type, verb);
30079 ++ if (!type_str)
30080 ++ return;
30081 ++
30082 ++ /* if type_str is not "", prepend it and ' ', to message */
30083 ++ if (type_str[0] != '\0')
30084 ++ len += Xscnprintf(&buf[len], size - len, "%s ", type_str);
30085 ++
30086 ++ if (size - len > 1)
30087 ++ len += Xvscnprintf(&buf[len], size - len, format, args);
30088 ++
30089 ++ /* Force '\n' at end of truncated line */
30090 ++ if (size - len == 1)
30091 ++ buf[len - 1] = '\n';
30092 ++
30093 ++ newline = (buf[len - 1] == '\n');
30094 ++ LogSWrite(verb, buf, len, newline);
30095 ++}
30096 ++
30097 + /* Log message with verbosity level specified. */
30098 + void
30099 + LogMessageVerb(MessageType type, int verb, const char *format, ...)
30100 +@@ -404,6 +414,49 @@
30101 + }
30102 +
30103 + void
30104 ++LogVHdrMessageVerb(MessageType type, int verb, const char *msg_format,
30105 ++ va_list msg_args, const char *hdr_format, va_list hdr_args)
30106 ++{
30107 ++ const char *type_str;
30108 ++ char buf[1024];
30109 ++ const size_t size = sizeof(buf);
30110 ++ Bool newline;
30111 ++ size_t len = 0;
30112 ++
30113 ++ type_str = LogMessageTypeVerbString(type, verb);
30114 ++ if (!type_str)
30115 ++ return;
30116 ++
30117 ++ /* if type_str is not "", prepend it and ' ', to message */
30118 ++ if (type_str[0] != '\0')
30119 ++ len += Xscnprintf(&buf[len], size - len, "%s ", type_str);
30120 ++
30121 ++ if (hdr_format && size - len > 1)
30122 ++ len += Xvscnprintf(&buf[len], size - len, hdr_format, hdr_args);
30123 ++
30124 ++ if (msg_format && size - len > 1)
30125 ++ len += Xvscnprintf(&buf[len], size - len, msg_format, msg_args);
30126 ++
30127 ++ /* Force '\n' at end of truncated line */
30128 ++ if (size - len == 1)
30129 ++ buf[len - 1] = '\n';
30130 ++
30131 ++ newline = (buf[len - 1] == '\n');
30132 ++ LogSWrite(verb, buf, len, newline);
30133 ++}
30134 ++
30135 ++void
30136 ++LogHdrMessageVerb(MessageType type, int verb, const char *msg_format,
30137 ++ va_list msg_args, const char *hdr_format, ...)
30138 ++{
30139 ++ va_list hdr_args;
30140 ++
30141 ++ va_start(hdr_args, hdr_format);
30142 ++ LogVHdrMessageVerb(type, verb, msg_format, msg_args, hdr_format, hdr_args);
30143 ++ va_end(hdr_args);
30144 ++}
30145 ++
30146 ++void
30147 + AbortServer(void) _X_NORETURN;
30148 + void
30149 + SigAbortServer(int signo) _X_NORETURN;
30150 +Index: xorg-server-1.11.4/include/Xprintf.h
30151 +===================================================================
30152 +--- xorg-server-1.11.4.orig/include/Xprintf.h 2012-05-06 10:32:42.436348011 -0700
30153 ++++ xorg-server-1.11.4/include/Xprintf.h 2012-05-06 11:03:18.057814189 -0700
30154 +@@ -66,4 +66,16 @@
30155 + # define vasprintf Xvasprintf
30156 + #endif
30157 +
30158 ++/*
30159 ++ * These functions provide a portable implementation of the linux kernel
30160 ++ * scnprintf & vscnprintf routines that return the number of bytes actually
30161 ++ * copied during a snprintf, (excluding the final '\0').
30162 ++ */
30163 ++extern _X_EXPORT int
30164 ++Xscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, ...)
30165 ++_X_ATTRIBUTE_PRINTF(3,4);
30166 ++extern _X_EXPORT int
30167 ++Xvscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, va_list va)
30168 ++_X_ATTRIBUTE_PRINTF(3,0);
30169 ++
30170 + #endif /* XPRINTF_H */
30171 +Index: xorg-server-1.11.4/os/xprintf.c
30172 +===================================================================
30173 +--- xorg-server-1.11.4.orig/os/xprintf.c 2012-05-06 10:32:42.472348510 -0700
30174 ++++ xorg-server-1.11.4/os/xprintf.c 2012-05-06 11:03:18.057814189 -0700
30175 +@@ -182,6 +182,50 @@
30176 + return size;
30177 + }
30178 +
30179 ++/**
30180 ++ * Varargs snprintf that returns the actual number of bytes (excluding final
30181 ++ * '\0') that were copied into the buffer.
30182 ++ * This is opposed to the normal sprintf() usually returns the number of bytes
30183 ++ * that would have been written.
30184 ++ *
30185 ++ * @param s buffer to copy into
30186 ++ * @param n size of buffer s
30187 ++ * @param format printf style format string
30188 ++ * @param va variable argument list
30189 ++ * @return number of bytes actually copied, excluding final '\0'
30190 ++ */
30191 ++int
30192 ++Xvscnprintf(char *s, int n, const char *format, va_list args)
30193 ++{
30194 ++ int x;
30195 ++ if (n == 0)
30196 ++ return 0;
30197 ++ x = vsnprintf(s, n , format, args);
30198 ++ return (x >= n) ? (n - 1) : x;
30199 ++}
30200 ++
30201 ++/**
30202 ++ * snprintf that returns the actual number of bytes (excluding final '\0') that
30203 ++ * were copied into the buffer.
30204 ++ * This is opposed to the normal sprintf() usually returns the number of bytes
30205 ++ * that would have been written.
30206 ++ *
30207 ++ * @param s buffer to copy into
30208 ++ * @param n size of buffer s
30209 ++ * @param format printf style format string
30210 ++ * @param ... arguments for specified format
30211 ++ * @return number of bytes actually copied, excluding final '\0'
30212 ++ */
30213 ++int Xscnprintf(char *s, int n, const char *format, ...)
30214 ++{
30215 ++ int x;
30216 ++ va_list ap;
30217 ++ va_start(ap, format);
30218 ++ x = Xvscnprintf(s, n, format, ap);
30219 ++ va_end(ap);
30220 ++ return x;
30221 ++}
30222 ++
30223 + /* Old api, now deprecated, may be removed in the future */
30224 + char *
30225 + Xvprintf(const char *format, va_list va)
30226 +Index: xorg-server-1.11.4/hw/xfree86/common/xf86Helper.c
30227 +===================================================================
30228 +--- xorg-server-1.11.4.orig/hw/xfree86/common/xf86Helper.c 2012-05-06 10:32:42.488348731 -0700
30229 ++++ xorg-server-1.11.4/hw/xfree86/common/xf86Helper.c 2012-05-06 11:03:18.057814189 -0700
30230 +@@ -1036,25 +1036,13 @@
30231 + xf86VDrvMsgVerb(int scrnIndex, MessageType type, int verb, const char *format,
30232 + va_list args)
30233 + {
30234 +- char *tmpFormat;
30235 +-
30236 + /* Prefix the scrnIndex name to the format string. */
30237 + if (scrnIndex >= 0 && scrnIndex < xf86NumScreens &&
30238 +- xf86Screens[scrnIndex]->name) {
30239 +- tmpFormat = malloc(strlen(format) +
30240 +- strlen(xf86Screens[scrnIndex]->name) +
30241 +- PREFIX_SIZE + 1);
30242 +- if (!tmpFormat)
30243 +- return;
30244 +-
30245 +- snprintf(tmpFormat, PREFIX_SIZE + 1, "%s(%d): ",
30246 +- xf86Screens[scrnIndex]->name, scrnIndex);
30247 +-
30248 +- strcat(tmpFormat, format);
30249 +- LogVMessageVerb(type, verb, tmpFormat, args);
30250 +- free(tmpFormat);
30251 +- } else
30252 +- LogVMessageVerb(type, verb, format, args);
30253 ++ xf86Screens[scrnIndex]->name)
30254 ++ LogHdrMessageVerb(type, verb, format, args, "%s(%d): ",
30255 ++ xf86Screens[scrnIndex]->name, scrnIndex);
30256 ++ else
30257 ++ LogVMessageVerb(type, verb, format, args);
30258 + }
30259 + #undef PREFIX_SIZE
30260 +
30261 +@@ -1087,15 +1075,18 @@
30262 + xf86VIDrvMsgVerb(InputInfoPtr dev, MessageType type, int verb, const char *format,
30263 + va_list args)
30264 + {
30265 +- char *msg;
30266 ++ const char *driverName = NULL;
30267 ++ const char *deviceName = NULL;
30268 +
30269 +- if (asprintf(&msg, "%s: %s: %s", dev->drv->driverName, dev->name, format)
30270 +- == -1) {
30271 +- LogVMessageVerb(type, verb, "%s", args);
30272 +- } else {
30273 +- LogVMessageVerb(type, verb, msg, args);
30274 +- free(msg);
30275 ++ /* Prefix driver and device names to formatted message. */
30276 ++ if (dev) {
30277 ++ deviceName = dev->name;
30278 ++ if (dev->drv)
30279 ++ driverName = dev->drv->driverName;
30280 + }
30281 ++
30282 ++ LogHdrMessageVerb(type, verb, format, args, "%s: %s: ", driverName,
30283 ++ deviceName);
30284 + }
30285 +
30286 + /* Print input driver message, with verbose level specified directly */
30287 +Index: xorg-server-1.11.4/include/os.h
30288 +===================================================================
30289 +--- xorg-server-1.11.4.orig/include/os.h 2012-05-06 11:03:17.621808123 -0700
30290 ++++ xorg-server-1.11.4/include/os.h 2012-05-06 11:03:29.353971366 -0700
30291 +@@ -514,6 +514,7 @@
30292 + X_INFO, /* Informational message */
30293 + X_NONE, /* No prefix */
30294 + X_NOT_IMPLEMENTED, /* Not implemented */
30295 ++ X_DEBUG, /* Debug message */
30296 + X_UNKNOWN = -1 /* unknown -- this must always be last */
30297 + } MessageType;
30298 +
30299 +@@ -528,6 +529,20 @@
30300 + ...) _X_ATTRIBUTE_PRINTF(3,4);
30301 + extern _X_EXPORT void LogMessage(MessageType type, const char *format, ...)
30302 + _X_ATTRIBUTE_PRINTF(2,3);
30303 ++
30304 ++extern _X_EXPORT void
30305 ++LogVHdrMessageVerb(MessageType type, int verb,
30306 ++ const char *msg_format, va_list msg_args,
30307 ++ const char *hdr_format, va_list hdr_args)
30308 ++_X_ATTRIBUTE_PRINTF(3, 0)
30309 ++_X_ATTRIBUTE_PRINTF(5, 0);
30310 ++extern _X_EXPORT void
30311 ++LogHdrMessageVerb(MessageType type, int verb,
30312 ++ const char *msg_format, va_list msg_args,
30313 ++ const char *hdr_format, ...)
30314 ++_X_ATTRIBUTE_PRINTF(3, 0)
30315 ++_X_ATTRIBUTE_PRINTF(5, 6);
30316 ++
30317 + extern _X_EXPORT void FreeAuditTimer(void);
30318 + extern _X_EXPORT void AuditF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2);
30319 + extern _X_EXPORT void VAuditF(const char *f, va_list args) _X_ATTRIBUTE_PRINTF(1,0);
30320
30321 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch b/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch
30322 new file mode 100644
30323 index 0000000..df43dbd
30324 --- /dev/null
30325 +++ b/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch
30326 @@ -0,0 +1,11 @@
30327 +diff -ur a/configure.ac b/configure.ac
30328 +--- a/configure.ac 2011-10-31 19:40:02.000000000 +0100
30329 ++++ b/configure.ac 2011-10-31 19:41:02.372745481 +0100
30330 +@@ -1624,7 +1624,6 @@
30331 + linux_alpha=yes
30332 + ;;
30333 + i*86|amd64*|x86_64*|ia64*)
30334 +- linux_acpi="yes"
30335 + ;;
30336 + *)
30337 + ;;
30338
30339 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch b/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch
30340 new file mode 100644
30341 index 0000000..8fedc32
30342 --- /dev/null
30343 +++ b/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch
30344 @@ -0,0 +1,35 @@
30345 +Patch by Torsten Kaiser <x11@×××××××××××××.org>
30346 +taken from https://bugs.freedesktop.org/show_bug.cgi?id=45623
30347 +
30348 +diff -ur a/hw/xfree86/modes/xf86EdidModes.c b/hw/xfree86/modes/xf86EdidModes.c
30349 +--- a/hw/xfree86/modes/xf86EdidModes.c 2012-05-17 19:09:03.000000000 +0200
30350 ++++ b/hw/xfree86/modes/xf86EdidModes.c 2012-05-30 01:27:06.000000000 +0200
30351 +@@ -723,7 +723,13 @@
30352 + 1920, 1200, 75, 0}, {
30353 + 1920, 1200, 85, 0}, {
30354 + 1920, 1440, 60, 0}, {
30355 +-1920, 1440, 75, 0},};
30356 ++1920, 1440, 75, 0},
30357 ++ /* fill up last byte */
30358 ++ { 0,0,0,0 },
30359 ++ { 0,0,0,0 },
30360 ++ { 0,0,0,0 },
30361 ++ { 0,0,0,0 },
30362 ++};
30363 +
30364 + static DisplayModePtr
30365 + DDCModesFromEstIII(unsigned char *est)
30366 +@@ -732,10 +738,11 @@
30367 + int i, j, m;
30368 +
30369 + for (i = 0; i < 6; i++) {
30370 +- for (j = 7; j > 0; j--) {
30371 ++ for (j = 7; j >= 0; j--) {
30372 + if (est[i] & (1 << j)) {
30373 + m = (i * 8) + (7 - j);
30374 +- modes = xf86ModesAdd(modes,
30375 ++ if (EstIIIModes[m].w)
30376 ++ modes = xf86ModesAdd(modes,
30377 + FindDMTMode(EstIIIModes[m].w,
30378 + EstIIIModes[m].h,
30379 + EstIIIModes[m].r,
30380
30381 diff --git a/x11-base/xorg-server/files/xorg-server-1.9-nouveau-default.patch b/x11-base/xorg-server/files/xorg-server-1.9-nouveau-default.patch
30382 new file mode 100644
30383 index 0000000..2b05967
30384 --- /dev/null
30385 +++ b/x11-base/xorg-server/files/xorg-server-1.9-nouveau-default.patch
30386 @@ -0,0 +1,30 @@
30387 +diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
30388 +index 74016af..9c296f5 100644
30389 +--- a/hw/xfree86/common/xf86pciBus.c
30390 ++++ b/hw/xfree86/common/xf86pciBus.c
30391 +@@ -1118,7 +1118,23 @@ videoPtrToDriverList(struct pci_device *dev,
30392 + break;
30393 + case 0x102b: driverList[0] = "mga"; break;
30394 + case 0x10c8: driverList[0] = "neomagic"; break;
30395 +- case 0x10de: case 0x12d2: driverList[0] = "nv"; break;
30396 ++ case 0x10de: case 0x12d2:
30397 ++ switch (dev->device_id) {
30398 ++ /* NV1 */
30399 ++ case 0x0008:
30400 ++ case 0x0009:
30401 ++ driverList[0] = "vesa";
30402 ++ break;
30403 ++ /* NV3 */
30404 ++ case 0x0018:
30405 ++ case 0x0019:
30406 ++ driverList[0] = "nv";
30407 ++ break;
30408 ++ default:
30409 ++ driverList[0] = "nouveau";
30410 ++ break;
30411 ++ }
30412 ++ break;
30413 + case 0x1106: driverList[0] = "openchrome"; break;
30414 + case 0x1b36: driverList[0] = "qxl"; break;
30415 + case 0x1163: driverList[0] = "rendition"; break;
30416 +--
30417
30418 diff --git a/x11-base/xorg-server/files/xorg-server-disable-acpi.patch b/x11-base/xorg-server/files/xorg-server-disable-acpi.patch
30419 new file mode 100644
30420 index 0000000..cc80e6c
30421 --- /dev/null
30422 +++ b/x11-base/xorg-server/files/xorg-server-disable-acpi.patch
30423 @@ -0,0 +1,31 @@
30424 +From a8079882f1884edc62a9de28af915bd8b65dfbbe Mon Sep 17 00:00:00 2001
30425 +From: Adam Jackson <ajax@××××××.com>
30426 +Date: Wed, 11 Mar 2009 14:02:11 -0400
30427 +Subject: [PATCH] Don't build the ACPI code.
30428 +
30429 +No good can come of this.
30430 +---
30431 + configure.ac | 2 --
30432 + 1 files changed, 0 insertions(+), 2 deletions(-)
30433 +
30434 +diff --git a/configure.ac b/configure.ac
30435 +index 72ae67e..04716f8 100644
30436 +--- a/configure.ac
30437 ++++ b/configure.ac
30438 +@@ -1269,13 +1269,11 @@ if test "x$XORG" = xyes; then
30439 + case $host_cpu in
30440 + ia64*)
30441 + linux_ia64=yes
30442 +- linux_acpi="yes"
30443 + ;;
30444 + alpha*)
30445 + linux_alpha=yes
30446 + ;;
30447 + i*86|amd64*|x86_64*)
30448 +- linux_acpi="yes"
30449 + ;;
30450 + *)
30451 + ;;
30452 +--
30453 +1.6.1.3
30454 +
30455
30456 diff --git a/x11-base/xorg-server/files/xorg-server-glapi_c.patch b/x11-base/xorg-server/files/xorg-server-glapi_c.patch
30457 new file mode 100644
30458 index 0000000..e65a969
30459 --- /dev/null
30460 +++ b/x11-base/xorg-server/files/xorg-server-glapi_c.patch
30461 @@ -0,0 +1,78 @@
30462 +From 17d9e374721d6c8ee3f7f9cdc882f80127bdb57f Mon Sep 17 00:00:00 2001
30463 +From: Adam Jackson <ajax@××××××.com>
30464 +Date: Wed, 02 Mar 2011 18:21:39 +0000
30465 +Subject: glx: Lobotomize _glapi_get_proc_address
30466 +
30467 +This isn't a meaningful thing in the indirect glx loader, so just warn
30468 +if it ever happens and move on.
30469 +
30470 +But also, mark it PUBLIC, so if the driver does ever call it we merely
30471 +warn instead of aborting because ld.so can't find the symbol.
30472 +
30473 +Reviewed-by: Dave Airlie <airlied@××××××.com>
30474 +Signed-off-by: Adam Jackson <ajax@××××××.com>
30475 +---
30476 +diff --git a/glx/glapi.c b/glx/glapi.c
30477 +index 1814493..79ff6b1 100644
30478 +--- a/glx/glapi.c
30479 ++++ b/glx/glapi.c
30480 +@@ -54,6 +54,7 @@
30481 +
30482 + #include <dix-config.h>
30483 + #include <X11/Xfuncproto.h>
30484 ++#include <os.h>
30485 + #define PUBLIC _X_EXPORT
30486 +
30487 + #else
30488 +@@ -713,43 +714,15 @@ _glapi_add_dispatch( const char * const * function_names,
30489 + return offset;
30490 + }
30491 +
30492 +-/**
30493 +- * Return pointer to the named function. If the function name isn't found
30494 +- * in the name of static functions, try generating a new API entrypoint on
30495 +- * the fly with assembly language.
30496 ++/*
30497 ++ * glXGetProcAddress doesn't exist in the protocol, the drivers never call
30498 ++ * this themselves, and neither does the server. warn if it happens though.
30499 + */
30500 +-_glapi_proc
30501 ++PUBLIC _glapi_proc
30502 + _glapi_get_proc_address(const char *funcName)
30503 + {
30504 +- struct _glapi_function * entry;
30505 +- GLuint i;
30506 +-
30507 +-#ifdef MANGLE
30508 +- if (funcName[0] != 'm' || funcName[1] != 'g' || funcName[2] != 'l')
30509 +- return NULL;
30510 +-#else
30511 +- if (funcName[0] != 'g' || funcName[1] != 'l')
30512 +- return NULL;
30513 +-#endif
30514 +-
30515 +- /* search extension functions first */
30516 +- for (i = 0; i < NumExtEntryPoints; i++) {
30517 +- if (strcmp(ExtEntryTable[i].name, funcName) == 0) {
30518 +- return ExtEntryTable[i].dispatch_stub;
30519 +- }
30520 +- }
30521 +-
30522 +-#if !defined( XFree86Server ) && !defined( XGLServer )
30523 +- /* search static functions */
30524 +- {
30525 +- const _glapi_proc func = get_static_proc_address(funcName);
30526 +- if (func)
30527 +- return func;
30528 +- }
30529 +-#endif /* !defined( XFree86Server ) */
30530 +-
30531 +- entry = add_function_name(funcName);
30532 +- return (entry == NULL) ? NULL : entry->dispatch_stub;
30533 ++ ErrorF("_glapi_get_proc_address called!\n");
30534 ++ return NULL;
30535 + }
30536 +
30537 + /**
30538 +--
30539 +cgit v0.8.3-6-g21f6
30540
30541 diff --git a/x11-base/xorg-server/files/xorg-sets.conf b/x11-base/xorg-server/files/xorg-sets.conf
30542 new file mode 100644
30543 index 0000000..5cd8112
30544 --- /dev/null
30545 +++ b/x11-base/xorg-server/files/xorg-sets.conf
30546 @@ -0,0 +1,6 @@
30547 +# Rebuild all X11 modules (mostly useful after xorg-server ABI change).
30548 +[x11-module-rebuild]
30549 +class = portage.sets.dbapi.VariableSet
30550 +world-candidate = false
30551 +variable = CATEGORY
30552 +includes = x11-drivers
30553
30554 diff --git a/x11-base/xorg-server/xorg-server-1.10.6-r1.ebuild b/x11-base/xorg-server/xorg-server-1.10.6-r1.ebuild
30555 new file mode 100644
30556 index 0000000..7f3be2e
30557 --- /dev/null
30558 +++ b/x11-base/xorg-server/xorg-server-1.10.6-r1.ebuild
30559 @@ -0,0 +1,248 @@
30560 +# Copyright 1999-2012 Gentoo Foundation
30561 +# Distributed under the terms of the GNU General Public License v2
30562 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.10.6-r1.ebuild,v 1.8 2012/06/21 16:04:50 jer Exp $
30563 +
30564 +EAPI="4-slot-abi"
30565 +
30566 +XORG_DOC=doc
30567 +inherit flag-o-matic xorg-2 multilib versionator
30568 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
30569 +
30570 +DESCRIPTION="X.Org X servers"
30571 +SLOT="0/1.10"
30572 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
30573 +
30574 +IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
30575 +IUSE="${IUSE_SERVERS} ipv6 minimal nptl tslib +udev"
30576 +
30577 +RDEPEND=">=app-admin/eselect-opengl-1.0.8
30578 + dev-libs/openssl
30579 + media-libs/freetype
30580 + >=x11-apps/iceauth-1.0.2
30581 + >=x11-apps/rgb-1.0.3
30582 + >=x11-apps/xauth-1.0.3
30583 + x11-apps/xkbcomp
30584 + >=x11-libs/libpciaccess-0.10.3
30585 + >=x11-libs/libXau-1.0.4
30586 + >=x11-libs/libXdmcp-1.0.2
30587 + >=x11-libs/libXfont-1.4.2
30588 + >=x11-libs/libxkbfile-1.0.4
30589 + >=x11-libs/pixman-0.21.8
30590 + >=x11-libs/xtrans-1.2.2
30591 + >=x11-misc/xbitmaps-1.0.1
30592 + >=x11-misc/xkeyboard-config-1.4
30593 + dmx? (
30594 + x11-libs/libXt
30595 + >=x11-libs/libdmx-1.0.99.1
30596 + >=x11-libs/libX11-1.1.5
30597 + >=x11-libs/libXaw-1.0.4
30598 + >=x11-libs/libXext-1.0.99.4
30599 + >=x11-libs/libXfixes-4.0.3
30600 + >=x11-libs/libXi-1.2.99.1
30601 + >=x11-libs/libXmu-1.0.3
30602 + >=x11-libs/libXres-1.0.3
30603 + >=x11-libs/libXtst-1.0.99.2
30604 + )
30605 + kdrive? (
30606 + >=x11-libs/libXext-1.0.5
30607 + x11-libs/libXv
30608 + )
30609 + !minimal? (
30610 + >=x11-libs/libX11-1.1.5
30611 + >=x11-libs/libXext-1.0.5
30612 + >=media-libs/mesa-7.8_rc[nptl=]
30613 + )
30614 + tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto )
30615 + udev? ( >=sys-fs/udev-150 )
30616 + >=x11-apps/xinit-1.3"
30617 +
30618 +# dmx+doc DEPEND is a hack, a proper solution needs to be implemented in the
30619 +# xorg-2.eclass for next release
30620 +DEPEND="${RDEPEND}
30621 + sys-devel/flex
30622 + >=x11-proto/bigreqsproto-1.1.0
30623 + >=x11-proto/compositeproto-0.4
30624 + >=x11-proto/damageproto-1.1
30625 + >=x11-proto/fixesproto-4.1
30626 + >=x11-proto/fontsproto-2.0.2
30627 + >=x11-proto/glproto-1.4.11
30628 + >=x11-proto/inputproto-1.9.99.902
30629 + >=x11-proto/kbproto-1.0.3
30630 + >=x11-proto/randrproto-1.2.99.3
30631 + >=x11-proto/recordproto-1.13.99.1
30632 + >=x11-proto/renderproto-0.11
30633 + >=x11-proto/resourceproto-1.0.2
30634 + >=x11-proto/scrnsaverproto-1.1
30635 + >=x11-proto/trapproto-3.4.3
30636 + >=x11-proto/videoproto-2.2.2
30637 + >=x11-proto/xcmiscproto-1.2.0
30638 + >=x11-proto/xextproto-7.1.99
30639 + >=x11-proto/xf86dgaproto-2.0.99.1
30640 + >=x11-proto/xf86rushproto-1.1.2
30641 + >=x11-proto/xf86vidmodeproto-2.2.99.1
30642 + >=x11-proto/xineramaproto-1.1.3
30643 + >=x11-proto/xproto-7.0.17
30644 + dmx? (
30645 + >=x11-proto/dmxproto-2.2.99.1
30646 + doc? (
30647 + || (
30648 + www-client/links
30649 + www-client/lynx
30650 + www-client/w3m
30651 + )
30652 + )
30653 + )
30654 + !minimal? (
30655 + >=x11-proto/xf86driproto-2.1.0
30656 + >=x11-proto/dri2proto-2.3
30657 + >=x11-libs/libdrm-2.4.20
30658 + )"
30659 +
30660 +PDEPEND="
30661 + xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
30662 +
30663 +REQUIRED_USE="!minimal? (
30664 + || ( ${IUSE_SERVERS} )
30665 + )"
30666 +
30667 +#UPSTREAMED_PATCHES=(
30668 +# "${WORKDIR}/patches/"
30669 +#)
30670 +
30671 +PATCHES=(
30672 + "${UPSTREAMED_PATCHES[@]}"
30673 + "${FILESDIR}"/${PN}-disable-acpi.patch
30674 + "${FILESDIR}"/${PN}-1.9-nouveau-default.patch
30675 + "${FILESDIR}"/${PN}-1.11-log-format-fix.patch
30676 +)
30677 +
30678 +pkg_pretend() {
30679 + # older gcc is not supported
30680 + [[ $(gcc-major-version) -lt 4 ]] && \
30681 + die "Sorry, but gcc earlier than 4.0 wont work for xorg-server."
30682 +}
30683 +
30684 +pkg_setup() {
30685 + xorg-2_pkg_setup
30686 +
30687 + # localstatedir is used for the log location; we need to override the default
30688 + # from ebuild.sh
30689 + # sysconfdir is used for the xorg.conf location; same applies
30690 + # --enable-install-setuid needed because sparcs default off
30691 + # NOTE: fop is used for doc generating ; and i have no idea if gentoo
30692 + # package it somewhere
30693 + XORG_CONFIGURE_OPTIONS=(
30694 + $(use_enable ipv6)
30695 + $(use_enable dmx)
30696 + $(use_enable kdrive)
30697 + $(use_enable kdrive kdrive-kbd)
30698 + $(use_enable kdrive kdrive-mouse)
30699 + $(use_enable kdrive kdrive-evdev)
30700 + $(use_enable tslib)
30701 + $(use_enable tslib xcalibrate)
30702 + $(use_enable !minimal record)
30703 + $(use_enable !minimal xfree86-utils)
30704 + $(use_enable !minimal install-libxf86config)
30705 + $(use_enable !minimal dri)
30706 + $(use_enable !minimal dri2)
30707 + $(use_enable !minimal glx)
30708 + $(use_enable xnest)
30709 + $(use_enable xorg)
30710 + $(use_enable xvfb)
30711 + $(use_enable nptl glx-tls)
30712 + $(use_enable udev config-udev)
30713 + $(use_with doc doxygen)
30714 + $(use_with doc xmlto)
30715 + --sysconfdir=/etc/X11
30716 + --localstatedir=/var
30717 + --enable-install-setuid
30718 + --with-fontrootdir=/usr/share/fonts
30719 + --with-xkb-output=/var/lib/xkb
30720 + --disable-config-hal
30721 + --without-dtrace
30722 + --without-fop
30723 + --with-os-vendor=Gentoo
30724 + )
30725 +
30726 + # Xorg-server requires includes from OS mesa which are not visible for
30727 + # users of binary drivers.
30728 + mkdir -p "${T}/mesa-symlinks/GL"
30729 + for i in gl glx glxmd glxproto glxtokens; do
30730 + ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
30731 + done
30732 + for i in glext glxext; do
30733 + ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
30734 + done
30735 + append-cppflags "-I${T}/mesa-symlinks"
30736 +}
30737 +
30738 +src_install() {
30739 + xorg-2_src_install
30740 +
30741 + dynamic_libgl_install
30742 +
30743 + server_based_install
30744 +
30745 + if ! use minimal && use xorg; then
30746 + # Install xorg.conf.example into docs
30747 + dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
30748 + fi
30749 +
30750 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
30751 + newinitd "${FILESDIR}"/xdm.initd-5 xdm
30752 + newconfd "${FILESDIR}"/xdm.confd-4 xdm
30753 +
30754 + # install the @x11-module-rebuild set for Portage
30755 + insinto /usr/share/portage/config/sets
30756 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
30757 +}
30758 +
30759 +pkg_postinst() {
30760 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
30761 + eselect opengl set xorg-x11 --use-old
30762 +
30763 + if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then
30764 + elog "You should consider reading upgrade guide for this release:"
30765 + elog " http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-$(get_version_component_range 1-2)-upgrade-guide.xml"
30766 + echo
30767 + ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
30768 + ewarn "because the ABI changed. If you cannot start X because"
30769 + ewarn "of module version mismatch errors, this is your problem."
30770 +
30771 + echo
30772 + ewarn "You can generate a list of all installed packages in the x11-drivers"
30773 + ewarn "category using this command:"
30774 + ewarn " emerge portage-utils; qlist -I -C x11-drivers/"
30775 + ewarn "or using sets from portage-2.2:"
30776 + ewarn " emerge @x11-module-rebuild"
30777 + fi
30778 +}
30779 +
30780 +pkg_postrm() {
30781 + # Get rid of module dir to ensure opengl-update works properly
30782 + if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
30783 + rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
30784 + fi
30785 +}
30786 +
30787 +dynamic_libgl_install() {
30788 + # next section is to setup the dynamic libGL stuff
30789 + ebegin "Moving GL files for dynamic switching"
30790 + dodir /usr/$(get_libdir)/opengl/xorg-x11/extensions
30791 + local x=""
30792 + for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do
30793 + if [ -f ${x} -o -L ${x} ]; then
30794 + mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/xorg-x11/extensions
30795 + fi
30796 + done
30797 + eend 0
30798 +}
30799 +
30800 +server_based_install() {
30801 + if ! use xorg; then
30802 + rm "${D}"/usr/share/man/man1/Xserver.1x \
30803 + "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
30804 + "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
30805 + "${D}"/usr/share/man/man1/Xserver.1x
30806 + fi
30807 +}
30808
30809 diff --git a/x11-base/xorg-server/xorg-server-1.11.4-r1.ebuild b/x11-base/xorg-server/xorg-server-1.11.4-r1.ebuild
30810 new file mode 100644
30811 index 0000000..5e9b866
30812 --- /dev/null
30813 +++ b/x11-base/xorg-server/xorg-server-1.11.4-r1.ebuild
30814 @@ -0,0 +1,251 @@
30815 +# Copyright 1999-2012 Gentoo Foundation
30816 +# Distributed under the terms of the GNU General Public License v2
30817 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.4-r1.ebuild,v 1.8 2012/06/09 18:54:12 armin76 Exp $
30818 +
30819 +EAPI="4-slot-abi"
30820 +
30821 +XORG_DOC=doc
30822 +XORG_EAUTORECONF=yes
30823 +inherit flag-o-matic xorg-2 multilib versionator
30824 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
30825 +
30826 +DESCRIPTION="X.Org X servers"
30827 +SLOT="0/1.11"
30828 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
30829 +
30830 +IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
30831 +IUSE="${IUSE_SERVERS} ipv6 minimal nptl selinux tslib +udev"
30832 +
30833 +RDEPEND=">=app-admin/eselect-opengl-1.0.8
30834 + dev-libs/openssl
30835 + media-libs/freetype
30836 + >=x11-apps/iceauth-1.0.2
30837 + >=x11-apps/rgb-1.0.3
30838 + >=x11-apps/xauth-1.0.3
30839 + x11-apps/xkbcomp
30840 + >=x11-libs/libpciaccess-0.10.3
30841 + >=x11-libs/libXau-1.0.4
30842 + >=x11-libs/libXdmcp-1.0.2
30843 + >=x11-libs/libXfont-1.4.2
30844 + >=x11-libs/libxkbfile-1.0.4
30845 + >=x11-libs/pixman-0.21.8
30846 + >=x11-libs/xtrans-1.2.2
30847 + >=x11-misc/xbitmaps-1.0.1
30848 + >=x11-misc/xkeyboard-config-2.4.1-r3
30849 + dmx? (
30850 + x11-libs/libXt
30851 + >=x11-libs/libdmx-1.0.99.1
30852 + >=x11-libs/libX11-1.1.5
30853 + >=x11-libs/libXaw-1.0.4
30854 + >=x11-libs/libXext-1.0.99.4
30855 + >=x11-libs/libXfixes-5.0
30856 + >=x11-libs/libXi-1.2.99.1
30857 + >=x11-libs/libXmu-1.0.3
30858 + x11-libs/libXrender
30859 + >=x11-libs/libXres-1.0.3
30860 + >=x11-libs/libXtst-1.0.99.2
30861 + )
30862 + kdrive? (
30863 + >=x11-libs/libXext-1.0.5
30864 + x11-libs/libXv
30865 + )
30866 + !minimal? (
30867 + >=x11-libs/libX11-1.1.5
30868 + >=x11-libs/libXext-1.0.5
30869 + >=media-libs/mesa-7.8_rc[nptl=]
30870 + )
30871 + tslib? ( >=x11-libs/tslib-1.0 )
30872 + udev? ( >=sys-fs/udev-150 )
30873 + >=x11-apps/xinit-1.3
30874 + selinux? ( sec-policy/selinux-xserver )"
30875 +
30876 +DEPEND="${RDEPEND}
30877 + sys-devel/flex
30878 + >=x11-proto/bigreqsproto-1.1.0
30879 + >=x11-proto/compositeproto-0.4
30880 + >=x11-proto/damageproto-1.1
30881 + >=x11-proto/fixesproto-5.0
30882 + >=x11-proto/fontsproto-2.0.2
30883 + >=x11-proto/glproto-1.4.14
30884 + >=x11-proto/inputproto-1.9.99.902
30885 + >=x11-proto/kbproto-1.0.3
30886 + >=x11-proto/randrproto-1.2.99.3
30887 + >=x11-proto/recordproto-1.13.99.1
30888 + >=x11-proto/renderproto-0.11
30889 + >=x11-proto/resourceproto-1.0.2
30890 + >=x11-proto/scrnsaverproto-1.1
30891 + >=x11-proto/trapproto-3.4.3
30892 + >=x11-proto/videoproto-2.2.2
30893 + >=x11-proto/xcmiscproto-1.2.0
30894 + >=x11-proto/xextproto-7.1.99
30895 + >=x11-proto/xf86dgaproto-2.0.99.1
30896 + >=x11-proto/xf86rushproto-1.1.2
30897 + >=x11-proto/xf86vidmodeproto-2.2.99.1
30898 + >=x11-proto/xineramaproto-1.1.3
30899 + >=x11-proto/xproto-7.0.22
30900 + dmx? (
30901 + >=x11-proto/dmxproto-2.2.99.1
30902 + doc? (
30903 + || (
30904 + www-client/links
30905 + www-client/lynx
30906 + www-client/w3m
30907 + )
30908 + )
30909 + )
30910 + !minimal? (
30911 + >=x11-proto/xf86driproto-2.1.0
30912 + >=x11-proto/dri2proto-2.6
30913 + >=x11-libs/libdrm-2.4.20
30914 + )"
30915 +
30916 +PDEPEND="
30917 + xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
30918 +
30919 +REQUIRED_USE="!minimal? (
30920 + || ( ${IUSE_SERVERS} )
30921 + )"
30922 +
30923 +#UPSTREAMED_PATCHES=(
30924 +# "${WORKDIR}/patches/"
30925 +#)
30926 +
30927 +PATCHES=(
30928 + "${UPSTREAMED_PATCHES[@]}"
30929 + "${FILESDIR}"/${PN}-disable-acpi.patch
30930 + "${FILESDIR}"/${PN}-1.9-nouveau-default.patch
30931 + "${FILESDIR}"/${PN}-1.11-disable-tests-without-ddx.patch
30932 + "${FILESDIR}"/${PN}-1.11-dix-pointerrootwin-send-focusin.patch
30933 + "${FILESDIR}"/${PN}-1.11-dix-send-focus-events.patch
30934 + "${FILESDIR}"/${PN}-1.11-log-format-fix.patch
30935 +)
30936 +
30937 +pkg_pretend() {
30938 + # older gcc is not supported
30939 + [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \
30940 + die "Sorry, but gcc earlier than 4.0 wont work for xorg-server."
30941 +}
30942 +
30943 +pkg_setup() {
30944 + xorg-2_pkg_setup
30945 +
30946 + # localstatedir is used for the log location; we need to override the default
30947 + # from ebuild.sh
30948 + # sysconfdir is used for the xorg.conf location; same applies
30949 + # --enable-install-setuid needed because sparcs default off
30950 + # NOTE: fop is used for doc generating ; and i have no idea if gentoo
30951 + # package it somewhere
30952 + XORG_CONFIGURE_OPTIONS=(
30953 + $(use_enable ipv6)
30954 + $(use_enable dmx)
30955 + $(use_enable kdrive)
30956 + $(use_enable kdrive kdrive-kbd)
30957 + $(use_enable kdrive kdrive-mouse)
30958 + $(use_enable kdrive kdrive-evdev)
30959 + $(use_enable tslib)
30960 + $(use_enable !minimal record)
30961 + $(use_enable !minimal xfree86-utils)
30962 + $(use_enable !minimal install-libxf86config)
30963 + $(use_enable !minimal dri)
30964 + $(use_enable !minimal dri2)
30965 + $(use_enable !minimal glx)
30966 + $(use_enable xnest)
30967 + $(use_enable xorg)
30968 + $(use_enable xvfb)
30969 + $(use_enable nptl glx-tls)
30970 + $(use_enable udev config-udev)
30971 + $(use_with doc doxygen)
30972 + $(use_with doc xmlto)
30973 + --sysconfdir=/etc/X11
30974 + --localstatedir=/var
30975 + --enable-install-setuid
30976 + --with-fontrootdir=/usr/share/fonts
30977 + --with-xkb-output=/var/lib/xkb
30978 + --disable-config-hal
30979 + --without-dtrace
30980 + --without-fop
30981 + --with-os-vendor=Gentoo
30982 + )
30983 +
30984 + # Xorg-server requires includes from OS mesa which are not visible for
30985 + # users of binary drivers.
30986 + mkdir -p "${T}/mesa-symlinks/GL"
30987 + for i in gl glx glxmd glxproto glxtokens; do
30988 + ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
30989 + done
30990 + for i in glext glxext; do
30991 + ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
30992 + done
30993 + append-cppflags "-I${T}/mesa-symlinks"
30994 +
30995 + # Make breakage less obvious, bug #402285.
30996 + replace-flags -O3 -O2
30997 +}
30998 +
30999 +src_install() {
31000 + xorg-2_src_install
31001 +
31002 + dynamic_libgl_install
31003 +
31004 + server_based_install
31005 +
31006 + if ! use minimal && use xorg; then
31007 + # Install xorg.conf.example into docs
31008 + dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
31009 + fi
31010 +
31011 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
31012 + newinitd "${FILESDIR}"/xdm.initd-5 xdm
31013 + newconfd "${FILESDIR}"/xdm.confd-4 xdm
31014 +
31015 + # install the @x11-module-rebuild set for Portage
31016 + insinto /usr/share/portage/config/sets
31017 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
31018 +}
31019 +
31020 +pkg_postinst() {
31021 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
31022 + eselect opengl set xorg-x11 --use-old
31023 +
31024 + if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then
31025 + ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
31026 + ewarn "because the ABI changed. If you cannot start X because"
31027 + ewarn "of module version mismatch errors, this is your problem."
31028 +
31029 + echo
31030 + ewarn "You can generate a list of all installed packages in the x11-drivers"
31031 + ewarn "category using this command:"
31032 + ewarn " emerge portage-utils; qlist -I -C x11-drivers/"
31033 + ewarn "or using sets from portage-2.2:"
31034 + ewarn " emerge @x11-module-rebuild"
31035 + fi
31036 +}
31037 +
31038 +pkg_postrm() {
31039 + # Get rid of module dir to ensure opengl-update works properly
31040 + if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
31041 + rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
31042 + fi
31043 +}
31044 +
31045 +dynamic_libgl_install() {
31046 + # next section is to setup the dynamic libGL stuff
31047 + ebegin "Moving GL files for dynamic switching"
31048 + dodir /usr/$(get_libdir)/opengl/xorg-x11/extensions
31049 + local x=""
31050 + for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do
31051 + if [ -f ${x} -o -L ${x} ]; then
31052 + mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/xorg-x11/extensions
31053 + fi
31054 + done
31055 + eend 0
31056 +}
31057 +
31058 +server_based_install() {
31059 + if ! use xorg; then
31060 + rm "${D}"/usr/share/man/man1/Xserver.1x \
31061 + "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
31062 + "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
31063 + "${D}"/usr/share/man/man1/Xserver.1x
31064 + fi
31065 +}
31066
31067 diff --git a/x11-base/xorg-server/xorg-server-1.12.2.ebuild b/x11-base/xorg-server/xorg-server-1.12.2.ebuild
31068 new file mode 100644
31069 index 0000000..d5469ca
31070 --- /dev/null
31071 +++ b/x11-base/xorg-server/xorg-server-1.12.2.ebuild
31072 @@ -0,0 +1,243 @@
31073 +# Copyright 1999-2012 Gentoo Foundation
31074 +# Distributed under the terms of the GNU General Public License v2
31075 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.12.2.ebuild,v 1.4 2012/06/24 18:58:40 ago Exp $
31076 +
31077 +EAPI="4-slot-abi"
31078 +
31079 +XORG_DOC=doc
31080 +inherit flag-o-matic xorg-2 multilib versionator
31081 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
31082 +
31083 +DESCRIPTION="X.Org X servers"
31084 +SLOT="0/1.12"
31085 +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd"
31086 +
31087 +IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
31088 +IUSE="${IUSE_SERVERS} ipv6 minimal nptl selinux tslib +udev"
31089 +
31090 +RDEPEND=">=app-admin/eselect-opengl-1.0.8
31091 + dev-libs/openssl
31092 + media-libs/freetype
31093 + >=x11-apps/iceauth-1.0.2
31094 + >=x11-apps/rgb-1.0.3
31095 + >=x11-apps/xauth-1.0.3
31096 + x11-apps/xkbcomp
31097 + >=x11-libs/libpciaccess-0.12.901
31098 + >=x11-libs/libXau-1.0.4
31099 + >=x11-libs/libXdmcp-1.0.2
31100 + >=x11-libs/libXfont-1.4.2
31101 + >=x11-libs/libxkbfile-1.0.4
31102 + >=x11-libs/pixman-0.21.8
31103 + >=x11-libs/xtrans-1.2.2
31104 + >=x11-misc/xbitmaps-1.0.1
31105 + >=x11-misc/xkeyboard-config-2.4.1-r3
31106 + dmx? (
31107 + x11-libs/libXt
31108 + >=x11-libs/libdmx-1.0.99.1
31109 + >=x11-libs/libX11-1.1.5
31110 + >=x11-libs/libXaw-1.0.4
31111 + >=x11-libs/libXext-1.0.99.4
31112 + >=x11-libs/libXfixes-5.0
31113 + >=x11-libs/libXi-1.2.99.1
31114 + >=x11-libs/libXmu-1.0.3
31115 + x11-libs/libXrender
31116 + >=x11-libs/libXres-1.0.3
31117 + >=x11-libs/libXtst-1.0.99.2
31118 + )
31119 + kdrive? (
31120 + >=x11-libs/libXext-1.0.5
31121 + x11-libs/libXv
31122 + )
31123 + !minimal? (
31124 + >=x11-libs/libX11-1.1.5
31125 + >=x11-libs/libXext-1.0.5
31126 + >=media-libs/mesa-7.8_rc[nptl=]
31127 + )
31128 + tslib? ( >=x11-libs/tslib-1.0 )
31129 + udev? ( >=sys-fs/udev-150 )
31130 + >=x11-apps/xinit-1.3
31131 + selinux? ( sec-policy/selinux-xserver )"
31132 +
31133 +DEPEND="${RDEPEND}
31134 + sys-devel/flex
31135 + >=x11-proto/bigreqsproto-1.1.0
31136 + >=x11-proto/compositeproto-0.4
31137 + >=x11-proto/damageproto-1.1
31138 + >=x11-proto/fixesproto-5.0
31139 + >=x11-proto/fontsproto-2.0.2
31140 + >=x11-proto/glproto-1.4.14
31141 + >=x11-proto/inputproto-2.1.99.3
31142 + >=x11-proto/kbproto-1.0.3
31143 + >=x11-proto/randrproto-1.2.99.3
31144 + >=x11-proto/recordproto-1.13.99.1
31145 + >=x11-proto/renderproto-0.11
31146 + >=x11-proto/resourceproto-1.0.2
31147 + >=x11-proto/scrnsaverproto-1.1
31148 + >=x11-proto/trapproto-3.4.3
31149 + >=x11-proto/videoproto-2.2.2
31150 + >=x11-proto/xcmiscproto-1.2.0
31151 + >=x11-proto/xextproto-7.1.99
31152 + >=x11-proto/xf86dgaproto-2.0.99.1
31153 + >=x11-proto/xf86rushproto-1.1.2
31154 + >=x11-proto/xf86vidmodeproto-2.2.99.1
31155 + >=x11-proto/xineramaproto-1.1.3
31156 + >=x11-proto/xproto-7.0.22
31157 + dmx? (
31158 + >=x11-proto/dmxproto-2.2.99.1
31159 + doc? (
31160 + || (
31161 + www-client/links
31162 + www-client/lynx
31163 + www-client/w3m
31164 + )
31165 + )
31166 + )
31167 + !minimal? (
31168 + >=x11-proto/xf86driproto-2.1.0
31169 + >=x11-proto/dri2proto-2.6
31170 + >=x11-libs/libdrm-2.4.20
31171 + )"
31172 +
31173 +PDEPEND="
31174 + xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
31175 +
31176 +REQUIRED_USE="!minimal? (
31177 + || ( ${IUSE_SERVERS} )
31178 + )"
31179 +
31180 +#UPSTREAMED_PATCHES=(
31181 +# "${WORKDIR}/patches/"
31182 +#)
31183 +
31184 +PATCHES=(
31185 + "${UPSTREAMED_PATCHES[@]}"
31186 + "${FILESDIR}"/${PN}-1.12-disable-acpi.patch
31187 + "${FILESDIR}"/${PN}-1.12-xf86edidmodes-array-bounds.patch
31188 +)
31189 +
31190 +pkg_pretend() {
31191 + # older gcc is not supported
31192 + [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \
31193 + die "Sorry, but gcc earlier than 4.0 wont work for xorg-server."
31194 +}
31195 +
31196 +pkg_setup() {
31197 + xorg-2_pkg_setup
31198 +
31199 + # localstatedir is used for the log location; we need to override the default
31200 + # from ebuild.sh
31201 + # sysconfdir is used for the xorg.conf location; same applies
31202 + # --enable-install-setuid needed because sparcs default off
31203 + # NOTE: fop is used for doc generating ; and i have no idea if gentoo
31204 + # package it somewhere
31205 + XORG_CONFIGURE_OPTIONS=(
31206 + $(use_enable ipv6)
31207 + $(use_enable dmx)
31208 + $(use_enable kdrive)
31209 + $(use_enable kdrive kdrive-kbd)
31210 + $(use_enable kdrive kdrive-mouse)
31211 + $(use_enable kdrive kdrive-evdev)
31212 + $(use_enable tslib)
31213 + $(use_enable !minimal record)
31214 + $(use_enable !minimal xfree86-utils)
31215 + $(use_enable !minimal install-libxf86config)
31216 + $(use_enable !minimal dri)
31217 + $(use_enable !minimal dri2)
31218 + $(use_enable !minimal glx)
31219 + $(use_enable xnest)
31220 + $(use_enable xorg)
31221 + $(use_enable xvfb)
31222 + $(use_enable nptl glx-tls)
31223 + $(use_enable udev config-udev)
31224 + $(use_with doc doxygen)
31225 + $(use_with doc xmlto)
31226 + --sysconfdir=/etc/X11
31227 + --localstatedir=/var
31228 + --enable-install-setuid
31229 + --with-fontrootdir=/usr/share/fonts
31230 + --with-xkb-output=/var/lib/xkb
31231 + --disable-config-hal
31232 + --without-dtrace
31233 + --without-fop
31234 + --with-os-vendor=Gentoo
31235 + )
31236 +
31237 + # Xorg-server requires includes from OS mesa which are not visible for
31238 + # users of binary drivers.
31239 + mkdir -p "${T}/mesa-symlinks/GL"
31240 + for i in gl glx glxmd glxproto glxtokens; do
31241 + ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
31242 + done
31243 + for i in glext glxext; do
31244 + ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
31245 + done
31246 + append-cppflags "-I${T}/mesa-symlinks"
31247 +}
31248 +
31249 +src_install() {
31250 + xorg-2_src_install
31251 +
31252 + dynamic_libgl_install
31253 +
31254 + server_based_install
31255 +
31256 + if ! use minimal && use xorg; then
31257 + # Install xorg.conf.example into docs
31258 + dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
31259 + fi
31260 +
31261 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
31262 + newinitd "${FILESDIR}"/xdm.initd-8 xdm
31263 + newconfd "${FILESDIR}"/xdm.confd-4 xdm
31264 +
31265 + # install the @x11-module-rebuild set for Portage
31266 + insinto /usr/share/portage/config/sets
31267 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
31268 +}
31269 +
31270 +pkg_postinst() {
31271 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
31272 + eselect opengl set xorg-x11 --use-old
31273 +
31274 + if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then
31275 + ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
31276 + ewarn "because the ABI changed. If you cannot start X because"
31277 + ewarn "of module version mismatch errors, this is your problem."
31278 +
31279 + echo
31280 + ewarn "You can generate a list of all installed packages in the x11-drivers"
31281 + ewarn "category using this command:"
31282 + ewarn " emerge portage-utils; qlist -I -C x11-drivers/"
31283 + ewarn "or using sets from portage-2.2:"
31284 + ewarn " emerge @x11-module-rebuild"
31285 + fi
31286 +}
31287 +
31288 +pkg_postrm() {
31289 + # Get rid of module dir to ensure opengl-update works properly
31290 + if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
31291 + rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
31292 + fi
31293 +}
31294 +
31295 +dynamic_libgl_install() {
31296 + # next section is to setup the dynamic libGL stuff
31297 + ebegin "Moving GL files for dynamic switching"
31298 + dodir /usr/$(get_libdir)/opengl/xorg-x11/extensions
31299 + local x=""
31300 + for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do
31301 + if [ -f ${x} -o -L ${x} ]; then
31302 + mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/xorg-x11/extensions
31303 + fi
31304 + done
31305 + eend 0
31306 +}
31307 +
31308 +server_based_install() {
31309 + if ! use xorg; then
31310 + rm "${D}"/usr/share/man/man1/Xserver.1x \
31311 + "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
31312 + "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
31313 + "${D}"/usr/share/man/man1/Xserver.1x
31314 + fi
31315 +}
31316
31317 diff --git a/x11-base/xorg-server/xorg-server-1.9.5-r1.ebuild b/x11-base/xorg-server/xorg-server-1.9.5-r1.ebuild
31318 new file mode 100644
31319 index 0000000..cf31691
31320 --- /dev/null
31321 +++ b/x11-base/xorg-server/xorg-server-1.9.5-r1.ebuild
31322 @@ -0,0 +1,270 @@
31323 +# Copyright 1999-2012 Gentoo Foundation
31324 +# Distributed under the terms of the GNU General Public License v2
31325 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.9.5-r1.ebuild,v 1.7 2012/06/12 11:27:07 chithanh Exp $
31326 +
31327 +EAPI=3
31328 +inherit flag-o-matic xorg-2 multilib versionator
31329 +
31330 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
31331 +
31332 +OPENGL_DIR="xorg-x11"
31333 +
31334 +DESCRIPTION="X.Org X servers"
31335 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
31336 +
31337 +IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
31338 +IUSE="${IUSE_SERVERS} doc ipv6 minimal nptl tslib +udev"
31339 +RDEPEND=">=app-admin/eselect-opengl-1.0.8
31340 + dev-libs/openssl
31341 + media-libs/freetype
31342 + >=x11-apps/iceauth-1.0.2
31343 + >=x11-apps/rgb-1.0.3
31344 + >=x11-apps/xauth-1.0.3
31345 + x11-apps/xkbcomp
31346 + >=x11-libs/libpciaccess-0.10.3
31347 + >=x11-libs/libXau-1.0.4
31348 + >=x11-libs/libXdmcp-1.0.2
31349 + >=x11-libs/libXfont-1.4.2
31350 + >=x11-libs/libxkbfile-1.0.4
31351 + >=x11-libs/pixman-0.15.20
31352 + >=x11-libs/xtrans-1.2.2
31353 + >=x11-misc/xbitmaps-1.0.1
31354 + >=x11-misc/xkeyboard-config-1.4
31355 + dmx? (
31356 + x11-libs/libXt
31357 + >=x11-libs/libdmx-1.0.99.1
31358 + >=x11-libs/libX11-1.1.5
31359 + >=x11-libs/libXaw-1.0.4
31360 + >=x11-libs/libXext-1.0.5
31361 + >=x11-libs/libXfixes-4.0.3
31362 + >=x11-libs/libXi-1.2.99.1
31363 + >=x11-libs/libXmu-1.0.3
31364 + >=x11-libs/libXres-1.0.3
31365 + >=x11-libs/libXtst-1.0.3
31366 + )
31367 + kdrive? (
31368 + >=x11-libs/libXext-1.0.5
31369 + x11-libs/libXv
31370 + )
31371 + !minimal? (
31372 + >=x11-libs/libX11-1.1.5
31373 + >=x11-libs/libXext-1.0.5
31374 + >=media-libs/mesa-7.8_rc[nptl=]
31375 + )
31376 + tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto )
31377 + udev? ( >=sys-fs/udev-150 )"
31378 +
31379 +DEPEND="${RDEPEND}
31380 + sys-devel/flex
31381 + >=x11-proto/bigreqsproto-1.1.0
31382 + >=x11-proto/compositeproto-0.4
31383 + >=x11-proto/damageproto-1.1
31384 + >=x11-proto/fixesproto-4.1
31385 + >=x11-proto/fontsproto-2.0.2
31386 + >=x11-proto/glproto-1.4.11
31387 + >=x11-proto/inputproto-1.9.99.902
31388 + >=x11-proto/kbproto-1.0.3
31389 + >=x11-proto/randrproto-1.2.99.3
31390 + >=x11-proto/recordproto-1.13.99.1
31391 + >=x11-proto/renderproto-0.11
31392 + >=x11-proto/resourceproto-1.0.2
31393 + >=x11-proto/scrnsaverproto-1.1
31394 + >=x11-proto/trapproto-3.4.3
31395 + >=x11-proto/videoproto-2.2.2
31396 + >=x11-proto/xcmiscproto-1.2.0
31397 + >=x11-proto/xextproto-7.0.99.3
31398 + >=x11-proto/xf86dgaproto-2.0.99.1
31399 + >=x11-proto/xf86rushproto-1.1.2
31400 + >=x11-proto/xf86vidmodeproto-2.2.99.1
31401 + >=x11-proto/xineramaproto-1.1.3
31402 + >=x11-proto/xproto-7.0.17
31403 + dmx? ( >=x11-proto/dmxproto-2.2.99.1 )
31404 + doc? (
31405 + >=app-doc/doxygen-1.6.1
31406 + app-text/xmlto
31407 + )
31408 + !minimal? (
31409 + >=x11-proto/xf86driproto-2.1.0
31410 + >=x11-proto/dri2proto-2.3
31411 + >=x11-libs/libdrm-2.4.20
31412 + )
31413 + >=x11-apps/xinit-1.3"
31414 +
31415 +PDEPEND="
31416 + xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
31417 +
31418 +EPATCH_FORCE="yes"
31419 +EPATCH_SUFFIX="patch"
31420 +
31421 +# These have been sent upstream
31422 +UPSTREAMED_PATCHES=(
31423 +# "${WORKDIR}/patches/"
31424 + )
31425 +
31426 +PATCHES=(
31427 + "${UPSTREAMED_PATCHES[@]}"
31428 + "${FILESDIR}"/${PN}-disable-acpi.patch
31429 + "${FILESDIR}"/${PN}-1.9-nouveau-default.patch
31430 + "${FILESDIR}"/xorg-cve-2011-4028+4029.patch
31431 + )
31432 +
31433 +pkg_setup() {
31434 + xorg-2_pkg_setup
31435 +
31436 + use minimal || ensure_a_server_is_building
31437 +
31438 + # localstatedir is used for the log location; we need to override the default
31439 + # from ebuild.sh
31440 + # sysconfdir is used for the xorg.conf location; same applies
31441 + # --enable-install-setuid needed because sparcs default off
31442 + # NOTE: fop is used for doc generating ; and i have no idea if gentoo
31443 + # package it somewhere
31444 + XORG_CONFIGURE_OPTIONS=(
31445 + $(use_enable ipv6)
31446 + $(use_enable dmx)
31447 + $(use_enable kdrive)
31448 + $(use_enable kdrive kdrive-kbd)
31449 + $(use_enable kdrive kdrive-mouse)
31450 + $(use_enable kdrive kdrive-evdev)
31451 + $(use_enable tslib)
31452 + $(use_enable tslib xcalibrate)
31453 + $(use_enable !minimal record)
31454 + $(use_enable !minimal xfree86-utils)
31455 + $(use_enable !minimal install-libxf86config)
31456 + $(use_enable !minimal dri)
31457 + $(use_enable !minimal dri2)
31458 + $(use_enable !minimal glx)
31459 + $(use_enable xnest)
31460 + $(use_enable xorg)
31461 + $(use_enable xvfb)
31462 + $(use_enable nptl glx-tls)
31463 + $(use_enable udev config-udev)
31464 + $(use_with doc doxygen)
31465 + $(use_with doc xmlto)
31466 + --sysconfdir=/etc/X11
31467 + --localstatedir=/var
31468 + --enable-install-setuid
31469 + --with-fontrootdir=/usr/share/fonts
31470 + --with-xkb-output=/var/lib/xkb
31471 + --disable-config-hal
31472 + --without-dtrace
31473 + --without-fop
31474 + --with-os-vendor=Gentoo
31475 + ${conf_opts}
31476 + )
31477 +
31478 + # Xorg-server requires includes from OS mesa which are not visible for
31479 + # users of binary drivers.
31480 + # Due to the limitations of CONFIGURE_OPTIONS, we have to export this
31481 + mkdir -p "${T}/mesa-symlinks/GL"
31482 + for i in gl glx glxmd glxproto glxtokens; do
31483 + ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
31484 + done
31485 + for i in glext glxext; do
31486 + ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
31487 + done
31488 + append-cppflags "-I${T}/mesa-symlinks"
31489 +
31490 + # (#121394) Causes window corruption
31491 + filter-flags -fweb
31492 +
31493 + # Incompatible with GCC 3.x SSP on x86, bug #244352
31494 + if use x86 ; then
31495 + if [[ $(gcc-major-version) -lt 4 ]]; then
31496 + filter-flags -fstack-protector
31497 + fi
31498 + fi
31499 +
31500 + # Incompatible with GCC 3.x CPP, bug #314615
31501 + if [[ $(gcc-major-version) -lt 4 ]]; then
31502 + ewarn "GCC 3.x C preprocessor may cause build failures. Use GCC 4.x"
31503 + ewarn "or set CPP=cpp-4.3.4 (replace with the actual installed version)"
31504 + fi
31505 +
31506 + # detect if we should inform user about ebuild breakage
31507 + if ! has_version "x11-base/xorg-server" ||
31508 + has_version "<x11-base/xorg-server-$(get_version_component_range 1-2)"; then
31509 + INFO="yes"
31510 + fi
31511 +}
31512 +
31513 +src_install() {
31514 + xorg-2_src_install
31515 +
31516 + dynamic_libgl_install
31517 +
31518 + server_based_install
31519 +
31520 + if ! use minimal && use xorg; then
31521 + # Install xorg.conf.example into docs
31522 + dodoc "${WORKDIR}"/${P}_build/hw/xfree86/xorg.conf.example \
31523 + || die "couldn't install xorg.conf.example"
31524 + fi
31525 +
31526 + newinitd "${FILESDIR}"/xdm.initd-3 xdm || die "initd file install failed"
31527 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup || die
31528 + newconfd "${FILESDIR}"/xdm.confd-3 xdm || die
31529 +
31530 + # install the @x11-module-rebuild set for Portage
31531 + insinto /usr/share/portage/config/sets
31532 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf || die
31533 +}
31534 +
31535 +pkg_postinst() {
31536 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
31537 + eselect opengl set --use-old xorg-x11
31538 +
31539 + if [[ ${INFO} = yes ]]; then
31540 + elog "You should consider reading upgrade guide for this release:"
31541 + elog " http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-$(get_version_component_range 1-2)-upgrade-guide.xml"
31542 + echo
31543 + ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
31544 + ewarn "because the ABI changed. If you cannot start X because"
31545 + ewarn "of module version mismatch errors, this is your problem."
31546 +
31547 + echo
31548 + ewarn "You can generate a list of all installed packages in the x11-drivers"
31549 + ewarn "category using this command:"
31550 + ewarn " emerge portage-utils; qlist -I -C x11-drivers/"
31551 + fi
31552 +}
31553 +
31554 +pkg_postrm() {
31555 + # Get rid of module dir to ensure opengl-update works properly
31556 + if ! has_version x11-base/xorg-server; then
31557 + if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
31558 + rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
31559 + fi
31560 + fi
31561 +}
31562 +
31563 +dynamic_libgl_install() {
31564 + # next section is to setup the dynamic libGL stuff
31565 + ebegin "Moving GL files for dynamic switching"
31566 + dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
31567 + local x=""
31568 + for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do
31569 + if [ -f ${x} -o -L ${x} ]; then
31570 + mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
31571 + fi
31572 + done
31573 + eend 0
31574 +}
31575 +
31576 +server_based_install() {
31577 + if ! use xorg; then
31578 + rm "${D}"/usr/share/man/man1/Xserver.1x \
31579 + "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
31580 + "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
31581 + "${D}"/usr/share/man/man1/Xserver.1x
31582 + fi
31583 +}
31584 +
31585 +ensure_a_server_is_building() {
31586 + for server in ${IUSE_SERVERS}; do
31587 + use ${server} && return;
31588 + done
31589 + eerror "You need to specify at least one server to build."
31590 + eerror "Valid servers are: ${IUSE_SERVERS}."
31591 + die "No servers were specified to build."
31592 +}
31593
31594 diff --git a/x11-libs/cairo/cairo-1.10.2-r1.ebuild b/x11-libs/cairo/cairo-1.10.2-r1.ebuild
31595 new file mode 100644
31596 index 0000000..987746e
31597 --- /dev/null
31598 +++ b/x11-libs/cairo/cairo-1.10.2-r1.ebuild
31599 @@ -0,0 +1,158 @@
31600 +# Copyright 1999-2012 Gentoo Foundation
31601 +# Distributed under the terms of the GNU General Public License v2
31602 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.10.2-r1.ebuild,v 1.15 2012/05/05 03:52:25 jdhore Exp $
31603 +
31604 +EAPI=3
31605 +
31606 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
31607 +[[ ${PV} == *9999 ]] && GIT_ECLASS="git"
31608 +
31609 +inherit eutils flag-o-matic autotools ${GIT_ECLASS}
31610 +
31611 +DESCRIPTION="A vector graphics library with cross-device output support"
31612 +HOMEPAGE="http://cairographics.org/"
31613 +[[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
31614 +
31615 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
31616 +SLOT="0"
31617 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
31618 +IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb"
31619 +
31620 +# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
31621 +RESTRICT="test"
31622 +
31623 +RDEPEND="media-libs/fontconfig
31624 + media-libs/freetype:2
31625 + media-libs/libpng:0
31626 + sys-libs/zlib
31627 + >=x11-libs/pixman-0.18.4
31628 + directfb? ( dev-libs/DirectFB )
31629 + glib? ( dev-libs/glib:2 )
31630 + opengl? ( virtual/opengl )
31631 + openvg? ( media-libs/mesa[gallium] )
31632 + qt4? ( >=x11-libs/qt-gui-4.8:4 )
31633 + svg? ( dev-libs/libxml2 )
31634 + X? (
31635 + >=x11-libs/libXrender-0.6
31636 + x11-libs/libXext
31637 + x11-libs/libX11
31638 + x11-libs/libXft
31639 + drm? (
31640 + >=sys-fs/udev-136
31641 + gallium? ( media-libs/mesa[gallium] )
31642 + )
31643 + )
31644 + xcb? (
31645 + x11-libs/libxcb
31646 + x11-libs/xcb-util
31647 + )"
31648 +DEPEND="${RDEPEND}
31649 + virtual/pkgconfig
31650 + >=sys-devel/libtool-2
31651 + doc? (
31652 + >=dev-util/gtk-doc-1.6
31653 + ~app-text/docbook-xml-dtd-4.2
31654 + )
31655 + X? (
31656 + x11-proto/renderproto
31657 + drm? (
31658 + x11-proto/xproto
31659 + >=x11-proto/xextproto-7.1
31660 + )
31661 + )"
31662 +
31663 +src_prepare() {
31664 + epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
31665 + epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
31666 + epatch "${FILESDIR}"/${P}-interix.patch
31667 +
31668 + # Slightly messed build system YAY
31669 + if [[ ${PV} == *9999* ]]; then
31670 + touch boilerplate/Makefile.am.features
31671 + touch src/Makefile.am.features
31672 + touch ChangeLog
31673 + fi
31674 +
31675 + # We need to run elibtoolize to ensure correct so versioning on FreeBSD
31676 + # upgraded to an eautoreconf for the above interix patch.
31677 + eautoreconf
31678 +}
31679 +
31680 +src_configure() {
31681 + local myopts
31682 +
31683 + # SuperH doesn't have native atomics yet
31684 + use sh && myopts+=" --disable-atomic"
31685 +
31686 + [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
31687 +
31688 + # tracing fails to compile, because Solaris' libelf doesn't do large files
31689 + [[ ${CHOST} == *-solaris* ]] && myopts+=" --disable-trace"
31690 +
31691 + # 128-bits long arithemetic functions are missing
31692 + [[ ${CHOST} == powerpc*-*-darwin* ]] && filter-flags -mcpu=*
31693 +
31694 + #gets rid of fbmmx.c inlining warnings
31695 + append-flags -finline-limit=1200
31696 +
31697 + if use X; then
31698 + myopts+="
31699 + --enable-tee=yes
31700 + $(use_enable drm)
31701 + "
31702 +
31703 + if use drm; then
31704 + myopts+="
31705 + $(use_enable gallium)
31706 + $(use_enable xcb xcb-drm)
31707 + "
31708 + else
31709 + use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
31710 + myopts+="
31711 + --disable-gallium
31712 + --disable-xcb-drm
31713 + "
31714 + fi
31715 + else
31716 + use drm && ewarn "drm use requires X use enabled. So disabling for now."
31717 + myopts+="
31718 + --disable-drm
31719 + --disable-gallium
31720 + --disable-xcb-drm
31721 + "
31722 + fi
31723 +
31724 + # --disable-xcb-lib:
31725 + # do not override good xlib backed by hardforcing rendering over xcb
31726 + econf \
31727 + --disable-dependency-tracking \
31728 + $(use_with X x) \
31729 + $(use_enable X xlib) \
31730 + $(use_enable X xlib-xrender) \
31731 + $(use_enable aqua quartz) \
31732 + $(use_enable aqua quartz-image) \
31733 + $(use_enable debug test-surfaces) \
31734 + $(use_enable directfb) \
31735 + $(use_enable glib gobject) \
31736 + $(use_enable doc gtk-doc) \
31737 + $(use_enable openvg vg) \
31738 + $(use_enable opengl gl) \
31739 + $(use_enable qt4 qt) \
31740 + $(use_enable static-libs static) \
31741 + $(use_enable svg) \
31742 + $(use_enable xcb) \
31743 + $(use_enable xcb xcb-shm) \
31744 + --enable-ft \
31745 + --enable-pdf \
31746 + --enable-png \
31747 + --enable-ps \
31748 + --disable-xlib-xcb \
31749 + ${myopts}
31750 +}
31751 +
31752 +src_install() {
31753 + # parallel make install fails
31754 + emake -j1 DESTDIR="${D}" install || die
31755 + find "${ED}" -name '*.la' -exec rm -f {} +
31756 + dodoc AUTHORS ChangeLog NEWS README || die
31757 +}
31758
31759 diff --git a/x11-libs/cairo/cairo-1.10.2-r2.ebuild b/x11-libs/cairo/cairo-1.10.2-r2.ebuild
31760 new file mode 100644
31761 index 0000000..f9e0d14
31762 --- /dev/null
31763 +++ b/x11-libs/cairo/cairo-1.10.2-r2.ebuild
31764 @@ -0,0 +1,161 @@
31765 +# Copyright 1999-2012 Gentoo Foundation
31766 +# Distributed under the terms of the GNU General Public License v2
31767 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.10.2-r2.ebuild,v 1.11 2012/05/29 15:45:00 ranger Exp $
31768 +
31769 +EAPI=3
31770 +
31771 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
31772 +[[ ${PV} == *9999 ]] && GIT_ECLASS="git"
31773 +
31774 +inherit eutils flag-o-matic autotools ${GIT_ECLASS}
31775 +
31776 +DESCRIPTION="A vector graphics library with cross-device output support"
31777 +HOMEPAGE="http://cairographics.org/"
31778 +[[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
31779 +
31780 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
31781 +SLOT="0"
31782 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
31783 +IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb"
31784 +
31785 +# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
31786 +RESTRICT="test"
31787 +
31788 +RDEPEND="media-libs/fontconfig
31789 + media-libs/freetype:2
31790 + media-libs/libpng:0
31791 + sys-libs/zlib
31792 + >=x11-libs/pixman-0.18.4
31793 + directfb? ( dev-libs/DirectFB )
31794 + glib? ( dev-libs/glib:2 )
31795 + opengl? ( virtual/opengl )
31796 + openvg? ( media-libs/mesa[gallium] )
31797 + qt4? ( >=x11-libs/qt-gui-4.8:4 )
31798 + svg? ( dev-libs/libxml2 )
31799 + X? (
31800 + >=x11-libs/libXrender-0.6
31801 + x11-libs/libXext
31802 + x11-libs/libX11
31803 + x11-libs/libXft
31804 + drm? (
31805 + >=sys-fs/udev-136
31806 + gallium? ( media-libs/mesa[gallium] )
31807 + )
31808 + )
31809 + xcb? (
31810 + x11-libs/libxcb
31811 + x11-libs/xcb-util
31812 + )"
31813 +DEPEND="${RDEPEND}
31814 + virtual/pkgconfig
31815 + >=sys-devel/libtool-2
31816 + doc? (
31817 + >=dev-util/gtk-doc-1.6
31818 + ~app-text/docbook-xml-dtd-4.2
31819 + )
31820 + X? (
31821 + x11-proto/renderproto
31822 + drm? (
31823 + x11-proto/xproto
31824 + >=x11-proto/xextproto-7.1
31825 + )
31826 + )"
31827 +
31828 +src_prepare() {
31829 + epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
31830 + epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
31831 + epatch "${FILESDIR}"/${P}-interix.patch
31832 + epatch "${FILESDIR}"/${P}-qt-surface.patch
31833 +
31834 + # Slightly messed build system YAY
31835 + if [[ ${PV} == *9999* ]]; then
31836 + touch boilerplate/Makefile.am.features
31837 + touch src/Makefile.am.features
31838 + touch ChangeLog
31839 + fi
31840 +
31841 + # We need to run elibtoolize to ensure correct so versioning on FreeBSD
31842 + # upgraded to an eautoreconf for the above interix patch.
31843 + eautoreconf
31844 +}
31845 +
31846 +src_configure() {
31847 + local myopts
31848 +
31849 + # SuperH doesn't have native atomics yet
31850 + use sh && myopts+=" --disable-atomic"
31851 +
31852 + [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
31853 +
31854 + # tracing fails to compile, because Solaris' libelf doesn't do large files
31855 + [[ ${CHOST} == *-solaris* ]] && myopts+=" --disable-trace"
31856 +
31857 + # 128-bits long arithemetic functions are missing
31858 + [[ ${CHOST} == powerpc*-*-darwin* ]] && filter-flags -mcpu=*
31859 +
31860 + #gets rid of fbmmx.c inlining warnings
31861 + append-flags -finline-limit=1200
31862 +
31863 + if use X; then
31864 + myopts+="
31865 + --enable-tee=yes
31866 + $(use_enable drm)
31867 + "
31868 +
31869 + if use drm; then
31870 + myopts+="
31871 + $(use_enable gallium)
31872 + $(use_enable xcb xcb-drm)
31873 + "
31874 + else
31875 + use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
31876 + myopts+="
31877 + --disable-gallium
31878 + --disable-xcb-drm
31879 + "
31880 + fi
31881 + else
31882 + use drm && ewarn "drm use requires X use enabled. So disabling for now."
31883 + myopts+="
31884 + --disable-drm
31885 + --disable-gallium
31886 + --disable-xcb-drm
31887 + "
31888 + fi
31889 +
31890 + use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
31891 +
31892 + # --disable-xcb-lib:
31893 + # do not override good xlib backed by hardforcing rendering over xcb
31894 + econf \
31895 + --disable-dependency-tracking \
31896 + $(use_with X x) \
31897 + $(use_enable X xlib) \
31898 + $(use_enable X xlib-xrender) \
31899 + $(use_enable aqua quartz) \
31900 + $(use_enable aqua quartz-image) \
31901 + $(use_enable debug test-surfaces) \
31902 + $(use_enable directfb) \
31903 + $(use_enable glib gobject) \
31904 + $(use_enable doc gtk-doc) \
31905 + $(use_enable openvg vg) \
31906 + $(use_enable opengl gl) \
31907 + $(use_enable qt4 qt) \
31908 + $(use_enable static-libs static) \
31909 + $(use_enable svg) \
31910 + $(use_enable xcb) \
31911 + $(use_enable xcb xcb-shm) \
31912 + --enable-ft \
31913 + --enable-pdf \
31914 + --enable-png \
31915 + --enable-ps \
31916 + --disable-xlib-xcb \
31917 + ${myopts}
31918 +}
31919 +
31920 +src_install() {
31921 + # parallel make install fails
31922 + emake -j1 DESTDIR="${D}" install || die
31923 + find "${ED}" -name '*.la' -exec rm -f {} +
31924 + dodoc AUTHORS ChangeLog NEWS README || die
31925 +}
31926
31927 diff --git a/x11-libs/cairo/cairo-1.8.10.ebuild b/x11-libs/cairo/cairo-1.8.10.ebuild
31928 new file mode 100644
31929 index 0000000..004278b
31930 --- /dev/null
31931 +++ b/x11-libs/cairo/cairo-1.8.10.ebuild
31932 @@ -0,0 +1,102 @@
31933 +# Copyright 1999-2012 Gentoo Foundation
31934 +# Distributed under the terms of the GNU General Public License v2
31935 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.10.ebuild,v 1.13 2012/05/05 03:52:24 jdhore Exp $
31936 +
31937 +EAPI=2
31938 +
31939 +inherit eutils flag-o-matic autotools
31940 +
31941 +DESCRIPTION="A vector graphics library with cross-device output support"
31942 +HOMEPAGE="http://cairographics.org/"
31943 +SRC_URI="http://cairographics.org/releases/${P}.tar.gz
31944 + mirror://gentoo/${PN}-1.8-lcd_filter.patch.bz2"
31945 +
31946 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
31947 +SLOT="0"
31948 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
31949 +IUSE="aqua cleartype debug directfb doc lcdfilter opengl +svg X xcb"
31950 +
31951 +# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
31952 +RESTRICT="test"
31953 +
31954 +RDEPEND="media-libs/fontconfig
31955 + >=media-libs/freetype-2.1.9
31956 + sys-libs/zlib
31957 + >=media-libs/libpng-1.2.43-r2:0
31958 + >=x11-libs/pixman-0.12.0
31959 + directfb? ( >=dev-libs/DirectFB-0.9.24 )
31960 + svg? ( dev-libs/libxml2 )
31961 + X? ( >=x11-libs/libXrender-0.6
31962 + x11-libs/libXext
31963 + x11-libs/libX11
31964 + x11-libs/libXft )
31965 + xcb? ( >=x11-libs/libxcb-0.92
31966 + x11-libs/xcb-util )"
31967 +# test? (
31968 +# pdf test
31969 +# x11-libs/pango
31970 +# >=x11-libs/gtk+-2.0
31971 +# >=app-text/poppler-bindings-0.9.2[gtk]
31972 +# ps test
31973 +# app-text/ghostscript-gpl
31974 +# svg test
31975 +# >=x11-libs/gtk+-2.0
31976 +# >=gnome-base/librsvg-2.15.0
31977 +
31978 +DEPEND="${RDEPEND}
31979 + virtual/pkgconfig
31980 + >=sys-devel/libtool-2
31981 + doc? ( >=dev-util/gtk-doc-1.6
31982 + ~app-text/docbook-xml-dtd-4.2 )
31983 + X? ( x11-proto/renderproto )"
31984 +
31985 +src_prepare() {
31986 + if use lcdfilter; then
31987 + # LCD filter patch from Ubuntu, taken from:
31988 + # http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/lucid/cairo/lucid/files/head%3A/debian/patches/
31989 + epatch "${WORKDIR}"/${PN}-1.8-lcd_filter.patch
31990 + elif use cleartype; then
31991 + # ClearType-like patches applied by ArchLinux
31992 + epatch "${FILESDIR}"/${PN}-1.2.4-lcd-cleartype-like.diff
31993 + fi
31994 +
31995 + epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch \
31996 + "${FILESDIR}"/${P}-libpng14.patch
31997 +
31998 + # We need to run elibtoolize to ensure correct so versioning on FreeBSD
31999 + # upgraded to an eautoreconf for the above interix patch.
32000 + eautoreconf
32001 +}
32002 +
32003 +src_configure() {
32004 + [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
32005 + # http://bugs.freedesktop.org/show_bug.cgi?id=15463
32006 + [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
32007 +
32008 + #gets rid of fbmmx.c inlining warnings
32009 + append-flags -finline-limit=1200
32010 +
32011 + econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
32012 + $(use_enable directfb) $(use_enable xcb) \
32013 + $(use_enable svg) --disable-glitz $(use_enable X xlib-xrender) \
32014 + $(use_enable debug test-surfaces) --enable-pdf --enable-png \
32015 + --enable-ft --enable-ps \
32016 + $(use_enable aqua quartz) $(use_enable aqua quartz-image) \
32017 + || die "configure failed"
32018 +}
32019 +
32020 +src_install() {
32021 + make DESTDIR="${D}" install || die "Installation failed"
32022 + dodoc AUTHORS ChangeLog NEWS README
32023 +}
32024 +
32025 +pkg_postinst() {
32026 + if use xcb; then
32027 + ewarn "You have enabled the Cairo XCB backend which is used only by"
32028 + ewarn "a select few apps. The Cairo XCB backend is presently"
32029 + ewarn "un-maintained and needs a lot of work to get it caught up"
32030 + ewarn "to the Xrender and Xlib backends, which are the backends used"
32031 + ewarn "by most applications. See:"
32032 + ewarn "http://lists.freedesktop.org/archives/xcb/2008-December/004139.html"
32033 + fi
32034 +}
32035
32036 diff --git a/x11-libs/cairo/cairo-9999.ebuild b/x11-libs/cairo/cairo-9999.ebuild
32037 new file mode 100644
32038 index 0000000..950ec36
32039 --- /dev/null
32040 +++ b/x11-libs/cairo/cairo-9999.ebuild
32041 @@ -0,0 +1,136 @@
32042 +# Copyright 1999-2012 Gentoo Foundation
32043 +# Distributed under the terms of the GNU General Public License v2
32044 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.19 2012/05/05 03:52:25 jdhore Exp $
32045 +
32046 +EAPI=4
32047 +
32048 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
32049 +[[ ${PV} == *9999 ]] && GIT_ECLASS="git-2"
32050 +
32051 +inherit eutils flag-o-matic autotools ${GIT_ECLASS}
32052 +
32053 +DESCRIPTION="A vector graphics library with cross-device output support"
32054 +HOMEPAGE="http://cairographics.org/"
32055 +[[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
32056 +
32057 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
32058 +SLOT="0"
32059 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
32060 +IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb"
32061 +
32062 +# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
32063 +RESTRICT="test"
32064 +
32065 +RDEPEND="media-libs/fontconfig
32066 + media-libs/freetype:2
32067 + media-libs/libpng:0
32068 + sys-libs/zlib
32069 + >=x11-libs/pixman-0.18.4
32070 + directfb? ( dev-libs/DirectFB )
32071 + glib? ( >=dev-libs/glib-2.28.6:2 )
32072 + opengl? ( virtual/opengl )
32073 + openvg? ( media-libs/mesa[openvg] )
32074 + qt4? ( >=x11-libs/qt-gui-4.8:4 )
32075 + svg? ( dev-libs/libxml2 )
32076 + X? (
32077 + >=x11-libs/libXrender-0.6
32078 + x11-libs/libXext
32079 + x11-libs/libX11
32080 + x11-libs/libXft
32081 + drm? (
32082 + >=sys-fs/udev-136
32083 + gallium? ( media-libs/mesa[gallium] )
32084 + )
32085 + )
32086 + xcb? (
32087 + x11-libs/libxcb
32088 + x11-libs/xcb-util
32089 + )"
32090 +DEPEND="${RDEPEND}
32091 + virtual/pkgconfig
32092 + >=sys-devel/libtool-2
32093 + doc? (
32094 + >=dev-util/gtk-doc-1.6
32095 + ~app-text/docbook-xml-dtd-4.2
32096 + )
32097 + X? (
32098 + x11-proto/renderproto
32099 + drm? (
32100 + x11-proto/xproto
32101 + >=x11-proto/xextproto-7.1
32102 + )
32103 + )"
32104 +
32105 +# drm module requires X
32106 +# for gallium we need to enable drm
32107 +REQUIRED_USE="
32108 + drm? ( X )
32109 + gallium? ( drm )
32110 +"
32111 +
32112 +src_prepare() {
32113 + epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
32114 +
32115 + # Slightly messed build system YAY
32116 + if [[ ${PV} == *9999* ]]; then
32117 + touch boilerplate/Makefile.am.features
32118 + touch src/Makefile.am.features
32119 + touch ChangeLog
32120 + fi
32121 +
32122 + # We need to run elibtoolize to ensure correct so versioning on FreeBSD
32123 + # upgraded to an eautoreconf for the above interix patch.
32124 + eautoreconf
32125 +}
32126 +
32127 +src_configure() {
32128 + local myopts
32129 +
32130 + # SuperH doesn't have native atomics yet
32131 + use sh && myopts+=" --disable-atomic"
32132 +
32133 + [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
32134 + # http://bugs.freedesktop.org/show_bug.cgi?id=15463
32135 + [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
32136 +
32137 + #gets rid of fbmmx.c inlining warnings
32138 + append-flags -finline-limit=1200
32139 +
32140 + use X && myopts+=" --enable-tee=yes"
32141 +
32142 + # --disable-xcb-lib:
32143 + # do not override good xlib backed by hardforcing rendering over xcb
32144 + econf \
32145 + --disable-dependency-tracking \
32146 + $(use_with X x) \
32147 + $(use_enable X xlib) \
32148 + $(use_enable X xlib-xrender) \
32149 + $(use_enable aqua quartz) \
32150 + $(use_enable aqua quartz-image) \
32151 + $(use_enable debug test-surfaces) \
32152 + $(use_enable directfb) \
32153 + $(use_enable glib gobject) \
32154 + $(use_enable doc gtk-doc) \
32155 + $(use_enable openvg vg) \
32156 + $(use_enable opengl gl) \
32157 + $(use_enable qt4 qt) \
32158 + $(use_enable static-libs static) \
32159 + $(use_enable svg) \
32160 + $(use_enable xcb) \
32161 + $(use_enable xcb xcb-shm) \
32162 + $(use_enable drm) \
32163 + $(use_enable gallium) \
32164 + --enable-ft \
32165 + --enable-pdf \
32166 + --enable-png \
32167 + --enable-ps \
32168 + --disable-xlib-xcb \
32169 + ${myopts}
32170 +}
32171 +
32172 +src_install() {
32173 + # parallel make install fails
32174 + emake -j1 DESTDIR="${D}" install
32175 + find "${ED}" -name '*.la' -exec rm -f {} +
32176 + dodoc AUTHORS ChangeLog NEWS README
32177 +}
32178
32179 diff --git a/x11-libs/cairo/files/cairo-1.10.0-buggy_gradients.patch b/x11-libs/cairo/files/cairo-1.10.0-buggy_gradients.patch
32180 new file mode 100644
32181 index 0000000..a58c2f8
32182 --- /dev/null
32183 +++ b/x11-libs/cairo/files/cairo-1.10.0-buggy_gradients.patch
32184 @@ -0,0 +1,17 @@
32185 +http://repos.archlinux.org/wsvn/packages/cairo/trunk/cairo-1.10.0-buggy_gradients.patch
32186 +http://bugs.gentoo.org/336696
32187 +
32188 +--- src/cairo-xlib-display.c
32189 ++++ src/cairo-xlib-display.c
32190 +@@ -353,11 +353,7 @@
32191 + /* Prior to Render 0.10, there is no protocol support for gradients and
32192 + * we call function stubs instead, which would silently consume the drawing.
32193 + */
32194 +-#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
32195 + display->buggy_gradients = TRUE;
32196 +-#else
32197 +- display->buggy_gradients = FALSE;
32198 +-#endif
32199 + display->buggy_pad_reflect = FALSE;
32200 + display->buggy_repeat = FALSE;
32201 +
32202
32203 diff --git a/x11-libs/cairo/files/cairo-1.10.2-interix.patch b/x11-libs/cairo/files/cairo-1.10.2-interix.patch
32204 new file mode 100644
32205 index 0000000..3333e3e
32206 --- /dev/null
32207 +++ b/x11-libs/cairo/files/cairo-1.10.2-interix.patch
32208 @@ -0,0 +1,36 @@
32209 +commit 95f6f7a174ca096a3d3dbe84ff220d166d1e2baa
32210 +Author: Uli Schlachter <psychon@×××.in>
32211 +Date: Fri Oct 22 11:54:57 2010 +0200
32212 +
32213 + Make both versions of _cairo_lround consistent again
32214 +
32215 + Commit c0008242b0f made cairo use libm's lround instead of its own _cairo_lround
32216 + by default. However, since commit ce58f874 from 2006, _cairo_lround does
32217 + arithmetic rounding instead of away-from-zero rounding (before said commit, it
32218 + was using baker's rounding).
32219 +
32220 + So to make the rounding of _cairo_lround be independent from
32221 + DISABLE_SOME_FLOATING_POINT, we have to use another function. Turns out that
32222 + _cairo_round already does the same thing that _cairo_lround does. Their only
32223 + difference is the return type.
32224 +
32225 + Signed-off-by: Uli Schlachter <psychon@×××.in>
32226 + Signed-off-by: Chris Wilson <chris@×××××××××××××××.uk>
32227 +
32228 +diff --git a/src/cairoint.h b/src/cairoint.h
32229 +index 53c87e5..539d92e 100644
32230 +--- a/src/cairoint.h
32231 ++++ b/src/cairoint.h
32232 +@@ -968,7 +968,11 @@ _cairo_round (double r)
32233 + cairo_private int
32234 + _cairo_lround (double d) cairo_const;
32235 + #else
32236 +-#define _cairo_lround lround
32237 ++static inline int cairo_const
32238 ++_cairo_lround (double r)
32239 ++{
32240 ++ return _cairo_round (r);
32241 ++}
32242 + #endif
32243 +
32244 + cairo_private uint16_t
32245
32246 diff --git a/x11-libs/cairo/files/cairo-1.10.2-qt-surface.patch b/x11-libs/cairo/files/cairo-1.10.2-qt-surface.patch
32247 new file mode 100644
32248 index 0000000..cf0b57a
32249 --- /dev/null
32250 +++ b/x11-libs/cairo/files/cairo-1.10.2-qt-surface.patch
32251 @@ -0,0 +1,55 @@
32252 +diff -ruN cairo-1.10.2-0-vanilla/src/cairo-qt-surface.cpp cairo-1.10.2/src/cairo-qt-surface.cpp
32253 +--- cairo-1.10.2-0-vanilla/src/cairo-qt-surface.cpp 2010-12-25 15:21:34.000000000 +0100
32254 ++++ cairo-1.10.2/src/cairo-qt-surface.cpp 2011-12-20 22:59:30.000000000 +0100
32255 +@@ -61,7 +61,9 @@
32256 + #include <QtGui/QX11Info>
32257 + #include <QtCore/QVarLengthArray>
32258 +
32259 +-#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)) || defined(QT_GLYPHS_API_BACKPORT)
32260 ++#if (QT_VERSION >= QT_VERSION_CHECK(4, 8, 0))
32261 ++#include <QtGui/QGlyphRun>
32262 ++#elif (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)) || defined(QT_GLYPHS_API_BACKPORT)
32263 + extern void qt_draw_glyphs(QPainter *, const quint32 *glyphs, const QPointF *positions, int count);
32264 + #endif
32265 +
32266 +@@ -1370,7 +1372,39 @@
32267 + cairo_clip_t *clip,
32268 + int *remaining_glyphs)
32269 + {
32270 +-#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)) || defined(QT_GLYPHS_API_BACKPORT)
32271 ++#if (QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)) && !defined(QT_NO_RAWFONT)
32272 ++ cairo_qt_surface_t *qs = (cairo_qt_surface_t *) abstract_surface;
32273 ++
32274 ++ // pick out the colour to use from the cairo source
32275 ++ cairo_solid_pattern_t *solid = (cairo_solid_pattern_t*) source;
32276 ++ // documentation says you have to freeze the cache, but I don't believe it
32277 ++ _cairo_scaled_font_freeze_cache(scaled_font);
32278 ++
32279 ++ QColor tempColour(solid->color.red * 255, solid->color.green * 255, solid->color.blue * 255);
32280 ++ QVector<QPointF> positions(num_glyphs);
32281 ++ QVector<unsigned int> glyphss(num_glyphs);
32282 ++ FT_Face face = cairo_ft_scaled_font_lock_face (scaled_font);
32283 ++ const FT_Size_Metrics& ftMetrics = face->size->metrics;
32284 ++ QFont font(face->family_name);
32285 ++ font.setStyleStrategy(QFont::NoFontMerging);
32286 ++ font.setBold(face->style_flags & FT_STYLE_FLAG_BOLD);
32287 ++ font.setItalic(face->style_flags & FT_STYLE_FLAG_ITALIC);
32288 ++ font.setKerning(face->face_flags & FT_FACE_FLAG_KERNING);
32289 ++ font.setPixelSize(ftMetrics.y_ppem);
32290 ++ cairo_ft_scaled_font_unlock_face(scaled_font);
32291 ++ qs->p->setFont(font);
32292 ++ qs->p->setPen(tempColour);
32293 ++ for (int currentGlyph = 0; currentGlyph < num_glyphs; currentGlyph++) {
32294 ++ positions.append(QPointF(glyphs[currentGlyph].x, glyphs[currentGlyph].y));
32295 ++ glyphss.append(glyphs[currentGlyph].index);
32296 ++ }
32297 ++ QGlyphRun qglyphs;
32298 ++ qglyphs.setGlyphIndexes(glyphss);
32299 ++ qglyphs.setPositions(positions);
32300 ++ qs->p->drawGlyphRun(QPointF(), qglyphs);
32301 ++ _cairo_scaled_font_thaw_cache(scaled_font);
32302 ++ return CAIRO_INT_STATUS_SUCCESS;
32303 ++#elif (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)) || defined(QT_GLYPHS_API_BACKPORT)
32304 + cairo_qt_surface_t *qs = (cairo_qt_surface_t *) abstract_surface;
32305 +
32306 + // pick out the colour to use from the cairo source
32307
32308 diff --git a/x11-libs/cairo/files/cairo-1.2.4-lcd-cleartype-like.diff b/x11-libs/cairo/files/cairo-1.2.4-lcd-cleartype-like.diff
32309 new file mode 100644
32310 index 0000000..2f908b8
32311 --- /dev/null
32312 +++ b/x11-libs/cairo/files/cairo-1.2.4-lcd-cleartype-like.diff
32313 @@ -0,0 +1,275 @@
32314 +diff -rup libcairo-1.2.4.orig/src/cairo-ft-font.c libcairo-1.2.4/src/cairo-ft-font.c
32315 +--- libcairo-1.2.4.orig/src/cairo-ft-font.c 2006-08-22 21:40:02.802247352 +0800
32316 ++++ libcairo-1.2.4/src/cairo-ft-font.c 2006-08-22 21:40:39.443677008 +0800
32317 +@@ -53,6 +53,8 @@
32318 + #include FT_SYNTHESIS_H
32319 + #endif
32320 +
32321 ++#define FIR_FILTER 1
32322 ++
32323 + #define DOUBLE_TO_26_6(d) ((FT_F26Dot6)((d) * 64.0))
32324 + #define DOUBLE_FROM_26_6(t) ((double)(t) / 64.0)
32325 + #define DOUBLE_TO_16_16(d) ((FT_Fixed)((d) * 65536.0))
32326 +@@ -492,6 +494,8 @@ _cairo_ft_unscaled_font_destroy (void *a
32327 + }
32328 + }
32329 +
32330 ++static const int fir_filter[5] = { 0x1C, 0x38, 0x55, 0x38, 0x1C };
32331 ++
32332 + static cairo_bool_t
32333 + _has_unlocked_face (void *entry)
32334 + {
32335 +@@ -779,7 +783,220 @@ _get_bitmap_surface (FT_Bitmap *bi
32336 + }
32337 + format = CAIRO_FORMAT_A8;
32338 + break;
32339 +- case CAIRO_ANTIALIAS_SUBPIXEL: {
32340 ++ case CAIRO_ANTIALIAS_SUBPIXEL:
32341 ++#ifdef FIR_FILTER
32342 ++ {
32343 ++ unsigned char* line;
32344 ++ unsigned char* bufBitmap;
32345 ++ int pitch;
32346 ++ unsigned char *data_rgba;
32347 ++ unsigned int width_rgba, stride_rgba;
32348 ++ int vmul = 1;
32349 ++ int hmul = 1;
32350 ++
32351 ++ switch (font_options->subpixel_order) {
32352 ++ case CAIRO_SUBPIXEL_ORDER_DEFAULT:
32353 ++ case CAIRO_SUBPIXEL_ORDER_RGB:
32354 ++ case CAIRO_SUBPIXEL_ORDER_BGR:
32355 ++ default:
32356 ++ width /= 3;
32357 ++ hmul = 3;
32358 ++ break;
32359 ++ case CAIRO_SUBPIXEL_ORDER_VRGB:
32360 ++ case CAIRO_SUBPIXEL_ORDER_VBGR:
32361 ++ vmul = 3;
32362 ++ height /= 3;
32363 ++ break;
32364 ++ }
32365 ++ /*
32366 ++ * Filter the glyph to soften the color fringes
32367 ++ */
32368 ++ width_rgba = width;
32369 ++ stride = bitmap->pitch;
32370 ++ stride_rgba = (width_rgba * 4 + 3) & ~3;
32371 ++ data_rgba = calloc (1, stride_rgba * height);
32372 ++
32373 ++ /* perform in-place FIR filtering in either the horizontal or
32374 ++ * vertical direction. We're going to modify the RGB graymap,
32375 ++ * but that's ok, because we either own it, or its part of
32376 ++ * the FreeType glyph slot, which will not be used anymore.
32377 ++ */
32378 ++ pitch = bitmap->pitch;
32379 ++ line = (unsigned char*)bitmap->buffer;
32380 ++ if ( pitch < 0 )
32381 ++ line -= pitch*(height-1);
32382 ++
32383 ++ bufBitmap = line;
32384 ++
32385 ++ switch (font_options->subpixel_order) {
32386 ++ case CAIRO_SUBPIXEL_ORDER_DEFAULT:
32387 ++ case CAIRO_SUBPIXEL_ORDER_RGB:
32388 ++ case CAIRO_SUBPIXEL_ORDER_BGR:
32389 ++ {
32390 ++ int h;
32391 ++
32392 ++ for ( h = height; h > 0; h--, line += pitch ) {
32393 ++ int pix[6] = { 0, 0, 0, 0, 0, 0 };
32394 ++ unsigned char* p = line;
32395 ++ unsigned char* limit = line + width*3;
32396 ++ int nn, val, val2;
32397 ++
32398 ++ val = p[0];
32399 ++ for (nn = 0; nn < 3; nn++)
32400 ++ pix[2 + nn] += val * fir_filter[nn];
32401 ++
32402 ++ val = p[1];
32403 ++ for (nn = 0; nn < 4; nn++)
32404 ++ pix[1 + nn] += val * fir_filter[nn];
32405 ++
32406 ++ p += 2;
32407 ++
32408 ++ for ( ; p < limit; p++ ) {
32409 ++ val = p[0];
32410 ++ for (nn = 0; nn < 5; nn++)
32411 ++ pix[nn] += val * fir_filter[nn];
32412 ++
32413 ++ val2 = pix[0] / 256;
32414 ++ val2 |= -(val2 >> 8);
32415 ++ p[-2] = (unsigned char)val2;
32416 ++
32417 ++ for (nn = 0; nn < 5; nn++)
32418 ++ pix[nn] = pix[nn + 1];
32419 ++ }
32420 ++ for (nn = 0; nn < 2; nn++ ) {
32421 ++ val2 = pix[nn] / 256;
32422 ++ val2 |= -(val2 >> 8);
32423 ++ p[nn - 2] = (unsigned char)val2;
32424 ++ }
32425 ++ }
32426 ++ }
32427 ++ break;
32428 ++ case CAIRO_SUBPIXEL_ORDER_VRGB:
32429 ++ case CAIRO_SUBPIXEL_ORDER_VBGR:
32430 ++ {
32431 ++ int w;
32432 ++
32433 ++ for (w = 0; w < width; w++ ) {
32434 ++ int pix[6] = { 0, 0, 0, 0, 0, 0 };
32435 ++ unsigned char* p = bufBitmap + w;
32436 ++ unsigned char* limit = bufBitmap + w + height*3*pitch;
32437 ++ int nn, val, val2;
32438 ++
32439 ++ val = p[0];
32440 ++ for (nn = 0; nn < 3; nn++)
32441 ++ pix[2 + nn] += val*fir_filter[nn];
32442 ++
32443 ++ val = p[pitch];
32444 ++ for (nn = 0; nn < 4; nn++ )
32445 ++ pix[1 + nn] += val * fir_filter[nn];
32446 ++
32447 ++ p += 2*pitch;
32448 ++ for ( ; p < limit; p += pitch ) {
32449 ++ val = p[0];
32450 ++ for (nn = 0; nn < 5; nn++ )
32451 ++ pix[nn] += val * fir_filter[nn];
32452 ++
32453 ++ val2 = pix[0] / 256;
32454 ++ val2 |= -(val2 >> 8);
32455 ++ p[-2 * pitch] = (unsigned char)val2;
32456 ++
32457 ++ for (nn = 0; nn < 5; nn++)
32458 ++ pix[nn] = pix[nn+1];
32459 ++ }
32460 ++
32461 ++ for (nn = 0; nn < 2; nn++) {
32462 ++ val2 = pix[nn] / 256;
32463 ++ val2 |= -(val2 >> 8);
32464 ++ p[(nn - 2) * pitch] = (unsigned char)val2;
32465 ++ }
32466 ++ }
32467 ++ }
32468 ++ break;
32469 ++ default: /* shouldn't happen */
32470 ++ break;
32471 ++ }
32472 ++
32473 ++ /* now copy the resulting graymap into an ARGB32 image */
32474 ++ {
32475 ++ unsigned char* in_line = bufBitmap;
32476 ++ unsigned char* out_line = data_rgba;
32477 ++ int h = height;
32478 ++
32479 ++ switch (font_options->subpixel_order) {
32480 ++ case CAIRO_SUBPIXEL_ORDER_DEFAULT:
32481 ++ case CAIRO_SUBPIXEL_ORDER_RGB:
32482 ++ for ( ; h > 0; h--, in_line += pitch, out_line += stride_rgba) {
32483 ++ unsigned char* in = in_line;
32484 ++ int* out = (int*)out_line;
32485 ++ int w;
32486 ++
32487 ++ for (w = width; w > 0; w--, in += 3, out += 1) {
32488 ++ int r = in[0];
32489 ++ int g = in[1];
32490 ++ int b = in[2];
32491 ++
32492 ++ out[0] = (g << 24) | (r << 16) | (g << 8) | b;
32493 ++ }
32494 ++ }
32495 ++ break;
32496 ++ case CAIRO_SUBPIXEL_ORDER_BGR:
32497 ++ for ( ; h > 0; h--, in_line += pitch, out_line += stride_rgba) {
32498 ++ unsigned char* in = in_line;
32499 ++ int* out = (int*)out_line;
32500 ++ int w;
32501 ++
32502 ++ for (w = width; w > 0; w--, in += 3, out += 1) {
32503 ++ int r = in[2];
32504 ++ int g = in[1];
32505 ++ int b = in[0];
32506 ++
32507 ++ out[0] = (g << 24) | (r << 16) | (g << 8) | b;
32508 ++ }
32509 ++ }
32510 ++ break;
32511 ++ case CAIRO_SUBPIXEL_ORDER_VRGB:
32512 ++ for ( ; h > 0; h--, in_line += pitch*3, out_line += stride_rgba) {
32513 ++ unsigned char* in = in_line;
32514 ++ int* out = (int*)out_line;
32515 ++ int w;
32516 ++
32517 ++ for (w = width; w > 0; w--, in += 1, out += 1) {
32518 ++ int r = in[0];
32519 ++ int g = in[pitch];
32520 ++ int b = in[pitch*2];
32521 ++
32522 ++ out[0] = (g << 24) | (r << 16) | (g << 8) | b;
32523 ++ }
32524 ++ }
32525 ++ break;
32526 ++ case CAIRO_SUBPIXEL_ORDER_VBGR:
32527 ++ for ( ; h > 0; h--, in_line += pitch*3, out_line += stride_rgba) {
32528 ++ unsigned char* in = in_line;
32529 ++ int* out = (int*)out_line;
32530 ++ int w;
32531 ++
32532 ++ for (w = width; w > 0; w--, in += 1, out += 1) {
32533 ++ int r = in[2*pitch];
32534 ++ int g = in[pitch];
32535 ++ int b = in[0];
32536 ++
32537 ++ out[0] = (g << 24) | (r << 16) | (g << 8) | b;
32538 ++ }
32539 ++ }
32540 ++ break;
32541 ++ }
32542 ++ }
32543 ++
32544 ++ if (own_buffer)
32545 ++ free (bitmap->buffer);
32546 ++ data = data_rgba;
32547 ++ stride = stride_rgba;
32548 ++ format = CAIRO_FORMAT_ARGB32;
32549 ++ subpixel = TRUE;
32550 ++ break;
32551 ++ }
32552 ++#else /* !FIR_FILTER */
32553 ++ {
32554 + int x, y;
32555 + unsigned char *in_line, *out_line, *in;
32556 + unsigned int *out;
32557 +@@ -871,6 +1088,7 @@ _get_bitmap_surface (FT_Bitmap *bi
32558 + subpixel = TRUE;
32559 + break;
32560 + }
32561 ++#endif /* !FIR_FILTER */
32562 + }
32563 + break;
32564 + case FT_PIXEL_MODE_GRAY2:
32565 +@@ -986,12 +1204,22 @@ _render_glyph_outline (FT_Face
32566 + matrix.xx *= 3;
32567 + hmul = 3;
32568 + subpixel = TRUE;
32569 ++#ifdef FIR_FILTER
32570 ++ cbox.xMin -= 64;
32571 ++ cbox.xMax += 64;
32572 ++ width += 2;
32573 ++#endif
32574 + break;
32575 + case CAIRO_SUBPIXEL_ORDER_VRGB:
32576 + case CAIRO_SUBPIXEL_ORDER_VBGR:
32577 + matrix.yy *= 3;
32578 + vmul = 3;
32579 + subpixel = TRUE;
32580 ++#ifdef FIR_FILTER
32581 ++ cbox.yMin -= 64;
32582 ++ cbox.yMax += 64;
32583 ++ height += 2;
32584 ++#endif
32585 + break;
32586 + }
32587 + FT_Outline_Transform (outline, &matrix);
32588 +Only in libcairo-1.2.4/src: cairo-ft-font.c.orig
32589
32590 diff --git a/x11-libs/cairo/files/cairo-1.8.10-libpng14.patch b/x11-libs/cairo/files/cairo-1.8.10-libpng14.patch
32591 new file mode 100644
32592 index 0000000..1872367
32593 --- /dev/null
32594 +++ b/x11-libs/cairo/files/cairo-1.8.10-libpng14.patch
32595 @@ -0,0 +1,11 @@
32596 +--- configure.ac
32597 ++++ configure.ac
32598 +@@ -161,7 +161,7 @@
32599 + AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config])
32600 + if test "x$png_REQUIRES" = x; then
32601 + # libpng13 is GnuWin32's libpng-1.2.8 :-(
32602 +- for l in libpng12 libpng13 libpng10 libpng; do
32603 ++ for l in libpng14 libpng12 libpng13 libpng10 libpng; do
32604 + if $PKG_CONFIG --exists $l ; then
32605 + png_REQUIRES=$l
32606 + use_png=yes
32607
32608 diff --git a/x11-libs/cairo/files/cairo-1.8.8-interix.patch b/x11-libs/cairo/files/cairo-1.8.8-interix.patch
32609 new file mode 100644
32610 index 0000000..dc20714
32611 --- /dev/null
32612 +++ b/x11-libs/cairo/files/cairo-1.8.8-interix.patch
32613 @@ -0,0 +1,16 @@
32614 +diff -ru cairo-1.8.8.orig/build/configure.ac.tools cairo-1.8.8/build/configure.ac.tools
32615 +--- cairo-1.8.8.orig/build/configure.ac.tools 2009-09-30 13:36:42 +0200
32616 ++++ cairo-1.8.8/build/configure.ac.tools 2009-09-30 13:50:50 +0200
32617 +@@ -21,5 +21,12 @@
32618 + *) PKGCONFIG_REQUIRES="Requires.private"; ;;
32619 + esac
32620 +
32621 ++dnl hmm... on interix, things go really bad with Requires.private, since libpng12
32622 ++dnl is missing on the final link commands, so gtk+'s configure checks for cairo
32623 ++dnl fail miserably with unresolved symbols to it.
32624 ++case "$host_os" in
32625 ++interix*) PKGCONFIG_REQUIRES="Requires" ;;
32626 ++esac
32627 ++
32628 + AC_SUBST(PKGCONFIG_REQUIRES)
32629 +
32630
32631 diff --git a/x11-libs/libXmu/Manifest b/x11-libs/libXmu/Manifest
32632 new file mode 100644
32633 index 0000000..55b2644
32634 --- /dev/null
32635 +++ b/x11-libs/libXmu/Manifest
32636 @@ -0,0 +1,6 @@
32637 +DIST libXmu-1.1.0.tar.bz2 360663 RMD160 e6ca19dfb86a3532faa6e37c8a5cd6edff6a1c62 SHA1 81876a0848070bfc4476a2538fc16898eb6d96cd SHA256 0fa91f303b70decc1ef6201c88c8a5f0b4ecd68c6c88bdcc891ecd1a689d36ad
32638 +DIST libXmu-1.1.1.tar.bz2 383473 RMD160 9b04624ee16ebd10c07b9554771e18d16d77374f SHA1 3e280aa927d78c05f94db6c7ae606f7ad132b495 SHA256 709081c550cc3a866d7c760a3f97384a1fe16e27fc38fe8169b8db9f33aa7edd
32639 +EBUILD libXmu-1.1.0.ebuild 815 RMD160 795fea1050d7495aeb489ed69988969939d96346 SHA1 8fa7e7d5516685b9d30c4ca7a5ef658f796aa1cc SHA256 d5f30c23e30bf136fab4e2f2e7586c5bee26a958de22af83c800a59c4ae04282
32640 +EBUILD libXmu-1.1.1.ebuild 837 RMD160 a65ef75a363b19da70babae4c5a3de1d63a38e56 SHA1 cc35c618ee207f2343d1a33c050aec49eaa5515b SHA256 007c4ffbcf257572891d98a29dce4b0919293cdab242046cd4b94256c5af0a71
32641 +MISC ChangeLog 8247 RMD160 f19a7cebe2c8681c710fd0d34cd2223c6a1ea34c SHA1 4b7b127633503d475202363484db007330e6f733 SHA256 0582a5a175992a89aa67838036437f813de91a569a8f6ae6857141a1be36d756
32642 +MISC metadata.xml 156 RMD160 c1274bdccf57603d580de0075ba07a35b7509560 SHA1 6f78f604e3d079d39189b40aaaa1ddb06182ad91 SHA256 5101ab0d4cc8c7125eea733c44e86962769bd77acaf53b69223b9cadcdd29055
32643
32644 diff --git a/x11-libs/libXmu/libXmu-1.1.0.ebuild b/x11-libs/libXmu/libXmu-1.1.0.ebuild
32645 new file mode 100644
32646 index 0000000..4ca1d74
32647 --- /dev/null
32648 +++ b/x11-libs/libXmu/libXmu-1.1.0.ebuild
32649 @@ -0,0 +1,27 @@
32650 +# Copyright 1999-2011 Gentoo Foundation
32651 +# Distributed under the terms of the GNU General Public License v2
32652 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXmu/libXmu-1.1.0.ebuild,v 1.10 2011/06/22 18:43:31 grobian Exp $
32653 +
32654 +EAPI=3
32655 +inherit xorg-2
32656 +
32657 +DESCRIPTION="X.Org Xmu library"
32658 +
32659 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
32660 +IUSE="doc ipv6"
32661 +
32662 +RDEPEND="x11-libs/libXt
32663 + x11-libs/libXext
32664 + x11-libs/libX11
32665 + x11-proto/xextproto"
32666 +DEPEND="${RDEPEND}
32667 + doc? ( app-text/xmlto )"
32668 +
32669 +pkg_setup() {
32670 + xorg-2_pkg_setup
32671 +
32672 + CONFIGURE_OPTIONS="$(use_enable ipv6)
32673 + $(use_enable doc docs)
32674 + $(use_with doc xmlto)
32675 + --without-fop"
32676 +}
32677
32678 diff --git a/x11-libs/libXmu/libXmu-1.1.1.ebuild b/x11-libs/libXmu/libXmu-1.1.1.ebuild
32679 new file mode 100644
32680 index 0000000..d31535f
32681 --- /dev/null
32682 +++ b/x11-libs/libXmu/libXmu-1.1.1.ebuild
32683 @@ -0,0 +1,30 @@
32684 +# Copyright 1999-2012 Gentoo Foundation
32685 +# Distributed under the terms of the GNU General Public License v2
32686 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXmu/libXmu-1.1.1.ebuild,v 1.4 2012/06/24 19:25:44 ago Exp $
32687 +
32688 +EAPI="4-slot-abi"
32689 +
32690 +XORG_DOC=doc
32691 +inherit xorg-2
32692 +
32693 +DESCRIPTION="X.Org Xmu library"
32694 +
32695 +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
32696 +IUSE="ipv6"
32697 +
32698 +RDEPEND="x11-libs/libXt
32699 + x11-libs/libXext
32700 + x11-libs/libX11
32701 + x11-proto/xextproto"
32702 +DEPEND="${RDEPEND}"
32703 +
32704 +pkg_setup() {
32705 + xorg-2_pkg_setup
32706 +
32707 + XORG_CONFIGURE_OPTIONS=(
32708 + $(use_enable ipv6)
32709 + $(use_enable doc docs)
32710 + $(use_with doc xmlto)
32711 + --without-fop
32712 + )
32713 +}
32714
32715 diff --git a/x11-libs/libxcb/files/libxcb-1.7-interix.patch b/x11-libs/libxcb/files/libxcb-1.7-interix.patch
32716 new file mode 100644
32717 index 0000000..4317f62
32718 --- /dev/null
32719 +++ b/x11-libs/libxcb/files/libxcb-1.7-interix.patch
32720 @@ -0,0 +1,103 @@
32721 +reported upstream: http://lists.freedesktop.org/archives/xcb/2011-June/007095.html
32722 +
32723 +diff -ru libxcb-1.7.orig/configure.ac libxcb-1.7/configure.ac
32724 +--- libxcb-1.7.orig/configure.ac 2011-06-08 09:12:30 +0200
32725 ++++ libxcb-1.7/configure.ac 2011-06-08 09:54:49 +0200
32726 +@@ -72,6 +72,8 @@
32727 + AC_SEARCH_LIBS(getaddrinfo, socket)
32728 + AC_SEARCH_LIBS(connect, socket)
32729 +
32730 ++AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAVE_GETADDRINFO, 1, [getaddrinfo() function is available])], )
32731 ++
32732 + case $host_os in
32733 + linux*)
32734 + AC_DEFINE([HAVE_ABSTRACT_SOCKETS], 1, [Define if your platform supports abstract sockets])
32735 +diff -ru libxcb-1.7.orig/src/xcb_auth.c libxcb-1.7/src/xcb_auth.c
32736 +--- libxcb-1.7.orig/src/xcb_auth.c 2011-06-08 09:12:30 +0200
32737 ++++ libxcb-1.7/src/xcb_auth.c 2011-06-08 09:54:49 +0200
32738 +@@ -33,6 +33,12 @@
32739 + #include <sys/param.h>
32740 + #include <unistd.h>
32741 + #include <stdlib.h>
32742 ++#include <arpa/inet.h>
32743 ++
32744 ++#ifdef __INTERIX
32745 ++/* _don't_ ask. interix has INADDR_LOOPBACK in here. */
32746 ++#include <rpc/types.h>
32747 ++#endif
32748 +
32749 + #include "xcb.h"
32750 + #include "xcbint.h"
32751 +diff -ru libxcb-1.7.orig/src/xcb_util.c libxcb-1.7/src/xcb_util.c
32752 +--- libxcb-1.7.orig/src/xcb_util.c 2011-06-08 09:12:30 +0200
32753 ++++ libxcb-1.7/src/xcb_util.c 2011-06-08 09:56:23 +0200
32754 +@@ -44,6 +44,7 @@
32755 + #include <unistd.h>
32756 + #include <fcntl.h>
32757 + #include <string.h>
32758 ++#include <arpa/inet.h>
32759 +
32760 + #include "xcb.h"
32761 + #include "xcbext.h"
32762 +@@ -281,10 +282,12 @@
32763 + static int _xcb_open_tcp(const char *host, char *protocol, const unsigned short port)
32764 + {
32765 + int fd = -1;
32766 ++#if HAVE_GETADDRINFO
32767 + struct addrinfo hints;
32768 + char service[6]; /* "65535" with the trailing '\0' */
32769 + struct addrinfo *results, *addr;
32770 + char *bracket;
32771 ++#endif
32772 +
32773 + if (protocol && strcmp("tcp",protocol) && strcmp("inet",protocol)
32774 + #ifdef AF_INET6
32775 +@@ -296,6 +299,7 @@
32776 + if (*host == '\0')
32777 + host = "localhost";
32778 +
32779 ++#if HAVE_GETADDRINFO
32780 + memset(&hints, 0, sizeof(hints));
32781 + #ifdef AI_ADDRCONFIG
32782 + hints.ai_flags |= AI_ADDRCONFIG;
32783 +@@ -338,6 +342,40 @@
32784 + }
32785 + freeaddrinfo(results);
32786 + return fd;
32787 ++#else
32788 ++ {
32789 ++ struct hostent* _h;
32790 ++ struct sockaddr_in _s;
32791 ++ struct in_addr ** _c;
32792 ++
32793 ++ if((_h = gethostbyname(host)) == NULL)
32794 ++ return -1;
32795 ++
32796 ++ _c = (struct in_addr**)_h->h_addr_list;
32797 ++ fd = -1;
32798 ++
32799 ++ while(*_c) {
32800 ++ _s.sin_family = AF_INET;
32801 ++ _s.sin_port = htons(port);
32802 ++ _s.sin_addr = *(*_c);
32803 ++
32804 ++ fd = _xcb_socket(_s.sin_family, SOCK_STREAM, 0);
32805 ++ if(fd >= 0) {
32806 ++ int on = 1;
32807 ++ setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
32808 ++ setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on));
32809 ++
32810 ++ if(connect(fd, (struct sockaddr*)&_s, sizeof(_s)) >= 0)
32811 ++ break;
32812 ++ close(fd);
32813 ++ fd = -1;
32814 ++ }
32815 ++ ++_c;
32816 ++ }
32817 ++
32818 ++ return fd;
32819 ++ }
32820 ++#endif
32821 + }
32822 +
32823 + static int _xcb_open_unix(char *protocol, const char *file)
32824
32825 diff --git a/x11-libs/libxcb/files/libxcb-1.8-waitall-hang.patch b/x11-libs/libxcb/files/libxcb-1.8-waitall-hang.patch
32826 new file mode 100644
32827 index 0000000..ef929cf
32828 --- /dev/null
32829 +++ b/x11-libs/libxcb/files/libxcb-1.8-waitall-hang.patch
32830 @@ -0,0 +1,54 @@
32831 +From 2b5bc1d3299510e10a1733e5a3b326232c774b75 Mon Sep 17 00:00:00 2001
32832 +From: Julien Cristau <jcristau@××××××.org>
32833 +Date: Thu, 9 Feb 2012 23:54:55 +0100
32834 +Subject: [PATCH] Stop using recv(MSG_WAITALL)
32835 +
32836 +In one case we don't actually want to fill up our buffer. In the other
32837 +one we're looping over the recv() until we have all the data.
32838 +
32839 +Debian bug#659104
32840 +
32841 +Reported-by: Christoph Egger <christoph@××××××.org>
32842 +Signed-off-by: Julien Cristau <jcristau@××××××.org>
32843 +---
32844 + src/xcb_in.c | 10 +++-------
32845 + 1 files changed, 3 insertions(+), 7 deletions(-)
32846 +
32847 +diff --git a/src/xcb_in.c b/src/xcb_in.c
32848 +index 969cfc0..4d8d691 100644
32849 +--- a/src/xcb_in.c
32850 ++++ b/src/xcb_in.c
32851 +@@ -51,11 +51,6 @@
32852 + #define XCB_REPLY 1
32853 + #define XCB_XGE_EVENT 35
32854 +
32855 +-/* required for compiling for Win32 using MinGW */
32856 +-#ifndef MSG_WAITALL
32857 +-#define MSG_WAITALL 0
32858 +-#endif
32859 +-
32860 + struct event_list {
32861 + xcb_generic_event_t *event;
32862 + struct event_list *next;
32863 +@@ -269,7 +264,7 @@ static int read_block(const int fd, void *buf, const ssize_t len)
32864 + int done = 0;
32865 + while(done < len)
32866 + {
32867 +- int ret = recv(fd, ((char *) buf) + done, len - done,MSG_WAITALL);
32868 ++ int ret = recv(fd, ((char *) buf) + done, len - done, 0);
32869 + if(ret > 0)
32870 + done += ret;
32871 + #ifndef _WIN32
32872 +@@ -661,7 +656,8 @@ void _xcb_in_replies_done(xcb_connection_t *c)
32873 +
32874 + int _xcb_in_read(xcb_connection_t *c)
32875 + {
32876 +- int n = recv(c->fd, c->in.queue + c->in.queue_len, sizeof(c->in.queue) - c->in.queue_len,MSG_WAITALL);
32877 ++ int n = recv(c->fd, c->in.queue + c->in.queue_len,
32878 ++ sizeof(c->in.queue) - c->in.queue_len, 0);
32879 + if(n > 0)
32880 + c->in.queue_len += n;
32881 + while(read_packet(c))
32882 +--
32883 +1.7.2.5
32884 +
32885
32886 diff --git a/x11-libs/libxcb/files/xcb-rebuilder.sh b/x11-libs/libxcb/files/xcb-rebuilder.sh
32887 new file mode 100755
32888 index 0000000..f5be0c1
32889 --- /dev/null
32890 +++ b/x11-libs/libxcb/files/xcb-rebuilder.sh
32891 @@ -0,0 +1,68 @@
32892 +#!/bin/bash
32893 +
32894 +# To use something besides `emerge` to install packages, set
32895 +# XCB_REBUILDER_INSTALL to that binary.
32896 +
32897 +. /etc/init.d/functions.sh
32898 +
32899 +case ${1} in
32900 + '') ;;
32901 + *)
32902 + einfo 'Rebuilds broken packages from the XCB library renaming'
32903 + einfo
32904 + einfo 'To use something besides `emerge`, set the INSTALL variable to their binary.'
32905 + exit 1
32906 + ;;
32907 +esac
32908 +
32909 +if ! type -p qfile >/dev/null; then
32910 + einfo "Please install app-portage/portage-utils."
32911 + exit 1
32912 +fi
32913 +
32914 +if ! type -p scanelf >/dev/null; then
32915 + einfo "Please install app-misc/pax-utils."
32916 + exit 1
32917 +fi
32918 +
32919 +einfo "Fixing broken libtool archives (.la)"
32920 +for i in $(qlist -a | grep "\.la$"); do
32921 + sed -i \
32922 + -e "s:[^[:space:]]*xcb-xlib[^[:space:]]*::g" \
32923 + "${i}" 2>/dev/null
32924 +done
32925 +
32926 +einfo "Scanning for libraries requiring libxcb-xlib.so..."
32927 +for i in $(qlist -a | grep "\.so$"); do
32928 + scanelf -n $i \
32929 + | grep -q xcb-xlib \
32930 + && XCB_LIBS="${XCB_LIBS} ${i}"
32931 +done
32932 +
32933 +if [[ -n ${XCB_LIBS} ]]; then
32934 + einfo "Broken libraries:"
32935 + for lib in ${XCB_LIBS}; do
32936 + echo " ${lib}"
32937 + done
32938 + ebegin "Scanning for packages installing broken libraries"
32939 + XCB_PACKAGES=$(qfile -qC ${XCB_LIBS} | sort | uniq)
32940 + eend 0
32941 +else
32942 + einfo "No broken libraries detected"
32943 + exit 0
32944 +fi
32945 +
32946 +
32947 +einfo "Broken packages:"
32948 +for pkg in ${XCB_PACKAGES}; do
32949 + echo " ${pkg}"
32950 +done
32951 +
32952 +echo
32953 +ewarn "Please read the libxcb upgrade guide for further instructions"
32954 +ewarn "http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml"
32955 +
32956 +#
32957 +#ebegin "Rebuilding broken packages"
32958 +#${XCB_REBUILDER_INSTALL:-emerge -1} ${XCB_PACKAGES}
32959 +#eend $?
32960
32961 diff --git a/x11-libs/libxcb/libxcb-1.7.ebuild b/x11-libs/libxcb/libxcb-1.7.ebuild
32962 new file mode 100644
32963 index 0000000..6806d56
32964 --- /dev/null
32965 +++ b/x11-libs/libxcb/libxcb-1.7.ebuild
32966 @@ -0,0 +1,38 @@
32967 +# Copyright 1999-2012 Gentoo Foundation
32968 +# Distributed under the terms of the GNU General Public License v2
32969 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.7.ebuild,v 1.14 2012/02/08 23:49:11 chithanh Exp $
32970 +
32971 +EAPI=3
32972 +
32973 +XORG_EAUTORECONF=yes
32974 +inherit python xorg-2
32975 +
32976 +DESCRIPTION="X C-language Bindings library"
32977 +HOMEPAGE="http://xcb.freedesktop.org/"
32978 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/libxcb"
32979 +[[ ${PV} != 9999* ]] && \
32980 + SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
32981 +
32982 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
32983 +IUSE="doc selinux"
32984 +
32985 +RDEPEND="x11-libs/libXau
32986 + x11-libs/libXdmcp
32987 + dev-libs/libpthread-stubs"
32988 +DEPEND="${RDEPEND}
32989 + doc? ( app-doc/doxygen )
32990 + dev-libs/libxslt
32991 + =dev-lang/python-2*[xml]
32992 + >=x11-proto/xcb-proto-1.6"
32993 +
32994 + PATCHES=( "${FILESDIR}/${P}-interix.patch" )
32995 +
32996 +pkg_setup() {
32997 + python_set_active_version 2
32998 + xorg-2_pkg_setup
32999 + XORG_CONFIGURE_OPTIONS=(
33000 + $(use_enable doc build-docs)
33001 + $(use_enable selinux)
33002 + --enable-xinput
33003 + )
33004 +}
33005
33006 diff --git a/x11-libs/libxcb/libxcb-1.8-r1.ebuild b/x11-libs/libxcb/libxcb-1.8-r1.ebuild
33007 new file mode 100644
33008 index 0000000..512d304
33009 --- /dev/null
33010 +++ b/x11-libs/libxcb/libxcb-1.8-r1.ebuild
33011 @@ -0,0 +1,39 @@
33012 +# Copyright 1999-2012 Gentoo Foundation
33013 +# Distributed under the terms of the GNU General Public License v2
33014 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.8-r1.ebuild,v 1.1 2012/03/03 12:19:25 chithanh Exp $
33015 +
33016 +EAPI=3
33017 +
33018 +inherit python xorg-2
33019 +
33020 +DESCRIPTION="X C-language Bindings library"
33021 +HOMEPAGE="http://xcb.freedesktop.org/"
33022 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/libxcb"
33023 +[[ ${PV} != 9999* ]] && \
33024 + SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
33025 +
33026 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
33027 +IUSE="doc selinux"
33028 +
33029 +RDEPEND="x11-libs/libXau
33030 + x11-libs/libXdmcp
33031 + dev-libs/libpthread-stubs"
33032 +DEPEND="${RDEPEND}
33033 + doc? ( app-doc/doxygen )
33034 + dev-libs/libxslt
33035 + =dev-lang/python-2*[xml]
33036 + >=x11-proto/xcb-proto-1.7"
33037 +
33038 +PATCHES=(
33039 + "${FILESDIR}"/${PN}-1.8-waitall-hang.patch
33040 +)
33041 +
33042 +pkg_setup() {
33043 + python_set_active_version 2
33044 + xorg-2_pkg_setup
33045 + XORG_CONFIGURE_OPTIONS=(
33046 + $(use_enable doc build-docs)
33047 + $(use_enable selinux)
33048 + --enable-xinput
33049 + )
33050 +}
33051
33052 diff --git a/x11-libs/libxcb/libxcb-1.8.ebuild b/x11-libs/libxcb/libxcb-1.8.ebuild
33053 new file mode 100644
33054 index 0000000..75a5a12
33055 --- /dev/null
33056 +++ b/x11-libs/libxcb/libxcb-1.8.ebuild
33057 @@ -0,0 +1,35 @@
33058 +# Copyright 1999-2012 Gentoo Foundation
33059 +# Distributed under the terms of the GNU General Public License v2
33060 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.8.ebuild,v 1.3 2012/02/08 23:49:11 chithanh Exp $
33061 +
33062 +EAPI=3
33063 +
33064 +inherit python xorg-2
33065 +
33066 +DESCRIPTION="X C-language Bindings library"
33067 +HOMEPAGE="http://xcb.freedesktop.org/"
33068 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/libxcb"
33069 +[[ ${PV} != 9999* ]] && \
33070 + SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
33071 +
33072 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
33073 +IUSE="doc selinux"
33074 +
33075 +RDEPEND="x11-libs/libXau
33076 + x11-libs/libXdmcp
33077 + dev-libs/libpthread-stubs"
33078 +DEPEND="${RDEPEND}
33079 + doc? ( app-doc/doxygen )
33080 + dev-libs/libxslt
33081 + =dev-lang/python-2*[xml]
33082 + >=x11-proto/xcb-proto-1.7"
33083 +
33084 +pkg_setup() {
33085 + python_set_active_version 2
33086 + xorg-2_pkg_setup
33087 + XORG_CONFIGURE_OPTIONS=(
33088 + $(use_enable doc build-docs)
33089 + $(use_enable selinux)
33090 + --enable-xinput
33091 + )
33092 +}
33093
33094 diff --git a/x11-libs/startup-notification/files/startup-notification-0.10-tests.patch b/x11-libs/startup-notification/files/startup-notification-0.10-tests.patch
33095 new file mode 100644
33096 index 0000000..612d0b1
33097 --- /dev/null
33098 +++ b/x11-libs/startup-notification/files/startup-notification-0.10-tests.patch
33099 @@ -0,0 +1,14 @@
33100 +Do not build tests unless required.
33101 +
33102 +Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=226257
33103 +--- a/test/Makefile.am 2009-04-03 16:56:51.000000000 +0200
33104 ++++ b/test/Makefile.am 2009-07-26 12:08:44.855802976 +0200
33105 +@@ -16,7 +16,7 @@
33106 + test-launcher-xcb \
33107 + test-watch-xmessages-xcb
33108 +
33109 +-noinst_PROGRAMS=$(XLIB_TEST) $(XCB_TEST)
33110 ++check_PROGRAMS=$(XLIB_TEST) $(XCB_TEST)
33111 +
33112 + test_launcher_SOURCES= test-launcher.c
33113 +
33114
33115 diff --git a/x11-libs/xcb-util/xcb-util-0.3.6.ebuild b/x11-libs/xcb-util/xcb-util-0.3.6.ebuild
33116 new file mode 100644
33117 index 0000000..39f90c0
33118 --- /dev/null
33119 +++ b/x11-libs/xcb-util/xcb-util-0.3.6.ebuild
33120 @@ -0,0 +1,34 @@
33121 +# Copyright 1999-2012 Gentoo Foundation
33122 +# Distributed under the terms of the GNU General Public License v2
33123 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/xcb-util/xcb-util-0.3.6.ebuild,v 1.11 2012/05/05 03:52:23 jdhore Exp $
33124 +
33125 +# Must be before x-modular eclass is inherited
33126 +#SNAPSHOT="yes"
33127 +
33128 +inherit x-modular
33129 +
33130 +DESCRIPTION="X C-language Bindings sample implementations"
33131 +HOMEPAGE="http://xcb.freedesktop.org/"
33132 +SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
33133 +
33134 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris"
33135 +IUSE="test"
33136 +
33137 +RDEPEND=">=x11-libs/libxcb-1.4"
33138 +DEPEND="${RDEPEND}
33139 + >=dev-util/gperf-3.0.1
33140 + virtual/pkgconfig
33141 + >=x11-proto/xproto-7.0.8
33142 + >=x11-proto/xcb-proto-1.5
33143 + test? ( >=dev-libs/check-0.9.4 )"
33144 +
33145 +pkg_postinst() {
33146 + x-modular_pkg_postinst
33147 +
33148 + echo
33149 + ewarn "Library names have changed since earlier versions of xcb-util;"
33150 + ewarn "you must rebuild packages that have linked against <xcb-util-0.3.0."
33151 + einfo "Using 'revdep-rebuild' from app-portage/gentoolkit is highly"
33152 + einfo "recommended."
33153 + epause 5
33154 +}