diff options
author | Mark Wagie | 2022-07-03 12:20:04 -0600 |
---|---|---|
committer | Mark Wagie | 2022-07-03 12:20:04 -0600 |
commit | c558b368fe7fadbb5e7cd3ff6e1e0dbe7e86ec0b (patch) | |
tree | 819a3bef5649538c24e5dc6a9918f87d109e882f | |
parent | 6b464dda74d2ac44dfc822216b97248d9d43a2f6 (diff) | |
download | aur-c558b368fe7fadbb5e7cd3ff6e1e0dbe7e86ec0b.tar.gz |
fix build, disable tests
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | gtk3.patch | 29 |
4 files changed, 57 insertions, 15 deletions
@@ -1,18 +1,19 @@ pkgbase = perl-wx pkgdesc = Interface to the wxWidgets cross-platform GUI toolkit pkgver = 0.9932 - pkgrel = 4 + pkgrel = 5 url = https://metacpan.org/dist/Wx arch = x86_64 license = GPL license = PerlArtistic - checkdepends = xorg-server-xvfb makedepends = perl-module-build depends = perl-alien-wxwidgets depends = perl-extutils-xspp depends = wxgtk3 options = !emptydirs source = https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-0.9932.tar.gz + source = gtk3.patch sha256sums = 1cfdb6535a0f4676e6f1aab2c9d8e16d577be3eb3b7cc04c8074d685e6651b70 + sha256sums = 61fca0928af91231988779b74b2aa735f92bea40804c3c50aaa8cac4ac5b3f1b pkgname = perl-wx diff --git a/.gitignore b/.gitignore index 4dab8d6386e3..2e4809736880 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ !.gitignore !PKGBUILD !.SRCINFO +!gtk3.patch @@ -2,17 +2,26 @@ # Contributor: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com> pkgname=perl-wx pkgver=0.9932 -pkgrel=4 +pkgrel=5 pkgdesc="Interface to the wxWidgets cross-platform GUI toolkit" arch=('x86_64') url="https://metacpan.org/dist/Wx" license=('GPL' 'PerlArtistic') depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk3') makedepends=('perl-module-build') -checkdepends=('xorg-server-xvfb') +#checkdepends=('xorg-server-xvfb') options=('!emptydirs') -source=("https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-$pkgver.tar.gz") -sha256sums=('1cfdb6535a0f4676e6f1aab2c9d8e16d577be3eb3b7cc04c8074d685e6651b70') +source=("https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-$pkgver.tar.gz" + 'gtk3.patch') +sha256sums=('1cfdb6535a0f4676e6f1aab2c9d8e16d577be3eb3b7cc04c8074d685e6651b70' + '61fca0928af91231988779b74b2aa735f92bea40804c3c50aaa8cac4ac5b3f1b') + +prepare() { + cd "Wx-$pkgver" + + # Fixes for GTK3 compatibility + patch -Np1 -i ../gtk3.patch +} build(){ # Setting these env variables overwrites any command-line-options we don't want... @@ -26,15 +35,17 @@ build(){ perl Makefile.PL make } -check(){ - cd "Wx-$pkgver" - if [[ -z "$DISPLAY" || -x /usr/bin/xvfb-run ]]; then -# warning 'Empty $DISPLAY - falling back to xvfb-run (xorg-server-xvfb)' - xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" make test - else - make test - fi -} + +#check(){ +# cd "Wx-$pkgver" +# if [[ -z "$DISPLAY" || -x /usr/bin/xvfb-run ]]; then +## warning 'Empty $DISPLAY - falling back to xvfb-run (xorg-server-xvfb)' +# xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" make test +# else +# make test +# fi +#} + package(){ cd "Wx-$pkgver" make DESTDIR="$pkgdir" install diff --git a/gtk3.patch b/gtk3.patch new file mode 100644 index 000000000000..7d385bd6a61b --- /dev/null +++ b/gtk3.patch @@ -0,0 +1,29 @@ +Description: Fixes for GTK3 compatibility + wxWidgets 3.0 built with GTK3 doesn't have wxColour::GetPixel(), see: + http://trac.wxwidgets.org/ticket/15141#comment:2 +Author: Olly Betts <olly@survex.com> +Forwarded: no +Last-Update: 2018-04-01 + +--- a/XS/Colour.xs ++++ b/XS/Colour.xs +@@ -114,7 +114,7 @@ + + #endif + +-#if !defined(__WXMAC__) ++#if !defined(__WXMAC__) && !defined (__WXGTK3__) + + long + wxColour::GetPixel() +--- a/ext/propgrid/XS/PGProperty.xsp ++++ b/ext/propgrid/XS/PGProperty.xsp +@@ -1148,7 +1148,7 @@ + bool SetPlValue( wxColour* col, int flags = wxPG_SETVAL_REFRESH_EDITOR ) + %code{% + if( col->IsOk() ) { +- wxVariant value = wxVariant(*col); ++ wxVariant value = wxVariant(wxAny(*col)); + THIS->SetValue(value, NULL, flags ); + RETVAL = true; + } else { |