* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gwave/files/, sci-electronics/gwave/, profiles/
@ 2024-09-18 13:12 Arsen Arsenović
0 siblings, 0 replies; only message in thread
From: Arsen Arsenović @ 2024-09-18 13:12 UTC (permalink / raw
To: gentoo-commits
commit: 7a3daf8ba3750dda074458a780f42207125bc5a3
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue Aug 27 15:03:22 2024 +0000
Commit: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 18 13:06:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a3daf8b
sci-electronics/gwave: switch to new guile mechanism
Bug: https://bugs.gentoo.org/886139
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>
profiles/package.mask | 1 +
.../gwave/files/gwave-20190116-lfs-shim.patch | 14 +++++
sci-electronics/gwave/gwave-20190116-r100.ebuild | 63 ++++++++++++++++++++++
3 files changed, 78 insertions(+)
diff --git a/profiles/package.mask b/profiles/package.mask
index 27b90b371360..508f5abed528 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -390,6 +390,7 @@ dev-scheme/guile:3.0
>=net-irc/weechat-4.3.4-r100
>=net-mail/mailutils-3.17-r100
>=sci-electronics/geda-1.10.2-r100
+>=sci-electronics/gwave-20190116-r100
# Eli Schwartz <eschwartz@gentoo.org> (2024-08-15)
# Abandoned upstream since 2011, unmaintained in gentoo since 2017. Tons of
diff --git a/sci-electronics/gwave/files/gwave-20190116-lfs-shim.patch b/sci-electronics/gwave/files/gwave-20190116-lfs-shim.patch
new file mode 100644
index 000000000000..5957b6a1b6b0
--- /dev/null
+++ b/sci-electronics/gwave/files/gwave-20190116-lfs-shim.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/886139
+
+--- a/spicefile/sp2sp.c
++++ b/spicefile/sp2sp.c
+@@ -234,7 +234,7 @@
+ }
+ of = stdout;
+ } else {
+- of = (FILE *)fopen64(outfilename, "w"); /* DJW: why is the cast needed? */
++ of = fopen(outfilename, "w");
+ if(!of) {
+ if(errno)
+ perror(outfilename);
+
diff --git a/sci-electronics/gwave/gwave-20190116-r100.ebuild b/sci-electronics/gwave/gwave-20190116-r100.ebuild
new file mode 100644
index 000000000000..2b2cd9972339
--- /dev/null
+++ b/sci-electronics/gwave/gwave-20190116-r100.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+GUILE_REQ_USE="networking"
+GUILE_COMPAT=( 2-2 )
+inherit autotools desktop flag-o-matic guile-single xdg
+
+DESCRIPTION="Analog waveform viewer for SPICE-like simulations"
+HOMEPAGE="http://gwave.sourceforge.net"
+SRC_URI="https://downloads.sourceforge.net/${PN}/gwave3/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnuplot plotutils"
+SLOT="0"
+
+REQUIRED_USE="${GUILE_REQUIRED_USE}"
+
+DEPEND="
+ ${GUILE_DEPS}
+ >=x11-libs/gtk+-2.8.0:2=
+ sys-libs/readline:0=
+ sys-libs/ncurses:0="
+
+RDEPEND="${DEPEND}
+ sci-electronics/electronics-menu
+ gnuplot? ( sci-visualization/gnuplot )
+ plotutils? ( media-libs/plotutils )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-multiple-little-bugfixes.patch
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${P}-fix-configure.patch
+ "${FILESDIR}"/${P}-lfs-shim.patch
+)
+
+src_prepare() {
+ guile-single_src_prepare
+
+ sed -i \
+ -e "s|guile-snarf|${GUILESNARF}|" \
+ -e "s|guile-tools|${GUILE/guile/guile-tools}|" \
+ src/Makefile.am || die
+ sed -i \
+ -e "s|guile-tools|${GUILE/guile/guile-tools}|" \
+ scheme/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # https://bugs.gentoo.org/886139
+ append-lfs-flags
+ econf
+}
+
+src_install() {
+ guile-single_src_install
+ newicon icons/wave-drag-ok.xpm gwave.xpm
+ make_desktop_entry gwave "Gwave" gwave "Electronics"
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-18 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 13:12 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gwave/files/, sci-electronics/gwave/, profiles/ Arsen Arsenović
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox