From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E52E158010 for ; Fri, 20 Jan 2023 22:19:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6660CE0869; Fri, 20 Jan 2023 22:18:59 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4ECD4E0869 for ; Fri, 20 Jan 2023 22:18:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81489340CB8 for ; Fri, 20 Jan 2023 22:18:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46FC5882 for ; Fri, 20 Jan 2023 22:18:56 +0000 (UTC) From: "Arsen Arsenović" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arsen Arsenović" Message-ID: <1674252947.caec55d7080309590acd67d4e7b84b83b78073be.arsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-wxwidgets/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-eselect/eselect-wxwidgets/Manifest app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114.ebuild X-VCS-Directories: app-eselect/eselect-wxwidgets/ X-VCS-Committer: arsen X-VCS-Committer-Name: Arsen Arsenović X-VCS-Revision: caec55d7080309590acd67d4e7b84b83b78073be X-VCS-Branch: master Date: Fri, 20 Jan 2023 22:18:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 89b6e04e-78cc-4ef2-8a56-787932c752cc X-Archives-Hash: be8201a66086f0685492d6a80656a3ae commit: caec55d7080309590acd67d4e7b84b83b78073be Author: Arsen Arsenović gentoo org> AuthorDate: Fri Jan 20 21:25:25 2023 +0000 Commit: Arsen Arsenović gentoo org> CommitDate: Fri Jan 20 22:15:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caec55d7 app-eselect/eselect-wxwidgets: add 20230114 This permits build systems to rely on the exit code of wx-config. As an example: $ /usr/lib64/wx/config/gtk3-unicode-3.0-gtk3 \ --flavour=release 2>/dev/null 1>&2|| echo foo foo $ wx-config --flavour=release 2>/dev/null 1>&2|| echo foo $ This is the first version of eselect-wxwidgets which includes the shim files in version control. Signed-off-by: Arsen Arsenović gentoo.org> app-eselect/eselect-wxwidgets/Manifest | 1 + .../eselect-wxwidgets-20230114.ebuild | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/app-eselect/eselect-wxwidgets/Manifest b/app-eselect/eselect-wxwidgets/Manifest index 9ba82af10fda..8f68605c63ad 100644 --- a/app-eselect/eselect-wxwidgets/Manifest +++ b/app-eselect/eselect-wxwidgets/Manifest @@ -1,2 +1,3 @@ DIST eselect-wxwidgets-20180529.tar.xz 2380 BLAKE2B 2f5d5e79b9cd85442b0aa0d1453d84651308d4c33711b919802b383bb98865b615a9afd0493b4d34232c3d986e68246e35943d96a31e25a3fb2778b6483ec764 SHA512 d91e87f23c7feb807ed75fcfd363b61fadd8c305e3aa82c5e3dfa3d9fbc2c18a8b7e6404bcac9ebd6c34269406712d453e5bd877509f26f3648cb864df36e281 +DIST eselect-wxwidgets-20230114.tar.xz 11328 BLAKE2B f417bd1549d12b9a0ec629d92a38863caafc000a6212560f1405930dab6149c106836d0d1e61d8dbfad14059c628775e85fbf0ecdcd909403e06f666aff5e684 SHA512 0da2713e61920792a89e82334b1561464a0afbc61aed7857b7029980370b7f023edcae0da8d7225f091e65dc207e6c346cd4bfddcbe06a71264f597ecffeea95 DIST eselect-wxwidgets-files.tar.bz2 9126 BLAKE2B 47ec94aec721d325fc483ece28e84b48c35b103078415447b6e79e68ab44af9356955c960b9464713396f4cbbf663522e5a4493516414641aa5b99e7cdca0ac8 SHA512 c5aba3bf4bbb891534e0c7a444da6cb90a947dab407e436a1eccd13ddb33251816ce95b5fb6826aa9a64ec2b3d9be09c9852859597b0b8ce91cbaf0f6ed6da5e diff --git a/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114.ebuild b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114.ebuild new file mode 100644 index 000000000000..ee897138e4c9 --- /dev/null +++ b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib + +WXWRAP_VER=1.4 + +DESCRIPTION="Eselect module and wrappers for wxWidgets" +HOMEPAGE="https://gitweb.gentoo.org/proj/eselect-wxwidgets.git/" +SRC_URI="https://dev.gentoo.org/~sam/distfiles/app-eselect/eselect-wxwidgets/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" + +RDEPEND=">=app-admin/eselect-1.4.13" + +src_prepare() { + sed \ + -e "/^LIBDIR=/s:lib:$(get_libdir):" \ + -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ + -i {wx-config,wxrc}-"${WXWRAP_VER}" || die + sed -i '34s/^/exec/' "wx-config-${WXWRAP_VER}" || die + eapply_user +} + +src_install() { + insinto /usr/share/eselect/modules + doins wxwidgets.eselect + + insinto /usr/share/aclocal + newins wxwin.m4-3.0 wxwin.m4 + + newbin "wx-config-${WXWRAP_VER}" wx-config + newbin "wxrc-${WXWRAP_VER}" wxrc + + keepdir /var/lib/wxwidgets + keepdir /usr/share/bakefile/presets +} + +pkg_postinst() { + if [[ ! -e ${EROOT}/var/lib/wxwidgets/current ]]; then + echo 'WXCONFIG="none"' > "${EROOT}"/var/lib/wxwidgets/current + fi + + elog "This eselect module only controls the version of wxGTK used when" + elog "building packages outside of portage. If you are not doing development" + elog "with wxWidgets or bakefile you will never need to use it." +}