blob: 9bc8937fb83748aaa27640ae215bedb401142d2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.12.ebuild,v 1.4 2007/02/19 18:03:03 chrb Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
inherit eutils autotools multilib
DESCRIPTION="Open Source Graph Visualization Software"
HOMEPAGE="http://www.graphviz.org/"
SRC_URI="http://www.graphviz.org/pub/graphviz/ARCHIVE/${P}.tar.gz"
LICENSE="CPL-1.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
IUSE="cairo doc examples gtk tcl tk X guile java lua pango perl php python ruby ocaml"
RDEPEND="
>=media-libs/gd-2.0.28
>=sys-libs/zlib-1.2.3
>=media-libs/freetype-2.1.3
>=media-libs/libpng-1.2.5
>=media-libs/jpeg-6b
>=dev-libs/expat-1.95.5
virtual/libiconv
sys-devel/libtool
media-libs/fontconfig
cairo? ( >=x11-libs/libsvg-cairo-0.1.3 )
pango? ( x11-libs/pango )
gtk? ( >=x11-libs/gtk+-2 )
tcl? ( >=dev-lang/tcl-8.3 )
tk? ( >=dev-lang/tk-8.3 )
guile? ( dev-scheme/guile )
java? ( virtual/jdk )
perl? ( dev-lang/perl )
ocaml? ( dev-lang/ocaml )
lua? ( dev-lang/lua )
php? ( dev-lang/php )
python? ( dev-lang/python )
ruby? ( dev-lang/ruby )
X? ( x11-libs/libXaw x11-libs/libXpm )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
tcl? ( dev-lang/swig )
guile? ( dev-lang/swig )
java? ( dev-lang/swig )
perl? ( dev-lang/swig )
ocaml? ( >=dev-lang/swig-1.3.31 )
lua? ( >=dev-lang/swig-1.3.31 )
php? ( dev-lang/swig )
python? ( dev-lang/swig )
ruby? ( dev-lang/swig )"
pkg_setup() {
if use guile && has_version '>=dev-scheme/guile-1.8' && \
! built_with_use dev-scheme/guile deprecated; then
die "dev-scheme/guile must be built with deprecated"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-notcl.patch"
epatch "${FILESDIR}/${P}-find-system-libgd.patch"
sed -i \
-e 's:LC_COLLATE=C:LC_ALL=C:g' \
lib/common/Makefile.* || die "sed failed" # bug 134834
# Make sure SWIG interface is rebuilt
touch tclpkg/gv/gv.i
eautoreconf
}
src_compile() {
# Ming 3.0 is needed but still masked
econf \
--disable-dependency-tracking \
--with-libgd \
--without-ming \
$(use_with pango pangocairo) \
$(use_with gtk) \
$(use_enable tcl) \
$(use_enable tk) \
$(use_enable guile) \
$(use_enable java) \
$(use_enable lua) \
$(use_enable ocaml) \
$(use_enable perl) \
$(use_enable php) \
$(use_enable python) \
$(use_enable ruby) \
--disable-{sharp,io} \
$(use_with X x) \
|| die "Configure Failed!"
emake || die "Compile Failed!"
}
src_install() {
sed -i \
-e "s:htmldir:htmlinfodir:g" \
doc/info/Makefile
emake DESTDIR="${D}" \
txtdir=/usr/share/doc/${PF} \
htmldir=/usr/share/doc/${PF}/html \
htmlinfodir=/usr/share/doc/${PF}/html/info \
pdfdir=/usr/share/doc/${PF}/pdf \
pkgconfigdir=/usr/$(get_libdir)/pkgconfig \
install || die "Install Failed!"
use doc || rm -rf "${D}/usr/share/doc/${PF}"/{pdf,html}
use examples || rm -rf "${D}/usr/share/graphviz/demo"
dodoc AUTHORS ChangeLog NEWS README
}
pkg_postinst() {
dot -c
}
|