blob: 46ae624d7b826d7417e0c134c126f3a737b2fea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r2.ebuild,v 1.4 2011/07/13 20:03:47 maekke Exp $
EAPI="2"
WANT_AUTOCONF="2.5"
PYTHON_DEPEND="2"
inherit autotools eutils fdo-mime gnome2-utils python
DESCRIPTION="A graphical front-end for the gschem -> pcb workflow"
HOMEPAGE="http://www.gpleda.org/tools/xgsch2pcb/index.html"
SRC_URI="http://geda.seul.org/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gnome nls"
CDEPEND="
dev-python/pygtk:2
dev-python/pygobject:2
dev-python/dbus-python
sci-electronics/pcb[dbus]
sci-electronics/geda
nls? ( virtual/libintl )"
RDEPEND="
${CDEPEND}
sci-electronics/electronics-menu
gnome? ( dev-python/gnome-vfs-python )"
DEPEND="
${CDEPEND}
dev-util/intltool
dev-lang/perl
nls? ( sys-devel/gettext )"
pkg_setup() {
python_set_active_version 2
}
src_prepare(){
echo '#!/bin/sh' > py-compile
epatch "${FILESDIR}"/${PV}-python.patch
eautoreconf
}
src_configure() {
econf \
$(use_enable nls) \
--disable-update-desktop-database \
--disable-dependency-tracking
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README ChangeLog || die
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
python_mod_optimize $(python_get_sitedir)/${PN}
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
python_mod_cleanup $(python_get_sitedir)/${PN}
}
|