Gentoo Archives: gentoo-commits

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