diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2008-12-27 19:05:26 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2008-12-27 19:05:26 +0000 |
commit | 3fe1ffe3b1929e5df8737db5a2f9bf7d05b1a73b (patch) | |
tree | 7e06b9b4c147d183351c936bc79e19b6c936846a /sci-electronics | |
parent | Update HOMEPAGE and SRC_URI (bug #237242). Added desktop-misc herd to metadata. (diff) | |
download | gentoo-2-3fe1ffe3b1929e5df8737db5a2f9bf7d05b1a73b.tar.gz gentoo-2-3fe1ffe3b1929e5df8737db5a2f9bf7d05b1a73b.tar.bz2 gentoo-2-3fe1ffe3b1929e5df8737db5a2f9bf7d05b1a73b.zip |
Version bump.
(Portage version: 2.1.6.3/cvs/Linux 2.6.28-gentoo i686)
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/gnucap/ChangeLog | 8 | ||||
-rw-r--r-- | sci-electronics/gnucap/gnucap-0.35.20081223.ebuild | 78 |
2 files changed, 85 insertions, 1 deletions
diff --git a/sci-electronics/gnucap/ChangeLog b/sci-electronics/gnucap/ChangeLog index d80490e17583..d7ff8a1696d2 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.42 2008/11/02 22:31:20 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.43 2008/12/27 19:05:26 calchan Exp $ + +*gnucap-0.35.20081223 (27 Dec 2008) + + 27 Dec 2008; Denis Dupeyron <calchan@gentoo.org> + +gnucap-0.35.20081223.ebuild: + Version bump. 02 Nov 2008; Diego Pettenò <flameeyes@gentoo.org> gnucap-0.35.20080324.ebuild: diff --git a/sci-electronics/gnucap/gnucap-0.35.20081223.ebuild b/sci-electronics/gnucap/gnucap-0.35.20081223.ebuild new file mode 100644 index 000000000000..2492a50ea060 --- /dev/null +++ b/sci-electronics/gnucap/gnucap-0.35.20081223.ebuild @@ -0,0 +1,78 @@ +# 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.20081223.ebuild,v 1.1 2008/12/27 19:05:26 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-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="doc examples" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND="doc? ( virtual/latex-base )" + +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:doc examples:examples:' \ + Makefile.in || die "sed failed" + fi + + if ! use examples ; then + sed -i \ + -e 's:examples modelgen:modelgen:' \ + Makefile.in || die "sed failed" + 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 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 +} |