Lines 20-36
Link Here
|
20 |
|
20 |
|
21 |
LICENSE="wxWinLL-3" |
21 |
LICENSE="wxWinLL-3" |
22 |
SLOT="2.9" |
22 |
SLOT="2.9" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
24 |
IUSE="cairo examples opengl" |
24 |
IUSE="aqua cairo examples opengl" |
25 |
|
25 |
|
26 |
RDEPEND=" |
26 |
RDEPEND=" |
27 |
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X] |
27 |
aqua? ( >=dev-lang/python-2.6[aqua?] |
|
|
28 |
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,aqua=] ) |
29 |
!aqua? ( >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X] ) |
28 |
dev-libs/glib:2 |
30 |
dev-libs/glib:2 |
29 |
dev-python/setuptools |
31 |
dev-python/setuptools |
30 |
media-libs/libpng:0 |
32 |
media-libs/libpng:0 |
31 |
media-libs/tiff:0 |
33 |
media-libs/tiff:0 |
32 |
virtual/jpeg |
34 |
virtual/jpeg |
33 |
x11-libs/gtk+:2 |
35 |
x11-libs/gtk+:2[aqua=] |
34 |
x11-libs/pango[X] |
36 |
x11-libs/pango[X] |
35 |
cairo? ( >=dev-python/pycairo-1.8.4 ) |
37 |
cairo? ( >=dev-python/pycairo-1.8.4 ) |
36 |
opengl? ( dev-python/pyopengl )" |
38 |
opengl? ( dev-python/pyopengl )" |
Lines 69-75
Link Here
|
69 |
|
71 |
|
70 |
DISTUTILS_GLOBAL_OPTIONS=( |
72 |
DISTUTILS_GLOBAL_OPTIONS=( |
71 |
"* WX_CONFIG=${WX_CONFIG}" |
73 |
"* WX_CONFIG=${WX_CONFIG}" |
72 |
"* WXPORT=gtk2" |
74 |
"* WXPORT=$(usex aqua mac gtk2)" |
73 |
"* UNICODE=1" |
75 |
"* UNICODE=1" |
74 |
"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)" |
76 |
"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)" |
75 |
) |
77 |
) |
Lines 89-95
Link Here
|
89 |
local file x |
91 |
local file x |
90 |
# Collision protection. |
92 |
# Collision protection. |
91 |
rename_files() { |
93 |
rename_files() { |
92 |
for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do |
94 |
for file in "${ED}$(python_get_sitedir)/"wx{version.*,.pth}; do |
93 |
mv "${file}" "${file}-${SLOT}" || return 1 |
95 |
mv "${file}" "${file}-${SLOT}" || return 1 |
94 |
done |
96 |
done |
95 |
} |
97 |
} |
Lines 109-116
Link Here
|
109 |
if use examples; then |
111 |
if use examples; then |
110 |
dodir /usr/share/doc/${PF}/demo |
112 |
dodir /usr/share/doc/${PF}/demo |
111 |
dodir /usr/share/doc/${PF}/samples |
113 |
dodir /usr/share/doc/${PF}/samples |
112 |
cp -R "${DOC_S}"/demo/* "${D}"/usr/share/doc/${PF}/demo/ || die |
114 |
cp -R "${DOC_S}"/demo/* "${ED}"/usr/share/doc/${PF}/demo/ || die |
113 |
cp -R "${DOC_S}"/samples/* "${D}"/usr/share/doc/${PF}/samples/ || die |
115 |
cp -R "${DOC_S}"/samples/* "${ED}"/usr/share/doc/${PF}/samples/ || die |
114 |
fi |
116 |
fi |
115 |
} |
117 |
} |
116 |
|
118 |
|
Lines 134-143
Link Here
|
134 |
if use examples; then |
136 |
if use examples; then |
135 |
elog "The demo.py app which contains demo modules with" |
137 |
elog "The demo.py app which contains demo modules with" |
136 |
elog "documentation and source code has been installed at" |
138 |
elog "documentation and source code has been installed at" |
137 |
elog "/usr/share/doc/${PF}/demo/demo.py" |
139 |
elog "${EROOT}usr/share/doc/${PF}/demo/demo.py" |
138 |
elog |
140 |
elog |
139 |
elog "More example apps and modules can be found in" |
141 |
elog "More example apps and modules can be found in" |
140 |
elog "/usr/share/doc/${PF}/samples/" |
142 |
elog "${EROOT}usr/share/doc/${PF}/samples/" |
141 |
fi |
143 |
fi |
142 |
echo |
144 |
echo |
143 |
} |
145 |
} |