/[gentoo-x86]/sci-electronics/geda/geda-1.8.1.ebuild
Gentoo

Contents of /sci-electronics/geda/geda-1.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Mar 13 10:58:32 2013 UTC (6 years, 10 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for ppc, wrt bug #461560

(Portage version: 2.1.11.52/cvs/Linux ppc64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda/geda-1.8.1.ebuild,v 1.3 2013/03/13 09:15:30 ago Exp $
4
5 EAPI=4
6 inherit eutils fdo-mime gnome2-utils versionator
7
8 MY_PN=${PN}-gaf
9 MY_P=${MY_PN}-${PV}
10
11 DESCRIPTION="GPL Electronic Design Automation (gEDA):gaf core package"
12 HOMEPAGE="http://www.gpleda.org/"
13 SRC_URI="http://ftp.geda-project.org/${MY_PN}/stable/v$(get_version_component_range 1-2)/${PV}/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE="debug doc examples nls stroke threads"
19
20 CDEPEND="
21 dev-libs/glib:2
22 x11-libs/gtk+:2
23 >=x11-libs/cairo-1.2.0
24 >=dev-scheme/guile-1.8[deprecated]
25 nls? ( virtual/libintl )
26 stroke? ( >=dev-libs/libstroke-0.5.1 )"
27
28 DEPEND="${CDEPEND}
29 sys-apps/groff
30 dev-util/desktop-file-utils
31 x11-misc/shared-mime-info
32 virtual/pkgconfig
33 nls? ( >=sys-devel/gettext-0.16 )"
34
35 RDEPEND="${CDEPEND}
36 sci-electronics/electronics-menu"
37
38 S=${WORKDIR}/${MY_P}
39
40 DOCS="AUTHORS NEWS README"
41
42 src_prepare() {
43 if ! use doc ; then
44 sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die
45 fi
46 if ! use examples ; then
47 sed -i -e 's/\texamples$//' Makefile.in || die
48 fi
49 }
50
51 src_configure() {
52 econf \
53 --docdir=/usr/share/doc/${PF} \
54 $(use_enable threads threads posix) \
55 $(use_with stroke libstroke) \
56 $(use_enable nls) \
57 $(use_enable debug assert) \
58 --disable-doxygen \
59 --disable-rpath \
60 --disable-update-xdg-database
61 }
62
63 src_test() {
64 emake -j1 check
65 }
66
67 pkg_preinst() {
68 gnome2_icon_savelist
69 }
70
71 pkg_postinst() {
72 fdo-mime_desktop_database_update
73 fdo-mime_mime_database_update
74 gnome2_icon_cache_update
75 }
76
77 pkg_postrm() {
78 fdo-mime_desktop_database_update
79 fdo-mime_mime_database_update
80 gnome2_icon_cache_update
81 }

  ViewVC Help
Powered by ViewVC 1.1.20