/[gentoo-x86]/sci-libs/libgeda/libgeda-20070216.ebuild
Gentoo

Contents of /sci-libs/libgeda/libgeda-20070216.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Mar 22 19:05:16 2008 UTC (11 years, 7 months ago) by calchan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Post stabilization cleanup.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libgeda/libgeda-20070216.ebuild,v 1.3 2007/04/07 20:16:35 calchan Exp $
4
5 inherit eutils
6
7 HOMEPAGE="http://www.geda.seul.org"
8 DESCRIPTION="libgeda - this library provides functions needed for the gEDA core suite"
9 SRC_URI="http://www.geda.seul.org/devel/${PV}/libgeda-${PV}.tar.gz"
10
11 IUSE="gd"
12 LICENSE="GPL-2"
13 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
14 SLOT="0"
15
16 DEPEND=">=x11-libs/gtk+-2.4
17 >=dev-scheme/guile-1.6.3
18 >=dev-libs/libstroke-0.5.1
19 gd? ( >=media-libs/gd-2 )"
20
21 pkg_setup() {
22 if has_version ">=dev-scheme/guile-1.8" ; then
23 built_with_use "dev-scheme/guile" deprecated \
24 || die "You need either <dev-scheme/guile-1.8, or >=dev-scheme/guile-1.8 with USE=deprecated"
25 fi
26 if use gd ; then
27 built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png"
28 fi
29 }
30
31 src_unpack() {
32 unpack ${A}
33
34 # Skip the share sub-directory, we'll install prolog.ps manually
35 sed -i \
36 -e "s:SUBDIRS = src include scripts docs share:SUBDIRS = src include scripts docs:" \
37 ${S}/Makefile.in \
38 || die "Patch failed"
39 }
40
41 src_compile() {
42 econf --disable-dependency-tracking $(use_enable gd) || die "Configuration failed"
43 emake || die "Compilation failed"
44 }
45
46 src_install() {
47 emake DESTDIR=${D} install || die "Installation failed"
48
49 insinto /usr/share/gEDA
50 doins share/prolog.ps
51
52 dodoc AUTHORS BUGS ChangeLog README
53 }

  ViewVC Help
Powered by ViewVC 1.1.20