[arch-commits] Commit in glib-perl/trunk (PKGBUILD glib2.59-comment-linebreaks.patch)

Antonio Rojas arojas at archlinux.org
Mon Aug 3 08:04:38 UTC 2020


    Date: Monday, August 3, 2020 @ 08:04:37
  Author: arojas
Revision: 393085

Update to 1.3293, use Debian's saner versioning

Modified:
  glib-perl/trunk/PKGBUILD
Deleted:
  glib-perl/trunk/glib2.59-comment-linebreaks.patch

-----------------------------------+
 PKGBUILD                          |   24 +++++----------
 glib2.59-comment-linebreaks.patch |   56 ------------------------------------
 2 files changed, 8 insertions(+), 72 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-03 07:59:34 UTC (rev 393084)
+++ PKGBUILD	2020-08-03 08:04:37 UTC (rev 393085)
@@ -2,8 +2,9 @@
 # Contributor: Sarah Hay <sarah at archlinux.org>
 
 pkgname=glib-perl
-pkgver=1.329
-pkgrel=4
+pkgver=1.329.3
+_pkgver=1.3293
+pkgrel=1
 pkgdesc="Perl wrappers for glib 2.x, including GObject"
 arch=(x86_64)
 license=('LGPL')
@@ -11,20 +12,11 @@
 options=('!emptydirs')
 depends=('glib2')
 makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
-source=(https://downloads.sourceforge.net/sourceforge/gtk2-perl/Glib-${pkgver}.tar.gz
-        glib2.59-comment-linebreaks.patch)
-sha256sums=('7b4ce1c8cf884849189efaa0b5722ecfb0d87a15f94fccc6a6017d3b3f982a35'
-            'b816306015f9b1f32ec2191ebeaa5f5f92f2eea60829ffb638aa5dae9fb946ed')
+source=(https://downloads.sourceforge.net/sourceforge/gtk2-perl/Glib-${_pkgver}.tar.gz)
+sha256sums=('7316a0c1e7cc5cb3db7211214f45d7bdc2354365a680ac4bd3ac8bf06d1cb500')
 
-prepare() {
-  cd Glib-$pkgver
-
-  # https://gitlab.gnome.org/GNOME/perl-glib/merge_requests/1
-  patch -Np1 -i ../glib2.59-comment-linebreaks.patch
-}
-
 build() {
-  cd Glib-$pkgver
+  cd Glib-$_pkgver
   PERL_USE_UNSAFE_INC=1 \
   perl Makefile.PL INSTALLDIRS=vendor
   PERL_USE_UNSAFE_INC=1 \
@@ -32,11 +24,11 @@
 }
 
 check() {
-  cd Glib-$pkgver
+  cd Glib-$_pkgver
   make test
 }
 
 package() {
-  cd Glib-$pkgver
+  cd Glib-$_pkgver
   make DESTDIR="${pkgdir}" install
 }

Deleted: glib2.59-comment-linebreaks.patch
===================================================================
--- glib2.59-comment-linebreaks.patch	2020-08-03 07:59:34 UTC (rev 393084)
+++ glib2.59-comment-linebreaks.patch	2020-08-03 08:04:37 UTC (rev 393085)
@@ -1,56 +0,0 @@
-From 77ded02fbfe26d3025ae01c3b1afc1509ae49a10 Mon Sep 17 00:00:00 2001
-From: Tom Callaway <spot at fedoraproject.org>
-Date: Fri, 4 Jan 2019 14:40:55 -0500
-Subject: [PATCH] fix t/g.t to deal with new comment parsing in glib2 2.59.0.
- See: https://gitlab.gnome.org/GNOME/glib/merge_requests/432
-
----
- t/g.t | 24 +++++++++++++++++++-----
- 1 file changed, 19 insertions(+), 5 deletions(-)
-
-diff --git a/t/g.t b/t/g.t
-index 2f851be..bc3df03 100644
---- a/t/g.t
-+++ b/t/g.t
-@@ -84,7 +84,11 @@ SKIP: {
- 	eq_array (\@bools, [FALSE, TRUE, FALSE]);
- 
- 	ok ($key_file->has_group('locales'));
--	is ($key_file->get_comment('locales', 'mystring'), "some string\n");
-+	if (Glib->CHECK_VERSION (2, 59, 0)) {
-+	  is ($key_file->get_comment('locales', 'mystring'), "some string");
-+	} else {
-+	  is ($key_file->get_comment('locales', 'mystring'), "some string\n");
-+	}
- 	is ($key_file->get_string('locales', 'mystring'), 'Good morning');
- 	is ($key_file->get_locale_string('locales', 'mystring', 'it'), 'Buongiorno');
- 
-@@ -94,11 +98,21 @@ SKIP: {
- 	$key_file->set_string_list('listsection', 'stringlist', 'one', 'two', 'three');
- 	$key_file->set_locale_string('locales', 'mystring', 'en', 'one');
- 	$key_file->set_comment('locales', 'mystring', 'comment');
--	is ($key_file->get_comment('locales', 'mystring'), "comment\n");
--	$key_file->set_comment('locales', undef, "another comment\n");
--	is ($key_file->get_comment('locales', undef), "#another comment\n#");
-+	if (Glib->CHECK_VERSION (2, 59, 0)) {
-+	  is ($key_file->get_comment('locales', 'mystring'), "comment");
-+	  $key_file->set_comment('locales', undef, "another comment");
-+	  is ($key_file->get_comment('locales', undef), "#another comment");
-+	} else {
-+	  is ($key_file->get_comment('locales', 'mystring'), "comment\n");
-+	  $key_file->set_comment('locales', undef, "another comment\n");
-+	  is ($key_file->get_comment('locales', undef), "#another comment\n#");
-+	}
- 	$key_file->set_comment(undef, undef, 'one comment more');
--	is ($key_file->get_comment(undef, undef), "one comment more\n");
-+	if (Glib->CHECK_VERSION (2, 59, 0)) {
-+	  is ($key_file->get_comment(undef, undef), "one comment more");
-+	} else {
-+	  is ($key_file->get_comment(undef, undef), "one comment more\n");
-+	}
- 	$key_file->set_boolean($start_group, 'boolkey', FALSE);
- 	$key_file->set_value($start_group, 'boolkey', '0');
- 
--- 
-2.21.0
-



More information about the arch-commits mailing list