blob: ea597c6a39596a80fae59fea5997fc30f5f6ce1b (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/dia/dia-0.91.ebuild,v 1.5 2003/03/31 00:10:38 liquidx Exp $
DESCRIPTION="Diagram Creation Program"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/gnome-office/dia.shtml"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE="gnome png python"
DEPEND=">=x11-libs/gtk+-2.0.0
>=x11-libs/pango-1.1.5
>=dev-libs/libxml2-2.3.9
>=dev-libs/libxslt-1.0
>=media-libs/freetype-2.0.9
>=dev-util/intltool-0.21
png? ( media-libs/libpng
media-libs/libart_lgpl )
gnome? ( >=gnome-base/libgnome-2.0
>=gnome-base/libgnomeui-2.0 )
python? ( >=dev-lang/python-2.0
>=dev-python/pygtk-1.99 )"
src_unpack() {
unpack ${A}
# fix b0rked Makefile in Cisco directory
einfo "Patching shapes/Cisco/Makefile.in"
cd ${S}
cp ${FILESDIR}/${P}-Cisco-Makefile.in ${S}/shapes/Cisco/Makefile.in || die
}
src_compile() {
local myconf
use gnome \
&& myconf="--enable-gnome" \
|| myconf="--disable-gnome"
use python && myconf="${myconf} --with-python"
econf ${myconf} || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc AUTHORS COPYING ChangeLog README NEWS TODO KNOWN_BUGS
# fix .desktop link
dodir /usr/share/applications
mv ${D}/usr/share/gnome/apps/Applications/dia.desktop ${D}/usr/share/applications/dia.desktop
rmdir ${D}/usr/share/gnome/apps/Applications
rmdir ${D}/usr/share/gnome/apps
echo "Categories=Application;GNOME;Office;" >> ${D}/usr/share/applications/dia.desktop
}
|