[arch-commits] Commit in perl-gtk2-unique/repos (6 files)
Felix Yan
fyan at archlinux.org
Wed Jun 3 03:08:43 UTC 2015
Date: Wednesday, June 3, 2015 @ 05:08:42
Author: fyan
Revision: 134661
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
perl-gtk2-unique/repos/community-staging-i686/
perl-gtk2-unique/repos/community-staging-i686/PKGBUILD
(from rev 134660, perl-gtk2-unique/trunk/PKGBUILD)
perl-gtk2-unique/repos/community-staging-i686/perl-gtk2-unique.patch
(from rev 134660, perl-gtk2-unique/trunk/perl-gtk2-unique.patch)
perl-gtk2-unique/repos/community-staging-x86_64/
perl-gtk2-unique/repos/community-staging-x86_64/PKGBUILD
(from rev 134660, perl-gtk2-unique/trunk/PKGBUILD)
perl-gtk2-unique/repos/community-staging-x86_64/perl-gtk2-unique.patch
(from rev 134660, perl-gtk2-unique/trunk/perl-gtk2-unique.patch)
-------------------------------------------------+
community-staging-i686/PKGBUILD | 46 ++++++++++++++++++++++
community-staging-i686/perl-gtk2-unique.patch | 12 +++++
community-staging-x86_64/PKGBUILD | 46 ++++++++++++++++++++++
community-staging-x86_64/perl-gtk2-unique.patch | 12 +++++
4 files changed, 116 insertions(+)
Copied: perl-gtk2-unique/repos/community-staging-i686/PKGBUILD (from rev 134660, perl-gtk2-unique/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-06-03 03:08:42 UTC (rev 134661)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=perl-gtk2-unique
+_realname=Gtk2-Unique
+pkgver=0.05
+pkgrel=11
+pkgdesc="Perl bindings for the C library libunique"
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/${_realname}"
+license=('LGPL' 'PerlArtistic')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+depends=('gtk2-perl' 'libunique')
+checkdepends=('xorg-server-xvfb')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/${_realname}-${pkgver}.tar.gz"
+ "$pkgname.patch")
+md5sums=('0beb552933b765a017588563a71af123'
+ 'f8e15e1b93e2629e1745f8e4de8524ff')
+
+build() {
+ cd "$srcdir/$_realname-$pkgver"
+ patch -Np1 -i "$srcdir/$pkgname.patch"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$srcdir/$_realname-$pkgver"
+ xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" make test
+}
+
+package() {
+ cd "$srcdir/$_realname-$pkgver"
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
Copied: perl-gtk2-unique/repos/community-staging-i686/perl-gtk2-unique.patch (from rev 134660, perl-gtk2-unique/trunk/perl-gtk2-unique.patch)
===================================================================
--- community-staging-i686/perl-gtk2-unique.patch (rev 0)
+++ community-staging-i686/perl-gtk2-unique.patch 2015-06-03 03:08:42 UTC (rev 134661)
@@ -0,0 +1,12 @@
+diff -up Gtk2-Unique-0.05/xs/UniqueMessageData.xs.orig Gtk2-Unique-0.05/xs/UniqueMessageData.xs
+--- Gtk2-Unique-0.05/xs/UniqueMessageData.xs.orig 2010-05-05 09:47:45.000000000 -0600
++++ Gtk2-Unique-0.05/xs/UniqueMessageData.xs 2013-06-18 11:54:05.000000000 -0600
+@@ -38,7 +38,7 @@ SV*
+ unique_message_data_get (UniqueMessageData *message_data)
+ PREINIT:
+ const guchar *string = NULL;
+- gint length = 0;
++ gsize length = 0;
+
+ CODE:
+ string = unique_message_data_get(message_data, &length);
Copied: perl-gtk2-unique/repos/community-staging-x86_64/PKGBUILD (from rev 134660, perl-gtk2-unique/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-06-03 03:08:42 UTC (rev 134661)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=perl-gtk2-unique
+_realname=Gtk2-Unique
+pkgver=0.05
+pkgrel=11
+pkgdesc="Perl bindings for the C library libunique"
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/${_realname}"
+license=('LGPL' 'PerlArtistic')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+depends=('gtk2-perl' 'libunique')
+checkdepends=('xorg-server-xvfb')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/${_realname}-${pkgver}.tar.gz"
+ "$pkgname.patch")
+md5sums=('0beb552933b765a017588563a71af123'
+ 'f8e15e1b93e2629e1745f8e4de8524ff')
+
+build() {
+ cd "$srcdir/$_realname-$pkgver"
+ patch -Np1 -i "$srcdir/$pkgname.patch"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$srcdir/$_realname-$pkgver"
+ xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" make test
+}
+
+package() {
+ cd "$srcdir/$_realname-$pkgver"
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
Copied: perl-gtk2-unique/repos/community-staging-x86_64/perl-gtk2-unique.patch (from rev 134660, perl-gtk2-unique/trunk/perl-gtk2-unique.patch)
===================================================================
--- community-staging-x86_64/perl-gtk2-unique.patch (rev 0)
+++ community-staging-x86_64/perl-gtk2-unique.patch 2015-06-03 03:08:42 UTC (rev 134661)
@@ -0,0 +1,12 @@
+diff -up Gtk2-Unique-0.05/xs/UniqueMessageData.xs.orig Gtk2-Unique-0.05/xs/UniqueMessageData.xs
+--- Gtk2-Unique-0.05/xs/UniqueMessageData.xs.orig 2010-05-05 09:47:45.000000000 -0600
++++ Gtk2-Unique-0.05/xs/UniqueMessageData.xs 2013-06-18 11:54:05.000000000 -0600
+@@ -38,7 +38,7 @@ SV*
+ unique_message_data_get (UniqueMessageData *message_data)
+ PREINIT:
+ const guchar *string = NULL;
+- gint length = 0;
++ gsize length = 0;
+
+ CODE:
+ string = unique_message_data_get(message_data, &length);
More information about the arch-commits
mailing list