summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2010-02-19 23:37:58 +0000
committerDenis Dupeyron <calchan@gentoo.org>2010-02-19 23:37:58 +0000
commitb431f608879697faa7756b9a57cea9d3e906d8cc (patch)
tree6a0fe6231cd4994dca1910f4fe8b89686895e837 /sci-electronics/pcb
parentVersion bump, thanks to Stefan Salewski (bug #305943). (diff)
downloadhistorical-b431f608879697faa7756b9a57cea9d3e906d8cc.tar.gz
historical-b431f608879697faa7756b9a57cea9d3e906d8cc.tar.bz2
historical-b431f608879697faa7756b9a57cea9d3e906d8cc.zip
Version bump, thanks to Stefan Salewski (bug #305947).
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics/pcb')
-rw-r--r--sci-electronics/pcb/ChangeLog10
-rw-r--r--sci-electronics/pcb/Manifest6
-rw-r--r--sci-electronics/pcb/metadata.xml4
-rw-r--r--sci-electronics/pcb/pcb-20091103.ebuild129
4 files changed, 143 insertions, 6 deletions
diff --git a/sci-electronics/pcb/ChangeLog b/sci-electronics/pcb/ChangeLog
index 62584be11720..2237bb6b83ae 100644
--- a/sci-electronics/pcb/ChangeLog
+++ b/sci-electronics/pcb/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/pcb
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.50 2009/10/24 19:47:00 calchan Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.51 2010/02/19 23:37:58 calchan Exp $
+
+*pcb-20091103 (19 Feb 2010)
+
+ 19 Feb 2010; Denis Dupeyron <calchan@gentoo.org> +pcb-20091103.ebuild,
+ metadata.xml:
+ Version bump, thanks to Stefan Salewski (bug #305947).
24 Oct 2009; Denis Dupeyron <calchan@gentoo.org> -pcb-20080202.ebuild,
-pcb-20081128.ebuild:
diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest
index d136e5ba1680..e168416b812d 100644
--- a/sci-electronics/pcb/Manifest
+++ b/sci-electronics/pcb/Manifest
@@ -1,4 +1,6 @@
DIST pcb-20081128.tar.gz 4524268 RMD160 3a121a3fa991e6f6d40caf086704cb6de0f76752 SHA1 9fbb4feb4e7851b349dfa0fe434e5d5fd822b8df SHA256 2e55067741a5f48ca6962c135fcbe6d1c1b70b95c825156c7db046277929cf28
+DIST pcb-20091103.tar.gz 4503621 RMD160 6e0cd1a4e1bf92a403f3d805aa3b0649360cb04e SHA1 49b1bf551b0e4d8811abf55af515d77a59797e31 SHA256 db8cf094b6eb25dce78393c3dcc604ab2372bec793e6de8840e4b2db0df5ddc3
EBUILD pcb-20081128-r1.ebuild 3052 RMD160 db155ddcfcd8f683a7cc97fc95fe2040390f5bae SHA1 de708b1846a521c1758c4ef172a2315ea7c7a903 SHA256 a94ba556c2254f473a790688724080af8ed8da477fef659293b18fd80c3ee8aa
-MISC ChangeLog 7976 RMD160 f273c5517a12ed750f48c1eb6c0e6702ba5c7b80 SHA1 c1ca6a1732977515c6f14ea649bfbadb6ef1f5b8 SHA256 85a339cd6f31328c23b489742e252f6f00af3b25c67d7cdd53eb2970a06ce516
-MISC metadata.xml 746 RMD160 c08fe21eae48f4e9180d66baabedfbb992c56bf0 SHA1 0453c9b81e8652e3b33cb704effeb6dae4ab8244 SHA256 a594c4f2bf953411c7e20e1e19129aafbb6eb91a74ac456a29ec69fce5c5de22
+EBUILD pcb-20091103.ebuild 3862 RMD160 5fdcb4fe2410d2f5f9cdc3530dc97843c8fbf8de SHA1 89bbcf59f4d21d89085466e5c7829f89580bd343 SHA256 b542d8725127c3badb55a6b8a61af31f2efe9a9bb908be89f0f675fe50404a72
+MISC ChangeLog 8152 RMD160 594aadab9c7caf832e3b117c0828c94df487e616 SHA1 ef25ff54c0274f42a939a6b307962b430b421a50 SHA256 8ed2b1985627a8b33fe456c327c168578a900aecfe617005934c726b9cc4d807
+MISC metadata.xml 810 RMD160 673ec0a37b4748cc0128e579c4eaaccc9eefaf90 SHA1 f357e6ff7f02449a7135cff3b7d73643c4a89616 SHA256 cabcb0c8d85ac5dd0aff6997ad546d3f8064ce05e806c4b131d84a6890b2530a
diff --git a/sci-electronics/pcb/metadata.xml b/sci-electronics/pcb/metadata.xml
index f77cac0a1f22..6f54d581493c 100644
--- a/sci-electronics/pcb/metadata.xml
+++ b/sci-electronics/pcb/metadata.xml
@@ -11,9 +11,9 @@
<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>
+ <flag name='m4lib-png'>Enable creating png previews for the m4 library</flag>
+ <flag name='toporouter'>Build toporouter</flag>
</use>
</pkgmetadata>
-
diff --git a/sci-electronics/pcb/pcb-20091103.ebuild b/sci-electronics/pcb/pcb-20091103.ebuild
new file mode 100644
index 000000000000..dffce2f7badd
--- /dev/null
+++ b/sci-electronics/pcb/pcb-20091103.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild,v 1.1 2010/02/19 23:37:58 calchan Exp $
+
+EAPI="2"
+
+inherit fdo-mime gnome2-utils
+
+DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor"
+HOMEPAGE="http://www.gpleda.org/"
+SRC_URI="mirror://sourceforge/pcb/files/pcb/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="dbus doc gif gtk jpeg m4lib-png motif nelma nls png xrender tk toporouter"
+# toporouter-output USE flag removed for pcb-20091103 (output was disabled always)
+# debug USE flag removed for pcb-20091103 (many crashes, should be fixed for next release)
+
+CDEPEND="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] )
+ m4lib-png? ( >=media-libs/gd-2.0.23[png] )
+ tk? ( >=dev-lang/tk-8 )"
+#toporouter-output? ( x11-libs/cairo )
+
+DEPEND="${CDEPEND}
+ >=dev-util/intltool-0.35
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+RDEPEND="${CDEPEND}
+ sci-electronics/electronics-menu"
+
+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() {
+ # fix bug in pcb-20091103, see http://archives.seul.org/geda/user/Nov-2009/msg00577.html
+ if use m4lib-png; then
+ rm -f lib/pcblib-newlib.stamp
+ fi
+ 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"
+
+ # fix bug in pcb-20091103, should be fixed in next release
+ sed -i -e 's/free (&pd);/free (pd);/' src/hid/lesstif/main.c || 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 m4lib-png) \
+ $(use_enable toporouter) \
+ --disable-toporouter-output \
+ --with-exporters="${exporters}" \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ --disable-update-mime-database \
+ --disable-update-desktop-database \
+ --docdir="/usr/share/doc/${PF}"
+}
+# Removed for pcb-20091103 (should be fixed for next release):
+# $(use_enable debug)
+# $(use_enable toporouter-output) \
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc AUTHORS README NEWS ChangeLog
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}