Version bump
authorThomas Beierlein <tomjbe@gentoo.org>
Mon, 30 Nov 2015 18:10:55 +0000 (19:10 +0100)
committerThomas Beierlein <tomjbe@gentoo.org>
Mon, 30 Nov 2015 18:10:55 +0000 (19:10 +0100)
Package-Manager: portage-2.2.26

sci-electronics/linsmith/Manifest
sci-electronics/linsmith/linsmith-0.99.30.ebuild [new file with mode: 0644]

index 343b1a8e381399c9e6259786ec4ec0b39854e5e0..56f8576fa376074237d9b50a457b05c77a73af24 100644 (file)
@@ -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 (file)
index 0000000..8d7a910
--- /dev/null
@@ -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
+}