diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2017-01-03 17:44:28 +0100 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2017-01-03 17:44:28 +0100 |
commit | 95cbb77a18d2b1d533995886ad0bb156b6fad541 (patch) | |
tree | 0084979b2ac03b91e932a68b77b28387cc2ff41f /sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild | |
parent | dev-python/pbr: fix bug 603848, missed import (diff) | |
download | gentoo-95cbb77a18d2b1d533995886ad0bb156b6fad541.tar.gz gentoo-95cbb77a18d2b1d533995886ad0bb156b6fad541.tar.bz2 gentoo-95cbb77a18d2b1d533995886ad0bb156b6fad541.zip |
sci-electronics/linsmith: fix icon path (bug #604314). Thks A. Truccone
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild')
-rw-r--r-- | sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild b/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild new file mode 100644 index 000000000000..b8bc4e205879 --- /dev/null +++ b/sci-electronics/linsmith/linsmith-0.99.30-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 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 and location of icon file + # in .desktop file + sed -i -e "s/Application;Engineering;/Education;Science;Electronics;/" \ + -e "s/Encoding=/#Encoding=/" \ + -e "s#pixmaps/linsmith/l#pixmaps/l#" \ + ${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 +} |