blob: 83ac3ae848111932f04cec616a5a2ebeb0579162 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.8-r2.ebuild,v 1.4 2006/10/06 18:47:53 vapier Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
inherit eutils libtool autotools
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 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
IUSE="cairo tcltk X static guile java lua perl php python ruby ocaml"
RDEPEND=">=sys-libs/zlib-1.1.3
>=media-libs/libpng-1.2
>=media-libs/jpeg-6b
media-libs/gd
media-libs/freetype
media-libs/fontconfig
dev-libs/expat
sys-libs/zlib
cairo? ( >=x11-libs/libsvg-cairo-0.1.3 )
tcltk? ( >=dev-lang/tk-8.3 >=dev-lang/tcl-8.3 )
guile? ( dev-util/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 )
sys-devel/libtool"
DEPEND="${RDEPEND}
dev-util/pkgconfig
tcltk? ( dev-lang/swig )
guile? ( dev-lang/swig )
java? ( dev-lang/swig )
perl? ( dev-lang/swig )
ocaml? ( dev-lang/swig )
lua? ( dev-lang/swig )
php? ( dev-lang/swig )
python? ( dev-lang/swig )
ruby? ( dev-lang/swig )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-notcl.patch
sed -i 's:LC_COLLATE=C:LC_ALL=C:g' lib/common/Makefile.* #134834
eautoreconf
}
src_compile() {
local my_conf
econf ${my_conf} \
--disable-dependency-tracking \
$(use_enable static) \
$(use_with tcltk tcl) \
$(use_with tcltk 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
make 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!"
if use minimal ; then
rm -rf "${D}"/usr/share/doc/${PF}/{pdf,html}
rm -rf "${D}"/usr/$(get_libdir)/${PN}/{tcl,lua,perl,python,ruby}
fi
dodoc AUTHORS ChangeLog NEWS README
}
pkg_postinst() {
dot -c
}
|