blob: 4342c5bcdc4273aa687711d220dcbfce258707ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20140423.ebuild,v 1.3 2015/06/17 19:30:51 zlogene Exp $
EAPI="5"
inherit multilib
WXWRAP_VER=1.4
DESCRIPTION="Eselect module and wrappers for wxWidgets"
HOMEPAGE="http://www.gentoo.org"
SRC_URI="http://dev.gentoo.org/~ottxor/dist/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
IUSE=""
RDEPEND="app-admin/eselect"
src_prepare() {
cp "${FILESDIR}"/{wx-config,wxrc}-${WXWRAP_VER} . || die
sed \
-e "/^LIBDIR=/s:lib:$(get_libdir):" \
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
-i {wx-config,wxrc}-${WXWRAP_VER} || die
}
src_install() {
insinto /usr/share/eselect/modules
doins wxwidgets.eselect
insinto /usr/share/aclocal
newins "${FILESDIR}"/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
echo
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."
echo
}
|