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ć <arsen@gentoo.org>
This commit is contained in:
Arsen Arsenović
2023-01-20 22:25:25 +01:00
parent beeee0f2ec
commit caec55d708
2 changed files with 52 additions and 0 deletions

View File

@@ -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

View File

@@ -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."
}