Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gnucap/
Date: Sun, 03 Mar 2019 06:50:50
Message-Id: 1551595827.7c86c6d7d529f72749a1d341fff7a3926b187b1d.zlogene@gentoo
1 commit: 7c86c6d7d529f72749a1d341fff7a3926b187b1d
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 3 06:50:27 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 3 06:50:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c86c6d7
7
8 sci-electronics/gnucap: Drop old (EAPI=2)
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sci-electronics/gnucap/gnucap-0.35.20091207.ebuild | 81 ----------------------
14 1 file changed, 81 deletions(-)
15
16 diff --git a/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild b/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild
17 deleted file mode 100644
18 index ef828018d8f..00000000000
19 --- a/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild
20 +++ /dev/null
21 @@ -1,81 +0,0 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI="2"
26 -
27 -inherit multilib toolchain-funcs flag-o-matic
28 -
29 -SNAPSHOTDATE="${P##*.}"
30 -MY_PV="${PN}-${SNAPSHOTDATE:0:4}-${SNAPSHOTDATE:4:2}-${SNAPSHOTDATE:6:2}"
31 -
32 -DESCRIPTION="GNUCap is the GNU Circuit Analysis Package"
33 -SRC_URI="http://www.gnucap.org/devel/${MY_PV}.tar.gz
34 - http://www.gnucap.org/devel/${MY_PV}-models-bsim.tar.gz
35 - http://www.gnucap.org/devel/${MY_PV}-models-jspice3-2.5.tar.gz
36 - http://www.gnucap.org/devel/${MY_PV}-models-ngspice17.tar.gz
37 - http://www.gnucap.org/devel/${MY_PV}-models-spice3f5.tar.gz"
38 -HOMEPAGE="http://www.gnucap.org/"
39 -
40 -IUSE="examples"
41 -SLOT="0"
42 -LICENSE="GPL-2"
43 -KEYWORDS="amd64 ppc x86"
44 -
45 -DEPEND=""
46 -RDEPEND=""
47 -
48 -S="${WORKDIR}/${MY_PV}"
49 -
50 -src_prepare() {
51 - # No need to install COPYING and INSTALL
52 - sed -i \
53 - -e 's: COPYING INSTALL::' \
54 - -e 's:COPYING history INSTALL:history:' \
55 - doc/Makefile.in || die "sed failed"
56 -
57 - if ! use examples ; then
58 - sed -i \
59 - -e 's:examples modelgen:modelgen:' \
60 - Makefile.in || die "sed failed"
61 - fi
62 -
63 - sed -i -e 's:CFLAGS = -O2 -g:CPPFLAGS +=:' \
64 - -e '/CCFLAGS =/i\CFLAGS += $(CPPFLAGS)' \
65 - -e 's:CCFLAGS = $(CFLAGS):CXXFLAGS += $(CPPFLAGS):' \
66 - -e 's:LDFLAGS = :LDFLAGS += :' \
67 - -e 's:CCFLAGS:CXXFLAGS:' \
68 - -e "s:../Gnucap:${S}/src:" \
69 - models-*/Make2 || die "sed failed"
70 -
71 - sed -i -e "s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
72 - {src,modelgen}/ap_match.cc || die "sed failed"
73 -
74 - tc-export CC CXX
75 - append-cxxflags -std=gnu++98
76 -}
77 -
78 -src_compile () {
79 - emake || die "Compilation failed"
80 - for PLUGIN_DIR in models-* ; do
81 - cd "${S}/${PLUGIN_DIR}"
82 - emake CC=$(tc-getCC) CCC=$(tc-getCXX) || die "Compilation failed in ${PLUGIN_DIR}"
83 - done
84 -}
85 -
86 -src_install () {
87 - emake DESTDIR="${D}" install || die "Installation failed"
88 - insopts -m0755
89 - for PLUGIN_DIR in models-* ; do
90 - insinto /usr/$(get_libdir)/gnucap/${PLUGIN_DIR}
91 - cd "${S}/${PLUGIN_DIR}"
92 - for PLUGIN in */*.so ; do
93 - newins ${PLUGIN} ${PLUGIN##*/} \
94 - || die "Installation of ${PLUGIN_DIR}/${PLUGIN} failed"
95 - done
96 - done
97 -}
98 -
99 -pkg_postinst() {
100 - elog "Documentation for development releases is now available at :"
101 - elog " http://wiki.gnucap.org/dokuwiki/doku.php?id=gnucap:manual"
102 -}