Github messages for voidlinux
 help / color / mirror / Atom feed
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: Wed, 20 Jan 2021 02:03:55 +0100	[thread overview]
Message-ID: <20210120010355.-BWAMWXfaIrvdvsVCpgyZdV1WmtrMATmyTrlzBD5rYc@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: 402 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: 7547 bytes --]

From dadab1e84c594fe6d08b94ed41d28e83d248d4cb 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 1/2] wxWidgets-gtk3: fix config after lib64 change

Also ships license.
---
 srcpkgs/wxWidgets-gtk3/template | 62 +++++++++++++++++----------------
 1 file changed, 32 insertions(+), 30 deletions(-)

diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index ad4dffad998..e1424cb4772 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -1,26 +1,53 @@
 # 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/* \
+			${DESTDIR}/usr/lib/wx/include/*
+		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 +58,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 +68,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
 	}
 }

From b32ed6cd0fa59b19b45efcb46eda0205fffbb6cb 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 21:49:12 +0700
Subject: [PATCH 2/2] wxWidgets: fix -config script after lib64 change

---
 srcpkgs/wxWidgets/template | 49 +++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 24 deletions(-)

diff --git a/srcpkgs/wxWidgets/template b/srcpkgs/wxWidgets/template
index 820c9e1133c..6cca7f994f2 100644
--- a/srcpkgs/wxWidgets/template
+++ b/srcpkgs/wxWidgets/template
@@ -1,7 +1,7 @@
 # Template file for 'wxWidgets'
 pkgname=wxWidgets
 version=3.0.5.1
-revision=1
+revision=2
 configure_args="--enable-unicode --with-opengl --with-sdl --with-libmspack
  --with-libnotify --enable-mediactrl --with-gtk=2 --disable-webview"
 build_style=gnu-configure
@@ -18,6 +18,7 @@ distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
 
 post_install() {
+	local _config="gtk2-unicode-3.0"
 	# remove files that are already in wxWidgets-common
 	rm -f ${DESTDIR}/usr/lib/libwx_baseu*
 	rm -rf ${DESTDIR}/usr/bin/wxrc*
@@ -27,6 +28,29 @@ post_install() {
 	for f in "" generic gtk; do
 		rm ${DESTDIR}/usr/include/wx-3.0/wx/$f/notifmsg.h
 	done
+	# 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 [ -n "$CROSS_BUILD" ]; then
+		rename "${XBPS_CROSS_TRIPLET}-" "" \
+			${DESTDIR}/usr/lib/wx/config/* \
+			${DESTDIR}/usr/lib/wx/include/*
+		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
+	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/${_config}
+	ln -sf ../lib/wx/config/${_config} ${PKGDESTDIR}/usr/bin/wx-config-3.0
+	ln -sf wx-config-3.0 ${DESTDIR}/usr/bin/wx-config
 }
 
 wxWidgets-devel_package() {
@@ -37,28 +61,5 @@ wxWidgets-devel_package() {
 		vmove usr/bin
 		vmove "usr/lib/*.so"
 		vmove usr/lib/wx
-
-		ln -sf wx-config-3.0 ${PKGDESTDIR}/usr/bin/wx-config
-
-		# 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 [ -n "$CROSS_BUILD" ]; then
-			local _config="gtk2-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-3.0
-		fi
 	}
 }

  parent reply	other threads:[~2021-01-20  1:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: " sgn
2021-01-19  1:46 ` sgn
2021-01-19 14:37 ` [PR PATCH] [Updated] " sgn
2021-01-19 14:49 ` sgn
2021-01-19 15:16 ` sgn
2021-01-20  1:03 ` [PR PATCH] [Updated] wxWidgets{,-gtk3}: " ericonr
2021-01-20  1:03 ` sgn [this message]
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=20210120010355.-BWAMWXfaIrvdvsVCpgyZdV1WmtrMATmyTrlzBD5rYc@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).