commit:     874af68272d9851add3e38444b89697ec7d8d133
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 23 09:04:57 2017 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Sat Dec 23 09:06:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=874af682

sci-electronics/pcb: Version bump (Bug #610694)

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-electronics/pcb/Manifest                 |   1 +
 sci-electronics/pcb/files/pcb-4.0.2-doc.diff |  12 +++
 sci-electronics/pcb/pcb-4.0.2.ebuild         | 147 +++++++++++++++++++++++++++
 3 files changed, 160 insertions(+)

diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest
index 9478b22a828..de8e433f91d 100644
--- a/sci-electronics/pcb/Manifest
+++ b/sci-electronics/pcb/Manifest
@@ -1 +1,2 @@
 DIST pcb-20140316.tar.gz 4210077 BLAKE2B 
a0a676bc0eaedd269644d7f7e6d6d443c4ca1a66aba4db18a0aea33edef2dbd84d7a027a25c310bce9d309c46b63ac4f1b807587f5064ce81aadaea2f675521b
 SHA512 
5b9a2704b4d3c95f03afad0fe8fb5414b2aa9d680e40bf77ad9b46a9d4e14ba740858092794a9ff6788f31ac19063b126d8ceed6316c0d9eaaaa574e6678c071
+DIST pcb-4.0.2.tar.gz 4762521 BLAKE2B 
3bae7983c84a79edc882b822b91e94adc00ec4e9b329719a0a15599bb12a6771318844ffbd6163b3c646be8410af1964d59b523fffaebd690af2cce9b4f0f98e
 SHA512 
8bca9bdbdd640174e82e9cf1a457f9ef3f9b7c3f1d957a21c3bb07e50134b83504d85f312e429bed90bfc58f786b4319ffb69c5637ed4fd69a0312e11c6ad30b

diff --git a/sci-electronics/pcb/files/pcb-4.0.2-doc.diff 
b/sci-electronics/pcb/files/pcb-4.0.2-doc.diff
new file mode 100644
index 00000000000..78f0a05e35e
--- /dev/null
+++ b/sci-electronics/pcb/files/pcb-4.0.2-doc.diff
@@ -0,0 +1,12 @@
+--- configure.ac.orig  2017-12-23 08:35:07.079096342 +0000
++++ configure.ac       2017-12-23 08:35:36.903643912 +0000
+@@ -7,6 +7,9 @@
+ AC_GNU_SOURCE
+ AC_CONFIG_HEADERS([config.h])
+ 
++# avoid rebuilding documentation
++AM_MAINTAINER_MODE
++
+ ##########################################################################
+ #
+ # Try to figure out if we are building from git sources.

diff --git a/sci-electronics/pcb/pcb-4.0.2.ebuild 
b/sci-electronics/pcb/pcb-4.0.2.ebuild
new file mode 100644
index 00000000000..752d71d5b4c
--- /dev/null
+++ b/sci-electronics/pcb/pcb-4.0.2.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils xdg-utils gnome2-utils toolchain-funcs
+
+DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor"
+HOMEPAGE="http://www.gpleda.org/";
+SRC_URI="mirror://sourceforge/pcb/pcb/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-macos"
+IUSE="dbus debug doc gcode gif gtk jpeg m4lib-png motif nelma opengl png
+test tk toporouter xrender"
+# toporouter-output USE flag removed, there seems to be no result
+
+CDEPEND="dev-libs/glib:2
+       gif? ( media-libs/gd )
+       gtk? ( x11-libs/gtk+:2
+               x11-libs/pango
+               x11-libs/gtkglext
+               dbus? ( sys-apps/dbus ) )
+       jpeg? ( media-libs/gd[jpeg] )
+       motif? ( !gtk? (
+               >=x11-libs/motif-2.3:0
+               dbus? ( sys-apps/dbus )
+               xrender? ( >=x11-libs/libXrender-0.9 ) ) )
+       nelma? ( media-libs/gd[png] )
+       opengl? ( virtual/opengl )
+       gcode? ( media-libs/gd[png] )
+       virtual/libintl
+       png? ( media-libs/gd[png] )
+       m4lib-png? ( media-libs/gd[png] )
+       tk? ( >=dev-lang/tk-8:0 )"
+#toporouter-output? ( x11-libs/cairo )
+
+DEPEND="${CDEPEND}
+       test? (
+               sci-electronics/gerbv
+               virtual/imagemagick-tools
+       )
+       >=dev-util/intltool-0.35
+       virtual/pkgconfig
+       sys-devel/gettext"
+
+RDEPEND="${CDEPEND}
+       sci-electronics/electronics-menu"
+
+DOCS="AUTHORS README NEWS ChangeLog"
+
+pkg_setup() {
+       if use gtk && use motif; then
+               elog "Can only build for GTK+ or Motif/Lesstif GUI. GTK+ has 
priority."
+       fi
+       if !(use gtk || use motif); then
+               elog "Building without GUI, make sure you know what you are 
doing."
+       fi
+       if use dbus && !(use gtk || use motif); then
+               elog "dbus needs GTK or Motif/Lesstif GUI. Try USE=-dbus or 
USE=gtk or USE=motif."
+       fi
+       if use opengl && !(use gtk); then
+               elog "GL drawing needs GTK"
+       fi
+       if (use gtk || (! use gtk && ! use motif)) &&  (use xrender); then
+               elog "The XRender extension is only usable with the 
Motif/Lesstif GUI."
+       fi
+}
+
+src_prepare() {
+       if use test; then
+               # adapt the list of tests to run according to USE flag settings
+               if ! use png; then
+                       sed -i '/^hid_png/d' tests/tests.list || die
+               fi
+               if ! use gcode; then
+                       sed -i '/^hid_gcode/d' tests/tests.list || die
+               fi
+       fi
+
+       # fix bad syntax in Makefile.am and configure.ac before running 
eautoreconf
+       sed -i -e 's/:=/=/' Makefile.am || die
+       epatch "${FILESDIR}"/${PN}-20110918-fix-config.diff
+       # avoid rebuilding documentation
+       epatch "${FILESDIR}"/${PN}-4.0.2-doc.diff
+       eautoreconf
+}
+
+src_configure() {
+       local myconf
+       if use gtk ; then
+               myconf="--with-gui=gtk $(use_enable dbus) $(use_enable opengl 
gl) --disable-xrender"
+       elif use motif ; then
+               myconf="--with-gui=lesstif $(use_enable dbus) $(use_enable 
xrender)"
+       else
+               myconf="--with-gui=batch --disable-xrender --disable-dbus"
+       fi
+
+       local exporters="bom gerber ps"
+       if (use png || use jpeg || use gif) ; then
+               exporters="${exporters} png"
+       fi
+       use nelma && exporters="${exporters} nelma"
+       use gcode && exporters="${exporters} gcode"
+       use tk || export WISH="${EPREFIX}/bin/true"
+
+       econf \
+               ${myconf} \
+               $(use_enable doc) \
+               $(use_enable gif) \
+               $(use_enable jpeg) \
+               $(use_enable png) \
+               $(use_enable m4lib-png) \
+               $(use_enable toporouter) \
+               $(use_enable debug) \
+               --enable-nls \
+               --disable-toporouter-output \
+               --with-exporters="${exporters}" \
+               --disable-dependency-tracking \
+               --disable-rpath \
+               --disable-update-mime-database \
+               --disable-update-desktop-database \
+               --docdir="${EPREFIX}/usr/share/doc/${PF}"
+}
+# toporouter-output USE flag removed, there seems to be no result
+#              $(use_enable toporouter-output) \
+
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+       gnome2_icon_cache_update
+}

Reply via email to