summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/oregano
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/oregano')
-rw-r--r--sci-electronics/oregano/Manifest2
-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-fix-libm.patch11
-rw-r--r--sci-electronics/oregano/files/oregano-0.69.1-scons_env_flags.patch27
-rw-r--r--sci-electronics/oregano/files/oregano-0.82-asneeded.patch22
-rw-r--r--sci-electronics/oregano/files/oregano-0.82-automake.patch25
-rw-r--r--sci-electronics/oregano/files/oregano-0.82-format-security.patch35
-rw-r--r--sci-electronics/oregano/files/oregano-0.82-remove.unneeded.docs.patch13
-rw-r--r--sci-electronics/oregano/metadata.xml13
-rw-r--r--sci-electronics/oregano/oregano-0.69.1-r1.ebuild59
-rw-r--r--sci-electronics/oregano/oregano-0.82.ebuild65
11 files changed, 298 insertions, 0 deletions
diff --git a/sci-electronics/oregano/Manifest b/sci-electronics/oregano/Manifest
new file mode 100644
index 000000000000..471c79f900be
--- /dev/null
+++ b/sci-electronics/oregano/Manifest
@@ -0,0 +1,2 @@
+DIST oregano-0.82.tar.gz 1398390 SHA256 b68cdd0c80421b0571bf520d3f8b0d1793808fee1ac7ac28dcf8ebaff2cb1a2d SHA512 9c03f079e81f8de7d9e8880a890059bd8034e82bf47566ba3905943ccedc7a1642517fa2f6fcb2a2d10228c0bf79da055c1ed9bf3e07e505819641cd7cbf168c WHIRLPOOL 668ed4f056fc0d39a789bfcb67d80375738f54951127cd3007b3b8261a370a41b758728d97d40b4fb773f131636e20f0e721ddb6a0f3e0d640e6d344ef102010
+DIST oregano_0.69.1.orig.tar.gz 673785 SHA256 ec96f6d113c642aa423d4abf9d667802bc3754eda8a9f4e287b8b9cefbb4b589 SHA512 4dc12f90c70ef5ff5011cfc29f3c53e7ea4c77c3b38815919ebdf90fbcf3b157d4dc7327d62c190945f7c191f4584931a02dda50ae966aa59d6da5098e8ca5e2 WHIRLPOOL c1c78fdf1f5a26417d0272157301952f944c7552bc72fb2c7982ef454b4f4096f432950fc63fb78baeb0c686d0c3edbd036dc0ce1bc93c4f9af3c09f5c2889e1
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-fix-libm.patch b/sci-electronics/oregano/files/oregano-0.69.1-fix-libm.patch
new file mode 100644
index 000000000000..420ffe17f00c
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.69.1-fix-libm.patch
@@ -0,0 +1,11 @@
+--- src/SConscript.old 2009-07-07 19:49:49.000000000 +0400
++++ src/SConscript 2014-11-12 20:57:50.311089881 +0300
+@@ -67,6 +67,8 @@
+
+ SrcEnv.Append (CCFLAGS = Split ("-I./src -I./src/model -I./src/sheet -I./src/gplot -I./data/dialogs -I./src/engines"))
+
++SrcEnv.Append (LIBS = ['m'])
++
+ oregano = SrcEnv.Program ('oregano', files)
+
+ # Install alias # \ No newline at end of file
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/files/oregano-0.82-asneeded.patch b/sci-electronics/oregano/files/oregano-0.82-asneeded.patch
new file mode 100644
index 000000000000..8432a918da65
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.82-asneeded.patch
@@ -0,0 +1,22 @@
+--- src/Makefile.am.orig 2012-12-06 09:58:37.000000000 +0100
++++ src/Makefile.am 2012-12-06 10:00:03.000000000 +0100
+@@ -34,10 +34,11 @@
+
+ bin_PROGRAMS = oregano
+
+-OREGANO_LIBS += gplot/libgplot.a \
++NEW_OREGANO_LIBS = gplot/libgplot.a \
+ engines/libengines.a \
+ model/libmodel.a \
+- sheet/libsheet.a
++ sheet/libsheet.a \
++ $(OREGANO_LIBS)
+
+ oregano_PIXMAPS = \
+ plot.xpm \
+@@ -99,4 +100,4 @@
+ oregano.h
+
+ oregano_LDADD = \
+- $(OREGANO_LIBS)
++ $(NEW_OREGANO_LIBS)
diff --git a/sci-electronics/oregano/files/oregano-0.82-automake.patch b/sci-electronics/oregano/files/oregano-0.82-automake.patch
new file mode 100644
index 000000000000..84f1bfd0ab10
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.82-automake.patch
@@ -0,0 +1,25 @@
+# adapt to new automake 0.13.1 (bug #467708)
+# switch to AC_CONFIG_HEADERS, correct AM_INIT_AUTOMAKE, quote text in
+# AC_MSG_ERROR
+--- configure.ac.old 2013-04-28 15:49:22.000000000 +0000
++++ configure.ac 2013-04-28 15:50:25.000000000 +0000
+@@ -1,7 +1,7 @@
+-AC_INIT(AUTHORS)
+-AM_INIT_AUTOMAKE(oregano, 0.81)
++AC_INIT(oregano,0.81,AUTHORS)
++AM_INIT_AUTOMAKE
+
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AM_MAINTAINER_MODE
+
+ AC_CONFIG_MACRO_DIR([m4])
+@@ -38,7 +38,7 @@
+ AC_SUBST(SCROLLKEEPER_REQUIRED)
+ AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
+ if test x$SCROLLKEEPER_CONFIG = xno; then
+- AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package)
++ AC_MSG_ERROR([Couldn't find scrollkeeper-config, please install the scrollkeeper package])
+ fi
+
+
diff --git a/sci-electronics/oregano/files/oregano-0.82-format-security.patch b/sci-electronics/oregano/files/oregano-0.82-format-security.patch
new file mode 100644
index 000000000000..6242a1c71c14
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.82-format-security.patch
@@ -0,0 +1,35 @@
+From http://patch-tracker.debian.org/package/oregano/0.70-1
+
+## Description: Avoid format-security errors
+## Origin/Author: Maximiliano Curia <maxy@debian.org>
+Index: oregano-0.70/src/dialogs.c
+===================================================================
+--- oregano-0.70.orig/src/dialogs.c 2012-01-07 18:57:09.000000000 -0300
++++ oregano-0.70/src/dialogs.c 2012-01-07 19:26:46.000000000 -0300
+@@ -61,7 +61,7 @@
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+- span_msg->str);
++ "%s", span_msg->str);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+
+@@ -100,7 +100,7 @@
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_WARNING,
+ GTK_BUTTONS_OK,
+- span_msg->str);
++ "%s", span_msg->str);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+
+@@ -120,7 +120,7 @@
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_OK,
+ GTK_BUTTONS_CANCEL,
+- msg);
++ "%s", msg);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
+
diff --git a/sci-electronics/oregano/files/oregano-0.82-remove.unneeded.docs.patch b/sci-electronics/oregano/files/oregano-0.82-remove.unneeded.docs.patch
new file mode 100644
index 000000000000..df0d930dee23
--- /dev/null
+++ b/sci-electronics/oregano/files/oregano-0.82-remove.unneeded.docs.patch
@@ -0,0 +1,13 @@
+--- oregano-0.82/Makefile.am
++++ oregano-0.82/Makefile.am
+@@ -7,10 +7,8 @@
+ oreganodocdir = $(datadir)/doc/oregano
+ oreganodoc_DATA = \
+ README\
+- COPYING\
+ AUTHORS\
+ ChangeLog\
+- INSTALL\
+ NEWS\
+ TODO
+
diff --git a/sci-electronics/oregano/metadata.xml b/sci-electronics/oregano/metadata.xml
new file mode 100644
index 000000000000..caeaccf04b35
--- /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.69.1-r1.ebuild b/sci-electronics/oregano/oregano-0.69.1-r1.ebuild
new file mode 100644
index 000000000000..470b484aaa4c
--- /dev/null
+++ b/sci-electronics/oregano/oregano-0.69.1-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils fdo-mime flag-o-matic 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 x86"
+LICENSE="GPL-2"
+IUSE=""
+
+CDEPEND="
+ dev-libs/libxml2:2
+ x11-libs/gtk+:2
+ gnome-base/libglade:2.0
+ gnome-base/libgnome
+ >=gnome-base/libgnomeui-2.12
+ >=gnome-base/libgnomecanvas-2.12
+ >=x11-libs/cairo-1.2
+ x11-libs/gtksourceview:2.0"
+DEPEND="${CDEPEND}
+ >=dev-util/scons-0.96.1
+ virtual/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"
+ epatch "${FILESDIR}/${P}-fix-libm.patch"
+}
+
+src_compile() {
+ # bug 369875
+ strip-unsupported-flags
+ # see bug 363833
+ append-cflags -fno-omit-frame-pointer
+ escons --cache-disable PREFIX=/usr
+}
+
+src_install() {
+ escons --cache-disable PREFIX=/usr DESTDIR="${D}" RunUpdateMimeDatabase=no \
+ install
+ dodoc AUTHORS NEWS README docs/Library-HOWTO.txt
+}
+
+pkg_postinst() {
+ 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."
+}
diff --git a/sci-electronics/oregano/oregano-0.82.ebuild b/sci-electronics/oregano/oregano-0.82.ebuild
new file mode 100644
index 000000000000..0ae4eb337190
--- /dev/null
+++ b/sci-electronics/oregano/oregano-0.82.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit autotools eutils fdo-mime vcs-snapshot gnome2-utils
+
+DESCRIPTION="Oregano is an application for schematic capture and simulation of electrical circuits"
+HOMEPAGE="https://github.com/marc-lorber/oregano"
+SRC_URI="https://github.com/marc-lorber/${PN}/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+CDEPEND="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}-format-security.patch
+ epatch "${FILESDIR}"/${P}-remove.unneeded.docs.patch
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+ # Do not use GTK_DISABLE_DEPRECATED (needed by >=gtk+-3.8.1
+ sed -i -e "s/-DGTK_DISABLE_DEPRECATED//g" src/sheet/Makefile.am || die
+ sed -i -e "s/-DGTK_DISABLE_DEPRECATED//g" src/Makefile.am || die
+ sed -i -e "s/(OREGANO_LIBS)/(OREGANO_LIBS) -lm/" src/Makefile.am || die
+ # Aclocal 1.13 deprecated error #467708
+ epatch "${FILESDIR}"/${P}-automake.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-update-mimedb --disable-silent-rules
+}
+
+src_install() {
+ emake DESTDIR="${D}" oreganodocdir=/usr/share/doc/${PF} install
+}
+
+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
+}