Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="5" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic multilib-minimal |
7 |
inherit eutils flag-o-matic multibuild multilib-minimal |
8 |
|
8 |
|
9 |
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit" |
9 |
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit" |
10 |
HOMEPAGE="http://wxwidgets.org/" |
10 |
HOMEPAGE="http://wxwidgets.org/" |
Lines 15-21
Link Here
|
15 |
doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )" |
15 |
doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )" |
16 |
|
16 |
|
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
18 |
IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit" |
18 |
IUSE="+X aqua doc debug gstreamer gtk libnotify opengl sdl tiff webkit" |
19 |
|
19 |
|
20 |
SLOT="3.0" |
20 |
SLOT="3.0" |
21 |
|
21 |
|
Lines 27-33
Link Here
|
27 |
media-libs/libpng:0=[${MULTILIB_USEDEP}] |
27 |
media-libs/libpng:0=[${MULTILIB_USEDEP}] |
28 |
sys-libs/zlib[${MULTILIB_USEDEP}] |
28 |
sys-libs/zlib[${MULTILIB_USEDEP}] |
29 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
29 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
30 |
>=x11-libs/gtk+-2.18:2[${MULTILIB_USEDEP}] |
30 |
gtk? ( >=x11-libs/gtk+-2.18:2[${MULTILIB_USEDEP}] ) |
|
|
31 |
x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
31 |
x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] |
32 |
x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] |
32 |
x11-libs/libSM[${MULTILIB_USEDEP}] |
33 |
x11-libs/libSM[${MULTILIB_USEDEP}] |
33 |
x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
34 |
x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
Lines 41-47
Link Here
|
41 |
webkit? ( net-libs/webkit-gtk:2 ) |
42 |
webkit? ( net-libs/webkit-gtk:2 ) |
42 |
) |
43 |
) |
43 |
aqua? ( |
44 |
aqua? ( |
44 |
>=x11-libs/gtk+-2.4:2[aqua=,${MULTILIB_USEDEP}] |
45 |
gtk? ( >=x11-libs/gtk+-2.4:2[aqua=,${MULTILIB_USEDEP}] ) |
|
|
46 |
x11-libs/gtk+:3[aqua=,${MULTILIB_USEDEP}] |
45 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
47 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
46 |
tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
48 |
tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
47 |
)" |
49 |
)" |
Lines 63-68
Link Here
|
63 |
|
65 |
|
64 |
S="${WORKDIR}/wxPython-src-${PV}" |
66 |
S="${WORKDIR}/wxPython-src-${PV}" |
65 |
|
67 |
|
|
|
68 |
wxgtk_setup() { |
69 |
local MULTIBUILD_ID="wxgtk" |
70 |
local MULTIBUILD_VARIANTS=( $(usex gtk gtk2) gtk3 ) |
71 |
|
72 |
"${@}" |
73 |
} |
74 |
|
75 |
pkg_setup() { |
76 |
MULTIBUILD_ID="multilib" |
77 |
} |
78 |
|
66 |
src_prepare() { |
79 |
src_prepare() { |
67 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
80 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
68 |
epatch_user |
81 |
epatch_user |
Lines 72-83
Link Here
|
72 |
-e 's:3\.0\.1:3.0.2:g' \ |
85 |
-e 's:3\.0\.1:3.0.2:g' \ |
73 |
-e 's:^wx_release_number=1$:wx_release_number=2:' \ |
86 |
-e 's:^wx_release_number=1$:wx_release_number=2:' \ |
74 |
-i "${S}"/configure || die |
87 |
-i "${S}"/configure || die |
75 |
|
|
|
76 |
} |
88 |
} |
77 |
|
89 |
|
78 |
multilib_src_configure() { |
90 |
multibuild_src_configure() { |
79 |
local myconf |
91 |
local myconf |
80 |
|
92 |
|
|
|
93 |
mkdir -p "${BUILD_DIR}" || die |
94 |
pushd "${BUILD_DIR}" >/dev/null || die |
95 |
|
81 |
# X independent options |
96 |
# X independent options |
82 |
myconf=" |
97 |
myconf=" |
83 |
--with-zlib=sys |
98 |
--with-zlib=sys |
Lines 130-136
Link Here
|
130 |
--disable-gui" |
145 |
--disable-gui" |
131 |
fi |
146 |
fi |
132 |
|
147 |
|
|
|
148 |
myconf="${myconf} |
149 |
--with-gtk=${MULTIBUILD_VARIANT: -1}" |
150 |
|
133 |
ECONF_SOURCE="${S}" econf ${myconf} |
151 |
ECONF_SOURCE="${S}" econf ${myconf} |
|
|
152 |
|
153 |
popd >/dev/null || die |
154 |
} |
155 |
|
156 |
multibuild_src_compile() { |
157 |
pushd "${BUILD_DIR}" >/dev/null || die |
158 |
emake |
159 |
popd >/dev/null || die |
160 |
} |
161 |
|
162 |
multibuild_src_install() { |
163 |
pushd "${BUILD_DIR}" >/dev/null || die |
164 |
emake DESTDIR="${D}" install |
165 |
popd >/dev/null || die |
166 |
} |
167 |
|
168 |
multilib_src_configure() { |
169 |
wxgtk_setup multibuild_foreach_variant multibuild_src_configure |
170 |
} |
171 |
|
172 |
multilib_src_compile() { |
173 |
wxgtk_setup multibuild_foreach_variant multibuild_src_compile |
174 |
} |
175 |
|
176 |
multilib_src_install() { |
177 |
wxgtk_setup multibuild_foreach_variant multibuild_src_install |
134 |
} |
178 |
} |
135 |
|
179 |
|
136 |
multilib_src_install_all() { |
180 |
multilib_src_install_all() { |