mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
app-eselect/eselect-wxwidgets: [QA] Move files/ to a distfile
Closes: https://bugs.gentoo.org/620542
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST eselect-wxwidgets-20140423.tar.xz 6792 SHA256 e97d5734f4b0e314abdaa1a9ee148cdafed74e1cdc036e01e6ac74599736e1bb SHA512 0d83e0b6979803c8a02c20ac33a42c91fd8d350c095e26704a80c1913309f0e7d741cc466ab22e0a6ce4773deab21ca80756299a12a83d441ded968531003d0e WHIRLPOOL 31108a15a0f3774c7a5959de946c741b758d818f1dbf09f96d633e354c086863684f431a6ac59a63f559f0c65482f790a95c7dc431dc91b7b48ec4e4a2c9c730
|
||||
DIST eselect-wxwidgets-files.tar.bz2 9126 BLAKE2B 47ec94aec721d325fc483ece28e84b48c35b103078415447b6e79e68ab44af9356955c960b9464713396f4cbbf663522e5a4493516414641aa5b99e7cdca0ac8 SHA512 c5aba3bf4bbb891534e0c7a444da6cb90a947dab407e436a1eccd13ddb33251816ce95b5fb6826aa9a64ec2b3d9be09c9852859597b0b8ce91cbaf0f6ed6da5e
|
||||
|
||||
@@ -9,7 +9,8 @@ WXWRAP_VER=1.4
|
||||
|
||||
DESCRIPTION="Eselect module and wrappers for wxWidgets"
|
||||
HOMEPAGE="https://www.gentoo.org"
|
||||
SRC_URI="https://dev.gentoo.org/~junghans/dist/${P}.tar.xz"
|
||||
SRC_URI="https://dev.gentoo.org/~junghans/dist/${P}.tar.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/${PN}-files.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
@@ -19,7 +20,7 @@ IUSE=""
|
||||
RDEPEND="app-admin/eselect"
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}"/{wx-config,wxrc}-${WXWRAP_VER} . || die
|
||||
cp "${WORKDIR}"/eselect-wxwidgets-files/{wx-config,wxrc}-${WXWRAP_VER} . || die
|
||||
sed \
|
||||
-e "/^LIBDIR=/s:lib:$(get_libdir):" \
|
||||
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||
@@ -31,7 +32,7 @@ src_install() {
|
||||
doins wxwidgets.eselect
|
||||
|
||||
insinto /usr/share/aclocal
|
||||
newins "${FILESDIR}"/wxwin.m4-3.0 wxwin.m4
|
||||
newins "${WORKDIR}"/eselect-wxwidgets-files/wxwin.m4-3.0 wxwin.m4
|
||||
|
||||
newbin wx-config-${WXWRAP_VER} wx-config
|
||||
newbin wxrc-${WXWRAP_VER} wxrc
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# /usr/bin/wx-config
|
||||
#
|
||||
# a lame wx-config wrapper (bugs to wxwidgets@gentoo.org)
|
||||
|
||||
EPREFIX=''
|
||||
LIBDIR="lib"
|
||||
|
||||
_wxerror() {
|
||||
cat >&2 <<- EOF
|
||||
An error occurred while calling wx-config:
|
||||
|
||||
${1}
|
||||
|
||||
Please use \`eselect wxwidgets\` to select an available profile and try again.
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ -n "${WX_ECLASS_CONFIG}" ]; then
|
||||
${WX_ECLASS_CONFIG} "$@"
|
||||
exit 0
|
||||
else
|
||||
if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
|
||||
. "${EPREFIX}"/var/lib/wxwidgets/current
|
||||
else
|
||||
_wxerror "Cannot find the wxWidgets profile configuration ( ${EPREFIX}/var/lib/wxwidgets/current )"
|
||||
fi
|
||||
|
||||
[ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
|
||||
|
||||
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
|
||||
"${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@"
|
||||
else
|
||||
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# /usr/bin/wxrc
|
||||
#
|
||||
# a lame wxrc wrapper (bugs to wxwidgets@gentoo.org)
|
||||
|
||||
EPREFIX=''
|
||||
LIBDIR="lib"
|
||||
|
||||
_wxerror() {
|
||||
cat >&2 <<- EOF
|
||||
An error occurred while calling wxrc:
|
||||
|
||||
${1}
|
||||
|
||||
Please use \`eselect wxwidgets\` to select an available profile and try again.
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ -n "${WX_ECLASS_CONFIG}" ]; then
|
||||
$(${WX_ECLASS_CONFIG} --utility=wxrc) "$@"
|
||||
exit 0
|
||||
else
|
||||
if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
|
||||
. "${EPREFIX}"/var/lib/wxwidgets/current
|
||||
else
|
||||
_wxerror "Cannot find the wxWidgets profile configuration ( ${EPREFIX}/var/lib/wxwidgets/current )"
|
||||
fi
|
||||
|
||||
[ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
|
||||
|
||||
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
|
||||
$("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc) "$@"
|
||||
else
|
||||
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user