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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Apr 25 13:35:52 2011 UTC (8 years, 5 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
sci-libs/libgeda removal (pending since 25 Mar 2011). No longer required by anything in tree

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libgeda/libgeda-1.4.0.ebuild,v 1.7 2011/03/06 09:32:31 jlec Exp $
4
5 EAPI="1"
6
7 inherit eutils fdo-mime versionator
8
9 SUBDIR="v$(get_version_component_range 1-2)"
10
11 HOMEPAGE="http://www.geda.seul.org"
12 DESCRIPTION="Library for functions needed by the gEDA core suite"
13 SRC_URI="http://www.geda.seul.org/release/${SUBDIR}/${PV}/libgeda-${PV}.tar.gz"
14
15 IUSE="gd threads"
16 LICENSE="GPL-2"
17 KEYWORDS="ppc"
18 SLOT="0"
19
20 DEPEND="x11-libs/gtk+:2
21 >=dev-scheme/guile-1.6.3
22 >=dev-libs/libstroke-0.5.1
23 gd? ( >=media-libs/gd-2 )"
24
25 pkg_setup() {
26 if has_version ">=dev-scheme/guile-1.8" ; then
27 built_with_use "dev-scheme/guile" deprecated \
28 || die "You need either <dev-scheme/guile-1.8, or >=dev-scheme/guile-1.8 with USE=deprecated"
29 fi
30 if use gd ; then
31 built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png"
32 fi
33 }
34
35 src_unpack() {
36 unpack ${A}
37
38 # Skip the share sub-directory, we'll install prolog.ps manually
39 sed -i \
40 -e "s:SUBDIRS = src include scripts docs share:SUBDIRS = src include scripts docs:" \
41 "${S}"/Makefile.in \
42 || die "Patch failed"
43 }
44
45 src_compile() {
46 local myconf="--disable-threads"
47 use threads || myconf="--enable-threads=posix"
48 econf \
49 ${myconf} \
50 --disable-dependency-tracking \
51 --disable-rpath \
52 --disable-update-mime-database \
53 --with-x \
54 $(use_enable gd) \
55 || die "Configuration failed"
56 emake || die "Compilation failed"
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install || die "Installation failed"
61
62 insinto /usr/share/gEDA
63 doins share/prolog.ps
64
65 dodoc AUTHORS BUGS ChangeLog README
66 }
67
68 src_postinst() {
69 fdo-mime_mime_database_update
70 }
71
72 src_postrm() {
73 fdo-mime_mime_database_update
74 }

  ViewVC Help
Powered by ViewVC 1.1.20