Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] wxWidgets-gtk3: fix config after lib64 change
@ 2021-01-19  1:40 sgn
  2021-01-19  1:46 ` sgn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sgn @ 2021-01-19  1:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

There is a new 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: 1989 bytes --]

From 723523f5a5669e1c306434204ddc638a80a90ac7 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 | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index ad4dffad998..9bfa55e98d2 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -1,26 +1,34 @@
 # 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() {
+	sed -i -e '/^libdir="\/usr/s,/usr,${prefix},' \
+		-e '/^bindir="\/usr/s,/usr,${prefix},' \
+		$DESTDIR/usr/bin/wx-config-gtk3
+}
+
 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
 	}
 }
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wxWidgets-gtk3: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
@ 2021-01-19  1:46 ` sgn
  2021-01-19 14:37 ` [PR PATCH] [Updated] " sgn
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-19  1:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/28027#issuecomment-762548662

Comment:
I'm tempted to use:
```sh
configure_args+=" --libdir=\${prefix}/lib$XBPS_TARGET_WORDSIZE"
```

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] wxWidgets-gtk3: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
  2021-01-19  1:46 ` sgn
@ 2021-01-19 14:37 ` sgn
  2021-01-19 14:49 ` sgn
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-19 14:37 UTC (permalink / raw)
  To: ml

[-- 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
 	}
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] wxWidgets-gtk3: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change 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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-19 14:49 UTC (permalink / raw)
  To: ml

[-- 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: 4931 bytes --]

From 4aa6800de4d70eec021e9a8a9c5ced1f625a2064 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 42c9892b3d0d1a5e6e4912571098381442f26007 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: Mon, 18 Jan 2021 21:02:52 +0700
Subject: [PATCH 2/2] GitHub Action: build on push to non-wip non-master
 branches

---
 .github/workflows/build.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index d8328911eec..47266a17f5f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -1,6 +1,12 @@
-name: Check PR
+name: Check build
 
-on: pull_request
+on:
+  pull_request:
+  push:
+    branches-ignore:
+      - master
+      - 'wip-**'
+      - '**-wip'
 
 jobs:
   # Lint changed templates.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] wxWidgets-gtk3: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
                   ` (2 preceding siblings ...)
  2021-01-19 14:49 ` sgn
@ 2021-01-19 15:16 ` sgn
  2021-01-20  1:03 ` [PR PATCH] [Updated] wxWidgets{,-gtk3}: " ericonr
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-19 15:16 UTC (permalink / raw)
  To: ml

[-- 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: 7226 bytes --]

From 4aa6800de4d70eec021e9a8a9c5ced1f625a2064 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 be41b1b351043794b9a1b60b78a2f73b33ffb661 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..c978ddc605a 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
@@ -27,6 +27,30 @@ 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
+		local _config="gtk2-unicode-3.0"
+		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
 	}
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] wxWidgets{,-gtk3}: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
                   ` (3 preceding siblings ...)
  2021-01-19 15:16 ` sgn
@ 2021-01-20  1:03 ` ericonr
  2021-01-20  1:03 ` sgn
  2021-01-22 11:03 ` [PR PATCH] [Merged]: " sgn
  6 siblings, 0 replies; 8+ messages in thread
From: ericonr @ 2021-01-20  1:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

There is an updated pull request by ericonr 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
 	}
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] wxWidgets{,-gtk3}: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
                   ` (4 preceding siblings ...)
  2021-01-20  1:03 ` [PR PATCH] [Updated] wxWidgets{,-gtk3}: " ericonr
@ 2021-01-20  1:03 ` sgn
  2021-01-22 11:03 ` [PR PATCH] [Merged]: " sgn
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-20  1:03 UTC (permalink / raw)
  To: ml

[-- 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
 	}
 }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Merged]: wxWidgets{,-gtk3}: fix config after lib64 change
  2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change sgn
                   ` (5 preceding siblings ...)
  2021-01-20  1:03 ` sgn
@ 2021-01-22 11:03 ` sgn
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2021-01-22 11:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

There's a merged pull request on the void-packages repository

wxWidgets{,-gtk3}: fix config after lib64 change
https://github.com/void-linux/void-packages/pull/28027

Description:
Also ships license.

---
Fixing WoeUSB cross issue.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-22 11:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19  1:40 [PR PATCH] wxWidgets-gtk3: fix config after lib64 change 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
2021-01-22 11:03 ` [PR PATCH] [Merged]: " sgn

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).