public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-electronics/pcb: metadata.xml ChangeLog pcb-20091103.ebuild
@ 2010-02-19 23:37 Denis Dupeyron (calchan)
  0 siblings, 0 replies; only message in thread
From: Denis Dupeyron (calchan) @ 2010-02-19 23:37 UTC (permalink / raw
  To: gentoo-commits

calchan     10/02/19 23:37:59

  Modified:             metadata.xml ChangeLog
  Added:                pcb-20091103.ebuild
  Log:
  Version bump, thanks to Stefan Salewski (bug #305947).
  (Portage version: 2.1.7.17/cvs/Linux x86_64)

Revision  Changes    Path
1.5                  sci-electronics/pcb/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?r1=1.4&r2=1.5

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-electronics/pcb/metadata.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- metadata.xml	6 Jun 2009 17:39:02 -0000	1.4
+++ metadata.xml	19 Feb 2010 23:37:58 -0000	1.5
@@ -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>
-



1.51                 sci-electronics/pcb/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.51&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.51&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?r1=1.50&r2=1.51

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- ChangeLog	24 Oct 2009 19:47:00 -0000	1.50
+++ ChangeLog	19 Feb 2010 23:37:58 -0000	1.51
@@ -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:



1.1                  sci-electronics/pcb/pcb-20091103.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild?rev=1.1&content-type=text/plain

Index: pcb-20091103.ebuild
===================================================================
# 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
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-19 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 23:37 [gentoo-commits] gentoo-x86 commit in sci-electronics/pcb: metadata.xml ChangeLog pcb-20091103.ebuild Denis Dupeyron (calchan)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox