/[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 - (hide annotations) (download)
Wed Jul 2 11:45:09 2003 UTC (17 years, 4 months ago) by aliz
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.5: +2 -2 lines
unmasks and changelog fixes

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

  ViewVC Help
Powered by ViewVC 1.1.20