summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2008-03-29 17:53:16 +0000
committerDenis Dupeyron <calchan@gentoo.org>2008-03-29 17:53:16 +0000
commit71da3d464f0e6bd17999a9b68fe11b8a0e810db9 (patch)
treead896d3b99b7ea8f5512cd08b362b0a08c85395c /sci-electronics
parentMarked ~hppa (bug #214957). (diff)
downloadgentoo-2-71da3d464f0e6bd17999a9b68fe11b8a0e810db9.tar.gz
gentoo-2-71da3d464f0e6bd17999a9b68fe11b8a0e810db9.tar.bz2
gentoo-2-71da3d464f0e6bd17999a9b68fe11b8a0e810db9.zip
Version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/gnucap/ChangeLog8
-rw-r--r--sci-electronics/gnucap/gnucap-0.35.20080324.ebuild74
2 files changed, 81 insertions, 1 deletions
diff --git a/sci-electronics/gnucap/ChangeLog b/sci-electronics/gnucap/ChangeLog
index 3b24540a1d63..c778e1a70965 100644
--- a/sci-electronics/gnucap/ChangeLog
+++ b/sci-electronics/gnucap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/gnucap
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.39 2008/03/15 16:45:57 calchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.40 2008/03/29 17:53:16 calchan Exp $
+
+*gnucap-0.35.20080324 (29 Mar 2008)
+
+ 29 Mar 2008; Denis Dupeyron <calchan@gentoo.org>
+ +gnucap-0.35.20080324.ebuild:
+ Version bump.
*gnucap-0.35.20080211 (15 Mar 2008)
diff --git a/sci-electronics/gnucap/gnucap-0.35.20080324.ebuild b/sci-electronics/gnucap/gnucap-0.35.20080324.ebuild
new file mode 100644
index 000000000000..90691251a9dd
--- /dev/null
+++ b/sci-electronics/gnucap/gnucap-0.35.20080324.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/gnucap-0.35.20080324.ebuild,v 1.1 2008/03/29 17:53:16 calchan Exp $
+
+inherit multilib
+
+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-ngspice17.tar.gz
+ http://www.gnucap.org/devel/${MY_PV}-models-spice3f5.tar.gz"
+HOMEPAGE="http://www.gnucap.org/"
+
+IUSE="doc examples"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="doc? ( virtual/tetex )"
+
+S="${WORKDIR}/${MY_PV}"
+
+src_unpack() {
+ unpack ${A} || die "Failed to unpack!"
+ cd "${S}"
+
+ # No need to install COPYING and INSTALL
+ sed -i \
+ -e 's: COPYING INSTALL::' \
+ -e 's:COPYING history INSTALL:history:' \
+ doc/Makefile.in || die "sed failed"
+
+ if ! use doc ; then
+ sed -i \
+ -e 's:SUBDIRS = doc examples man:SUBDIRS = doc examples:' \
+ Makefile.in || die "sed failed"
+ fi
+
+ if ! use examples ; then
+ sed -i \
+ -e 's:SUBDIRS = doc examples:SUBDIRS = doc:' \
+ Makefile.in || die "sed failed"
+ fi
+
+ sed -i -e "s:CFLAGS = -O2 -g:CFLAGS +=:" \
+ -e "s:CCFLAGS = \$(CFLAGS):CCFLAGS += \$(CFLAGS):" \
+ -e "s:../Gnucap:${S}/src:" \
+ models-*/Make2 || die "sed failed"
+}
+
+src_compile () {
+ econf --disable-dependency-tracking || die "Configuration failed"
+ emake || die "Compilation failed"
+ for PLUGIN_DIR in models-* ; do
+ cd "${S}/${PLUGIN_DIR}"
+ emake || die "Compilation failed in ${PLUGIN_DIR}"
+ done
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ 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##*/} \
+ || die "Installation of ${PLUGIN_DIR}/${PLUGIN} failed"
+ done
+ done
+}