Date: Monday, July 1, 2013 @ 20:23:10
  Author: eric
Revision: 189256

upgpkg: perl-tk 804.031-1

Upstream update, Clean up PKGBUILD, Remove old patches

Modified:
  perl-tk/trunk/PKGBUILD
Deleted:
  perl-tk/trunk/0001-Fix-compilation-under-threaded-bleadperl.patch
  perl-tk/trunk/0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch

-----------------------------------------------------------------+
 0001-Fix-compilation-under-threaded-bleadperl.patch             |   32 ------
 0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch |   47 
----------
 PKGBUILD                                                        |   33 +------
 3 files changed, 9 insertions(+), 103 deletions(-)

Deleted: 0001-Fix-compilation-under-threaded-bleadperl.patch
===================================================================
--- 0001-Fix-compilation-under-threaded-bleadperl.patch 2013-07-01 18:09:47 UTC 
(rev 189255)
+++ 0001-Fix-compilation-under-threaded-bleadperl.patch 2013-07-01 18:23:10 UTC 
(rev 189256)
@@ -1,32 +0,0 @@
-From 8eb3ec51a58dd02334118d8f0aa1bebb5704d15c Mon Sep 17 00:00:00 2001
-From: Father Chrysostomos via RT <bug...@rt.cpan.org>
-Date: Mon, 6 Aug 2012 17:42:14 -0400
-Subject: [PATCH] Fix compilation under threaded bleadperl
-
- Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=78824 >
-
-CopSTASHPV is no longer an lvalue under threads.  (It never was under 
non-threaded builds.)
----
- tkGlue.c | 6 +-----
- 1 file changed, 1 insertion(+), 5 deletions(-)
-
-diff --git a/tkGlue.c b/tkGlue.c
-index 1b7c025..9079302 100644
---- a/tkGlue.c
-+++ b/tkGlue.c
-@@ -4154,11 +4154,7 @@ int type;
-    SV *x = NULL;
-    int prefix = '?';
-    name = SvPV(sv,na);
--#ifdef USE_ITHREADS
--   CopSTASHPV(PL_curcop) = NULL;
--#else
--   CopSTASH(PL_curcop) = NULL;
--#endif
-+   CopSTASH_set(PL_curcop, NULL);
-    switch (type)
-     {
-      case TK_CONFIG_SCALARVAR:
--- 
-1.8.2.3
-

Deleted: 0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch
===================================================================
--- 0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch     
2013-07-01 18:09:47 UTC (rev 189255)
+++ 0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch     
2013-07-01 18:23:10 UTC (rev 189256)
@@ -1,47 +0,0 @@
-From 2333fa35c99aae1db1cb8d3ebce31fc21bc66e0a Mon Sep 17 00:00:00 2001
-From: Slaven Rezic <sla...@rezic.de>
-Date: Sat, 23 Mar 2013 14:00:58 +0100
-Subject: [PATCH] * fix for 5.17.7 and newer: SvUPGRADE() is no longer an
- expression
-
----
- IO/IO.xs | 6 +-----
- tkGlue.c | 5 +----
- 2 files changed, 2 insertions(+), 9 deletions(-)
-
-diff --git a/IO/IO.xs b/IO/IO.xs
-index 8ae2a57..42f7515 100644
---- a/IO/IO.xs
-+++ b/IO/IO.xs
-@@ -207,11 +207,7 @@ int       offset
-      info.count  = 0;
-      info.error  = 0;
-      info.eof    = 0;
--     if (!SvUPGRADE(buf, SVt_PV))
--      {
--       RETVAL = &PL_sv_undef;
--       return;
--      }
-+     (void)SvUPGRADE(buf, SVt_PV);
-      SvPOK_only(buf);         /* validate pointer */
-      Tcl_CreateFileHandler(fd, TCL_READABLE, read_handler, (ClientData) 
&info);
-      do
-diff --git a/tkGlue.c b/tkGlue.c
-index dd3d283..cdc53ad 100644
---- a/tkGlue.c
-+++ b/tkGlue.c
-@@ -3830,10 +3830,7 @@ ClientData clientData;
-      return EXPIRE((interp, "Cannot trace readonly variable"));
-     }
-   }
-- if (!SvUPGRADE(sv, SVt_PVMG))
--  {
--   return EXPIRE((interp, "Trace SvUPGRADE failed"));
--  }
-+ (void)SvUPGRADE(sv, SVt_PVMG);
- 
-  if (SvTYPE(sv) == SVt_PVAV)
-   {
--- 
-1.8.2.3
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-07-01 18:09:47 UTC (rev 189255)
+++ PKGBUILD    2013-07-01 18:23:10 UTC (rev 189256)
@@ -5,47 +5,32 @@
 # Contributor: Juergen Hoetzel <juer...@archlinux.org>
 
 pkgname=perl-tk
-_cpanname=Tk
-pkgver=804.030
-pkgrel=5
+pkgver=804.031
+pkgrel=1
 pkgdesc="A graphical user interface toolkit for Perl"
 arch=('i686' 'x86_64')
-url="http://search.cpan.org/dist/${_cpanname}";
+url="http://search.cpan.org/dist/Tk";
 license=('PerlArtistic' 'GPL' 'custom')
 depends=('libpng' 'libjpeg' 'tk' 'perl')
 options=('!emptydirs')
 replaces=('perltk')
 provides=('perltk')
-source=(http://www.cpan.org/authors/id/S/SR/SREZIC/${_cpanname}-${pkgver}.tar.gz
-        0001-Fix-compilation-under-threaded-bleadperl.patch
-        0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch)
-md5sums=('13275e85f99ee467a86d9598a437abff'
-         '361c34978746310e5c31b7a47c016b22'
-         '46448cdac9d7159f15f2d4b2719d171b')
+source=(http://www.cpan.org/authors/id/S/SR/SREZIC/Tk-${pkgver}.tar.gz)
+md5sums=('57a8afd0563184c17a6470d1ee957f35')
 
-prepare() {
-  cd "$srcdir/${_cpanname}-$pkgver"
-
-  # https://rt.cpan.org/Public/Bug/Display.html?id=78824
-  patch -Np1 -i "$srcdir/0001-Fix-compilation-under-threaded-bleadperl.patch"
-
-  # https://rt.cpan.org/Public/Bug/Display.html?id=82677
-  patch -Np1 -i 
"$srcdir/0001-fix-for-5.17.7-and-newer-SvUPGRADE-is-no-longer-an-e.patch"
-}
-
 build() {
-  cd "$srcdir/${_cpanname}-$pkgver"
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  cd Tk-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
 #check() {
-#  cd "$srcdir/${_cpanname}-$pkgver"
+#  cd Tk-$pkgver
 #  make test
 #}
 
 package() {
-  cd "$srcdir/${_cpanname}-$pkgver"
+  cd Tk-$pkgver
   make install DESTDIR="$pkgdir"
 
   # license

Reply via email to