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

Contents of /sci-libs/libgeda/libgeda-1.4.3.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-2009 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.3.ebuild,v 1.1 2009/03/07 21:33:17 patrick 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 RDEPEND="${DEPEND}"
23
24 pkg_setup() {
25 if has_version ">=dev-scheme/guile-1.8" ; then
26 built_with_use "dev-scheme/guile" deprecated \
27 || die "You need either <dev-scheme/guile-1.8, or >=dev-scheme/guile-1.8 with USE=deprecated"
28 fi
29 if use gd ; then
30 built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png"
31 fi
32 }
33
34 src_unpack() {
35 unpack ${A}
36
37 # Skip the share sub-directory, we'll install prolog.ps manually
38 sed -i \
39 -e "s:SUBDIRS = src include scripts docs share:SUBDIRS = src include scripts docs:" \
40 "${S}"/Makefile.in \
41 || die "Patch failed"
42 }
43
44 src_compile() {
45 local myconf="--disable-threads"
46 use threads || myconf="--enable-threads=posix"
47 econf \
48 ${myconf} \
49 --disable-dependency-tracking \
50 --disable-rpath \
51 --disable-update-mime-database \
52 --with-x \
53 $(use_enable gd) \
54 || die "Configuration failed"
55 emake || die "Compilation failed"
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "Installation failed"
60
61 insinto /usr/share/gEDA
62 doins share/prolog.ps
63
64 dodoc AUTHORS BUGS ChangeLog README
65 }
66
67 src_postinst() {
68 fdo-mime_mime_database_update
69 }
70
71 src_postrm() {
72 fdo-mime_mime_database_update
73 }

  ViewVC Help
Powered by ViewVC 1.1.20