diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2009-08-26 18:36:00 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2009-08-26 18:36:00 +0000 |
commit | 520a940f996ed2289d7b4f0fd512ee6accd60226 (patch) | |
tree | 37ab14e5ca90626cd5377e3c5c8a22580f2b9eb3 /sci-mathematics/snns | |
parent | Version bump. Now gmp and gf2x are forced. Fixed parallel building, and hopef... (diff) | |
download | historical-520a940f996ed2289d7b4f0fd512ee6accd60226.tar.gz historical-520a940f996ed2289d7b4f0fd512ee6accd60226.tar.bz2 historical-520a940f996ed2289d7b4f0fd512ee6accd60226.zip |
Renaming netperf to snns-netperf to avoid file collision with net-analyzer/netperf, see bug #248322.
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/snns')
-rw-r--r-- | sci-mathematics/snns/ChangeLog | 13 | ||||
-rw-r--r-- | sci-mathematics/snns/Manifest | 13 | ||||
-rw-r--r-- | sci-mathematics/snns/snns-4.2-r8.ebuild | 126 |
3 files changed, 139 insertions, 13 deletions
diff --git a/sci-mathematics/snns/ChangeLog b/sci-mathematics/snns/ChangeLog index 4dc35969ea14..1bae933723db 100644 --- a/sci-mathematics/snns/ChangeLog +++ b/sci-mathematics/snns/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-mathematics/snns -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.13 2008/05/29 14:37:00 hawking Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.14 2009/08/26 18:36:00 phosphan Exp $ + + 26 Aug 2009; Patrick Kursawe <phosphan@gentoo.org> +snns-4.2-r8.ebuild: + Renaming netperf to snns-netperf to avoid file collision with + net-analyzer/netperf, see bug #248322. + +*snns-4.3 (07 Feb 2009) + + 07 Feb 2009; Patrick Kursawe <phosphan@gentoo.org> +snns-4.3.ebuild: + Upgrade to new version, almost identical to 4.2 + Python-patches. 29 May 2008; Ali Polatel <hawking@gentoo.org> snns-4.2-r7.ebuild: python_mod_compile is ROOT aware. Use ${python} instead of python. diff --git a/sci-mathematics/snns/Manifest b/sci-mathematics/snns/Manifest index 35b41b01a897..7c6ae6383bd4 100644 --- a/sci-mathematics/snns/Manifest +++ b/sci-mathematics/snns/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 4.2-fPIC-python.patch 498 RMD160 be146e394631ae87438e0066e054ec35a658a051 SHA1 68492b0ddeba8d9255910c18d5fc50781ff77415 SHA256 175ae2fa3ceebb288d5a634b2f65f778f6cced9f35f369b0dbda20011fb3c8c6 DIST PySNNS-20040605.tar.gz 20158 RMD160 d5cb5ae94c6690859021904c225caa4c93ae1682 SHA1 4ae6e47c8a16278c8c142431307c781e79b4c6c4 SHA256 c2dff5a88faa756546dac1c850d5196d8bba39f793537c5ebcaa61e21f0db317 DIST PythonFunctionSupport-20050210.patch.gz 15728 RMD160 c1f08db206c42d174a9eed4759bb98d7c401123c SHA1 efd9210f092f26dde9db99a3105dfe30c7b5c84b SHA256 c507c70aa158ffb1422aeef693d45f2e8486b1fc7056142736796dd4273f4869 @@ -8,12 +5,6 @@ DIST SNNSv4.2.Manual.pdf 2103861 RMD160 b0eaddb650303d622001961d74c22cd386218dfa DIST SNNSv4.2.tar.gz 2170375 RMD160 c27cb08d8838732aea76dc7315fd691d0c9bfb1c SHA1 ccdb91681e43bce68c90558bbf103e7f6417e3fc SHA256 13a36eb7e7838cc7df92a2eaa36c955579a99007c2936d85c20ec0c6a3036c38 DIST snns-4.2-20040227.patch.gz 55476 RMD160 d4cb5abd4f18c6642ac0f8b438e4bd2dfccd83d1 SHA1 d683b4034a5b4a043155091498485becda248a80 SHA256 08a5fa51552b33e5e981d68cbf05792d40d6d0015abad090697b6f88544d3468 EBUILD snns-4.2-r7.ebuild 3032 RMD160 cb87a5366e2d5051565121776ac697e5ffcec83c SHA1 859c11938b3f114fb92386a25ee62c3895c47b11 SHA256 2ec372ab6d889013b624a0ac602705eb3f4f1d9bc827b8043a5999329f934836 -MISC ChangeLog 3873 RMD160 9328ae59e9ebbe06c6e12fa91f26b972373dd1b2 SHA1 3f40e69300e4bac3346b01285dfe8748df291cf7 SHA256 a05f0c2c0d9d137383f4dd103f303e41797c166a76013ee32bbb60a164f3178e +EBUILD snns-4.2-r8.ebuild 3087 RMD160 71b19ca4cc2aba2edd7178b9850478096ff3da6c SHA1 b5cd30228ec059b5c125a42b005bb71cf2a3be9d SHA256 050801c8caf2bfc68327755ea3a52d0528c9a0ecc071c5a3d71b7fcc7aa1897f +MISC ChangeLog 4219 RMD160 00de38685afb6c6120bd2413cbb28e5d250380a9 SHA1 73677ba11de24e710070d65fb0628a1d1d7432da SHA256 aaf6d42fa0fc956ccd7cb527ad6a9deaa7830c4476dfc0083b5c879b0bba3520 MISC metadata.xml 232 RMD160 076c48571eef156f7018cfa1655e3a9b2b7194c6 SHA1 032c5ffd7629e1396555e21126bb4666e6441e81 SHA256 26a24f64d408db8eb5d2f94111a10b3d651f0b83fb322262b47f869d6689f74f ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkg+v48ACgkQQU4yORhF8iCxbACbBxDy5o5Uc13OdTj1qGlOcL8F -SrcAnicb5yxkF1cQly17ezjBHvsVTGgt -=AzZ3 ------END PGP SIGNATURE----- diff --git a/sci-mathematics/snns/snns-4.2-r8.ebuild b/sci-mathematics/snns/snns-4.2-r8.ebuild new file mode 100644 index 000000000000..fcae95c4c38a --- /dev/null +++ b/sci-mathematics/snns/snns-4.2-r8.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r8.ebuild,v 1.3 2009/08/26 18:36:00 phosphan Exp $ + +inherit eutils python multilib + +MY_P="SNNSv${PV}" +MYPATCH="${P}-20040227" +MYPYTHONEXT="PySNNS-20040605" +MYPYTHONPATCH="PythonFunctionSupport-20050210.patch" + +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 + http://download.berlios.de/snns-dev/${MYPYTHONPATCH}.gz )" + +LICENSE="SNNS-${PV}" +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" +IUSE="X doc python" + +DEPEND="X? ( x11-proto/xproto + 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 + if use python; then + unpack ${MYPYTHONEXT}.tar.gz + + cd "${S}" + epatch "${FILESDIR}"/${PV}-fPIC-python.patch + cd "${WORKDIR}" + unpack ${MYPYTHONPATCH}.gz + cd "${S}" + epatch "${WORKDIR}"/${MYPYTHONPATCH} + fi + cd "${S}"/xgui/sources + for file in *.c; do + sed -e "s:X11/Xaw/:X11/Xaw3d/:g" -i "${file}" + done +} + +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" + # parallel make sometimes fails (phosphan) + make ${compileopts} || die "make failed" + + if use python; then + python_version + 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 + + mv ${D}/usr/bin/netperf ${D}/usr/bin/snns-netperf + + 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 + python_version + cd python + ${python} setup.py install --prefix="${D}"/usr || die "could not install python module" + cp -pPR 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 \ + /usr/$(get_libdir)/python${PYVER}/site-packages/snns/${file} + done + fi +} + +pkg_postrm() { + if use python; then + einfo "Cleaning up python stuff" + python_mod_cleanup + fi +} |