From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] wxWidgets-gtk3: fix config after lib64 change
Date: Tue, 19 Jan 2021 15:37:32 +0100 [thread overview]
Message-ID: <20210119143732.kQsClEe5EBF4fRIr7gVccHKtVs7rLb0pcn0H0bo-8YM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28027@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages wxWidgets-gtk3-fix-config
https://github.com/void-linux/void-packages/pull/28027
wxWidgets-gtk3: fix config after lib64 change
Also ships license.
---
Fixing WoeUSB cross issue.
A patch file from https://github.com/void-linux/void-packages/pull/28027.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wxWidgets-gtk3-fix-config-28027.patch --]
[-- Type: text/x-diff, Size: 4103 bytes --]
From 9a3e6d873a30d05878b0521bed44881bd96855c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Tue, 19 Jan 2021 08:17:53 +0700
Subject: [PATCH] wxWidgets-gtk3: fix config after lib64 change
Also ships license.
---
srcpkgs/wxWidgets-gtk3/template | 60 ++++++++++++++++-----------------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index ad4dffad998..68753677174 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -1,26 +1,51 @@
# Template file for 'wxWidgets-gtk3'
pkgname=wxWidgets-gtk3
version=3.0.5.1
-revision=1
-configure_args="--with-gtk=3 --enable-unicode --with-opengl --with-sdl --with-libmspack
- --with-libnotify --enable-mediactrl"
-build_style=gnu-configure
+revision=2
wrksrc="wxWidgets-${version}"
+build_style=gnu-configure
+configure_args="--with-gtk=3 --enable-unicode --with-opengl --with-sdl
+ --with-libmspack --with-libnotify --enable-mediactrl"
hostmakedepends="pkg-config"
makedepends="SDL2-devel gst-plugins-base1-devel gstreamer1-devel gtk+3-devel
libmspack-devel libnotify-devel tiff-devel webkit2gtk-devel glu-devel"
short_desc="The wxWidgets GUI toolkit library compiled with gtk3 support"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
-license="wxWindows"
+license="custom:wxWindows"
homepage="https://www.wxwidgets.org"
distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+post_install() {
+ local _config="gtk3-unicode-3.0"
+ # remove all occurrences of $XBPS_CROSS_TRIPLET in wx-config:
+ # - mark this build as native build
+ if [ "$CROSS_BUILD" ]; then
+ rename "${XBPS_CROSS_TRIPLET}-" "" ${DESTDIR}/usr/lib/wx/config/*
+ rename -- "-${XBPS_CROSS_TRIPLET}" "" ${DESTDIR}/usr/lib/*
+
+ sed -i -e "s/${XBPS_CROSS_TRIPLET}-//g" \
+ -e "s/-${XBPS_CROSS_TRIPLET}//g" \
+ ${DESTDIR}/usr/lib/wx/config/${_config}
+ fi
+ rm -f ${DESTDIR}/usr/bin/wx-config
+ ln -sf ../lib/wx/config/${_config} ${DESTDIR}/usr/bin/wx-config-gtk3
+ # - ignore --host option; breaks configure scripts when
+ # cross compiling (isn’t necessary in our case anyway)
+ sed -i -e '/^libdir="\/usr/s,/usr,${exec_prefix},' \
+ -e '/^bindir="\/usr/s,/usr,${exec_prefix},' \
+ -e 's/is_cross().*/is_cross() { false; }/g' \
+ -e '/--\*=\*)/i --host=\*) continue;;' \
+ $DESTDIR/usr/lib/wx/config/gtk3-unicode-3.0
+}
+
wxWidgets-common_package() {
short_desc+=" - common files"
pkg_install() {
vmove "usr/lib/libwx_baseu*.so.*"
vmove usr/share
+ vlicense docs/licendoc.txt
+ vlicense docs/licence.txt
}
}
@@ -31,9 +56,6 @@ wxWidgets-common-devel_package() {
vmove "usr/bin/wxrc*"
vmove "usr/lib/libwx_baseu*.so"
vmove usr/include
- if [ "$CROSS_BUILD" ]; then
- rename -- "-${XBPS_CROSS_TRIPLET}" "" ${PKGDESTDIR}/usr/lib/*
- fi
}
}
@@ -44,27 +66,5 @@ wxWidgets-gtk3-devel_package() {
vmove usr/bin
vmove "usr/lib/*.so"
vmove usr/lib/wx
-
- mv ${PKGDESTDIR}/usr/bin/wx-config{,-gtk3}
- # remove all occurrences of $XBPS_CROSS_TRIPLET
- # wx-config:
- # - mark this build as native build
- # - ignore --host option; breaks configure scripts when
- # cross compiling (isn’t necessary in our case anyway)
- if [ "$CROSS_BUILD" ]; then
- local _config="gtk3-unicode-3.0"
- mv ${PKGDESTDIR}/usr/lib/wx/include/{${XBPS_CROSS_TRIPLET}-${_config},${_config}}
-
- rename "${XBPS_CROSS_TRIPLET}-" "" ${PKGDESTDIR}/usr/lib/wx/config/*
- rename -- "-${XBPS_CROSS_TRIPLET}" "" ${PKGDESTDIR}/usr/lib/*
-
- sed -i -e "s/${XBPS_CROSS_TRIPLET}-//g" \
- -e "s/-${XBPS_CROSS_TRIPLET}//g" \
- -e 's/is_cross() { \[ "xyes" = "xyes" \]; }/is_cross() { \[ "xno" = "xyes" \]; }/g' \
- -e 's/--\*=\*)/--host=\*) continue;;\n\n --\*=\*)/' \
- ${PKGDESTDIR}/usr/lib/wx/config/${_config}
-
- ln -sf ../lib/wx/config/${_config} ${PKGDESTDIR}/usr/bin/wx-config-gtk3
- fi
}
}
next prev parent reply other threads:[~2021-01-19 14:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-19 1:40 [PR PATCH] " sgn
2021-01-19 1:46 ` sgn
2021-01-19 14:37 ` sgn [this message]
2021-01-19 14:49 ` [PR PATCH] [Updated] " sgn
2021-01-19 15:16 ` sgn
2021-01-20 1:03 ` [PR PATCH] [Updated] wxWidgets{,-gtk3}: " sgn
2021-01-20 1:03 ` ericonr
2021-01-22 11:03 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210119143732.kQsClEe5EBF4fRIr7gVccHKtVs7rLb0pcn0H0bo-8YM@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).