From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F78E1382C5 for ; Sat, 17 Mar 2018 02:34:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A748E088F; Sat, 17 Mar 2018 02:34:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 60026E088F for ; Sat, 17 Mar 2018 02:34:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6615B335C92 for ; Sat, 17 Mar 2018 02:34:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E5DD232 for ; Sat, 17 Mar 2018 02:34:03 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1521254036.818ffedb39f77197765b244891bcb67172147b48.kentnl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Tk-CursorControl/files/, dev-perl/Tk-CursorControl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch X-VCS-Directories: dev-perl/Tk-CursorControl/ dev-perl/Tk-CursorControl/files/ X-VCS-Committer: kentnl X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: 818ffedb39f77197765b244891bcb67172147b48 X-VCS-Branch: master Date: Sat, 17 Mar 2018 02:34:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 743f6861-f54c-4f57-99a3-75df2c73212c X-Archives-Hash: 67719134466ac6e404ccdae721535a4c commit: 818ffedb39f77197765b244891bcb67172147b48 Author: Kent Fredric gentoo org> AuthorDate: Sat Mar 17 02:33:27 2018 +0000 Commit: Kent Fredric gentoo org> CommitDate: Sat Mar 17 02:33:56 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818ffedb dev-perl/Tk-CursorControl: EAPI6 + tests + fixes - EAPI6ify - Enable tests (w/ X11) - Cease installing demos to @INC as that's the wrong place for examples - Don't install demos at all due to RT#124794, which basically makes the demo useless without the Makefile, which basically makes installing it a waste of time (for now) Bug: https://rt.cpan.org/Ticket/Display.html?id=124794 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../Tk-CursorControl-0.400.0-r2.ebuild | 30 ++++++++++++++++ .../files/Tk-CursorControl-0.4-nodemo.patch | 40 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild b/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild new file mode 100644 index 00000000000..0cb384cb448 --- /dev/null +++ b/dev-perl/Tk-CursorControl/Tk-CursorControl-0.400.0-r2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" + +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~sparc ~x86" +IUSE="" + +RDEPEND="dev-perl/Tk" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${PN}-0.4-nodemo.patch" ) + +src_prepare() { + perl-module_src_prepare + edos2unix "${S}"/{CursorControl.pm,demos/cursor.pl} +} +src_test() { + virtx perl-module_src_test +} 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 new file mode 100644 index 00000000000..386a6f0aa25 --- /dev/null +++ b/dev-perl/Tk-CursorControl/files/Tk-CursorControl-0.4-nodemo.patch @@ -0,0 +1,40 @@ +From 299ab08346de3f8f670d3a50c6180bccf0402067 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +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 +