Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="5" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic |
7 |
inherit eutils flag-o-matic 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 14-25
Link Here
|
14 |
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2 |
14 |
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2 |
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="~amd64 ~x86" |
18 |
IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit" |
18 |
IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit" |
19 |
|
19 |
|
20 |
SLOT="3.0" |
20 |
SLOT="3.0" |
21 |
|
21 |
|
22 |
RDEPEND=" |
22 |
NATIVE_DEPEND=" |
23 |
dev-libs/expat |
23 |
dev-libs/expat |
24 |
sdl? ( media-libs/libsdl ) |
24 |
sdl? ( media-libs/libsdl ) |
25 |
X? ( |
25 |
X? ( |
Lines 39-59
Link Here
|
39 |
opengl? ( virtual/opengl ) |
39 |
opengl? ( virtual/opengl ) |
40 |
tiff? ( media-libs/tiff:0 ) |
40 |
tiff? ( media-libs/tiff:0 ) |
41 |
webkit? ( net-libs/webkit-gtk:2 ) |
41 |
webkit? ( net-libs/webkit-gtk:2 ) |
42 |
) |
42 |
) |
43 |
aqua? ( |
43 |
aqua? ( |
44 |
>=x11-libs/gtk+-2.4[aqua=] |
44 |
>=x11-libs/gtk+-2.4[aqua=] |
45 |
virtual/jpeg |
45 |
virtual/jpeg |
46 |
tiff? ( media-libs/tiff:0 ) |
46 |
tiff? ( media-libs/tiff:0 ) |
47 |
)" |
47 |
) |
|
|
48 |
" |
49 |
|
50 |
RDEPEND=" |
51 |
!amd64? ( ${NATIVE_DEPEND} ) |
52 |
amd64? ( |
53 |
abi_x86_64? ( ${NATIVE_DEPEND} ) |
54 |
abi_x86_32? ( |
55 |
|| ( |
56 |
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
57 |
( |
58 |
dev-libs/expat[abi_x86_32] |
59 |
X? ( |
60 |
>=dev-libs/glib-2.22:2[abi_x86_32] |
61 |
media-libs/libpng:0=[abi_x86_32] |
62 |
sys-libs/zlib[abi_x86_32] |
63 |
virtual/jpeg[abi_x86_32] |
64 |
tiff? ( media-libs/tiff:0[abi_x86_32] ) |
65 |
) |
66 |
) |
67 |
) |
68 |
sdl? ( || ( |
69 |
app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)] |
70 |
media-libs/libsdl[abi_x86_32] |
71 |
) ) |
72 |
X? ( |
73 |
|| ( |
74 |
app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)] |
75 |
( |
76 |
>=x11-libs/gtk+-2.18:2[abi_x86_32] |
77 |
x11-libs/gdk-pixbuf[abi_x86_32] |
78 |
x11-libs/pango[X,abi_x86_32] |
79 |
libnotify? ( x11-libs/libnotify ) |
80 |
) |
81 |
) |
82 |
|
83 |
|| ( |
84 |
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] |
85 |
( |
86 |
x11-libs/libSM[abi_x86_32] |
87 |
x11-libs/libXxf86vm[abi_x86_32] |
88 |
) |
89 |
) |
90 |
|
91 |
gstreamer? ( || ( |
92 |
app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] |
93 |
( |
94 |
media-libs/gstreamer:0.10[abi_x86_32] |
95 |
media-libs/gst-plugins-base:0.10[abi_x86_32] |
96 |
) |
97 |
) ) |
98 |
opengl? ( || ( |
99 |
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] |
100 |
virtual/opengl[abi_x86_32] |
101 |
) ) |
102 |
webkit? ( net-libs/webkit-gtk:2[abi_x86_32] ) |
103 |
) |
104 |
aqua? ( |
105 |
|| ( |
106 |
app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)] |
107 |
>=x11-libs/gtk+-2.4[abi_x86_32,aqua=] |
108 |
) |
109 |
|
110 |
|| ( |
111 |
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
112 |
( |
113 |
virtual/jpeg[abi_x86_32] |
114 |
tiff? ( media-libs/tiff:0[abi_x86_32] ) |
115 |
) |
116 |
) |
117 |
) |
118 |
) |
119 |
) |
120 |
" |
48 |
|
121 |
|
49 |
DEPEND="${RDEPEND} |
122 |
DEPEND="${RDEPEND} |
50 |
virtual/pkgconfig |
123 |
!amd64? ( virtual/glu ) |
51 |
opengl? ( virtual/glu ) |
124 |
amd64? ( |
|
|
125 |
abi_x86_64? ( virtual/glu ) |
126 |
abi_x86_32? ( |
127 |
opengl? ( || ( |
128 |
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] |
129 |
virtual/glu[abi_x86_32] |
130 |
) ) |
131 |
) |
132 |
) |
133 |
virtual/pkgconfig[${MULTILIB_USEDEP}] |
52 |
X? ( |
134 |
X? ( |
53 |
x11-proto/xproto |
135 |
x11-proto/xproto[${MULTILIB_USEDEP}] |
54 |
x11-proto/xineramaproto |
136 |
x11-proto/xineramaproto[${MULTILIB_USEDEP}] |
55 |
x11-proto/xf86vidmodeproto |
137 |
x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
56 |
)" |
138 |
)" |
57 |
|
139 |
|
58 |
PDEPEND=">=app-admin/eselect-wxwidgets-20131230" |
140 |
PDEPEND=">=app-admin/eselect-wxwidgets-20131230" |
59 |
|
141 |
|
Lines 65-79
Link Here
|
65 |
|
147 |
|
66 |
src_prepare() { |
148 |
src_prepare() { |
67 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
149 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
68 |
|
|
|
69 |
# https://bugs.gentoo.org/421851 |
70 |
# https://bugs.gentoo.org/499984 |
71 |
sed -i -e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" configure || die |
72 |
|
73 |
epatch_user |
150 |
epatch_user |
74 |
} |
151 |
} |
75 |
|
152 |
|
76 |
src_configure() { |
153 |
multilib_src_configure() { |
77 |
local myconf |
154 |
local myconf |
78 |
|
155 |
|
79 |
# X independent options |
156 |
# X independent options |
Lines 128-149
Link Here
|
128 |
--disable-gui" |
205 |
--disable-gui" |
129 |
fi |
206 |
fi |
130 |
|
207 |
|
131 |
mkdir "${S}"/wxgtk_build |
|
|
132 |
cd "${S}"/wxgtk_build |
133 |
|
134 |
ECONF_SOURCE="${S}" econf ${myconf} |
208 |
ECONF_SOURCE="${S}" econf ${myconf} |
135 |
} |
209 |
} |
136 |
|
210 |
|
137 |
src_compile() { |
211 |
multilib_src_compile() { |
138 |
cd "${S}"/wxgtk_build |
212 |
default |
139 |
emake |
|
|
140 |
} |
213 |
} |
141 |
|
214 |
|
142 |
src_install() { |
215 |
multilib_src_install() { |
143 |
cd "${S}"/wxgtk_build |
216 |
default |
144 |
|
217 |
|
145 |
emake DESTDIR="${D}" install |
218 |
if multilib_is_native_abi; then |
|
|
219 |
# Stray windows locale file, causes collisions |
220 |
local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo" |
221 |
[[ -e ${wxmsw} ]] && rm "${wxmsw}" |
222 |
fi |
223 |
} |
146 |
|
224 |
|
|
|
225 |
multilib_src_install_all() { |
147 |
cd "${S}"/docs |
226 |
cd "${S}"/docs |
148 |
dodoc changes.txt readme.txt |
227 |
dodoc changes.txt readme.txt |
149 |
newdoc base/readme.txt base_readme.txt |
228 |
newdoc base/readme.txt base_readme.txt |
Lines 152-161
Link Here
|
152 |
if use doc; then |
231 |
if use doc; then |
153 |
dohtml -r "${S}"/docs/doxygen/out/html/* |
232 |
dohtml -r "${S}"/docs/doxygen/out/html/* |
154 |
fi |
233 |
fi |
155 |
|
|
|
156 |
# Stray windows locale file, causes collisions |
157 |
local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo" |
158 |
[[ -e ${wxmsw} ]] && rm "${wxmsw}" |
159 |
} |
234 |
} |
160 |
|
235 |
|
161 |
pkg_postinst() { |
236 |
pkg_postinst() { |