public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dev-zero:master commit in: sci-electronics/oregano/files/, sci-electronics/oregano/
@ 2015-12-11 14:03 Tiziano Müller
  0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2015-12-11 14:03 UTC (permalink / raw
  To: gentoo-commits

commit:     e2a2545eeaa71c4748d8e0cd9a8f08c4d62272dc
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 11 12:34:46 2015 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Fri Dec 11 12:34:46 2015 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=e2a2545e

sci-electronics/oregano: version bump

 sci-electronics/oregano/Manifest                   |  1 +
 .../oregano-0.83.2.1-remove-schema-update.patch    | 35 ++++++++++++++
 sci-electronics/oregano/metadata.xml               | 13 ++++++
 sci-electronics/oregano/oregano-0.83.2.1.ebuild    | 54 ++++++++++++++++++++++
 4 files changed, 103 insertions(+)

diff --git a/sci-electronics/oregano/Manifest b/sci-electronics/oregano/Manifest
new file mode 100644
index 0000000..89b0254
--- /dev/null
+++ b/sci-electronics/oregano/Manifest
@@ -0,0 +1 @@
+DIST oregano-0.83.2.1.tar.gz 1545377 SHA256 d22ab0dc9f3717759983966ea3f7a8cd266e343fab47236ec4d841660bd72fa1 SHA512 63f5a698476bdbdade9734beacf0879315896b85243daecb7a7593d1bad0fd3ccb537472d1197e3b5623d977f19506f0e561356fd8c21a3146b223ccdc11011d WHIRLPOOL 6f214322fd60b3eeaf704d1a3560c41604884fbe2af7297509086483af8c2d0435e64b70679ede35effc00102c827a3a9b9e8090ad322cdeb49cd5acd9537b0c

diff --git a/sci-electronics/oregano/files/oregano-0.83.2.1-remove-schema-update.patch b/sci-electronics/oregano/files/oregano-0.83.2.1-remove-schema-update.patch
new file mode 100644
index 0000000..f6aa055
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.83.2.1-remove-schema-update.patch
@@ -0,0 +1,35 @@
+diff --git a/data/wscript b/data/wscript
+index 9e09004..7a13c75 100644
+--- a/data/wscript
++++ b/data/wscript
+@@ -30,16 +30,6 @@ def build(bld):
+ 		bld.install_files (bld.env.path_partslib, bld.path.ant_glob('libraries/*.oreglib'))
+ 		bld.install_files (bld.env.path_ui, bld.path.ant_glob('xml/*.ui'))
+ 
+-		try:
+-			bld.exec_command(['update-desktop-database', utils.subst_vars('${DATADIR}/applications', bld.env)])
+-		except:
+-			logs.warn('Failed to execute xdg desktop database update.')
+-
+-		try:
+-			bld.exec_command(['update-mime-database', utils.subst_vars('${DATADIR}/mime', bld.env)])
+-		except:
+-			logs.warn('Failed to execute xdg mime database update.')
+-
+ 	bld(
+ 		features  = 'intltool_in',
+ 		podir     = "../po",
+diff --git a/wscript b/wscript
+index 2341045..0aa9d8a 100644
+--- a/wscript
++++ b/wscript
+@@ -165,6 +165,9 @@ def build(bld):
+ 		install_path = "${BINDIR}"
+ 	)
+ 
++	# disable update of schemas cache
++	bld._compile_schemas_registered=True
++
+ 	for item in exe.includes:
+ 		logs.debug(item)
+ 	test = bld.program(

diff --git a/sci-electronics/oregano/metadata.xml b/sci-electronics/oregano/metadata.xml
new file mode 100644
index 0000000..caeaccf
--- /dev/null
+++ b/sci-electronics/oregano/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>sci-electronics</herd>
+	<longdescription>
+		Oregano is an application for schematic capture and simulation of electrical
+		circuits. The actual simulation is performed by Berkeley Spice, or GNUcap or
+		the new generation ngspice.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">marc-lorber/oregano</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/sci-electronics/oregano/oregano-0.83.2.1.ebuild b/sci-electronics/oregano/oregano-0.83.2.1.ebuild
new file mode 100644
index 0000000..a40e085
--- /dev/null
+++ b/sci-electronics/oregano/oregano-0.83.2.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils fdo-mime vcs-snapshot gnome2-utils waf-utils
+
+DESCRIPTION="Oregano is an application for schematic capture and simulation of electrical circuits"
+HOMEPAGE="https://github.com/drahnr/oregano"
+SRC_URI="https://github.com/drahnr/${PN}/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+CDEPEND="dev-libs/glib:2
+	dev-libs/libxml2:2
+	x11-libs/goocanvas:2.0
+	x11-libs/gtk+:3
+	x11-libs/gtksourceview:3.0
+	app-text/rarian"
+DEPEND="${CDEPEND}
+	virtual/pkgconfig"
+RDEPEND="${CDEPEND}
+	|| ( gnome-base/dconf gnome-base/gconf )
+	sci-electronics/electronics-menu"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-remove-schema-update.patch"
+}
+
+src_compile() {
+	# needs to be called with either debug or release
+	"${WAF_BINARY}" --verbose --jobs=$(makeopts_jobs) release || die
+}
+
+pkg_preinst() {
+	gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+	gnome2_schemas_update
+	fdo-mime_desktop_database_update
+	elog "You'll need to emerge your prefered simulation backend"
+	elog "such ngspice or gnucap for simulation to work."
+	elog "As an alternative generate a netlist and use sci-electronics/spice"
+	elog "from the command line for simulation."
+}
+
+pkg_postrm() {
+	gnome2_schemas_update
+}


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

only message in thread, other threads:[~2015-12-11 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 14:03 [gentoo-commits] dev/dev-zero:master commit in: sci-electronics/oregano/files/, sci-electronics/oregano/ Tiziano Müller

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