Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 407367 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-python/wxpython/wxpython-2.8.12.1.ebuild (-11 / +14 lines)
Lines 21-37 Link Here
21
21
22
LICENSE="wxWinLL-3"
22
LICENSE="wxWinLL-3"
23
SLOT="2.8"
23
SLOT="2.8"
24
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
24
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
25
IUSE="cairo doc examples opengl"
25
IUSE="aqua cairo doc examples opengl"
26
26
27
RDEPEND="
27
RDEPEND="
28
	>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X]
28
	aqua? ( >=dev-lang/python-2.6[aqua?]
29
		>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,aqua=] )
30
	!aqua? ( >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X] )
29
	dev-libs/glib:2
31
	dev-libs/glib:2
30
	dev-python/setuptools
32
	dev-python/setuptools
31
	media-libs/libpng:0
33
	media-libs/libpng:0
32
	media-libs/tiff:0
34
	media-libs/tiff:0
33
	virtual/jpeg
35
	virtual/jpeg
34
	x11-libs/gtk+:2
36
	x11-libs/gtk+:2[aqua=]
35
	x11-libs/pango[X]
37
	x11-libs/pango[X]
36
	cairo?	( >=dev-python/pycairo-1.8.4 )
38
	cairo?	( >=dev-python/pycairo-1.8.4 )
37
	opengl?	( dev-python/pyopengl )"
39
	opengl?	( dev-python/pyopengl )"
Lines 57-62 Link Here
57
	if use doc; then
59
	if use doc; then
58
		cd "${DOC_S}"
60
		cd "${DOC_S}"
59
		epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch
61
		epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch
62
		[[ -e samples/embedded/embedded ]] && rm -f samples/embedded/embedded
60
	fi
63
	fi
61
64
62
	if use examples; then
65
	if use examples; then
Lines 75-81 Link Here
75
78
76
	DISTUTILS_GLOBAL_OPTIONS=(
79
	DISTUTILS_GLOBAL_OPTIONS=(
77
		"* WX_CONFIG=${WX_CONFIG}"
80
		"* WX_CONFIG=${WX_CONFIG}"
78
		"* WXPORT=gtk2"
81
		"* WXPORT=$(usex aqua mac gtk2)"
79
		"* UNICODE=1"
82
		"* UNICODE=1"
80
		"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)"
83
		"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)"
81
	)
84
	)
Lines 96-102 Link Here
96
99
97
	# Collision protection.
100
	# Collision protection.
98
	rename_files() {
101
	rename_files() {
99
		for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do
102
		for file in "${ED}$(python_get_sitedir)/"wx{version.*,.pth}; do
100
			mv "${file}" "${file}-${SLOT}" || return 1
103
			mv "${file}" "${file}-${SLOT}" || return 1
101
		done
104
		done
102
	}
105
	}
Lines 110-116 Link Here
110
	newins "${S}"/wx/py/PyCrust_32.png PyCrust.png
113
	newins "${S}"/wx/py/PyCrust_32.png PyCrust.png
111
	newins "${S}"/wx/tools/XRCed/XRCed_32.png XRCed.png
114
	newins "${S}"/wx/tools/XRCed/XRCed_32.png XRCed.png
112
115
113
	docdir=${D}usr/share/doc/${PF}
116
	docdir=${ED}usr/share/doc/${PF}
114
117
115
	if use doc; then
118
	if use doc; then
116
		dodir /usr/share/doc/${PF}/docs
119
		dodir /usr/share/doc/${PF}/docs
Lines 148-166 Link Here
148
	echo
151
	echo
149
	if use doc; then
152
	if use doc; then
150
		elog "To access the general wxWidgets documentation, run"
153
		elog "To access the general wxWidgets documentation, run"
151
		elog "/usr/share/doc/${PF}/docs/viewdocs.py"
154
		elog "${EROOT}usr/share/doc/${PF}/docs/viewdocs.py"
152
		elog
155
		elog
153
		elog "wxPython documentation is available by pointing a browser"
156
		elog "wxPython documentation is available by pointing a browser"
154
		elog "at /usr/share/doc/${PF}/docs/api/index.html"
157
		elog "at ${EROOT}usr/share/doc/${PF}/docs/api/index.html"
155
	fi
158
	fi
156
	if use examples; then
159
	if use examples; then
157
		elog
160
		elog
158
		elog "The demo.py app which contains hundreds of demo modules"
161
		elog "The demo.py app which contains hundreds of demo modules"
159
		elog "with documentation and source code has been installed at"
162
		elog "with documentation and source code has been installed at"
160
		elog "/usr/share/doc/${PF}/demo/demo.py"
163
		elog "${EROOT}usr/share/doc/${PF}/demo/demo.py"
161
		elog
164
		elog
162
		elog "Many more example apps and modules can be found in"
165
		elog "Many more example apps and modules can be found in"
163
		elog "/usr/share/doc/${PF}/samples/"
166
		elog "${EROOT}usr/share/doc/${PF}/samples/"
164
		echo
167
		echo
165
	fi
168
	fi
166
	elog "Editra is not packaged with wxpython in Gentoo."
169
	elog "Editra is not packaged with wxpython in Gentoo."

Return to bug 407367