/[gentoo-x86]/app-office/dia/dia-0.91.ebuild
Gentoo

Contents of /app-office/dia/dia-0.91.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jul 2 11:45:09 2003 UTC (17 years, 3 months ago) by aliz
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.5: +2 -2 lines
unmasks and changelog fixes

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-office/dia/dia-0.91.ebuild,v 1.5 2003/03/31 00:10:38 liquidx Exp $
4
5 DESCRIPTION="Diagram Creation Program"
6 SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz"
7 HOMEPAGE="http://www.gnome.org/gnome-office/dia.shtml"
8
9 SLOT="0"
10 LICENSE="GPL-2"
11 KEYWORDS="x86 ~ppc ~sparc"
12 IUSE="gnome png python"
13
14 DEPEND=">=x11-libs/gtk+-2.0.0
15 >=x11-libs/pango-1.1.5
16 >=dev-libs/libxml2-2.3.9
17 >=dev-libs/libxslt-1.0
18 >=media-libs/freetype-2.0.9
19 >=dev-util/intltool-0.21
20 png? ( media-libs/libpng
21 media-libs/libart_lgpl )
22 gnome? ( >=gnome-base/libgnome-2.0
23 >=gnome-base/libgnomeui-2.0 )
24 python? ( >=dev-lang/python-2.0
25 >=dev-python/pygtk-1.99 )"
26
27 src_unpack() {
28 unpack ${A}
29 # fix b0rked Makefile in Cisco directory
30 einfo "Patching shapes/Cisco/Makefile.in"
31 cd ${S}
32 cp ${FILESDIR}/${P}-Cisco-Makefile.in ${S}/shapes/Cisco/Makefile.in || die
33 }
34
35 src_compile() {
36 local myconf
37
38 use gnome \
39 && myconf="--enable-gnome" \
40 || myconf="--disable-gnome"
41
42 use python && myconf="${myconf} --with-python"
43
44 econf ${myconf} || die
45 emake || die
46 }
47
48 src_install() {
49 make DESTDIR=${D} install || die
50 dodoc AUTHORS COPYING ChangeLog README NEWS TODO KNOWN_BUGS
51
52 # fix .desktop link
53 dodir /usr/share/applications
54 mv ${D}/usr/share/gnome/apps/Applications/dia.desktop ${D}/usr/share/applications/dia.desktop
55 rmdir ${D}/usr/share/gnome/apps/Applications
56 rmdir ${D}/usr/share/gnome/apps
57 echo "Categories=Application;GNOME;Office;" >> ${D}/usr/share/applications/dia.desktop
58
59 }

  ViewVC Help
Powered by ViewVC 1.1.20