diff options
author | Arsen Arsenović <arsen@gentoo.org> | 2023-01-21 12:50:58 +0100 |
---|---|---|
committer | Arsen Arsenović <arsen@gentoo.org> | 2023-01-21 12:53:51 +0100 |
commit | 3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde (patch) | |
tree | 54ed96480329b307fbe502b706dd1481f0fe9c1f /app-eselect | |
parent | media-libs/portsmf: remove github upstream metadata (diff) | |
download | gentoo-3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde.tar.gz gentoo-3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde.tar.bz2 gentoo-3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde.zip |
app-eselect/eselect-wxwidgets: add 20230114-r1, drop broken sed
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'app-eselect')
-rw-r--r-- | app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild new file mode 100644 index 000000000000..6a3f5190a859 --- /dev/null +++ b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild @@ -0,0 +1,50 @@ +# 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 + 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." +} |