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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jan 28 10:35:22 2015 UTC (4 years, 11 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for ppc, wrt bug #535872

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 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.2.ebuild,v 1.4 2015/01/26 10:34:39 ago Exp $
4
5 EAPI=4
6 inherit eutils fdo-mime flag-o-matic 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 append-libs -lgio-2.0
44 if ! use doc ; then
45 sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die
46 fi
47 if ! use examples ; then
48 sed -i -e 's/\texamples$//' Makefile.in || die
49 fi
50 }
51
52 src_configure() {
53 econf \
54 --docdir=/usr/share/doc/${PF} \
55 $(use_enable threads threads posix) \
56 $(use_with stroke libstroke) \
57 $(use_enable nls) \
58 $(use_enable debug assert) \
59 --disable-doxygen \
60 --disable-rpath \
61 --disable-update-xdg-database
62 }
63
64 src_test() {
65 emake -j1 check
66 }
67
68 pkg_preinst() {
69 gnome2_icon_savelist
70 }
71
72 pkg_postinst() {
73 fdo-mime_desktop_database_update
74 fdo-mime_mime_database_update
75 gnome2_icon_cache_update
76 }
77
78 pkg_postrm() {
79 fdo-mime_desktop_database_update
80 fdo-mime_mime_database_update
81 gnome2_icon_cache_update
82 }

  ViewVC Help
Powered by ViewVC 1.1.20