From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-851121-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 583741384B4 for <garchives@archives.gentoo.org>; Fri, 11 Dec 2015 14:04:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 349D0E08B5; Fri, 11 Dec 2015 14:03:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABECDE08B5 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Dec 2015 14:03:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A11F34090B for <gentoo-commits@lists.gentoo.org>; Fri, 11 Dec 2015 14:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 73791A34 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Dec 2015 14:03:50 +0000 (UTC) From: "Tiziano Müller" <dev-zero@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" <dev-zero@gentoo.org> Message-ID: <1449837286.e2a2545eeaa71c4748d8e0cd9a8f08c4d62272dc.dev-zero@gentoo> Subject: [gentoo-commits] dev/dev-zero:master commit in: sci-electronics/oregano/files/, sci-electronics/oregano/ X-VCS-Repository: dev/dev-zero X-VCS-Files: sci-electronics/oregano/Manifest sci-electronics/oregano/files/oregano-0.83.2.1-remove-schema-update.patch sci-electronics/oregano/metadata.xml sci-electronics/oregano/oregano-0.83.2.1.ebuild X-VCS-Directories: sci-electronics/oregano/files/ sci-electronics/oregano/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: e2a2545eeaa71c4748d8e0cd9a8f08c4d62272dc X-VCS-Branch: master Date: Fri, 11 Dec 2015 14:03:50 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4ed90310-900f-4682-9f77-4ee0c1372dbd X-Archives-Hash: dbdb2a6ef3197db7d3703f1442ba5d0d 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 +}