Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Tk/, dev-perl/Tk/files/
Date: Fri, 08 Jul 2016 20:37:33
Message-Id: 1468010237.1a305e858701353f5b55adf5d82e428bfb5e130c.dilfridge@gentoo
1 commit: 1a305e858701353f5b55adf5d82e428bfb5e130c
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 8 20:17:57 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 8 20:37:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a305e85
7
8 dev-perl/Tk: Remove old
9
10 Package-Manager: portage-2.3.0
11
12 dev-perl/Tk/Manifest | 1 -
13 dev-perl/Tk/Tk-804.32.0-r1.ebuild | 55 ----------------------------
14 dev-perl/Tk/files/Tk-804.31.0-xorg.patch | 43 ----------------------
15 dev-perl/Tk/files/freetype_location.patch | 32 ----------------
16 dev-perl/Tk/files/mainwindow_segfaults.patch | 25 -------------
17 5 files changed, 156 deletions(-)
18
19 diff --git a/dev-perl/Tk/Manifest b/dev-perl/Tk/Manifest
20 index 80ea29c..0150a4c 100644
21 --- a/dev-perl/Tk/Manifest
22 +++ b/dev-perl/Tk/Manifest
23 @@ -1,2 +1 @@
24 -DIST Tk-804.032.tar.gz 6933200 SHA256 8003fa82672367093d8fd26d89dcac695afad92f4ad406a106d56e07e9dd5949 SHA512 9370c7d954a11b4a16317d749fd06a8ea70b37309a9ba6bb8c9ff6fecf1a264d12f101fcc9aaf1aac781a42f45758e66c955b2f550d7894e94927060a5e29ef7 WHIRLPOOL 1851c9fde36f62a5a96e17c6c1c3eb206a948f669457ac765c28b560076e4b0e32f4ef6c49e725b90f7c704aa270265b7c305ceb3c1dc277eedfafc1a831cb10
25 DIST Tk-804.033.tar.gz 6924238 SHA256 84756e9b07a2555c8eecf88e63d5cbbba9b1aa97b1e71a3d4aa524a7995a88ad SHA512 ea56be8246123bbc570d86a7d4f1610349cced91ad92ab740baca4c280822aac2e3acab6334bef60b10a70d5840f331fa40b507aba47a7929f44960df95f2aee WHIRLPOOL 105bce71314e63d7512c6c8bcfa913c6026d8081ad2a5a1bde19f471552026d1c31d28589ae27a0468e73946f030e21d2b79f838033ba5623df94be02bd14826
26
27 diff --git a/dev-perl/Tk/Tk-804.32.0-r1.ebuild b/dev-perl/Tk/Tk-804.32.0-r1.ebuild
28 deleted file mode 100644
29 index bcfad3f..0000000
30 --- a/dev-perl/Tk/Tk-804.32.0-r1.ebuild
31 +++ /dev/null
32 @@ -1,55 +0,0 @@
33 -# Copyright 1999-2016 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI=5
38 -
39 -MODULE_AUTHOR=SREZIC
40 -MODULE_VERSION=804.032
41 -inherit multilib perl-module
42 -
43 -DESCRIPTION="A Perl Module for Tk"
44 -
45 -LICENSE+=" BSD"
46 -SLOT="0"
47 -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 ~sparc-solaris ~x86-solaris"
48 -IUSE=""
49 -
50 -DEPEND="
51 - media-libs/freetype
52 - >=media-libs/libpng-1.4
53 - virtual/jpeg
54 - x11-libs/libX11
55 - x11-libs/libXft"
56 -RDEPEND="${DEPEND}"
57 -
58 -# No test running here, requires an X server, and fails lots anyway.
59 -SRC_TEST="skip"
60 -PATCHES=(
61 - "${FILESDIR}"/${PN}-804.31.0-xorg.patch
62 - "${FILESDIR}"/freetype_location.patch
63 - "${FILESDIR}"/mainwindow_segfaults.patch
64 - )
65 -
66 -src_prepare() {
67 - MAKEOPTS+=" -j1" #333049
68 - myconf=( X11ROOT=${EPREFIX}/usr XFT=1 -I${EPREFIX}/usr/include/ -l${EPREFIX}/usr/$(get_libdir) )
69 - mydoc="ToDo VERSIONS"
70 -
71 - perl-module_src_prepare
72 - # fix detection logic for Prefix, bug #385621
73 - sed -i -e "s:/usr:${EPREFIX}/usr:g" myConfig || die
74 - # having this around breaks with perl-module and a case-IN-sensitive fs
75 - rm build_ptk || die
76 -
77 - # Remove all bundled libs, fixes #488194
78 - local BUNDLED="PNG/libpng \
79 - PNG/zlib \
80 - JPEG/jpeg"
81 - for dir in ${BUNDLED}; do
82 - rm -r "${S}/${dir}" || die "Can't remove bundle"
83 - # Makefile.PL can copy files to ${S}/${dir}, so recreate them back.
84 - mkdir -p "${S}/${dir}" || die "Can't restore bundled dir"
85 - sed -i "\#^${dir}#d" "${S}"/MANIFEST || die 'Can not remove bundled libs from MANIFEST'
86 - done
87 -}
88
89 diff --git a/dev-perl/Tk/files/Tk-804.31.0-xorg.patch b/dev-perl/Tk/files/Tk-804.31.0-xorg.patch
90 deleted file mode 100644
91 index 2bad0ba..0000000
92 --- a/dev-perl/Tk/files/Tk-804.31.0-xorg.patch
93 +++ /dev/null
94 @@ -1,43 +0,0 @@
95 - myConfig | 8 +++++---
96 - 1 file changed, 5 insertions(+), 3 deletions(-)
97 -
98 -diff --git a/myConfig b/myConfig
99 -index e0ace45..be52a82 100755
100 ---- a/myConfig
101 -+++ b/myConfig
102 -@@ -307,7 +307,7 @@ if ($win_arch eq 'x') {
103 - }
104 - close(XMKMF);
105 - while (defined $uidir) {
106 -- last unless ($uidir =~ s!^.*-I(\S+)/lib/X11/config!!o);
107 -+ last unless ($uidir =~ s!^.*-I(\S+)/lib(64)/X11/config!!o);
108 - $try = $1;
109 - $try =~ s/'x11root'/$ENV{X11ROOT}/;
110 - push(@xdirs,$try);
111 -@@ -356,7 +356,7 @@ if ($win_arch eq 'x') {
112 - #
113 - unless (defined $xlib)
114 - {
115 -- $xlib = &lX11(0,chooseX11(</usr/X11*/lib>),chooseX11(</usr/lib/X11*>),</usr/Xfree*/lib>,'/usr/X386/lib')
116 -+ $xlib = &lX11(0,chooseX11(</usr/X11*/lib>),chooseX11(</usr/lib/X11*>),</usr/Xfree*/lib>,'/usr/X386/lib','/usr/lib64')
117 - }
118 -
119 - #
120 -@@ -375,7 +375,7 @@ if ($win_arch eq 'x') {
121 - exit 0;
122 - }
123 -
124 -- ($base) = $xlib =~ m#-L(.*)(?:/lib)$#x;
125 -+ ($base) = $xlib =~ m#-L(.*)(?:/lib(64))$#x;
126 - if (defined $X11INC)
127 - {
128 - $xinc = &IX11("$X11INC");
129 -@@ -387,6 +387,8 @@ if ($win_arch eq 'x') {
130 - {
131 - warn "Cannot find X include files via $base/include\n";
132 - $xinc = &IX11(map("$_/include",@xdirs),
133 -+ chooseX11(</usr/include/X11*>),
134 -+ '/usr/include',
135 - '/usr/openwin/include',
136 - chooseX11(</usr/X11*/include>),
137 - chooseX11(</usr/include/X11*>),
138
139 diff --git a/dev-perl/Tk/files/freetype_location.patch b/dev-perl/Tk/files/freetype_location.patch
140 deleted file mode 100644
141 index bac2a43..0000000
142 --- a/dev-perl/Tk/files/freetype_location.patch
143 +++ /dev/null
144 @@ -1,32 +0,0 @@
145 -From 1ca4589ef5a87999ec564081900bc8fdaed83c74 Mon Sep 17 00:00:00 2001
146 -From: Slaven Rezic <slaven@×××××.de>
147 -Date: Sun, 2 Mar 2014 12:10:31 +0100
148 -Subject: [PATCH] look also for /usr/include/freetype2/freetype.h
149 -
150 -In some freetype installations (e.g. Debian/jessie) the intermediate
151 -"freetype" directory may be missing in the include path.
152 -
153 -This should fix
154 -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740207
155 ----
156 - myConfig | 7 ++++++-
157 - 1 file changed, 6 insertions(+), 1 deletion(-)
158 -
159 -diff --git a/myConfig b/myConfig
160 -index 02d2ee5..3ca8144 100755
161 ---- a/myConfig
162 -+++ b/myConfig
163 -@@ -147,7 +147,12 @@ sub Ift
164 - {
165 - foreach (map { "$_/freetype2" } @_)
166 - {
167 -- if (-d $_ && -d "$_/freetype" && -r "$_/freetype/freetype.h")
168 -+ if (-r "$_/freetype.h") # location in Debian (since jessie)
169 -+ {
170 -+ print "Using -I$_ to find $_/freetype/freetype.h\n";
171 -+ return "-I$_";
172 -+ }
173 -+ if (-r "$_/freetype/freetype.h") # location in FreeBSD (up to version 10.0) and Debian (up to wheezy)
174 - {
175 - print "Using -I$_ to find $_/freetype/freetype.h\n";
176 - return "-I$_";
177
178 diff --git a/dev-perl/Tk/files/mainwindow_segfaults.patch b/dev-perl/Tk/files/mainwindow_segfaults.patch
179 deleted file mode 100644
180 index 50e2e4b..0000000
181 --- a/dev-perl/Tk/files/mainwindow_segfaults.patch
182 +++ /dev/null
183 @@ -1,25 +0,0 @@
184 -From ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b Mon Sep 17 00:00:00 2001
185 -From: Slaven Rezic <slaven@×××××.de>
186 -Date: Fri, 14 Mar 2014 16:00:05 +0100
187 -Subject: [PATCH] no segfaults if Tk::MainWindow::Create was called without
188 - args
189 -
190 -However, this case never happened in real life, as this function was
191 -not supposed to be used directly anyway.
192 ----
193 - tkGlue.c | 2 +-
194 - 1 file changed, 1 insertion(+), 1 deletion(-)
195 -
196 -diff --git a/tkGlue.c b/tkGlue.c
197 -index 57f0bca..ae595bf 100644
198 ---- a/tkGlue.c
199 -+++ b/tkGlue.c
200 -@@ -2370,7 +2370,7 @@ XS(XS_Tk__MainWindow_Create)
201 - STRLEN na;
202 - Tcl_Interp *interp = Tcl_CreateInterp();
203 - SV **args = &ST(0);
204 -- char *appName = SvPV(ST(1),na);
205 -+ char *appName = items >= 1 ? SvPV(ST(1),na) : "";
206 - int offset = args - sp;
207 - int code;
208 - if (!initialized)