summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2019-07-17 20:45:12 +1200
committerKent Fredric <kentnl@gentoo.org>2019-07-17 20:47:28 +1200
commitfb95b792b4dbe1e84cfa3ff3d191b3cda4860bd4 (patch)
treeafef00dbf629c4fad548709753ba6ad81939c6e4 /dev-perl/Tk-CursorControl
parentprofiles/package.mask: mask ruby24-only slots (diff)
downloadgentoo-fb95b792b4dbe1e84cfa3ff3d191b3cda4860bd4.tar.gz
gentoo-fb95b792b4dbe1e84cfa3ff3d191b3cda4860bd4.tar.bz2
gentoo-fb95b792b4dbe1e84cfa3ff3d191b3cda4860bd4.zip
dev-perl/Tk-CursorControl: Undo my removal of demos
The demos with the Tk system are a bit quirky, and you can't really handle them the same way we typically handle examples in Gentoo. These demos have to be installed in a location that the "widget" program that ships with Tk can find and load, and it has special spice to make it work. There may be a compromise of some kind, but it requires the ability to gut the demo system from Tk itself, which is far more work than we have time for, and the added complexity with handling that with USE and USE dependencies just isn't worth it. Bug: https://rt.cpan.org/Ticket/Display.html?id=124794 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Tk-CursorControl')
-rw-r--r--dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r3.ebuild (renamed from dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild)6
-rw-r--r--dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch40
2 files changed, 2 insertions, 44 deletions
diff --git a/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild b/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r3.ebuild
index 0cb384cb448f..5b2f36f70671 100644
--- a/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild
+++ b/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -6,8 +6,6 @@ EAPI=6
DIST_AUTHOR=DUNNIGANJ
DIST_VERSION=0.4
-# https://rt.cpan.org/Ticket/Display.html?id=124794
-# DIST_EXAMPLES=( "demos/*" )
inherit eutils perl-module virtualx
DESCRIPTION="Manipulate the mouse cursor programmatically"
@@ -19,7 +17,7 @@ IUSE=""
RDEPEND="dev-perl/Tk"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/${PN}-0.4-nodemo.patch" )
+PATCHES=( "${FILESDIR}/0.4-demo.patch" )
src_prepare() {
perl-module_src_prepare
diff --git a/dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch b/dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch
deleted file mode 100644
index 386a6f0aa255..000000000000
--- a/dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 299ab08346de3f8f670d3a50c6180bccf0402067 Mon Sep 17 00:00:00 2001
-From: Kent Fredric <kentnl@gentoo.org>
-Date: Sat, 17 Mar 2018 14:52:48 +1300
-Subject: Stop installing demo's to @INC
-
----
- Makefile.PL | 13 +------------
- 1 file changed, 1 insertion(+), 12 deletions(-)
-
-diff --git a/Makefile.PL b/Makefile.PL
-index c229779..2503a8e 100644
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -14,11 +14,7 @@ WriteMakefile(
- 'CursorControl.pm' => '$(INST_LIB)/Tk/CursorControl.pm',
- 'trans_cur.xbm' => '$(INST_LIB)/Tk/trans_cur.xbm',
- 'trans_cur.mask' => '$(INST_LIB)/Tk/trans_cur.mask',
-- 'demos/cursor.pl' => ($] >= 5.005
-- ? '$(INST_ARCHLIB)'
-- : '$(INST_LIB)') . '/Tk/demos/widtrib/cursor.pl',
-- },
--
-+ },
- 'PREREQ_PM' => {
- 'Tk' => 800.015,
- ($^O =~ /(MSWin32|cygwin)/ ? ('Win32::API' => 0.20) : ()),
-@@ -28,10 +24,3 @@ WriteMakefile(
- 'CursorControl.pm' => '$(INST_MAN3DIR)/Tk::CursorControl.$(MAN3EXT)',
- },
- );
--
--sub MY::postamble {
-- '
--demo :: pure_all
-- $(FULLPERL) -w -I$(SITELIBEXP)/Tk/demos/widget_lib -I$(SITEARCHEXP)/Tk/demos/widget_lib -Mblib demos/cursor.pl
--';
--}
---
-2.16.2
-