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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.6
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/app-office/dia/Attic/dia-0.91.ebuild,v 1.3 2003/03/30 17:14:35 mholzer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/dia/Attic/dia-0.91.ebuild,v 1.6 2003/07/02 11:45:09 aliz Exp $
4 4
5DESCRIPTION="Diagram Creation Program" 5DESCRIPTION="Diagram Creation Program"
6SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz" 6SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz"
7HOMEPAGE="http://www.gnome.org/gnome-office/dia.shtml" 7HOMEPAGE="http://www.gnome.org/gnome-office/dia.shtml"
8 8
9SLOT="0" 9SLOT="0"
10LICENSE="GPL-2" 10LICENSE="GPL-2"
11KEYWORDS="~x86 ~ppc ~sparc" 11KEYWORDS="x86 ~ppc ~sparc"
12IUSE="gnome png python" 12IUSE="gnome png python"
13 13
14DEPEND=">=x11-libs/gtk+-2.0.0 14DEPEND=">=x11-libs/gtk+-2.0.0
15 >=x11-libs/pango-1.1.5 15 >=x11-libs/pango-1.1.5
16 >=dev-libs/libxml2-2.3.9 16 >=dev-libs/libxml2-2.3.9
17 >=dev-libs/libxslt-1.0
17 >=media-libs/freetype-2.0.9 18 >=media-libs/freetype-2.0.9
18 >=dev-util/intltool-0.21 19 >=dev-util/intltool-0.21
19 png? ( media-libs/libpng 20 png? ( media-libs/libpng
20 media-libs/libart_lgpl ) 21 media-libs/libart_lgpl )
21 gnome? ( gnome-base/gnome-libs ) 22 gnome? ( >=gnome-base/libgnome-2.0
23 >=gnome-base/libgnomeui-2.0 )
22 python? ( >=dev-lang/python-2.0 24 python? ( >=dev-lang/python-2.0
23 dev-python/pygtk )" 25 >=dev-python/pygtk-1.99 )"
24 26
25RDEPEND="${DEPEND}" 27src_unpack() {
26 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
27src_compile() { 35src_compile() {
28 local myconf 36 local myconf
29 37
38 use gnome \
30 use gnome && myconf="--enable-gnome" \ 39 && myconf="--enable-gnome" \
31 || myconf="--disable-gnome" 40 || myconf="--disable-gnome"
32 41
33 use python && myconf="${myconf} --with-python" 42 use python && myconf="${myconf} --with-python"
34 43
35 econf ${myconf} 44 econf ${myconf} || die
36 emake || die 45 emake || die
37} 46}
38 47
39src_install() { 48src_install() {
40 make DESTDIR=${D} install || die 49 make DESTDIR=${D} install || die
41 dodoc AUTHORS COPYING ChangeLog README NEWS TODO KNOWN_BUGS 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
42} 59}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20