1 |
commit: e2a2545eeaa71c4748d8e0cd9a8f08c4d62272dc |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 11 12:34:46 2015 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 11 12:34:46 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=e2a2545e |
7 |
|
8 |
sci-electronics/oregano: version bump |
9 |
|
10 |
sci-electronics/oregano/Manifest | 1 + |
11 |
.../oregano-0.83.2.1-remove-schema-update.patch | 35 ++++++++++++++ |
12 |
sci-electronics/oregano/metadata.xml | 13 ++++++ |
13 |
sci-electronics/oregano/oregano-0.83.2.1.ebuild | 54 ++++++++++++++++++++++ |
14 |
4 files changed, 103 insertions(+) |
15 |
|
16 |
diff --git a/sci-electronics/oregano/Manifest b/sci-electronics/oregano/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..89b0254 |
19 |
--- /dev/null |
20 |
+++ b/sci-electronics/oregano/Manifest |
21 |
@@ -0,0 +1 @@ |
22 |
+DIST oregano-0.83.2.1.tar.gz 1545377 SHA256 d22ab0dc9f3717759983966ea3f7a8cd266e343fab47236ec4d841660bd72fa1 SHA512 63f5a698476bdbdade9734beacf0879315896b85243daecb7a7593d1bad0fd3ccb537472d1197e3b5623d977f19506f0e561356fd8c21a3146b223ccdc11011d WHIRLPOOL 6f214322fd60b3eeaf704d1a3560c41604884fbe2af7297509086483af8c2d0435e64b70679ede35effc00102c827a3a9b9e8090ad322cdeb49cd5acd9537b0c |
23 |
|
24 |
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 |
25 |
new file mode 100644 |
26 |
index 0000000..f6aa055 |
27 |
--- /dev/null |
28 |
+++ b/sci-electronics/oregano/files/oregano-0.83.2.1-remove-schema-update.patch |
29 |
@@ -0,0 +1,35 @@ |
30 |
+diff --git a/data/wscript b/data/wscript |
31 |
+index 9e09004..7a13c75 100644 |
32 |
+--- a/data/wscript |
33 |
++++ b/data/wscript |
34 |
+@@ -30,16 +30,6 @@ def build(bld): |
35 |
+ bld.install_files (bld.env.path_partslib, bld.path.ant_glob('libraries/*.oreglib')) |
36 |
+ bld.install_files (bld.env.path_ui, bld.path.ant_glob('xml/*.ui')) |
37 |
+ |
38 |
+- try: |
39 |
+- bld.exec_command(['update-desktop-database', utils.subst_vars('${DATADIR}/applications', bld.env)]) |
40 |
+- except: |
41 |
+- logs.warn('Failed to execute xdg desktop database update.') |
42 |
+- |
43 |
+- try: |
44 |
+- bld.exec_command(['update-mime-database', utils.subst_vars('${DATADIR}/mime', bld.env)]) |
45 |
+- except: |
46 |
+- logs.warn('Failed to execute xdg mime database update.') |
47 |
+- |
48 |
+ bld( |
49 |
+ features = 'intltool_in', |
50 |
+ podir = "../po", |
51 |
+diff --git a/wscript b/wscript |
52 |
+index 2341045..0aa9d8a 100644 |
53 |
+--- a/wscript |
54 |
++++ b/wscript |
55 |
+@@ -165,6 +165,9 @@ def build(bld): |
56 |
+ install_path = "${BINDIR}" |
57 |
+ ) |
58 |
+ |
59 |
++ # disable update of schemas cache |
60 |
++ bld._compile_schemas_registered=True |
61 |
++ |
62 |
+ for item in exe.includes: |
63 |
+ logs.debug(item) |
64 |
+ test = bld.program( |
65 |
|
66 |
diff --git a/sci-electronics/oregano/metadata.xml b/sci-electronics/oregano/metadata.xml |
67 |
new file mode 100644 |
68 |
index 0000000..caeaccf |
69 |
--- /dev/null |
70 |
+++ b/sci-electronics/oregano/metadata.xml |
71 |
@@ -0,0 +1,13 @@ |
72 |
+<?xml version="1.0" encoding="UTF-8"?> |
73 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 |
+<pkgmetadata> |
75 |
+ <herd>sci-electronics</herd> |
76 |
+ <longdescription> |
77 |
+ Oregano is an application for schematic capture and simulation of electrical |
78 |
+ circuits. The actual simulation is performed by Berkeley Spice, or GNUcap or |
79 |
+ the new generation ngspice. |
80 |
+ </longdescription> |
81 |
+ <upstream> |
82 |
+ <remote-id type="github">marc-lorber/oregano</remote-id> |
83 |
+ </upstream> |
84 |
+</pkgmetadata> |
85 |
|
86 |
diff --git a/sci-electronics/oregano/oregano-0.83.2.1.ebuild b/sci-electronics/oregano/oregano-0.83.2.1.ebuild |
87 |
new file mode 100644 |
88 |
index 0000000..a40e085 |
89 |
--- /dev/null |
90 |
+++ b/sci-electronics/oregano/oregano-0.83.2.1.ebuild |
91 |
@@ -0,0 +1,54 @@ |
92 |
+# Copyright 1999-2014 Gentoo Foundation |
93 |
+# Distributed under the terms of the GNU General Public License v2 |
94 |
+# $Id$ |
95 |
+ |
96 |
+EAPI="5" |
97 |
+ |
98 |
+inherit eutils fdo-mime vcs-snapshot gnome2-utils waf-utils |
99 |
+ |
100 |
+DESCRIPTION="Oregano is an application for schematic capture and simulation of electrical circuits" |
101 |
+HOMEPAGE="https://github.com/drahnr/oregano" |
102 |
+SRC_URI="https://github.com/drahnr/${PN}/tarball/v${PV} -> ${P}.tar.gz" |
103 |
+ |
104 |
+LICENSE="GPL-2" |
105 |
+SLOT="0" |
106 |
+KEYWORDS="~amd64 ~ppc ~x86" |
107 |
+IUSE="" |
108 |
+ |
109 |
+CDEPEND="dev-libs/glib:2 |
110 |
+ dev-libs/libxml2:2 |
111 |
+ x11-libs/goocanvas:2.0 |
112 |
+ x11-libs/gtk+:3 |
113 |
+ x11-libs/gtksourceview:3.0 |
114 |
+ app-text/rarian" |
115 |
+DEPEND="${CDEPEND} |
116 |
+ virtual/pkgconfig" |
117 |
+RDEPEND="${CDEPEND} |
118 |
+ || ( gnome-base/dconf gnome-base/gconf ) |
119 |
+ sci-electronics/electronics-menu" |
120 |
+ |
121 |
+src_prepare() { |
122 |
+ epatch "${FILESDIR}/${P}-remove-schema-update.patch" |
123 |
+} |
124 |
+ |
125 |
+src_compile() { |
126 |
+ # needs to be called with either debug or release |
127 |
+ "${WAF_BINARY}" --verbose --jobs=$(makeopts_jobs) release || die |
128 |
+} |
129 |
+ |
130 |
+pkg_preinst() { |
131 |
+ gnome2_schemas_savelist |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ gnome2_schemas_update |
136 |
+ fdo-mime_desktop_database_update |
137 |
+ elog "You'll need to emerge your prefered simulation backend" |
138 |
+ elog "such ngspice or gnucap for simulation to work." |
139 |
+ elog "As an alternative generate a netlist and use sci-electronics/spice" |
140 |
+ elog "from the command line for simulation." |
141 |
+} |
142 |
+ |
143 |
+pkg_postrm() { |
144 |
+ gnome2_schemas_update |
145 |
+} |