summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2009-06-06 17:39:02 +0000
committerDenis Dupeyron <calchan@gentoo.org>2009-06-06 17:39:02 +0000
commitd634f426f6819a8d6dd9f52cfcc551626bc72c79 (patch)
treec95979de69f42db54f657334c44561f9b1b5ff7d /sci-electronics/pcb
parentAdded bugs-to field to metadata pointing to the launchpad bug reporting tool (diff)
downloadhistorical-d634f426f6819a8d6dd9f52cfcc551626bc72c79.tar.gz
historical-d634f426f6819a8d6dd9f52cfcc551626bc72c79.tar.bz2
historical-d634f426f6819a8d6dd9f52cfcc551626bc72c79.zip
Mostly rewritten ebuild, thanks to the work of Stefan Salewski. Also fixes bug #252864.
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'sci-electronics/pcb')
-rw-r--r--sci-electronics/pcb/ChangeLog11
-rw-r--r--sci-electronics/pcb/Manifest5
-rw-r--r--sci-electronics/pcb/metadata.xml25
-rw-r--r--sci-electronics/pcb/pcb-20081128-r1.ebuild108
4 files changed, 135 insertions, 14 deletions
diff --git a/sci-electronics/pcb/ChangeLog b/sci-electronics/pcb/ChangeLog
index b642362d1716..70f34876c587 100644
--- a/sci-electronics/pcb/ChangeLog
+++ b/sci-electronics/pcb/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-electronics/pcb
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.45 2008/11/30 15:31:50 calchan Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.46 2009/06/06 17:39:02 calchan Exp $
+
+*pcb-20081128-r1 (06 Jun 2009)
+
+ 06 Jun 2009; Denis Dupeyron <calchan@gentoo.org> +pcb-20081128-r1.ebuild,
+ metadata.xml:
+ Mostly rewritten ebuild, thanks to the work of Stefan Salewski. Also fixes
+ bug #252864.
*pcb-20081128 (30 Nov 2008)
diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest
index 7a6ceba06536..49668d439fbb 100644
--- a/sci-electronics/pcb/Manifest
+++ b/sci-electronics/pcb/Manifest
@@ -1,6 +1,7 @@
DIST pcb-20080202.tar.gz 4240472 RMD160 ef54294eba3770b40ca19dd4a772c939aa0f74c8 SHA1 4eb538db7086ca1b1f29e03450ed6ad28abd5c42 SHA256 ac3359c845df2ec77652a1362f8d6cd70e78e666bf23b9820f9a4b619cf5778a
DIST pcb-20081128.tar.gz 4524268 RMD160 3a121a3fa991e6f6d40caf086704cb6de0f76752 SHA1 9fbb4feb4e7851b349dfa0fe434e5d5fd822b8df SHA256 2e55067741a5f48ca6962c135fcbe6d1c1b70b95c825156c7db046277929cf28
EBUILD pcb-20080202.ebuild 2490 RMD160 a39e7bcff88a014f06069a369169c692560a9fa0 SHA1 e60cad12accefcd563e5db33c23a9a129341ba01 SHA256 e53a3fd2a01f1ad4ba1ac9bd43a2726ecbe45de9cdc2b84797bd51afbe3351ed
+EBUILD pcb-20081128-r1.ebuild 3058 RMD160 28228457850c4dfa9699302dbd4cd1d9ab40311a SHA1 88a9c434ff9f5ae82ac5a613aa990e559abb0354 SHA256 31b9a9b007ddcd3f5bb8311443bf720a0408cbf1bff0fb2eebf6bb03018fce52
EBUILD pcb-20081128.ebuild 2492 RMD160 ab7ecdff5c818d8874c2cb133aed9e632efc3d6f SHA1 1442e2dda31fa748bcba5d7cdb09cb4759c00a17 SHA256 0f3354d42e566efa1ebb7dc9846a1aee52a363d064d8dcc04a2e4375cc768572
-MISC ChangeLog 7336 RMD160 089d341d52bec19d938d527951f0648a4a3b6ba8 SHA1 b4056bb53f613a6843580529d6224ed8f9a9f10a SHA256 c5fe1802dbb900d761f1d0e4ea24f1175bc9a4d57495206cf57ba80723f97b91
-MISC metadata.xml 513 RMD160 98df30c35418068f632e47bdb450782a3b4e6936 SHA1 aebd8669f7f068ab59503bfde3bcdb4709f3c700 SHA256 05c66e1d12b7db328791ef8b552a288bfeb7be0df14f8e575ff28d2381e7c7bc
+MISC ChangeLog 7553 RMD160 3b942a3a6b816f166144fb2e6a5299618e240d0c SHA1 834c5b3ebca6182cdda2bf07e7beb48c929199fe SHA256 ecc0055585291cc32396bade8d3b22efe5017ece1de4c714d727cd0f3e3e4907
+MISC metadata.xml 746 RMD160 c08fe21eae48f4e9180d66baabedfbb992c56bf0 SHA1 0453c9b81e8652e3b33cb704effeb6dae4ab8244 SHA256 a594c4f2bf953411c7e20e1e19129aafbb6eb91a74ac456a29ec69fce5c5de22
diff --git a/sci-electronics/pcb/metadata.xml b/sci-electronics/pcb/metadata.xml
index 2e841ef2576d..f77cac0a1f22 100644
--- a/sci-electronics/pcb/metadata.xml
+++ b/sci-electronics/pcb/metadata.xml
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci-electronics</herd>
-<longdescription>
- pcb is free software for designing printed circuit board layouts. It has many
- features and is capable of professional-quality output. It is available only
- for *NIX operating systems e.g. GNU/Linux.
-</longdescription>
-<use>
- <flag name='xrender'>Add support for xrender
- (<pkg>x11-libs/libXrender</pkg>)</flag>
-</use>
+ <herd>sci-electronics</herd>
+ <longdescription>
+ Printed Circuit Board layout tool. Used together with the gEDA tools for
+ Electronic Design Automation or on its own.
+ </longdescription>
+ <use>
+ <flag name='gif'>GIF graphics export</flag>
+ <flag name='jpeg'>JPEG graphics export</flag>
+ <flag name='nelma'>NELMA file export</flag>
+ <flag name='png'>PNG graphics export</flag>
+ <flag name='threads'>Enable (posix) threads for GTK GUI</flag>
+ <flag name='tk'>Build tcl/tk graphical QFP footprint generator</flag>
+ <flag name='xrender'>Translucent PCB display for Motif/Lesstif GUI</flag>
+ </use>
</pkgmetadata>
+
diff --git a/sci-electronics/pcb/pcb-20081128-r1.ebuild b/sci-electronics/pcb/pcb-20081128-r1.ebuild
new file mode 100644
index 000000000000..1e5d77826e0f
--- /dev/null
+++ b/sci-electronics/pcb/pcb-20081128-r1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20081128-r1.ebuild,v 1.1 2009/06/06 17:39:02 calchan Exp $
+
+EAPI="2"
+
+inherit fdo-mime
+
+DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor"
+HOMEPAGE="http://www.gpleda.org/"
+SRC_URI="http://geda.seul.org/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="dbus doc gif gtk jpeg motif nelma nls png xrender threads tk"
+
+RDEPEND="gif? ( >=media-libs/gd-2.0.23 )
+ gtk? ( >=x11-libs/gtk+-2.4 x11-libs/pango
+ dbus? ( sys-apps/dbus ) )
+ jpeg? ( >=media-libs/gd-2.0.23[jpeg] )
+ motif? ( !gtk? (
+ >=x11-libs/openmotif-2.3
+ dbus? ( sys-apps/dbus )
+ xrender? ( >=x11-libs/libXrender-0.9 ) ) )
+ nelma? ( >=media-libs/gd-2.0.23 )
+ nls? ( virtual/libintl )
+ png? ( >=media-libs/gd-2.0.23[png] )
+ tk? ( >=dev-lang/tk-8 )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.35
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+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 gtk || (! use gtk && ! use motif)) && (use xrender); then
+ elog "The XRender extension is only usable with the Motif/Lesstif GUI."
+ fi
+}
+
+src_prepare() {
+ # src/hid/batch/hid.conf is missing in the 20081128 snapshot
+ cp src/hid/gtk/hid.conf src/hid/batch/
+
+ sed -i -e 's/example//' -e 's/tutorial//' -e 's/ win32//' Makefile.in || die "sed failed"
+ sed -i -e 's/DOC=doc/DOC="doc example tutorial"/' configure || die "sed failed"
+ sed -i -e 's/$(pkgdatadir)/$(docdir)/' {example,tutorial}/Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ local myconf
+ if use gtk ; then
+ myconf="--with-gui=gtk $(use_enable dbus) --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 tk || export WISH="/bin/true"
+
+ econf \
+ ${myconf} \
+ $(use_enable doc) \
+ $(use_enable gif) \
+ $(use_enable jpeg) \
+ $(use_enable nls) \
+ $(use_enable png) \
+ $(use_enable threads threads posix) \
+ --with-exporters="${exporters}" \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ --disable-update-mime-database \
+ --disable-update-desktop-database \
+ --docdir="/usr/share/doc/${PF}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc AUTHORS README NEWS ChangeLog
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
+