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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 21 21:12:40 2010 UTC (9 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove non-stable versions as per masking.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20