diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:31:38 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:31:38 +0000 |
commit | 8fd2c04486373912e603d3f660c399408be52001 (patch) | |
tree | 9e6ab691002f3e02054a645762808262c8463c6d /sci-mathematics/snns | |
parent | Moving to sci-mathematics/snns (diff) | |
download | gentoo-2-8fd2c04486373912e603d3f660c399408be52001.tar.gz gentoo-2-8fd2c04486373912e603d3f660c399408be52001.tar.bz2 gentoo-2-8fd2c04486373912e603d3f660c399408be52001.zip |
Moved from app-sci/snns to sci-mathematics/snns.
Diffstat (limited to 'sci-mathematics/snns')
-rw-r--r-- | sci-mathematics/snns/ChangeLog | 69 | ||||
-rw-r--r-- | sci-mathematics/snns/Manifest | 6 | ||||
-rw-r--r-- | sci-mathematics/snns/files/digest-snns-4.2-r4 | 3 | ||||
-rw-r--r-- | sci-mathematics/snns/files/digest-snns-4.2-r6 | 4 | ||||
-rw-r--r-- | sci-mathematics/snns/metadata.xml | 8 | ||||
-rw-r--r-- | sci-mathematics/snns/snns-4.2-r4.ebuild | 70 | ||||
-rw-r--r-- | sci-mathematics/snns/snns-4.2-r6.ebuild | 106 |
7 files changed, 266 insertions, 0 deletions
diff --git a/sci-mathematics/snns/ChangeLog b/sci-mathematics/snns/ChangeLog new file mode 100644 index 000000000000..cd03233d9e7b --- /dev/null +++ b/sci-mathematics/snns/ChangeLog @@ -0,0 +1,69 @@ +# ChangeLog for app-sci/snns +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.1 2004/12/28 15:31:38 ribosome Exp $ + +*snns-4.2-r4 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +snns-4.2-r4.ebuild, +snns-4.2-r6.ebuild: + Moved from app-sci/snns to sci-mathematics/snns. + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> snns-4.2-r4.ebuild: + virtual/glibc -> virtual/libc + +*snns-4.2-r6 (05 Jun 2004) + + 05 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r6.ebuild: + Documentation of the python extension is in a usable state now. + + 02 Jun 2004; Aron Griffis <agriffis@gentoo.org> snns-4.2-r4.ebuild: + Fix use invocation + +*snns-4.2-r5 (01 Jun 2004) + + 01 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r5.ebuild: + Integrated the python bindings from the snns-dev project. + + 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> snns-4.2-r4.ebuild: + Add die following econf for bug 48950 + + 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r3.ebuild, + snns-4.2-r4.ebuild, files/snns-4.2-gentoo.patch: + Bump to stable, cleanup. + + 01 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r3.ebuild: + replacing patch by epatch + + 17 Mar 2004; David Holm <dholm@gentoo.org> snns-4.2-r4.ebuild: + Added to ~ppc. + +*snns-4.2-r4 (17 Mar 2004) + + 17 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r2.ebuild, + snns-4.2-r4.ebuild: + Getting external patch from snns-dev project. + +*snns-4.2-r3 (22 Sep 2003) + + 22 Sep 2003; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r3.ebuild: + Fixing bug 25429 by linking with Xaw3d instead of Xaw. Increased some static + buffer sizes to make crashes a bit less likely. + + 30 Jul 2003; Patrick Kursawe <phosphan@gentoo.org> snns-4.2-r1.ebuild, + snns-4.2.ebuild: + Cleanup + +*snns-4.2-r2 (11 Nov 2002) + + 11 Nov 2002; Mike Frysinger <vapier@gentoo.org> : + Tweaked ebuild a little bit more per #10390 + +*snns-4.2-r1 (08 Nov 2002) + + 08 Nov 2002; Mike Frysinger <vapier@gentoo.org> : + Added ability to use X or not ... #10390 + +*snns-4.2 (08 Nov 2002) + + 08 Nov 2002; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Patrick Kursawe <patrick.kursawe@web.de>. diff --git a/sci-mathematics/snns/Manifest b/sci-mathematics/snns/Manifest new file mode 100644 index 000000000000..aaaae618ecf5 --- /dev/null +++ b/sci-mathematics/snns/Manifest @@ -0,0 +1,6 @@ +MD5 965a49cb6e92cb30aa26a1397e1f34ed snns-4.2-r4.ebuild 1633 +MD5 3f45feb1ab7562379faba5558b15a226 snns-4.2-r6.ebuild 2518 +MD5 9316c9bef19882d7d4d764aa031ea4cf ChangeLog 2097 +MD5 c000c0728c9136f1b54cbc3a5fc07644 metadata.xml 220 +MD5 409a7ed863845a91ab923aee9873a062 files/digest-snns-4.2-r4 196 +MD5 13bc6c016dc3aa799a25598dead6346e files/digest-snns-4.2-r6 262 diff --git a/sci-mathematics/snns/files/digest-snns-4.2-r4 b/sci-mathematics/snns/files/digest-snns-4.2-r4 new file mode 100644 index 000000000000..58ea19932b04 --- /dev/null +++ b/sci-mathematics/snns/files/digest-snns-4.2-r4 @@ -0,0 +1,3 @@ +MD5 4609dfd61714bfbb0842d4e8e905e584 SNNSv4.2.tar.gz 2170375 +MD5 73a999a41bb91a4f8b5653ddddfcc527 snns-4.2-20040227.patch.gz 55476 +MD5 e91242fdc43877013ade3b5f2213659a SNNSv4.2.Manual.pdf 2103861 diff --git a/sci-mathematics/snns/files/digest-snns-4.2-r6 b/sci-mathematics/snns/files/digest-snns-4.2-r6 new file mode 100644 index 000000000000..d3e961a5e2c2 --- /dev/null +++ b/sci-mathematics/snns/files/digest-snns-4.2-r6 @@ -0,0 +1,4 @@ +MD5 4609dfd61714bfbb0842d4e8e905e584 SNNSv4.2.tar.gz 2170375 +MD5 73a999a41bb91a4f8b5653ddddfcc527 snns-4.2-20040227.patch.gz 55476 +MD5 e91242fdc43877013ade3b5f2213659a SNNSv4.2.Manual.pdf 2103861 +MD5 fd63676eabeab8c633b176c01cbf8d44 PySNNS-20040605.tar.gz 20158 diff --git a/sci-mathematics/snns/metadata.xml b/sci-mathematics/snns/metadata.xml new file mode 100644 index 000000000000..b50113d200ac --- /dev/null +++ b/sci-mathematics/snns/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>phosphan@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/sci-mathematics/snns/snns-4.2-r4.ebuild b/sci-mathematics/snns/snns-4.2-r4.ebuild new file mode 100644 index 000000000000..806087da56ef --- /dev/null +++ b/sci-mathematics/snns/snns-4.2-r4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r4.ebuild,v 1.1 2004/12/28 15:31:38 ribosome Exp $ + +inherit eutils + +MY_P="SNNSv${PV}" +MYPATCH="${P}-20040227" +DESCRIPTION="Stuttgart Neural Network Simulator" +HOMEPAGE="http://www-ra.informatik.uni-tuebingen.de/SNNS/" +SRC_URI="http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.tar.gz + http://download.berlios.de/snns-dev/${MYPATCH}.patch.gz + doc? ( http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.Manual.pdf )" + +LICENSE="SNNS-${PV}" +KEYWORDS="x86 ppc" +SLOT="0" +IUSE="X doc" + +DEPEND="X? ( virtual/x11 + x11-libs/Xaw3d ) + >=sys-apps/sed-4 + virtual/libc" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${MY_P}.tar.gz + unpack ${MYPATCH}.patch.gz + epatch ${MYPATCH}.patch +} + +src_compile() { + local myconf="--enable-global" + local compileopts="compile-kernel compile-tools" + + if use X ; then + myconf="${myconf} --with-x" + compileopts="${compileopts} compile-xgui" + else + myconf="${myconf} --without-x" + fi + + econf ${myconf} || die "econf failed" + emake ${compileopts} || die "emake failed" +} + +src_install() { + for file in `find tools -type f -perm +100`; do + dobin $file + done + + if use X ; then + newbin xgui/sources/xgui snns + + dodir /etc/env.d + echo XGUILOADPATH=/usr/share/doc/${PF}/ > ${D}/etc/env.d/99snns + + insinto /usr/share/doc/${PF} + doins default.cfg help.hdoc + fi + + insinto /usr/share/doc/${PF} + use doc && doins ${DISTDIR}/${MY_P}.Manual.pdf + + insinto /usr/share/doc/${PF}/examples + doins examples/* + + doman man/man*/* +} diff --git a/sci-mathematics/snns/snns-4.2-r6.ebuild b/sci-mathematics/snns/snns-4.2-r6.ebuild new file mode 100644 index 000000000000..89e3cf07d19e --- /dev/null +++ b/sci-mathematics/snns/snns-4.2-r6.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r6.ebuild,v 1.1 2004/12/28 15:31:38 ribosome Exp $ + +inherit eutils python + +MY_P="SNNSv${PV}" +MYPATCH="${P}-20040227" +MYPYTHONEXT="PySNNS-20040605" + +DESCRIPTION="Stuttgart Neural Network Simulator" +HOMEPAGE="http://www-ra.informatik.uni-tuebingen.de/SNNS/" +SRC_URI="http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.tar.gz + http://download.berlios.de/snns-dev/${MYPATCH}.patch.gz + doc? ( http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/${MY_P}.Manual.pdf ) + python? ( http://download.berlios.de/snns-dev/${MYPYTHONEXT}.tar.gz )" + +LICENSE="SNNS-${PV}" +KEYWORDS="x86" +SLOT="0" +IUSE="X doc python" + +DEPEND="X? ( virtual/x11 + x11-libs/Xaw3d ) + >=sys-apps/sed-4 + python? ( >=dev-lang/python-2.3 )" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${MY_P}.tar.gz + unpack ${MYPATCH}.patch.gz + epatch ${MYPATCH}.patch + use python && unpack ${MYPYTHONEXT}.tar.gz +} + +src_compile() { + local myconf="--enable-global" + local compileopts="compile-kernel compile-tools" + + if use X; then + myconf="${myconf} --with-x" + compileopts="${compileopts} compile-xgui" + else + myconf="${myconf} --without-x" + fi + + econf ${myconf} || die "econf failed" + emake ${compileopts} || die "emake failed" + + if use python; then + cd python + python setup.py build || die "could not build python extension" + fi +} + +src_install() { + for file in `find tools -type f -perm +100`; do + dobin $file + done + + if use X; then + newbin xgui/sources/xgui snns + + dodir /etc/env.d + echo XGUILOADPATH=/usr/share/doc/${PF}/ > ${D}/etc/env.d/99snns + + insinto /usr/share/doc/${PF} + doins default.cfg help.hdoc + fi + + if use python; then + cd python + python setup.py install --prefix=${D}/usr || die "could not install python module" + cp -a examples ${D}/usr/share/doc/${PF}/python-examples + chmod +x ${D}/usr/share/doc/${PF}/python-examples/*.py + newdoc README README.python + cd ${S} + fi + + insinto /usr/share/doc/${PF} + use doc && doins ${DISTDIR}/${MY_P}.Manual.pdf + + insinto /usr/share/doc/${PF}/examples + doins examples/* + + doman man/man*/* +} + +pkg_postinst() { + if use python; then + einfo "Pre-compiling Python module" + python_version + for file in __init__.py util.py; do + python_mod_compile \ + ${ROOT}/usr/lib/python${PYVER}/site-packages/snns/${file} + done + fi +} + +pkg_postrm() { + if use python; then + einfo "Cleaning up python stuff" + python_mod_cleanup + fi +} |