public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gnucap/
Date: Thu, 17 Jan 2019 22:31:12 +0000 (UTC)	[thread overview]
Message-ID: <1547764266.d3f7717cea9bd0f240d8fa1a086652bb02c486d7.dilfridge@gentoo> (raw)

commit:     d3f7717cea9bd0f240d8fa1a086652bb02c486d7
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 17 22:30:43 2019 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 22:31:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3f7717c

sci-electronics/gnucap: EAPI bump

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 .../gnucap/gnucap-0.35.20091207-r1.ebuild          | 82 ++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/sci-electronics/gnucap/gnucap-0.35.20091207-r1.ebuild b/sci-electronics/gnucap/gnucap-0.35.20091207-r1.ebuild
new file mode 100644
index 00000000000..e3064c93b3f
--- /dev/null
+++ b/sci-electronics/gnucap/gnucap-0.35.20091207-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib toolchain-funcs flag-o-matic
+
+SNAPSHOTDATE="${P##*.}"
+MY_PV="${PN}-${SNAPSHOTDATE:0:4}-${SNAPSHOTDATE:4:2}-${SNAPSHOTDATE:6:2}"
+
+DESCRIPTION="GNUCap is the GNU Circuit Analysis Package"
+SRC_URI="http://www.gnucap.org/devel/${MY_PV}.tar.gz
+	http://www.gnucap.org/devel/${MY_PV}-models-bsim.tar.gz
+	http://www.gnucap.org/devel/${MY_PV}-models-jspice3-2.5.tar.gz
+	http://www.gnucap.org/devel/${MY_PV}-models-ngspice17.tar.gz
+	http://www.gnucap.org/devel/${MY_PV}-models-spice3f5.tar.gz"
+HOMEPAGE="http://www.gnucap.org/"
+
+IUSE="examples"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_PV}"
+
+src_prepare() {
+	# No need to install COPYING and INSTALL
+	sed -i \
+		-e 's: COPYING INSTALL::' \
+		-e 's:COPYING history INSTALL:history:' \
+		doc/Makefile.in || die
+
+	if ! use examples ; then
+		sed -i \
+			-e 's:examples modelgen:modelgen:' \
+			Makefile.in || die
+	fi
+
+	sed -i -e 's:CFLAGS = -O2 -g:CPPFLAGS +=:' \
+		-e '/CCFLAGS =/i\CFLAGS += $(CPPFLAGS)' \
+		-e 's:CCFLAGS = $(CFLAGS):CXXFLAGS += $(CPPFLAGS):' \
+		-e 's:LDFLAGS = :LDFLAGS += :' \
+		-e 's:CCFLAGS:CXXFLAGS:' \
+		-e "s:../Gnucap:${S}/src:" \
+		models-*/Make2 || die
+
+	sed -i -e "s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
+		{src,modelgen}/ap_match.cc || die
+
+	tc-export CC CXX
+	append-cxxflags -std=gnu++98
+
+	default
+}
+
+src_compile () {
+	emake
+	for PLUGIN_DIR in models-* ; do
+		cd "${S}/${PLUGIN_DIR}"
+		emake CC=$(tc-getCC) CCC=$(tc-getCXX)
+	done
+}
+
+src_install () {
+	emake DESTDIR="${D}" install
+	insopts -m0755
+	for PLUGIN_DIR in models-* ; do
+		insinto /usr/$(get_libdir)/gnucap/${PLUGIN_DIR}
+		cd "${S}/${PLUGIN_DIR}"
+		for PLUGIN in */*.so ; do
+			newins ${PLUGIN} ${PLUGIN##*/}
+		done
+	done
+}
+
+pkg_postinst() {
+	elog "Documentation for development releases is now available at :"
+	elog "    http://wiki.gnucap.org/dokuwiki/doku.php?id=gnucap:manual"
+}


             reply	other threads:[~2019-01-17 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 22:31 Andreas K. Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-08 13:40 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gnucap/ David Seifert
2023-03-07 15:53 Sam James
2023-03-07 15:53 Sam James
2022-03-20 18:51 Sam James
2021-02-06 22:34 Sam James
2019-03-03  6:50 Mikle Kolyada
2019-03-03  6:50 Mikle Kolyada
2019-03-02 20:49 Thomas Deutschmann
2019-02-27  8:20 Sergei Trofimovich
2017-09-20 21:25 Andreas Hüttel

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=1547764266.d3f7717cea9bd0f240d8fa1a086652bb02c486d7.dilfridge@gentoo \
    --to=dilfridge@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