diff options
author | Ulrich Müller <ulm@gentoo.org> | 2018-08-30 19:00:11 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2018-08-30 19:00:40 +0200 |
commit | 9a6f2b9a1265e6bb17a5571319f92043101df5fd (patch) | |
tree | 2414a18c591acf9af13a1b8d66175d3610a97d70 /app-eselect | |
parent | www-client/opera-beta: Version 56.0.3051.10. (diff) | |
download | gentoo-9a6f2b9a1265e6bb17a5571319f92043101df5fd.tar.gz gentoo-9a6f2b9a1265e6bb17a5571319f92043101df5fd.tar.bz2 gentoo-9a6f2b9a1265e6bb17a5571319f92043101df5fd.zip |
app-eselect/eselect-wxwidgets: Fix libdir usage.
Non-maintainer commit, acked by leio.
Closes: https://bugs.gentoo.org/552500
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'app-eselect')
-rw-r--r-- | app-eselect/eselect-wxwidgets/Manifest | 1 | ||||
-rw-r--r-- | app-eselect/eselect-wxwidgets/eselect-wxwidgets-20180529.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/app-eselect/eselect-wxwidgets/Manifest b/app-eselect/eselect-wxwidgets/Manifest index ba87fa39bdaa..e0e8f3571e79 100644 --- a/app-eselect/eselect-wxwidgets/Manifest +++ b/app-eselect/eselect-wxwidgets/Manifest @@ -1,2 +1,3 @@ DIST eselect-wxwidgets-20140423.tar.xz 6792 BLAKE2B ee94e98b9f2473b8e8356ecab483224c027f26a170e02fa8b4e94f18227abb2f1a8f2acd6c5b33dcbf22d4cdadb0421ae487890f9501410559510f3b28ded6c0 SHA512 0d83e0b6979803c8a02c20ac33a42c91fd8d350c095e26704a80c1913309f0e7d741cc466ab22e0a6ce4773deab21ca80756299a12a83d441ded968531003d0e +DIST eselect-wxwidgets-20180529.tar.xz 2380 BLAKE2B 2f5d5e79b9cd85442b0aa0d1453d84651308d4c33711b919802b383bb98865b615a9afd0493b4d34232c3d986e68246e35943d96a31e25a3fb2778b6483ec764 SHA512 d91e87f23c7feb807ed75fcfd363b61fadd8c305e3aa82c5e3dfa3d9fbc2c18a8b7e6404bcac9ebd6c34269406712d453e5bd877509f26f3648cb864df36e281 DIST eselect-wxwidgets-files.tar.bz2 9126 BLAKE2B 47ec94aec721d325fc483ece28e84b48c35b103078415447b6e79e68ab44af9356955c960b9464713396f4cbbf663522e5a4493516414641aa5b99e7cdca0ac8 SHA512 c5aba3bf4bbb891534e0c7a444da6cb90a947dab407e436a1eccd13ddb33251816ce95b5fb6826aa9a64ec2b3d9be09c9852859597b0b8ce91cbaf0f6ed6da5e diff --git a/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20180529.ebuild b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20180529.ebuild new file mode 100644 index 000000000000..2972d1e71941 --- /dev/null +++ b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20180529.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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://www.gentoo.org" +SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz + https://dev.gentoo.org/~mgorny/dist/${PN}-files.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" + +RDEPEND=">=app-admin/eselect-1.4.13" + +src_prepare() { + cp "${WORKDIR}"/eselect-wxwidgets-files/{wx-config,wxrc}-${WXWRAP_VER} . || die + 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 "${WORKDIR}"/eselect-wxwidgets-files/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." +} |