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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jul 19 10:38:40 2015 UTC (4 years, 6 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Make unstable version available in tree

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x24083D3E28343508)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
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}/unstable/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/pango
24 >=x11-libs/cairo-1.2.0
25 x11-libs/gdk-pixbuf
26 >=dev-scheme/guile-1.8:12[deprecated]
27 nls? ( virtual/libintl )
28 stroke? ( >=dev-libs/libstroke-0.5.1 )"
29
30 DEPEND="${CDEPEND}
31 sys-apps/groff
32 dev-util/desktop-file-utils
33 x11-misc/shared-mime-info
34 virtual/pkgconfig
35 nls? ( >=sys-devel/gettext-0.16 )"
36
37 RDEPEND="${CDEPEND}
38 sci-electronics/electronics-menu"
39
40 S=${WORKDIR}/${MY_P}
41
42 DOCS="AUTHORS NEWS README"
43
44 src_prepare() {
45 append-libs -lgio-2.0
46 if ! use doc ; then
47 sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die
48 fi
49 if ! use examples ; then
50 sed -i -e 's/\texamples$//' Makefile.in || die
51 fi
52 }
53
54 src_configure() {
55 econf \
56 --docdir=/usr/share/doc/${PF} \
57 $(use_enable threads threads posix) \
58 $(use_with stroke libstroke) \
59 $(use_enable nls) \
60 $(use_enable debug assert) \
61 --disable-doxygen \
62 --disable-rpath \
63 --disable-update-xdg-database
64 }
65
66 src_test() {
67 emake -j1 check
68 }
69
70 pkg_preinst() {
71 gnome2_icon_savelist
72 }
73
74 pkg_postinst() {
75 fdo-mime_desktop_database_update
76 fdo-mime_mime_database_update
77 gnome2_icon_cache_update
78 }
79
80 pkg_postrm() {
81 fdo-mime_desktop_database_update
82 fdo-mime_mime_database_update
83 gnome2_icon_cache_update
84 }

  ViewVC Help
Powered by ViewVC 1.1.20