added extra/cairo-perl

This commit is contained in:
Kevin Mihelich 2024-07-15 10:48:43 +00:00
parent c99a4f2ce5
commit 2359124326
3 changed files with 66 additions and 0 deletions

16
extra/cairo-perl/.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = cairo-perl
pkgdesc = Perl wrappers for cairo
pkgver = 1.109
pkgrel = 4
url = http://gtk2-perl.sourceforge.net/
arch = x86_64
license = LGPL
makedepends = perl-extutils-depends
makedepends = perl-extutils-pkgconfig
depends = cairo
depends = perl
options = !emptydirs
source = https://downloads.sourceforge.net/sourceforge/gtk2-perl/Cairo-1.109.tar.gz
sha512sums = b80841bff480acf95f69659cba02ca17c79b67a2dc5c9b9302efb15bbd79bd4bc2f1801c001c220723da11081e86a08a83e07ecc8866810ebf9406e1f6fa1c53
pkgname = cairo-perl

View file

@ -0,0 +1,14 @@
https://bugs.gentoo.org/924211
https://gitlab.gnome.org/GNOME/perl-cairo/-/issues/2
--- a/CairoSurface.xs
+++ b/CairoSurface.xs
@@ -389,7 +389,7 @@ cairo_status_t
cairo_surface_set_mime_data (cairo_surface_t *surface, const char *mime_type, SV *data);
PREINIT:
const unsigned char *mime_data;
- unsigned long length;
+ STRLEN length;
CODE:
SvREFCNT_inc (data);
mime_data = (const unsigned char *) SvPV(data, length);

36
extra/cairo-perl/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix FTBFS on 32bit and gcc14
pkgname=cairo-perl
pkgver=1.109
pkgrel=4
pkgdesc="Perl wrappers for cairo"
arch=(x86_64)
license=('LGPL')
url="http://gtk2-perl.sourceforge.net/"
options=('!emptydirs')
depends=('cairo' 'perl')
makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
source=(https://downloads.sourceforge.net/sourceforge/gtk2-perl/Cairo-${pkgver}.tar.gz
Cairo-1.109.0-c99.patch)
sha512sums=('b80841bff480acf95f69659cba02ca17c79b67a2dc5c9b9302efb15bbd79bd4bc2f1801c001c220723da11081e86a08a83e07ecc8866810ebf9406e1f6fa1c53'
'8ed038604771fdb409d3a72f07084a6310eff64f4295dfffcdaf3724e588521f4562a6149a169c17d9bedbe1ff5ec40744733224c47108a3b74124d64101ec3a')
build() {
cd Cairo-$pkgver
patch -p1 -i ../Cairo-1.109.0-c99.patch
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd Cairo-$pkgver
make test
}
package() {
cd Cairo-$pkgver
make DESTDIR="${pkgdir}" install
}