diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2007-09-20 15:45:04 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2007-09-20 15:45:04 +0000 |
commit | c7126249efbd83d7c0cea7ecf9696b030c09a209 (patch) | |
tree | 54ccc8f425c5480302970773f467169b174e3a52 /sci-electronics | |
parent | Version bump. (diff) | |
download | gentoo-2-c7126249efbd83d7c0cea7ecf9696b030c09a209.tar.gz gentoo-2-c7126249efbd83d7c0cea7ecf9696b030c09a209.tar.bz2 gentoo-2-c7126249efbd83d7c0cea7ecf9696b030c09a209.zip |
Version bump.
(Portage version: 2.1.3.9)
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/gnucap/ChangeLog | 8 | ||||
-rw-r--r-- | sci-electronics/gnucap/files/digest-gnucap-0.35.20070820 | 12 | ||||
-rw-r--r-- | sci-electronics/gnucap/gnucap-0.35.20070820.ebuild | 81 |
3 files changed, 100 insertions, 1 deletions
diff --git a/sci-electronics/gnucap/ChangeLog b/sci-electronics/gnucap/ChangeLog index f9124d23129b..0784dbf9e2e7 100644 --- a/sci-electronics/gnucap/ChangeLog +++ b/sci-electronics/gnucap/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-electronics/gnucap # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.36 2007/02/27 18:51:59 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.37 2007/09/20 15:45:04 calchan Exp $ + +*gnucap-0.35.20070820 (20 Sep 2007) + + 20 Sep 2007; Denis Dupeyron <calchan@gentoo.org> + +gnucap-0.35.20070820.ebuild: + Version bump. 27 Feb 2007; Denis Dupeyron <calchan@gentoo.org> -gnucap-20060708.ebuild, -gnucap-20060830.ebuild: diff --git a/sci-electronics/gnucap/files/digest-gnucap-0.35.20070820 b/sci-electronics/gnucap/files/digest-gnucap-0.35.20070820 new file mode 100644 index 000000000000..1915afa738ed --- /dev/null +++ b/sci-electronics/gnucap/files/digest-gnucap-0.35.20070820 @@ -0,0 +1,12 @@ +MD5 32dbbc559b32871c5d6f0c4437c66fc0 gnucap-2007-08-20-bsim-models.tar.gz 3156966 +RMD160 d07d5c1ce03ecb355f0566ebf79cf383451b081c gnucap-2007-08-20-bsim-models.tar.gz 3156966 +SHA256 12a1962cf7a23f2c3137bc7bd1bb101e6dad24ea32c412cd08a92e4197e2377a gnucap-2007-08-20-bsim-models.tar.gz 3156966 +MD5 e070b16c198aee97fe8cdb94da67634e gnucap-2007-08-20-ngspice17-models.tar.gz 4357364 +RMD160 a2689a39f0a33f349a617aaaf613156ba26b724f gnucap-2007-08-20-ngspice17-models.tar.gz 4357364 +SHA256 0ce9dcf087e5b198256548892b682b7e1e9dc5ebd5d34ccb82656e69bf432644 gnucap-2007-08-20-ngspice17-models.tar.gz 4357364 +MD5 c65bcc808107da6ae52b79dfc2d0c8b1 gnucap-2007-08-20-spice3f5-models.tar.gz 525680 +RMD160 acaec444edb6c38bea3eed8ebb73dbc10a8e34d8 gnucap-2007-08-20-spice3f5-models.tar.gz 525680 +SHA256 2e6f6d344c1f05ee40579ea6ef62b8c14c05967c277b1696d4a42bea5f361746 gnucap-2007-08-20-spice3f5-models.tar.gz 525680 +MD5 94f5422b04d42768deb9ec09c07d5d11 gnucap-2007-08-20.tar.gz 1047629 +RMD160 e7a97b8552cc83004fabf0587b0afcec33f909d0 gnucap-2007-08-20.tar.gz 1047629 +SHA256 366ea1f72f74adc7f09fd7d2b16a28ee8aeebdc8d16470c08e673d6eb14c42e3 gnucap-2007-08-20.tar.gz 1047629 diff --git a/sci-electronics/gnucap/gnucap-0.35.20070820.ebuild b/sci-electronics/gnucap/gnucap-0.35.20070820.ebuild new file mode 100644 index 000000000000..9f149826001a --- /dev/null +++ b/sci-electronics/gnucap/gnucap-0.35.20070820.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/gnucap-0.35.20070820.ebuild,v 1.1 2007/09/20 15:45:04 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}-bsim-models.tar.gz + http://www.gnucap.org/devel/${MY_PV}-ngspice17-models.tar.gz + http://www.gnucap.org/devel/${MY_PV}-spice3f5-models.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 + + # Move all plugins in the same directory so that it's easier to iterate through them + # without having to change the code every time they change + mkdir plugins + for PLUGIN_DIR in ../* ; do + if [[ ${PLUGIN_DIR} != "../${MY_PV}" ]] ; then mv ${PLUGIN_DIR} plugins ; fi + done + + sed -i -e "s:CFLAGS = -O2 -g:CFLAGS +=:" \ + -e "s:CCFLAGS = \$(CFLAGS):CCFLAGS += \$(CFLAGS):" \ + -e "s:../Gnucap:${S}/src:" \ + plugins/*/Make2 || die "sed failed" +} + +src_compile () { + econf --disable-dependency-tracking || die "Configuration failed" + emake || die "Compilation failed" + for PLUGIN_DIR in plugins/* ; 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 plugins/* ; 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 +} |