From: "Thomas Beierlein" <tomjbe@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/spice/
Date: Wed, 24 May 2017 17:16:29 +0000 (UTC) [thread overview]
Message-ID: <1495646176.6af201adee1f44586b3aef239222ac6aee20ba00.tomjbe@gentoo> (raw)
commit: 6af201adee1f44586b3aef239222ac6aee20ba00
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 17:14:58 2017 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Wed May 24 17:16:16 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af201ad
sci-electronics/spice: Bump EAPI and fix missing libtinfo (bug #605718)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
sci-electronics/spice/spice-3.5.5-r2.ebuild | 74 +++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/sci-electronics/spice/spice-3.5.5-r2.ebuild b/sci-electronics/spice/spice-3.5.5-r2.ebuild
new file mode 100644
index 00000000000..654e79729e2
--- /dev/null
+++ b/sci-electronics/spice/spice-3.5.5-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit eutils flag-o-matic multilib
+
+IUSE=""
+
+MY_P="spice3f5sfix"
+DESCRIPTION="general-purpose circuit simulation program"
+HOMEPAGE="http://bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/"
+SRC_URI="http://www.ibiblio.org/pub/Linux/apps/circuits/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="sys-libs/ncurses:0
+ x11-libs/libXaw
+ >=app-misc/editor-wrapper-3"
+
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # spice accepts -O1 at most
+ replace-flags -O* -O1
+
+ # Avoid re-creating WORKDIR due to stupid mtime
+ touch ..
+
+ sed -i -e "s:termcap:ncurses:g" \
+ -e "s:joe:/usr/libexec/editor:g" \
+ -e "s:-O2 -s:${CFLAGS}:g" \
+ -e "s:-lncurses -lm -s:-lncurses -lm ${LDFLAGS}:" \
+ -e "s:SPICE_DIR)/lib:SPICE_DIR)/$(get_libdir)/spice:g" \
+ -e "s:/usr/local/spice:/usr:g" \
+ -e "s:/X11R6::" \
+ conf/linux || die
+ sed -i -e "s:head -1:head -n 1:" util/build || die
+ epatch "${FILESDIR}"/${P}-gcc-4.1.patch
+
+ # fix possible buffer overflow (bug #339539)
+ sed -i -e "s:fgets(buf, BSIZE_SP:fgets(buf, sizeof(buf):g" \
+ src/lib/fte/misccoms.c || die
+
+ # fix missing libtinfo if ncurses compiled with USE=tinfo (bug #605718)
+ if has_version 'sys-libs/ncurses:0[tinfo]' ;then
+ sed -i -e "s:-lncurses:-lncurses -ltinfo:g" conf/linux || die
+ fi
+
+ eapply_user
+}
+
+src_compile() {
+ ./util/build linux || die "build failed"
+ obj/bin/makeidx lib/helpdir/spice.txt || die "makeidx failed"
+}
+
+src_install() {
+ # install binaries
+ dobin obj/bin/{spice3,nutmeg,sconvert,multidec,proc2mod}
+ newbin obj/bin/help spice.help
+ dosym /usr/bin/spice3 /usr/bin/spice
+ # install runtime stuff
+ rm -f lib/make*
+ dodir /usr/$(get_libdir)/spice
+ cp -R lib/* "${D}"/usr/$(get_libdir)/spice/ || die "failed to copy libraries"
+ # install docs
+ doman man/man1/*.1
+ dodoc readme readme.Linux notes/spice2
+}
next reply other threads:[~2017-05-24 17:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 17:16 Thomas Beierlein [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-31 21:46 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/spice/ Aaron Bauman
2018-05-21 17:05 Aaron Bauman
2018-05-22 1:19 Matt Turner
2022-01-16 23:56 Mike Gilbert
2022-01-16 23:56 Mike Gilbert
2023-09-12 7:13 Andrew Ammerlaan
2023-12-16 3:05 Sam James
2024-04-11 10:59 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1495646176.6af201adee1f44586b3aef239222ac6aee20ba00.tomjbe@gentoo \
--to=tomjbe@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox