From: Nick Bowler Date: Thu, 27 Dec 2018 22:21:08 +0000 (-0500) Subject: sci-electronics/gerbv: New ebuild for gerbv 2.7-rc0. X-Git-Url: http://git.draconx.ca/gitweb/gentoo-fixes.git/commitdiff_plain/3ceb0b3514ca0a48f6f6a7bef49c2ff705e3a083 sci-electronics/gerbv: New ebuild for gerbv 2.7-rc0. --- diff --git a/sci-electronics/gerbv/Manifest b/sci-electronics/gerbv/Manifest new file mode 100644 index 0000000..2fb47ae --- /dev/null +++ b/sci-electronics/gerbv/Manifest @@ -0,0 +1,2 @@ +DIST gerbv-2.7rc0.tar.gz 5666375 BLAKE2B 80f3a23031f0297650d44395bcae05b82d14d767c2a5dfdf8562dd63cb781164dde88a653c7c3a1a4f91bd663d386086abfb602a2915585543c6847c50785cb1 SHA512 cd6d5b2819497563b545f3cf4f72fa93e423d1569018807fbdb5270af6dfbe5b7e129452f4c09363244dea670561b7bd72f3b68f87867f2cb07a2349f0758518 +EBUILD gerbv-2.7_rc0.ebuild 1578 BLAKE2B ed9517bea0b046eb6399f5f28fc30580ae4da40014281dd163882f61dc8e7043df44b752b60caba456eb5a865388a76f954587ee00c42243234cf45e006dee2f SHA512 f58e4d6434e8734ad5db3d1f2ce5dc8eed24ea04fc818736aed29f547c7cf4ad161b06bbad33e435aced7211e0a0293255c452352b6fc62efa4d61ec5dc6c045 diff --git a/sci-electronics/gerbv/gerbv-2.7_rc0.ebuild b/sci-electronics/gerbv/gerbv-2.7_rc0.ebuild new file mode 100644 index 0000000..273ed22 --- /dev/null +++ b/sci-electronics/gerbv/gerbv-2.7_rc0.ebuild @@ -0,0 +1,70 @@ +# Copyright © 2018 Nick Bowler +# License GPLv2+ GNU General Public License version 2 or any later version. +# This is free software: you are free to change and redistribute it. +# There is NO WARRANTY, to the extent permitted by law. +# +# This is a modified version of the original ebuild from Gentoo GNU/Linux, +# including material covered by the following copyright and permission notice: +# +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit autotools eutils gnome2-utils xdg-utils + +MY_P=${P/_rc/rc} + +DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://gerbv.geda-project.org/" + +IUSE="doc examples static-libs unit-mm" +SLOT="0" +LICENSE="GPL-2+" +KEYWORDS="~amd64 ~ppc ~x86" +RESTRICT="test" + +RDEPEND=" + x11-libs/gtk+:2 + x11-libs/cairo" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=$WORKDIR/$MY_P + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_enable unit-mm) \ + --disable-update-desktop-database +} + +src_install () { + default + + dodoc AUTHORS BUGS ChangeLog CONTRIBUTORS HACKING NEWS README* TODO + + rm doc/Doxyfile.nopreprocessing + if use doc; then + find doc -name "Makefile*" -exec rm -f '{}' \; + dodoc -r doc/* + fi + + if use examples; then + find example -name "Makefile*" -exec rm -f '{}' \; + dodoc -r example/* + fi + + prune_libtool_files +} + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update +}