diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2009-06-06 17:39:02 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2009-06-06 17:39:02 +0000 |
commit | 88b89e10ba8a7490ed52c87f0b8855729776d327 (patch) | |
tree | 154a36f0b51bc3bf73035ec6772f7f485979798c | |
parent | Added bugs-to field to metadata pointing to the launchpad bug reporting tool (diff) | |
download | gentoo-2-88b89e10ba8a7490ed52c87f0b8855729776d327.tar.gz gentoo-2-88b89e10ba8a7490ed52c87f0b8855729776d327.tar.bz2 gentoo-2-88b89e10ba8a7490ed52c87f0b8855729776d327.zip |
Mostly rewritten ebuild, thanks to the work of Stefan Salewski. Also fixes bug #252864.
(Portage version: 2.1.6.13/cvs/Linux i686)
-rw-r--r-- | sci-electronics/pcb/ChangeLog | 11 | ||||
-rw-r--r-- | sci-electronics/pcb/metadata.xml | 25 | ||||
-rw-r--r-- | sci-electronics/pcb/pcb-20081128-r1.ebuild | 108 |
3 files changed, 132 insertions, 12 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/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 +} + |