diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2007-11-28 22:47:42 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2007-11-28 22:47:42 +0000 |
commit | 3fedf763a137bd23c8af99f8fc26acb7d3168795 (patch) | |
tree | 1729c4b066d9467b639e4233723e8812a04f6842 /sci-electronics/gnucap | |
parent | sparc stable wrt #199979 (diff) | |
download | gentoo-2-3fedf763a137bd23c8af99f8fc26acb7d3168795.tar.gz gentoo-2-3fedf763a137bd23c8af99f8fc26acb7d3168795.tar.bz2 gentoo-2-3fedf763a137bd23c8af99f8fc26acb7d3168795.zip |
Version bump.
(Portage version: 2.1.3.19)
Diffstat (limited to 'sci-electronics/gnucap')
-rw-r--r-- | sci-electronics/gnucap/ChangeLog | 8 | ||||
-rw-r--r-- | sci-electronics/gnucap/files/digest-gnucap-0.35.20071121 | 12 | ||||
-rw-r--r-- | sci-electronics/gnucap/gnucap-0.35.20071121.ebuild | 81 |
3 files changed, 100 insertions, 1 deletions
diff --git a/sci-electronics/gnucap/ChangeLog b/sci-electronics/gnucap/ChangeLog index 0784dbf9e2e7..6f4ab7520bfa 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.37 2007/09/20 15:45:04 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnucap/ChangeLog,v 1.38 2007/11/28 22:47:41 calchan Exp $ + +*gnucap-0.35.20071121 (28 Nov 2007) + + 28 Nov 2007; Denis Dupeyron <calchan@gentoo.org> + +gnucap-0.35.20071121.ebuild: + Version bump. *gnucap-0.35.20070820 (20 Sep 2007) diff --git a/sci-electronics/gnucap/files/digest-gnucap-0.35.20071121 b/sci-electronics/gnucap/files/digest-gnucap-0.35.20071121 new file mode 100644 index 000000000000..9e00554883ba --- /dev/null +++ b/sci-electronics/gnucap/files/digest-gnucap-0.35.20071121 @@ -0,0 +1,12 @@ +MD5 21a1a610975879c626036fe69a305240 gnucap-2007-11-21-models-bsim.tar.gz 3144888 +RMD160 7bdc0e009b83d31b68625f34836c8157d8dec6c1 gnucap-2007-11-21-models-bsim.tar.gz 3144888 +SHA256 d7c253e560992f9a5316bce3e69bbf9cec04ca98100413956519fabb4e6fdcb5 gnucap-2007-11-21-models-bsim.tar.gz 3144888 +MD5 c54a2b2cc3b58ab8e481eac720fb6261 gnucap-2007-11-21-models-ngspice17.tar.gz 4562744 +RMD160 65bfb532e00d61272abe204d6646c0ffd7720f38 gnucap-2007-11-21-models-ngspice17.tar.gz 4562744 +SHA256 94024630ed6f8f676151c5def479636b774341ba353febb99cee505cff30068f gnucap-2007-11-21-models-ngspice17.tar.gz 4562744 +MD5 884e6b17a8803fd1b3f4ef959882d9d0 gnucap-2007-11-21-models-spice3f5.tar.gz 656796 +RMD160 fb81ed7a469b10f12ab13acad71232fec7a88c92 gnucap-2007-11-21-models-spice3f5.tar.gz 656796 +SHA256 0764e3a848e612b594a2e9487fce9f659c09b9342713febc84acb8e682443eb2 gnucap-2007-11-21-models-spice3f5.tar.gz 656796 +MD5 21361765ad9af623417f0a17daeedf87 gnucap-2007-11-21.tar.gz 1055987 +RMD160 efd9891658748dc8fe7006ed23ba9dda8937dd3e gnucap-2007-11-21.tar.gz 1055987 +SHA256 7ac7949b442b45ef36dc6376a056b9ea82a802263cfafc24e7f13bead8b9e5d9 gnucap-2007-11-21.tar.gz 1055987 diff --git a/sci-electronics/gnucap/gnucap-0.35.20071121.ebuild b/sci-electronics/gnucap/gnucap-0.35.20071121.ebuild new file mode 100644 index 000000000000..49a46ea5d476 --- /dev/null +++ b/sci-electronics/gnucap/gnucap-0.35.20071121.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.20071121.ebuild,v 1.1 2007/11/28 22:47:41 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 + + # 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 +} |