From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 309C0138334 for ; Thu, 17 Jan 2019 22:31:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C713E0BA0; Thu, 17 Jan 2019 22:31:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA119E0BA0 for ; Thu, 17 Jan 2019 22:31:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D9CDD335C02 for ; Thu, 17 Jan 2019 22:31:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 359964D3 for ; Thu, 17 Jan 2019 22:31:12 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1547764266.d3f7717cea9bd0f240d8fa1a086652bb02c486d7.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gnucap/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/gnucap/gnucap-0.35.20091207-r1.ebuild X-VCS-Directories: sci-electronics/gnucap/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: d3f7717cea9bd0f240d8fa1a086652bb02c486d7 X-VCS-Branch: master Date: Thu, 17 Jan 2019 22:31:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bd6c0e92-1f67-467f-9f4c-cf156da37fd6 X-Archives-Hash: 6d6aaa9bb0340bf158b71c040d34d923 commit: d3f7717cea9bd0f240d8fa1a086652bb02c486d7 Author: Andreas K. Hüttel gentoo org> AuthorDate: Thu Jan 17 22:30:43 2019 +0000 Commit: Andreas K. Hüttel gentoo 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 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(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" +}