summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2015-11-30 19:10:55 +0100
committerThomas Beierlein <tomjbe@gentoo.org>2015-11-30 19:10:55 +0100
commita919e9ed8525ed1f2feee7a53471743ead534a79 (patch)
treed6fa19fca4c7a56b599a1a341fdcd1370e00d42c /sci-electronics/linsmith
parentwww-apps/trac: version bump to 1.0.9 (fixes bug 566812) (diff)
downloadgentoo-a919e9ed8525ed1f2feee7a53471743ead534a79.tar.gz
gentoo-a919e9ed8525ed1f2feee7a53471743ead534a79.tar.bz2
gentoo-a919e9ed8525ed1f2feee7a53471743ead534a79.zip
Version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'sci-electronics/linsmith')
-rw-r--r--sci-electronics/linsmith/Manifest1
-rw-r--r--sci-electronics/linsmith/linsmith-0.99.30.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/sci-electronics/linsmith/Manifest b/sci-electronics/linsmith/Manifest
index 343b1a8e381..56f8576fa37 100644
--- a/sci-electronics/linsmith/Manifest
+++ b/sci-electronics/linsmith/Manifest
@@ -1 +1,2 @@
DIST linsmith-0.99.28.tar.gz 1132315 SHA256 22196edb6e4c72a45a3d0a794a0bb140ab5932a5e59a40e2e9ee143b53c4235d SHA512 0e8811b64703884dc44e0d8c6a6eeefbb3ba65d8af7573a87e1985e9061d3d947f5e35631dbca2444a9ef2600b523358d6b65089ae746312f9e3397a9dd99118 WHIRLPOOL 41416593eb0eb8913bbd1b9d4cc104830f18eb0835b5c262e8725f3a45162a012167d396205dfc362b9908ed35a7643540dc4fe055772c8806d7c02743746dcb
+DIST linsmith-0.99.30.tar.gz 1132438 SHA256 76739c0cdc13f193793842ea4ddd027a27143a6672994de485b9902c32a41aa3 SHA512 d1f6cd3895b7c217de49c214f8b86b1bb9ce97d540546f0004b7f320b7cf142652cf0ec51ce48cf32b89564bf408546bf10d5f4937544cf9e8a4d87d1db5bed5 WHIRLPOOL c79553bea2f35a4ed04ee028ca92c06856f13d1cb966242a1538e3719ea69330f531b1e7dcba7d6f38cdc29cedda987a2544545cea4aa1648393bcbbbeea0ac5
diff --git a/sci-electronics/linsmith/linsmith-0.99.30.ebuild b/sci-electronics/linsmith/linsmith-0.99.30.ebuild
new file mode 100644
index 00000000000..8d7a9104549
--- /dev/null
+++ b/sci-electronics/linsmith/linsmith-0.99.30.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Smith charting program, mainly designed for educational use"
+HOMEPAGE="http://www.jcoppens.com/soft/linsmith/index.en.php"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND="
+ x11-libs/gtk+:2
+ dev-libs/libxml2:2
+ dev-libs/glib:2
+ dev-libs/atk
+ gnome-base/libgnome
+ gnome-base/libgnomecanvas
+ gnome-base/libgnomeui"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ # This patch is to prevent make install copying
+ # the examples in /usr/share/linsmith
+ # Now they are cp to the correct location.
+ epatch \
+ "${FILESDIR}"/${PN}-datafiles.patch
+
+ # fix QA warnings about wrong categories in .desktop file
+ sed -i -e "s/Application;Engineering;/Education;Science;Electronics;/" \
+ -e "s/Encoding=/#Encoding=/" \
+ ${PN}.desktop || die
+
+ # fix QA warnings about 'maintainer mode'
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto "/usr/share/${PN}"
+ doins datafiles/conv0809
+
+ dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
+ doman doc/${PN}.1
+
+ domenu ${PN}.desktop
+ doicon ${PN}_icon.xpm
+
+ if use doc; then
+ insinto "/usr/share/doc/${PF}"
+ doins doc/manual.pdf
+ fi
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/examples"
+ doins datafiles/*.circ datafiles/*.load || die
+ fi
+}