diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-08-26 09:27:16 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-08-26 09:27:16 +0000 |
commit | 437e2c283ab1b40269fc85554ee807b71fc9b64f (patch) | |
tree | 8068ad69745642cb13a1ae304dc0a44849b0a875 /sci-chemistry/ccpn | |
parent | Remove old (diff) | |
download | historical-437e2c283ab1b40269fc85554ee807b71fc9b64f.tar.gz historical-437e2c283ab1b40269fc85554ee807b71fc9b64f.tar.bz2 historical-437e2c283ab1b40269fc85554ee807b71fc9b64f.zip |
sci-chemistry/ccpn: Todays python Patches
Package-Manager: portage-2.2.0_alpha122/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/ccpn')
-rw-r--r-- | sci-chemistry/ccpn/ChangeLog | 7 | ||||
-rw-r--r-- | sci-chemistry/ccpn/Manifest | 10 | ||||
-rw-r--r-- | sci-chemistry/ccpn/ccpn-2.2.2_p120826.ebuild | 180 |
3 files changed, 192 insertions, 5 deletions
diff --git a/sci-chemistry/ccpn/ChangeLog b/sci-chemistry/ccpn/ChangeLog index 9b8ae8d7c35f..f5d7f8bd5f03 100644 --- a/sci-chemistry/ccpn/ChangeLog +++ b/sci-chemistry/ccpn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-chemistry/ccpn # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.91 2012/08/12 09:19:09 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.92 2012/08/26 09:27:16 jlec Exp $ + +*ccpn-2.2.2_p120826 (26 Aug 2012) + + 26 Aug 2012; Justin Lecher <jlec@gentoo.org> +ccpn-2.2.2_p120826.ebuild: + Todays python Patches *ccpn-2.2.2_p120812 (12 Aug 2012) diff --git a/sci-chemistry/ccpn/Manifest b/sci-chemistry/ccpn/Manifest index 899096d19e1b..508e9fdd2df1 100644 --- a/sci-chemistry/ccpn/Manifest +++ b/sci-chemistry/ccpn/Manifest @@ -28,6 +28,7 @@ DIST ccpn-update-2.2.2-120709.patch.xz 36136 SHA256 b51c9517a8bc493402dfa73f8d0a DIST ccpn-update-2.2.2-120731.patch.xz 43592 SHA256 73949616d170606b7ebb12d24f409bbef82515fad4fedd1877894944f68fff36 SHA512 7b1163ca7ad7a1fcaa0dc4433b9f3a254429b5df80ae5fb4b7988b23d65351a15a9629970959f8c4bfaf8570d375bf229f9243dc29230c1797b124e95cea9d78 WHIRLPOOL f5b169a776348de9e91c83fa3f2035eecb3d5caea96af2f85945adeba7fa8641e931b404bf0b8c17966a02d92413b091774720811fccc35ed0c7d992e4001cc4 DIST ccpn-update-2.2.2-120809.patch.xz 45296 SHA256 b0fa50a3f6fc9acbd45f2a11b0020a14817a064cffd8e0d168ad925416265564 SHA512 b0af882d7167b8024822ff195e91618e1a03f0b9368e29ac75ce75e47644e37ce570fccc1fa8f9a6e8c093097691aa4e6e700836641bbdbb059ac2153849c693 WHIRLPOOL 002b6f590a1defb12944d79fa24c2a35502a568b7bde5d162505e0c50b136307795b70ba24a56a80838bf195f69cba609cc7ea9e3b3c716083b94be1ed926c07 DIST ccpn-update-2.2.2-120812.patch.xz 45836 SHA256 81071c680018250e3ab4e2a279b121a5e073a77e7d6a75a0a8fe1521177d83ca SHA512 b98a537334c142ad8dd9b4f0e77177a08c17208e60c2ae4b29cc4022c3ed044c7a09428b1109c9e8468db6204e23346344cbcfd241dcde49368e3bc3f8d98141 WHIRLPOOL ab68ca3204e2b95e53ffc2440e15639976c9a9e63b7774b0bf2b95e218929a97d31750622a533fe5a965155363318c0a42faa8b66892f21ed849cf0d41682180 +DIST ccpn-update-2.2.2-120826.patch.xz 47148 SHA256 89bd0c49f47340375adba1c5bed08da0575d44480d4ed70327f2d8fe0ec66fb3 SHA512 eec0133ef318ca0f3c3b0bddd54561a750cfe4f55eb5915248e921bf452c93791a9ef9203e9de03001eae9dff028187a637ce2cf0f147ff5f064bead784f911e WHIRLPOOL ab8f1768a58e6dbbed0b01940944d2a04bfa415550a731ec2e6b7e698eb52968043d6bfd60a714bd33b9c3a191990736612bce5fb672f882015a1f785f193cdc EBUILD ccpn-2.1.3.1_p100806.ebuild 5181 SHA256 c3ba268461da63ea23ee7f621a8e4837a368eb3e4c85bcc5245250fb6b377b58 SHA512 701ea90a13dc44e5bf1ea17c0f69adea56b1c14788ab79c67fa4b9726cae532998717515568045aec9bb4e1dd4c352227130115d90c50bf07e7fd132cdee385d WHIRLPOOL 898a618f95b254785739e6fab20af333cb3a44bff12cd6840d1b111f1588a60e48055e8af7ca88457173452f6acba86ebd3bada96390211bc4cd063fe4160fd5 EBUILD ccpn-2.2.1_p120109.ebuild 5784 SHA256 b4b08ff9094119e5bd50066f72d41927bd3bbe840c0985f49c585501925ba593 SHA512 37ff9cb372f395cb0497db2bf396e523b7a1ec16f03670425b6f5807a7ab15eae4718fd248af81ef9fdf5c4fbbd4f824d1d9c982c3aa9aefa57ce330b438b559 WHIRLPOOL b3b42229f7d32caffe7f81ddefbdce225438c07c203c67ee1a514e48b923e014166d3fd63601a4d9f2845c4b4aa9b8df98aa65e5c3dfc81ab1f0d7ac501eb6a2 EBUILD ccpn-2.2.1_p120304.ebuild 5784 SHA256 387882b2a69b312bfe9d7edaaf8a2dc399e1d3d16f62e3b250d91207e64c3f72 SHA512 63596f039c56d69815d9250581dd41c61309a277e67d1ede04b7c4cdf7249af614e5a9f653d013bd2e63d25f54e3f07e9612efde04a39d141c6a202123211b3d WHIRLPOOL 87400bca5581904c5f0e0f43ca3bd375338f46082236128e01b93edc4ce791fe71da8e3c3b625ea7346d824ddfd9f2f57696642abbcaea5f29405e9b99f43b37 @@ -39,13 +40,14 @@ EBUILD ccpn-2.2.2_p120709.ebuild 4799 SHA256 c757f21a728d4321577fcee7f3ee2346d68 EBUILD ccpn-2.2.2_p120731.ebuild 4799 SHA256 e995094ac244da2cc73f519f6dc736edeba4d17ec863664e404a92c11a324483 SHA512 6861ac7f14559109593e3f166a7128c7c29135f84bdc12df04602181b36402b8446d762883c97f4c48ddc1995bed6cdfbc11ecc05e2bf8763655760ec59666b5 WHIRLPOOL b46af9e9b039fd7d702e113d612169bd38691504ae7a46a98f11281f0de6dcbd00d1c34d3b404a27f180d553a4f0e9b38477bfd1bb8eed4757e4540775d5152b EBUILD ccpn-2.2.2_p120809-r1.ebuild 4802 SHA256 bccdcdd8e479f2310b794188028402ccbcf021eb9ae433410dfcb22475d853ed SHA512 b912be59f726fecaa41a90fe1fa7e76dbce1a8651481b3321f9f714dc16c4370c28256bee2d11c0c684d7e34279fefde4d905ba93a58708a119521ca92ad17ec WHIRLPOOL da166beb37382249002f4f108cb2be86e5ae81ab14c9ab34581c18318822e722f7176cbc113ca2779c4c0228c6cf313e5818a3037d24deb8ec9ead0ce90488cf EBUILD ccpn-2.2.2_p120812.ebuild 4799 SHA256 5d12d6a86f9d695c257d3665f7933d2a8ee3065363ecc05854f83ba33d6a9018 SHA512 bb8506aceb25cf0131a08e482c594d9333a054bebf91e2334268ea99c124f83b6b4f8c0fbd81a82eb315c1429527b903c291dddec7df8105aff8149b19eaf435 WHIRLPOOL 4fc777f362c838e0c7ecec4f538efce7740c55d36ccb888761cb4869fb68442ee45431e49138b49aa151b80af2588e3b38ca7a9c2034f1c509fad69bea0db5cc -MISC ChangeLog 18186 SHA256 ca7fc45a0e48bf46d0e6fed0c8d2e284d58333b6cffef982cd533ecdd0bd9405 SHA512 964828cd3ce5e446c9bf6a95d80347e43c1e51e53aab2ac834d7294560bddd5ab6acfedec5e4daed52ff5a2611c75b99416361246743003cc61234e1f9c70bef WHIRLPOOL 7ef2d91f51ae13313f9ffb73104c7cc56e550b3633344cf424aeab7c085e13e3d7e2fe0c97c7e952a880f541886abacdc41d9a73ecc9fdfb4779d370ba8ee4e9 +EBUILD ccpn-2.2.2_p120826.ebuild 4799 SHA256 ed120c939f731fa3eb7b2dba15ca18977c8a41658f10e0b2f464b2d6f37e4476 SHA512 8001b4b7623d6666b9bbed243d3dea4d7c739eebe89d40ebfa6d1baa27257bd71e54d642f60d2924dbe32539cf544c3486d54c6e416d965a75ea8b7dead21ca4 WHIRLPOOL 4ef33c97240c334744a3c8d2239592dbd4268b9affc9d4d71e6dab6cd6cff06735f2da4f0820b1620b4616e360318c81ee92854236cc146c2d49b4d2f26cc060 +MISC ChangeLog 18321 SHA256 295410dbcf0f3dfe3c220df41267f4f0aba0bf4e8fb8fd9820995d1e60072fad SHA512 5a6868bd68c6ed2a7f71f17c1a8947b45ceccfefbf744eec62f8bf340f4708aba6da4fb00864aece66e7637426ff977edf15bb34cea7c3b7a223bb69e84ad8a2 WHIRLPOOL 723d342af0493998a40d98e98b269e41a16f282780a06efa882efd22a0682144714279f49a164644feb2abd3b9421dfdf15e98c7b42e1cee5c52d04193ffb0d5 MISC metadata.xml 322 SHA256 7468ba4c27b879e7ed5f82274f5837e51f1f389673a33b9e26e1756a6b0783df SHA512 01933ddaa7b2ab20fd0c07ba6725c162dc9e0512275c91ff657732a69135f1ca7cb3ce39002b4e386aedf27fca26c086f80d31bd8a0821b696c9b99f59c140a4 WHIRLPOOL 1bd202323ff47b3fb34ca4cc6c89567b69a480d38abbcf1a140cbf8f316ebad8b7f95b4525ac261174e1b94555644cdb791dc532398b8f2fbf3cce74283d8ef8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: GPGTools - http://gpgtools.org -iEYEAREIAAYFAlAndRoACgkQgAnW8HDreRbtSwCfcK3Iky2+Q+Uw1coxsHqo8P9c -3gAAoM8JMbczsKIPDpPHz0hM7qLNQnYc -=44cA +iEYEAREIAAYFAlA57AsACgkQgAnW8HDreRYOcACfdZ3O38nAHeW111kp8EiPqGBl +BvEAn3IRf6JyRxCOrmqRx0U5+4eGwaUa +=8BYN -----END PGP SIGNATURE----- diff --git a/sci-chemistry/ccpn/ccpn-2.2.2_p120826.ebuild b/sci-chemistry/ccpn/ccpn-2.2.2_p120826.ebuild new file mode 100644 index 000000000000..cc382c44285b --- /dev/null +++ b/sci-chemistry/ccpn/ccpn-2.2.2_p120826.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.2_p120826.ebuild,v 1.1 2012/08/26 09:27:16 jlec Exp $ + +EAPI=4 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="ssl tk" + +inherit eutils portability python toolchain-funcs versionator + +PATCHSET="${PV##*_p}" +MY_PN="${PN}mr" +MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})" +MY_MAJOR="$(get_version_component_range 1-3)" + +DESCRIPTION="The Collaborative Computing Project for NMR" +SRC_URI="http://www-old.ccpn.ac.uk/download/${MY_PN}/analysis${MY_PV}.tar.gz" + [[ -n ${PATCHSET} ]] && SRC_URI="${SRC_URI} http://dev.gentoo.org/~jlec/distfiles/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch.xz" +HOMEPAGE="http://www.ccpn.ac.uk/ccpn" + +SLOT="0" +LICENSE="|| ( CCPN LGPL-2.1 )" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="extendnmr +opengl" + +RDEPEND=" + dev-lang/tk[threads] + dev-python/numpy + dev-tcltk/tix + =sci-libs/ccpn-data-"${MY_MAJOR}"* + sci-biology/psipred + x11-libs/libXext + x11-libs/libX11 + opengl? ( + media-libs/freeglut + dev-python/pyglet )" +# We need to fix this +# sci-chemistry/mdd +DEPEND="${RDEPEND}" +PDEPEND=" + extendnmr? ( + >=sci-chemistry/aria-2.3.2-r1 + sci-chemistry/prodecomp )" + +RESTRICT="mirror" + +S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2 ${PV}) + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + [[ -n ${PATCHSET} ]] && \ + epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch + + epatch "${FILESDIR}"/${MY_PV}-parallel.patch + + sed \ + -e "/PSIPRED_DIR/s:'data':'share/psipred/data':g" \ + -e "s:weights_s:weights:g" \ + -i python/ccpnmr/analysis/wrappers/Psipred.py || die + + local tk_ver + local myconf + + tk_ver="$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2)" + + if use opengl; then + GLUT_NEED_INIT="-DNEED_GLUT_INIT" + IGNORE_GL_FLAG="" + GL_FLAG="-DUSE_GL_TRUE" + GL_DIR="${EPREFIX}/usr" + GL_LIB="-lglut -lGLU -lGL" + GL_INCLUDE_FLAGS="-I\$(GL_DIR)/include" + GL_LIB_FLAGS="-L\$(GL_DIR)/$(get_libdir)" + + else + IGNORE_GL_FLAG="-DIGNORE_GL" + GL_FLAG="-DUSE_GL_FALSE" + fi + + GLUT_NOT_IN_GL="" + GLUT_FLAG="\$(GLUT_NEED_INIT) \$(GLUT_NOT_IN_GL)" + + rm -rf data model doc license || die + + sed \ + -e "s|/usr|${EPREFIX}/usr|g" \ + -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ + -e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ + -e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ + -e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ + -e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ + -e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ + -e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ + -e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ + -e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ + -e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ + -e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ + -e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ + -e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ + -e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ + -e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I${EPREFIX}/$(python_get_includedir)|g" \ + -e "s|^\(PYTHON_LIB =\).*|\1 $(python_get_library -l)|g" \ + c/environment_default.txt > c/environment.txt || die + + sed \ + -e 's:ln -s:cp -f:g' \ + -i $(find python -name linkSharedObjs) || die +} + +src_compile() { + emake -C c all + emake -C c links +} + +src_install() { + local libdir + local tkver + local _wrapper + + find . -name "*.pyc" -type f -delete + + libdir=$(get_libdir) + tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) + + _wrapper="analysis dangle dataShifter depositionFileImporter eci formatConverter pipe2azara xeasy2azara" + use extendnmr && _wrapper="${_wrapper} extendNmr" + for wrapper in ${_wrapper}; do + sed \ + -e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \ + -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ + -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ + -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ + -e "s|gentoopython|$(PYTHON -a)|g" \ + -e "s|gentoousr|${EPREFIX}/usr|g" \ + -e "s|//|/|g" \ + "${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" + dobin "${T}"/${wrapper} + done + + local in_path=$(python_get_sitedir)/${PN} + local files + local pydocs + + pydocs="$(find python -name doc -type d)" + rm -rf ${pydocs} || die + + for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do + sed \ + -e 's|#from __future__|from __future__|g' \ + -i ${i} || die + done + + insinto ${in_path} + + dodir ${in_path}/c + + ebegin "Installing main files" + doins -r python + eend + + ebegin "Adjusting permissions" + + for _file in $(find "${ED}" -type f -name "*so"); do + chmod 755 ${_file} + done + eend +} + +pkg_postinst() { + python_mod_optimize ${PN} +} + +pkg_postrm() { + python_mod_cleanup ${PN} +} |