summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2011-02-14 02:01:32 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2011-02-14 02:01:32 +0000
commitca30278d1a025fa47eac63d56932b2bb1c30bfae (patch)
treea463c27171c657cf2770a650aba5a66599d31bee /sci-electronics/oregano
parentfix bug 352464; add missing libxml2 || expat dep for xar support. (diff)
downloadgentoo-2-ca30278d1a025fa47eac63d56932b2bb1c30bfae.tar.gz
gentoo-2-ca30278d1a025fa47eac63d56932b2bb1c30bfae.tar.bz2
gentoo-2-ca30278d1a025fa47eac63d56932b2bb1c30bfae.zip
Version bump.
(Portage version: 2.2.0_alpha23/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics/oregano')
-rw-r--r--sci-electronics/oregano/ChangeLog11
-rw-r--r--sci-electronics/oregano/files/oregano-0.69.1-desktop_file_update.patch26
-rw-r--r--sci-electronics/oregano/files/oregano-0.69.1-scons_env_flags.patch27
-rw-r--r--sci-electronics/oregano/oregano-0.69.1.ebuild53
4 files changed, 115 insertions, 2 deletions
diff --git a/sci-electronics/oregano/ChangeLog b/sci-electronics/oregano/ChangeLog
index 3722b0410093..6c9f220edc11 100644
--- a/sci-electronics/oregano/ChangeLog
+++ b/sci-electronics/oregano/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-electronics/oregano
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/oregano/ChangeLog,v 1.38 2010/08/22 09:32:50 tomjbe Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/oregano/ChangeLog,v 1.39 2011/02/14 02:01:31 rafaelmartins Exp $
+
+*oregano-0.69.1 (14 Feb 2011)
+
+ 14 Feb 2011; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +oregano-0.69.1.ebuild, +files/oregano-0.69.1-desktop_file_update.patch,
+ +files/oregano-0.69.1-scons_env_flags.patch:
+ Version bump.
*oregano-0.69.0-r1 (22 Aug 2010)
diff --git a/sci-electronics/oregano/files/oregano-0.69.1-desktop_file_update.patch b/sci-electronics/oregano/files/oregano-0.69.1-desktop_file_update.patch
new file mode 100644
index 000000000000..5d3b2ef6d35a
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.69.1-desktop_file_update.patch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## desktop.file.update.dpatch by Maximiliano Curia <maxy@debian.org>
+##
+## DP: Update categories and name of desktop file
+
+@DPATCH@
+diff -urNad oregano-0.69.1~/oregano.desktop oregano-0.69.1/oregano.desktop
+--- oregano-0.69.1~/oregano.desktop 2009-07-07 12:49:49.000000000 -0300
++++ oregano-0.69.1/oregano.desktop 2009-07-22 20:41:53.209525839 -0300
+@@ -1,8 +1,6 @@
+ [Desktop Entry]
+ Encoding=UTF-8
+-Name=Oregano electrical engineering tool
+-Name[ca]=Eina d'enginyeria elèctrica Oregano
+-Name[es]=Oregano, herramienta para la ingeniería electrónica
++Name=Oregano
+ GenericName=Electrical engineering tool
+ GenericName[ca]=Eina d'enginyeria elèctrica
+ GenericName[es]=Herramienta para la ingeniería electrónica
+@@ -17,5 +15,5 @@
+ StartupNotify=true
+ Terminal=false
+ Type=Application
+-Categories=GNOME;GTK;Science;Education;Physics;
++Categories=GNOME;GTK;Science;Education;Electronics;
+ MimeType=application/x-oregano;
diff --git a/sci-electronics/oregano/files/oregano-0.69.1-scons_env_flags.patch b/sci-electronics/oregano/files/oregano-0.69.1-scons_env_flags.patch
new file mode 100644
index 000000000000..6e999e44e586
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.69.1-scons_env_flags.patch
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## scons.env.flags.dpatch by Maximiliano Curia <maxy@debian.org>
+##
+## DP: Honour the CFLAGS and LDFLAGS environment variables
+
+@DPATCH@
+diff -urNad oregano-0.69.1~/SConstruct oregano-0.69.1/SConstruct
+--- oregano-0.69.1~/SConstruct 2009-07-07 12:49:49.000000000 -0300
++++ oregano-0.69.1/SConstruct 2009-07-22 19:59:31.665525831 -0300
+@@ -76,9 +76,14 @@
+ mo_bld = Builder (action = mo_builder)
+
+ CEnv.Append (BUILDERS = {'MoBuild' : mo_bld})
+-CEnv.Append (CCFLAGS = Split ('-Wall'));
+-if CEnv['Debug']:
+- CEnv.Append (CCFLAGS = Split ('-g'));
++if ( os.environ.has_key('CFLAGS') ):
++ CEnv.Append (CCFLAGS = Split (os.environ['CFLAGS']))
++else:
++ CEnv.Append (CCFLAGS = Split ('-Wall'))
++ if CEnv['Debug']:
++ CEnv.Append (CCFLAGS = Split ('-g'))
++if ( os.environ.has_key('LDFLAGS') ):
++ CEnv.Append (LINKFLAGS = Split (os.environ['LDFLAGS']))
+
+ # Check dependencies #
+ if not CEnv.GetOption ('clean'):
diff --git a/sci-electronics/oregano/oregano-0.69.1.ebuild b/sci-electronics/oregano/oregano-0.69.1.ebuild
new file mode 100644
index 000000000000..cd1e10cfa07d
--- /dev/null
+++ b/sci-electronics/oregano/oregano-0.69.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/oregano/oregano-0.69.1.ebuild,v 1.1 2011/02/14 02:01:32 rafaelmartins Exp $
+
+EAPI="4"
+
+inherit eutils fdo-mime scons-utils
+
+DESCRIPTION="Oregano is an application for schematic capture and simulation of electrical circuits."
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.gz"
+HOMEPAGE="http://oregano.gforge.lug.fi.uba.ar/" # broken
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+LICENSE="GPL-2"
+IUSE=""
+
+CDEPEND=">=dev-libs/libxml2-2.6
+ >=x11-libs/gtk+-2.10
+ >=gnome-base/libglade-2.5
+ >=gnome-base/libgnome-2.12
+ >=gnome-base/libgnomeui-2.12
+ >=gnome-base/libgnomecanvas-2.12
+ >=gnome-base/libgnomeprint-2.12
+ >=x11-libs/cairo-1.2
+ >=x11-libs/gtksourceview-2.0"
+DEPEND="${CDEPEND}
+ >=dev-util/scons-0.96.1
+ dev-util/pkgconfig"
+RDEPEND="${CDEPEND}
+ sci-electronics/electronics-menu"
+
+src_prepare() {
+ # patches from debian
+ epatch "${FILESDIR}/${P}-desktop_file_update.patch"
+ epatch "${FILESDIR}/${P}-scons_env_flags.patch"
+}
+
+src_compile() {
+ escons --cache-disable PREFIX=/usr || die 'escons failed.'
+}
+
+src_install() {
+ escons --cache-disable PREFIX=/usr DESTDIR="${D}" RunUpdateMimeDatabase=no \
+ install || die 'escons install failed.'
+ dodoc AUTHORS NEWS README
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ elog "You'll need to emerge your prefered simulation backend"
+ elog "such as spice, ng-spice-rework or gnucap for simulation"
+ elog "to work."
+}