Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 457686
Collapse All | Expand All

(-)graphviz-2.28.0.ebuild (-13 / +14 lines)
Lines 2-11 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.28.0.ebuild,v 1.15 2012/12/17 20:35:03 ago Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.28.0.ebuild,v 1.15 2012/12/17 20:35:03 ago Exp $
4
4
5
EAPI=4
5
EAPI=5
6
PYTHON_DEPEND="python? 2"
7
6
8
inherit eutils autotools multilib python flag-o-matic
7
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
8
9
inherit autotools eutils flag-o-matic multilib python-single-r1
9
10
10
DESCRIPTION="Open Source Graph Visualization Software"
11
DESCRIPTION="Open Source Graph Visualization Software"
11
HOMEPAGE="http://www.graphviz.org/"
12
HOMEPAGE="http://www.graphviz.org/"
Lines 47-52 RDEPEND=" Link Here
47
	gtk?	( x11-libs/gtk+:2 )
48
	gtk?	( x11-libs/gtk+:2 )
48
	gts?	( sci-libs/gts )
49
	gts?	( sci-libs/gts )
49
	lasi?	( media-libs/lasi )
50
	lasi?	( media-libs/lasi )
51
	python?	( ${PYTHON_DEPS} )
50
	qt4?	(
52
	qt4?	(
51
		x11-libs/qt-core:4
53
		x11-libs/qt-core:4
52
		x11-libs/qt-gui:4
54
		x11-libs/qt-gui:4
Lines 60-66 DEPEND="${RDEPEND} Link Here
60
	java?	( dev-lang/swig )
62
	java?	( dev-lang/swig )
61
	nls?	( >=sys-devel/gettext-0.14.5 )
63
	nls?	( >=sys-devel/gettext-0.14.5 )
62
	perl?	( dev-lang/swig )
64
	perl?	( dev-lang/swig )
63
	python?	( dev-lang/swig )
65
	python?	(
66
		dev-lang/swig
67
		${PYTHON_DEPS}
68
	)
64
	ruby?	( dev-lang/swig )
69
	ruby?	( dev-lang/swig )
65
	tcl?	( dev-lang/swig )"
70
	tcl?	( dev-lang/swig )"
66
REQUIRED_USE="!cairo? ( !X !gtk !postscript !lasi )"
71
REQUIRED_USE="!cairo? ( !X !gtk !postscript !lasi )"
Lines 125-134 REQUIRED_USE="!cairo? ( !X !gtk !postscr Link Here
125
#   with flags enabled at configure time
130
#   with flags enabled at configure time
126
131
127
pkg_setup() {
132
pkg_setup() {
128
	if use python; then
133
	use python && python-single-r1_pkg_setup
129
		python_set_active_version 2
130
		python_pkg_setup
131
	fi
132
}
134
}
133
135
134
src_prepare() {
136
src_prepare() {
Lines 237-251 src_install() { Link Here
237
	use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
239
	use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
238
240
239
	dodoc AUTHORS ChangeLog NEWS README
241
	dodoc AUTHORS ChangeLog NEWS README
242
243
	use python && python_optimize \
244
		"${D}$(python_get_sitedir)" \
245
		"${D}/usr/$(get_libdir)/graphviz/python"
240
}
246
}
241
247
242
pkg_postinst() {
248
pkg_postinst() {
243
	# This actually works if --enable-ltdl is passed
249
	# This actually works if --enable-ltdl is passed
244
	# to configure
250
	# to configure
245
	dot -c
251
	dot -c
246
	use python && python_mod_optimize gv.py
247
}
248
249
pkg_postrm() {
250
	use python && python_mod_cleanup gv.py
251
}
252
}

Return to bug 457686