Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-electronics/gnucap: ChangeLog gnucap-0.35.20090928.ebuild
Date: Mon, 05 Oct 2009 16:36:23
Message-Id: E1MuqXt-0006wd-IO@stork.gentoo.org
1 calchan 09/10/05 16:36:21
2
3 Modified: ChangeLog
4 Added: gnucap-0.35.20090928.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.48 sci-electronics/gnucap/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/gnucap/ChangeLog?rev=1.48&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/gnucap/ChangeLog?rev=1.48&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/gnucap/ChangeLog?r1=1.47&r2=1.48
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v
19 retrieving revision 1.47
20 retrieving revision 1.48
21 diff -u -r1.47 -r1.48
22 --- ChangeLog 11 Jul 2009 19:32:10 -0000 1.47
23 +++ ChangeLog 5 Oct 2009 16:36:21 -0000 1.48
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-electronics/gnucap
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.47 2009/07/11 19:32:10 calchan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.48 2009/10/05 16:36:21 calchan Exp $
29 +
30 +*gnucap-0.35.20090928 (05 Oct 2009)
31 +
32 + 05 Oct 2009; Denis Dupeyron <calchan@g.o>
33 + +gnucap-0.35.20090928.ebuild:
34 + Version bump.
35
36 *gnucap-0.35.20090611 (11 Jul 2009)
37
38
39
40
41 1.1 sci-electronics/gnucap/gnucap-0.35.20090928.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/gnucap/gnucap-0.35.20090928.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/gnucap/gnucap-0.35.20090928.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnucap-0.35.20090928.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/gnucap-0.35.20090928.ebuild,v 1.1 2009/10/05 16:36:21 calchan Exp $
51
52 EAPI="2"
53
54 inherit multilib
55
56 SNAPSHOTDATE="${P##*.}"
57 MY_PV="${PN}-${SNAPSHOTDATE:0:4}-${SNAPSHOTDATE:4:2}-${SNAPSHOTDATE:6:2}"
58
59 DESCRIPTION="GNUCap is the GNU Circuit Analysis Package"
60 SRC_URI="http://www.gnucap.org/devel/${MY_PV}.tar.gz
61 http://www.gnucap.org/devel/${MY_PV}-models-bsim.tar.gz
62 http://www.gnucap.org/devel/${MY_PV}-models-jspice3-2.5.tar.gz
63 http://www.gnucap.org/devel/${MY_PV}-models-ngspice17.tar.gz
64 http://www.gnucap.org/devel/${MY_PV}-models-spice3f5.tar.gz"
65 HOMEPAGE="http://www.gnucap.org/"
66
67 IUSE="examples"
68 SLOT="0"
69 LICENSE="GPL-2"
70 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
71
72 DEPEND=""
73 RDEPEND=""
74
75 S="${WORKDIR}/${MY_PV}"
76
77 src_prepare() {
78 # No need to install COPYING and INSTALL
79 sed -i \
80 -e 's: COPYING INSTALL::' \
81 -e 's:COPYING history INSTALL:history:' \
82 doc/Makefile.in || die "sed failed"
83
84 if ! use examples ; then
85 sed -i \
86 -e 's:examples modelgen:modelgen:' \
87 Makefile.in || die "sed failed"
88 fi
89
90 sed -i -e 's:CFLAGS = -O2 -g:CPPFLAGS +=:' \
91 -e '/CCFLAGS =/i\CFLAGS += $(CPPFLAGS)' \
92 -e 's:CCFLAGS = $(CFLAGS):CXXFLAGS += $(CPPFLAGS):' \
93 -e 's:LDFLAGS = :LDFLAGS += :' \
94 -e 's:CCFLAGS:CXXFLAGS:' \
95 -e "s:../Gnucap:${S}/src:" \
96 models-*/Make2 || die "sed failed"
97
98 sed -i -e "s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
99 {src,modelgen}/ap_match.cc || die "sed failed"
100 }
101
102 src_compile () {
103 emake || die "Compilation failed"
104 for PLUGIN_DIR in models-* ; do
105 cd "${S}/${PLUGIN_DIR}"
106 emake || die "Compilation failed in ${PLUGIN_DIR}"
107 done
108 }
109
110 src_install () {
111 emake DESTDIR="${D}" install || die "Installation failed"
112 insopts -m0755
113 for PLUGIN_DIR in models-* ; do
114 insinto /usr/$(get_libdir)/gnucap/${PLUGIN_DIR}
115 cd "${S}/${PLUGIN_DIR}"
116 for PLUGIN in */*.so ; do
117 newins ${PLUGIN} ${PLUGIN##*/} \
118 || die "Installation of ${PLUGIN_DIR}/${PLUGIN} failed"
119 done
120 done
121 }
122
123 pkg_postinst() {
124 elog "Documentation for development releases is now available at :"
125 elog " http://wiki.gnucap.org/dokuwiki/doku.php?id=gnucap:manual"
126 }