1 |
commit: 95cbb77a18d2b1d533995886ad0bb156b6fad541 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 16:44:28 2017 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 16:44:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95cbb77a |
7 |
|
8 |
sci-electronics/linsmith: fix icon path (bug #604314). Thks A. Truccone |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
.../linsmith/linsmith-0.99.30-r1.ebuild | 68 ++++++++++++++++++++++ |
13 |
1 file changed, 68 insertions(+) |
14 |
|
15 |
diff --git a/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild b/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..b8bc4e2 |
18 |
--- /dev/null |
19 |
+++ b/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild |
20 |
@@ -0,0 +1,68 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit eutils autotools |
28 |
+ |
29 |
+DESCRIPTION="Smith charting program, mainly designed for educational use" |
30 |
+HOMEPAGE="http://www.jcoppens.com/soft/linsmith/index.en.php" |
31 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="doc examples" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ x11-libs/gtk+:2 |
40 |
+ dev-libs/libxml2:2 |
41 |
+ dev-libs/glib:2 |
42 |
+ dev-libs/atk |
43 |
+ gnome-base/libgnome |
44 |
+ gnome-base/libgnomecanvas |
45 |
+ gnome-base/libgnomeui" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ virtual/pkgconfig" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ # This patch is to prevent make install copying |
51 |
+ # the examples in /usr/share/linsmith |
52 |
+ # Now they are cp to the correct location. |
53 |
+ epatch \ |
54 |
+ "${FILESDIR}"/${PN}-datafiles.patch |
55 |
+ |
56 |
+ # fix QA warnings about wrong categories and location of icon file |
57 |
+ # in .desktop file |
58 |
+ sed -i -e "s/Application;Engineering;/Education;Science;Electronics;/" \ |
59 |
+ -e "s/Encoding=/#Encoding=/" \ |
60 |
+ -e "s#pixmaps/linsmith/l#pixmaps/l#" \ |
61 |
+ ${PN}.desktop || die |
62 |
+ |
63 |
+ # fix QA warnings about 'maintainer mode' |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ emake DESTDIR="${D}" install |
69 |
+ |
70 |
+ insinto "/usr/share/${PN}" |
71 |
+ doins datafiles/conv0809 |
72 |
+ |
73 |
+ dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO |
74 |
+ doman doc/${PN}.1 |
75 |
+ |
76 |
+ domenu ${PN}.desktop |
77 |
+ doicon ${PN}_icon.xpm |
78 |
+ |
79 |
+ if use doc; then |
80 |
+ insinto "/usr/share/doc/${PF}" |
81 |
+ doins doc/manual.pdf |
82 |
+ fi |
83 |
+ |
84 |
+ if use examples; then |
85 |
+ insinto "/usr/share/doc/${PF}/examples" |
86 |
+ doins datafiles/*.circ datafiles/*.load || die |
87 |
+ fi |
88 |
+} |