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 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 14-59
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="~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 |
|
22 |
RDEPEND=" |
22 |
RDEPEND=" |
23 |
dev-libs/expat |
23 |
dev-libs/expat[${MULTILIB_USEDEP}] |
24 |
sdl? ( media-libs/libsdl ) |
24 |
sdl? ( media-libs/libsdl[${MULTILIB_USEDEP}] ) |
25 |
X? ( |
25 |
X? ( |
26 |
>=dev-libs/glib-2.22:2 |
26 |
>=dev-libs/glib-2.22:2[${MULTILIB_USEDEP}] |
27 |
media-libs/libpng:0= |
27 |
media-libs/libpng:0=[${MULTILIB_USEDEP}] |
28 |
sys-libs/zlib |
28 |
sys-libs/zlib[${MULTILIB_USEDEP}] |
29 |
virtual/jpeg |
29 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
30 |
>=x11-libs/gtk+-2.18:2 |
30 |
gtk? ( >=x11-libs/gtk+-2.18:2[${MULTILIB_USEDEP}] ) |
31 |
x11-libs/gdk-pixbuf |
31 |
x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
32 |
x11-libs/libSM |
32 |
x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] |
33 |
x11-libs/libXxf86vm |
33 |
x11-libs/libSM[${MULTILIB_USEDEP}] |
34 |
x11-libs/pango[X] |
34 |
x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
|
|
35 |
x11-libs/pango[X,${MULTILIB_USEDEP}] |
35 |
gstreamer? ( |
36 |
gstreamer? ( |
36 |
media-libs/gstreamer:0.10 |
37 |
media-libs/gstreamer:0.10[${MULTILIB_USEDEP}] |
37 |
media-libs/gst-plugins-base:0.10 ) |
38 |
media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}] ) |
38 |
libnotify? ( x11-libs/libnotify ) |
39 |
libnotify? ( x11-libs/libnotify[${MULTILIB_USEDEP}] ) |
39 |
opengl? ( virtual/opengl ) |
40 |
opengl? ( virtual/opengl[${MULTILIB_USEDEP}] ) |
40 |
tiff? ( media-libs/tiff:0 ) |
41 |
tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
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[aqua=] |
45 |
gtk? ( >=x11-libs/gtk+-2.4:2[aqua=,${MULTILIB_USEDEP}] ) |
45 |
virtual/jpeg |
46 |
x11-libs/gtk+:3[aqua=,${MULTILIB_USEDEP}] |
46 |
tiff? ( media-libs/tiff:0 ) |
47 |
virtual/jpeg:=[${MULTILIB_USEDEP}] |
|
|
48 |
tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] ) |
47 |
)" |
49 |
)" |
48 |
|
50 |
|
49 |
DEPEND="${RDEPEND} |
51 |
DEPEND="${RDEPEND} |
50 |
virtual/pkgconfig |
52 |
virtual/glu[${MULTILIB_USEDEP}] |
51 |
opengl? ( virtual/glu ) |
53 |
virtual/pkgconfig[${MULTILIB_USEDEP}] |
52 |
X? ( |
54 |
X? ( |
53 |
x11-proto/xproto |
55 |
x11-proto/xproto[${MULTILIB_USEDEP}] |
54 |
x11-proto/xineramaproto |
56 |
x11-proto/xineramaproto[${MULTILIB_USEDEP}] |
55 |
x11-proto/xf86vidmodeproto |
57 |
x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
56 |
)" |
58 |
)" |
57 |
|
59 |
|
58 |
PDEPEND=">=app-eselect/eselect-wxwidgets-20131230" |
60 |
PDEPEND=">=app-eselect/eselect-wxwidgets-20131230" |
59 |
|
61 |
|
Lines 63-154
Link Here
|
63 |
|
65 |
|
64 |
S="${WORKDIR}/wxPython-src-${PV}" |
66 |
S="${WORKDIR}/wxPython-src-${PV}" |
65 |
|
67 |
|
66 |
src_prepare() { |
68 |
wxgtk_setup() { |
67 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
69 |
local MULTIBUILD_ID="wxgtk" |
|
|
70 |
local MULTIBUILD_VARIANTS=( $(usex gtk gtk2) gtk3 ) |
68 |
|
71 |
|
69 |
# https://bugs.gentoo.org/421851 |
72 |
"${@}" |
70 |
# https://bugs.gentoo.org/499984 |
73 |
} |
71 |
# https://bugs.gentoo.org/536004 |
|
|
72 |
sed \ |
73 |
-e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" \ |
74 |
-e 's:3\.0\.1:3.0.2:g' \ |
75 |
-e 's:^wx_release_number=1$:wx_release_number=2:' \ |
76 |
-i configure || die |
77 |
|
74 |
|
78 |
epatch_user |
75 |
pkg_setup() { |
|
|
76 |
MULTIBUILD_ID="multilib" |
79 |
} |
77 |
} |
80 |
|
78 |
|
81 |
src_configure() { |
79 |
src_prepare() { |
82 |
local myconf |
80 |
epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch |
|
|
81 |
epatch_user |
82 |
|
83 |
multilib_prepare() { |
84 |
# https://bugs.gentoo.org/421851 |
85 |
# https://bugs.gentoo.org/499984 |
86 |
# https://bugs.gentoo.org/536004 |
87 |
sed \ |
88 |
-e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" \ |
89 |
-e 's:3\.0\.1:3.0.2:g' \ |
90 |
-e 's:^wx_release_number=1$:wx_release_number=2:' \ |
91 |
-i "${BUILD_DIR}"/configure || die |
92 |
} |
93 |
multilib_copy_sources |
94 |
multilib_foreach_abi multilib_prepare |
95 |
} |
83 |
|
96 |
|
84 |
# X independent options |
97 |
multilib_src_configure() { |
85 |
myconf=" |
98 |
multibuild_src_configure() { |
86 |
--with-zlib=sys |
99 |
mkdir -p "${BUILD_DIR}" || die |
87 |
--with-expat=sys |
100 |
pushd "${BUILD_DIR}" >/dev/null || die |
88 |
--enable-compat28 |
101 |
|
89 |
$(use_with sdl)" |
102 |
local myconf |
90 |
|
103 |
|
91 |
# debug in >=2.9 |
104 |
# X independent options |
92 |
# there is no longer separate debug libraries (gtk2ud) |
105 |
myconf=" |
93 |
# wxDEBUG_LEVEL=1 is the default and we will leave it enabled |
106 |
--with-zlib=sys |
94 |
# wxDEBUG_LEVEL=2 enables assertions that have expensive runtime costs. |
107 |
--with-expat=sys |
95 |
# apps can disable these features by building w/ -NDEBUG or wxDEBUG_LEVEL_0. |
108 |
--enable-compat28 |
96 |
# http://docs.wxwidgets.org/3.0/overview_debugging.html |
109 |
$(use_with sdl)" |
97 |
# http://groups.google.com/group/wx-dev/browse_thread/thread/c3c7e78d63d7777f/05dee25410052d9c |
110 |
|
98 |
use debug \ |
111 |
# debug in >=2.9 |
99 |
&& myconf="${myconf} --enable-debug=max" |
112 |
# there is no longer separate debug libraries (gtk2ud) |
100 |
|
113 |
# wxDEBUG_LEVEL=1 is the default and we will leave it enabled |
101 |
# wxGTK options |
114 |
# wxDEBUG_LEVEL=2 enables assertions that have expensive runtime costs. |
102 |
# --enable-graphics_ctx - needed for webkit, editra |
115 |
# apps can disable these features by building w/ -NDEBUG or wxDEBUG_LEVEL_0. |
103 |
# --without-gnomevfs - bug #203389 |
116 |
# http://docs.wxwidgets.org/3.0/overview_debugging.html |
104 |
use X && \ |
117 |
# http://groups.google.com/group/wx-dev/browse_thread/thread/c3c7e78d63d7777f/05dee25410052d9c |
105 |
myconf="${myconf} |
118 |
use debug \ |
106 |
--enable-graphics_ctx |
119 |
&& myconf="${myconf} --enable-debug=max" |
107 |
--with-gtkprint |
120 |
|
108 |
--enable-gui |
121 |
# wxGTK options |
109 |
--with-libpng=sys |
122 |
# --enable-graphics_ctx - needed for webkit, editra |
110 |
--with-libxpm=sys |
123 |
# --without-gnomevfs - bug #203389 |
111 |
--with-libjpeg=sys |
124 |
use X && \ |
112 |
--without-gnomevfs |
125 |
myconf="${myconf} |
113 |
$(use_enable gstreamer mediactrl) |
126 |
--enable-graphics_ctx |
114 |
$(use_enable webkit webview) |
127 |
--with-gtkprint |
115 |
$(use_with libnotify) |
128 |
--enable-gui |
116 |
$(use_with opengl) |
129 |
--with-libpng=sys |
117 |
$(use_with tiff libtiff sys)" |
130 |
--with-libxpm=sys |
|
|
131 |
--with-libjpeg=sys |
132 |
--without-gnomevfs |
133 |
$(use_enable gstreamer mediactrl) |
134 |
$(multilib_native_use_enable webkit webview) |
135 |
$(use_with libnotify) |
136 |
$(use_with opengl) |
137 |
$(use_with tiff libtiff sys)" |
138 |
|
139 |
use aqua && \ |
140 |
myconf="${myconf} |
141 |
--enable-graphics_ctx |
142 |
--enable-gui |
143 |
--with-libpng=sys |
144 |
--with-libxpm=sys |
145 |
--with-libjpeg=sys |
146 |
--with-mac |
147 |
--with-opengl" |
148 |
# cocoa toolkit seems to be broken |
149 |
|
150 |
# wxBase options |
151 |
if use !X && use !aqua ; then |
152 |
myconf="${myconf} |
153 |
--disable-gui" |
154 |
fi |
118 |
|
155 |
|
119 |
use aqua && \ |
|
|
120 |
myconf="${myconf} |
156 |
myconf="${myconf} |
121 |
--enable-graphics_ctx |
157 |
--with-gtk=${MULTIBUILD_VARIANT: -1}" |
122 |
--enable-gui |
|
|
123 |
--with-libpng=sys |
124 |
--with-libxpm=sys |
125 |
--with-libjpeg=sys |
126 |
--with-mac |
127 |
--with-opengl" |
128 |
# cocoa toolkit seems to be broken |
129 |
|
158 |
|
130 |
# wxBase options |
159 |
econf ${myconf} |
131 |
if use !X && use !aqua ; then |
|
|
132 |
myconf="${myconf} |
133 |
--disable-gui" |
134 |
fi |
135 |
|
160 |
|
136 |
mkdir "${S}"/wxgtk_build |
161 |
popd >/dev/null || die |
137 |
cd "${S}"/wxgtk_build |
162 |
} |
138 |
|
163 |
|
139 |
ECONF_SOURCE="${S}" econf ${myconf} |
164 |
wxgtk_setup multibuild_foreach_variant multibuild_src_configure |
140 |
} |
165 |
} |
141 |
|
166 |
|
142 |
src_compile() { |
167 |
multilib_src_compile() { |
143 |
cd "${S}"/wxgtk_build |
168 |
multibuild_src_compile() { |
144 |
emake |
169 |
pushd "${BUILD_DIR}" >/dev/null || die |
|
|
170 |
emake |
171 |
popd >/dev/null || die |
172 |
} |
173 |
|
174 |
wxgtk_setup multibuild_foreach_variant multibuild_src_compile |
145 |
} |
175 |
} |
146 |
|
176 |
|
147 |
src_install() { |
177 |
multilib_src_install() { |
148 |
cd "${S}"/wxgtk_build |
178 |
multibuild_src_install() { |
|
|
179 |
pushd "${BUILD_DIR}" >/dev/null || die |
180 |
emake DESTDIR="${D}" install |
181 |
popd >/dev/null || die |
182 |
} |
149 |
|
183 |
|
150 |
emake DESTDIR="${D}" install |
184 |
wxgtk_setup multibuild_foreach_variant multibuild_src_install |
|
|
185 |
} |
151 |
|
186 |
|
|
|
187 |
multilib_src_install_all() { |
152 |
cd "${S}"/docs |
188 |
cd "${S}"/docs |
153 |
dodoc changes.txt readme.txt |
189 |
dodoc changes.txt readme.txt |
154 |
newdoc base/readme.txt base_readme.txt |
190 |
newdoc base/readme.txt base_readme.txt |