diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-05-29 14:37:00 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-05-29 14:37:00 +0000 |
commit | 775b62c5b5297d5495c60e074149f7b315914b09 (patch) | |
tree | 9203e98afadad20bdf7f848a702a32d37bf0ac0c /sci-mathematics | |
parent | python_mod_compile is ROOT aware. Fixed python_mod_cleanup. (diff) | |
download | historical-775b62c5b5297d5495c60e074149f7b315914b09.tar.gz historical-775b62c5b5297d5495c60e074149f7b315914b09.tar.bz2 historical-775b62c5b5297d5495c60e074149f7b315914b09.zip |
python_mod_compile is ROOT aware. Use ${python} instead of python. Quoting.
Package-Manager: portage-2.1.5.2
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/snns/ChangeLog | 8 | ||||
-rw-r--r-- | sci-mathematics/snns/Manifest | 14 | ||||
-rw-r--r-- | sci-mathematics/snns/snns-4.2-r7.ebuild | 36 |
3 files changed, 37 insertions, 21 deletions
diff --git a/sci-mathematics/snns/ChangeLog b/sci-mathematics/snns/ChangeLog index 0f0fbd4d9d44..4dc35969ea14 100644 --- a/sci-mathematics/snns/ChangeLog +++ b/sci-mathematics/snns/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-mathematics/snns -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.12 2007/07/22 06:58:17 dberkholz Exp $ +# 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 $ + + 29 May 2008; Ali Polatel <hawking@gentoo.org> snns-4.2-r7.ebuild: + python_mod_compile is ROOT aware. Use ${python} instead of python. + Quoting. 22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; snns-4.2-r7.ebuild: Drop virtual/x11 references. diff --git a/sci-mathematics/snns/Manifest b/sci-mathematics/snns/Manifest index 506e7967b1db..35b41b01a897 100644 --- a/sci-mathematics/snns/Manifest +++ b/sci-mathematics/snns/Manifest @@ -1,9 +1,19 @@ +-----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 DIST SNNSv4.2.Manual.pdf 2103861 RMD160 b0eaddb650303d622001961d74c22cd386218dfa SHA1 491575c7eb16d0274ecd25da13186af29807d638 SHA256 ffed74a4d63f78b8bf8a400a18ce32c3e8d8b3e89682394cc6af122c097aba62 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 2958 RMD160 198de52be0166882c1fd19171a3ace57bc4600c9 SHA1 e7d3a7450ae3e8cffbaec0356e4eeb885f16aa13 SHA256 59d74554062d83ec6dffc6cd76d01debf142367f2006a2b6c6caca5ddb0de82f -MISC ChangeLog 3726 RMD160 4edd85ae90470a479a14d6850e7946363f831eb9 SHA1 3b28223add056dfe278bc9bcecf273709460ef2b SHA256 8768c986a8643f29086b5a403d38392e7f8d9540928f304630f75a031ff4e1e6 +EBUILD snns-4.2-r7.ebuild 3032 RMD160 cb87a5366e2d5051565121776ac697e5ffcec83c SHA1 859c11938b3f114fb92386a25ee62c3895c47b11 SHA256 2ec372ab6d889013b624a0ac602705eb3f4f1d9bc827b8043a5999329f934836 +MISC ChangeLog 3873 RMD160 9328ae59e9ebbe06c6e12fa91f26b972373dd1b2 SHA1 3f40e69300e4bac3346b01285dfe8748df291cf7 SHA256 a05f0c2c0d9d137383f4dd103f303e41797c166a76013ee32bbb60a164f3178e 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-r7.ebuild b/sci-mathematics/snns/snns-4.2-r7.ebuild index 749cdd6fb8b6..54fefcb56b83 100644 --- a/sci-mathematics/snns/snns-4.2-r7.ebuild +++ b/sci-mathematics/snns/snns-4.2-r7.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild,v 1.8 2007/07/22 06:58:17 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild,v 1.9 2008/05/29 14:37:00 hawking Exp $ -inherit eutils python +inherit eutils python multilib MY_P="SNNSv${PV}" MYPATCH="${P}-20040227" @@ -36,14 +36,14 @@ src_unpack() { if use python; then unpack ${MYPYTHONEXT}.tar.gz - cd ${S} - epatch ${FILESDIR}/${PV}-fPIC-python.patch - cd ${WORKDIR} + cd "${S}" + epatch "${FILESDIR}"/${PV}-fPIC-python.patch + cd "${WORKDIR}" unpack ${MYPYTHONPATCH}.gz - cd ${S} - epatch ${WORKDIR}/${MYPYTHONPATCH} + cd "${S}" + epatch "${WORKDIR}"/${MYPYTHONPATCH} fi - cd ${S}/xgui/sources + cd "${S}"/xgui/sources for file in *.c; do sed -e "s:X11/Xaw/:X11/Xaw3d/:g" -i "${file}" done @@ -65,8 +65,9 @@ src_compile() { make ${compileopts} || die "make failed" if use python; then + python_version cd python - python setup.py build || die "could not build python extension" + ${python} setup.py build || die "could not build python extension" fi } @@ -79,23 +80,24 @@ src_install() { newbin xgui/sources/xgui snns dodir /etc/env.d - echo XGUILOADPATH=/usr/share/doc/${PF}/ > ${D}/etc/env.d/99snns + 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 + ${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} + cd "${S}" fi insinto /usr/share/doc/${PF} - use doc && doins ${DISTDIR}/${MY_P}.Manual.pdf + use doc && doins "${DISTDIR}"/${MY_P}.Manual.pdf insinto /usr/share/doc/${PF}/examples doins examples/* @@ -109,7 +111,7 @@ pkg_postinst() { python_version for file in __init__.py util.py; do python_mod_compile \ - ${ROOT}/usr/lib/python${PYVER}/site-packages/snns/${file} + /usr/$(get_libdir)/python${PYVER}/site-packages/snns/${file} done fi } |