diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-11-19 11:38:43 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-11-19 11:38:43 +0000 |
commit | db99670fae65ec077ac9c131fa60584ba8f2b1de (patch) | |
tree | 532efe31acdfa36f710cdc91234e9c6842d039c5 /sci-chemistry | |
parent | Stable for amd64 wrt bug #489854 (diff) | |
download | historical-db99670fae65ec077ac9c131fa60584ba8f2b1de.tar.gz historical-db99670fae65ec077ac9c131fa60584ba8f2b1de.tar.bz2 historical-db99670fae65ec077ac9c131fa60584ba8f2b1de.zip |
sci-chemistry/ccpn: Add todays python patches
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/ccpn/ChangeLog | 8 | ||||
-rw-r--r-- | sci-chemistry/ccpn/Manifest | 31 | ||||
-rw-r--r-- | sci-chemistry/ccpn/ccpn-2.3.1_p131119.ebuild | 166 | ||||
-rw-r--r-- | sci-chemistry/ccpn/files/talosn.patch | 16 |
4 files changed, 206 insertions, 15 deletions
diff --git a/sci-chemistry/ccpn/ChangeLog b/sci-chemistry/ccpn/ChangeLog index c6767c09225c..853e603fa48d 100644 --- a/sci-chemistry/ccpn/ChangeLog +++ b/sci-chemistry/ccpn/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-chemistry/ccpn # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.126 2013/11/07 15:58:24 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.127 2013/11/19 11:38:42 jlec Exp $ + +*ccpn-2.3.1_p131119 (19 Nov 2013) + + 19 Nov 2013; Justin Lecher <jlec@gentoo.org> +ccpn-2.3.1_p131119.ebuild, + +files/talosn.patch: + Add todays python patches *ccpn-2.3.1_p131107 (07 Nov 2013) diff --git a/sci-chemistry/ccpn/Manifest b/sci-chemistry/ccpn/Manifest index 1c24678981a7..f29a7e06755f 100644 --- a/sci-chemistry/ccpn/Manifest +++ b/sci-chemistry/ccpn/Manifest @@ -15,6 +15,7 @@ AUX eci 303 SHA256 e54ccd50ae69d94ba3f72c347b974e1b878bd63e28fd4c43a6b095e187daf AUX extendNmr 302 SHA256 4c483a09abf5fa3043a51dda55e7f528faecbf56769a3306f397b3848137cee6 SHA512 c8209a6c9a4791440c80e57b9a495667f53eb4599018b58f6016ff0d1dd91d45dc2e45f283d30e6b571cbca81ea84c3eea8f2583039c93021f465bdf7b8c1d10 WHIRLPOOL 65082f381ebda803d348caec18ed33ea49996e82bd6431e1aabb0632992c059c8acf9a4330f61c222041dd75096c6463dba3507a9022c49a8b95bd11d9925784 AUX formatConverter 322 SHA256 86b2613d7842ee3777fd98889abe6450266140d6fe6ed7d071db6b549c2afb65 SHA512 aa27df8af876130fb485f348fac86fb324df74cb0f3f210aa722291e5acb7267097963228f0946674d86f439f8ea90d7aed3b280757e02752d594e093d35a5f4 WHIRLPOOL 0c57a44ce935606846d877026c4471bea342a4a2a2ea667cc227d6048e476c476a5539ad3c3cfb861bfb5d47e2021a582813d1bf46d5fa2a220347d9745e052a AUX pipe2azara 326 SHA256 8b17d8c11dcbfeac21da3ad927e2e8de73509d21e9250c328fbea1aba658611c SHA512 7800e97886e172b9891b6221f1b38889c216a548eb38984b8806b15f006296ab561ef514f65259cbc5f9acd48bc7e2db6330952f4e92d8c16e41b36b396f109f WHIRLPOOL 7a61785e73e3e09f38a0d7a2a88246672116775db2cb8117359c9d665b25d3e2907f936f3527d15f3441ade5b026c1d0ed918547fef23408897f550c6b36237e +AUX talosn.patch 1358 SHA256 55e4e412158b851f040ac25d93b8b1a42ffa6354c26327cb8803288621787518 SHA512 fb4b74d0b07b9edf47135bb5d965b485ee62fde8e33c3b4dffb09092063368de6ae54435fc82aca87d88dd9a71cb1abb96446241c7d433bd2b0b1801e3e5ed5b WHIRLPOOL 5ff7c76822d8de0545d235118d50b80c0c6321d6b11ce9f3f0d1f36ae0c68d9d5753fdc8f81ef95b46345085c5dd6a349fdc70ff7f22a7e195fcf26d4475211c AUX xeasy2azara 324 SHA256 89945dae1c7bd78aefdd19c81c79571a13aaa149d6c50e12cc0ecd075930ed4c SHA512 de31df36c259fa58483c6a0e24bfa6ece3a86db5d556c5c99f610c7c2ff659742fcf319ef387538cc5a74444bf4be8ffff96da7ee819ac583e2605f4f90a5806 WHIRLPOOL 6a40d21fa7cef520de86f04282b5e26e3a8809c7a8caed8e19a0758419039358e1b1f33a53f956bc77a10cddda703cce8f21584d8e9e3648fccca3a486ab9be8 DIST analysis2.1.3_1.tar.gz 18932918 SHA256 bbc1ba5434f896d38b6745c1dc9adc470a78d3be7b879160edcd635a19228b74 SHA512 ee95119a972ada7949d646e0fd634d1828bba7562d7ea3a3be1c2b17d22f194dbd1267716f21ce86fffb3eadec136b0b613705f862747ab7933cb2ad57e063b8 WHIRLPOOL 1fb19a4bc676955eca4168595fad0661054061e18fa6e25e7f4ed5026cf31faba75b7644a8e2e18ece10e9641efc81feaccf580d3c766bda1d5232a346d99133 DIST analysis2.2.2.tar.gz 21044504 SHA256 8e46d12b8fb7763d282933e14ddfa9ce197954ed9fbfa2333e22602ac841b6e5 SHA512 efe8a82381521dbfb95b12dd553f401f200aee3763f9e739c37a9141a14bf038865b2a860b0353adc532582697b58079034386be42161aecbe231952b8abaac7 WHIRLPOOL c9d7fc936dc25b952e711e8fa439ada5a67e68497b6d4ad034586e604bcbd9d1ff7dd48d1a3baace347fc9bab5c17d2f7852906f921708a16ce8c8eb4a8659b9 @@ -39,6 +40,7 @@ DIST ccpn-update-2.3.1-131010.patch.xz 7352 SHA256 f447df5334aac40847c9796421b5a DIST ccpn-update-2.3.1-131015.patch.xz 7676 SHA256 df46e2f39ff6a9feda6bd9d4480d94af0f0282e318f6e3e27fc3d5b6ee1888db SHA512 c1ba9a0b9766a5317564978159a7e7c3176d382ff0e5d4547a372666309c614079254e772921761010e23ce61a81b1cdf4f99b3b58880ab9901ab372adea1055 WHIRLPOOL 4d008ac4c4861083091c557485afe0efd9dcfd982f1c241987743cb494f36ab084b27449cf2e528c2b95e2048dc67e90e58a4e0e3de283b81e17478b6900cff9 DIST ccpn-update-2.3.1-131018.patch.xz 8152 SHA256 03d51dd46b68b426dce8dcdc479add7a3c865c98da1528854538422ebfb93952 SHA512 cf396501bdabca724cf691cb35a7acaafc5b7253f15eaf6c286a52afbf629b1babadd837facbafe50d9a960699647640ffc009ae58da4cd1c288b752ce8a96fc WHIRLPOOL dbb69d3df269cd569939783963243496552b3ea551a5e7e4362d2815aad533142a884183ca1bed3af4c54933eb03e835cc9b46662dc8021705507eeabbb6b2d3 DIST ccpn-update-2.3.1-131107.patch.xz 9316 SHA256 d01b8cdde7f459027b731649526fa8bd84ce3fff6a3e10df8b26bd3a52df80dd SHA512 c18784d29d7f15ddf74229d0a44162595d953db76663450101e2d65ca7834dafd0137c2f5742d66a7b89a4af57149f49ce0bb01e62c198da3c93ca3c6a4c2002 WHIRLPOOL ef571e4a279a15e434bd264d9f1213c610a79dc9d9e4c0318ac99b29213ee2018ca02617b62632a791f61b9c7479586567983a43c698f4423d90a9aaa554c7d1 +DIST ccpn-update-2.3.1-131119.patch.xz 9908 SHA256 c6098bed0078773a5a1adb91ed5c02d202845d9fe2a94481b0ea1e0556c2475a SHA512 30a3c7b203eb49de974de6eb5c466a82be58a7679bb0798770adf0011e05cde1130b79453ac407cb43c03f6be464db04b5bff3fddb5c09952ae182343253fcc5 WHIRLPOOL e8bfffda3d08c7fdbd00b905a9d8f6fca736f64b54ec39b6d31120381af2503e1cdf9f338cbcebe5eddf398b5eb4cc576147e9d7bfe06a44fd0a642e466a8dda EBUILD ccpn-2.1.3.1_p100806.ebuild 5181 SHA256 c3ba268461da63ea23ee7f621a8e4837a368eb3e4c85bcc5245250fb6b377b58 SHA512 701ea90a13dc44e5bf1ea17c0f69adea56b1c14788ab79c67fa4b9726cae532998717515568045aec9bb4e1dd4c352227130115d90c50bf07e7fd132cdee385d WHIRLPOOL 898a618f95b254785739e6fab20af333cb3a44bff12cd6840d1b111f1588a60e48055e8af7ca88457173452f6acba86ebd3bada96390211bc4cd063fe4160fd5 EBUILD ccpn-2.2.2_p121125.ebuild 4612 SHA256 08a4b0682c049a6301138ea6f24d665edb0a8d8d709ed2c2f2529aa0a5e648a1 SHA512 f8c45f0b19a721775dab3147cced933e8db969e8443c15cd2bd2a31ffc3fcd0eda95acc75a93df5d0dd51dabd80fde8311a7b02bf3f6a051bc0855cb156755a5 WHIRLPOOL 427cacc0c080197cc79a867f1cf1d5bed45cbfbb0f8c5dc6456548218895ff25023ea30090e751af78b77fffd47f87f7aac3869a8ed13aa3727f2f12bac743b1 EBUILD ccpn-2.2.2_p130110.ebuild 4649 SHA256 53125900943ea89ba3d3483de29a240a0e7282098af869a04bc926c34f3bf51f SHA512 8406a93562897aadfefd03e098b393af5fb29f9bfde8e5727b73ceb6cbe004b73cfd97b61e942189d9fba717761b20cc4914e5c9d858f36bbdbdeea1369490e7 WHIRLPOOL 112e9cab77898ef9246b127d5ef8529948cfaf91157a25bbe39899560af8340f8e5cbd1e2a3935dae083a9291f0d569d3cc5b7588dc2029f3342ecbe5590cb0f @@ -60,22 +62,23 @@ EBUILD ccpn-2.3.1_p131010.ebuild 4685 SHA256 8d98fd88b576a617f7b55d9b0de3ee54418 EBUILD ccpn-2.3.1_p131015.ebuild 4685 SHA256 0215b6ff8c9ee7247a3b4fbb48a9c37f9e7c95623d08afb7a50590134fca5e7e SHA512 fea0e8f85e82d0b4af0551465546cd78226126d7dbb2315949309a09854245db798f9054140f2355b687937c308c5365c672ccb3315cad8bd5e09f99b8a89bdf WHIRLPOOL 68ce200e5efbba9fbee4e0fa95f4a479868881655b51f76a2989a8079d2b30ad05a305270cbc862b9b39f259b9854bb8b6e4b66d7c446526e35ceef71b787984 EBUILD ccpn-2.3.1_p131018.ebuild 4685 SHA256 b8274f2e758b6e7c3416cb8d424f4c5b5472ecd61ea7b7c59db9194c65e8f26e SHA512 8acb386dff52261169bb0e1f219d14107a8ec28494e61c6263ae71ff968140300a99c74fca495aa75c57cd81e1adfd05ed44f80abcb2d63bfe9a635cff63a35a WHIRLPOOL 39688e03bf1cf9e189c1ad0cf349be0fa6895efffd4afa05f472881dc732f6f3e0ea90e7715b7709be713d20535aa20801a66f6f044894c93d6e1241623dec7a EBUILD ccpn-2.3.1_p131107.ebuild 4685 SHA256 e4cf9af1788357b96c1f8e805dbc19be0604af6b34cb983fe0aa735f95b6e290 SHA512 5ad8389563552d00b28ce067b76a592365e6d61a8d6aab85650e2c8031a60bfe912ee0f7bdfec536157e07a3e62bcf82735986e0faf5be3d52778a56d5c1596b WHIRLPOOL 6309bfd9355ed20089341820ff77bb8dc70100ebb937f9604a0222c85d070e4dd88e27693e6ab7c229fffdaa9a36cf531b54feb2c18f302e716191315d6f5318 -MISC ChangeLog 23980 SHA256 cfc5bf5f6cb29b7093b0de8b836612db1c5f4aee55a8587d093861a242f061ee SHA512 2698fabb55d74a29b9af9045a9bf503cb32430fbe89a3edb4dddd3dffedab1f26a22018e601bcd541bccf9915b2805ed097192a444b875be72bc30ff277a176e WHIRLPOOL 53ad12cb95379c86446176b672c77d935456364a64851143569ce2dad0802dac47e460b01236b9c634e12d01fb826c5793d6ae346ab4e22fb54d7a543e86f043 +EBUILD ccpn-2.3.1_p131119.ebuild 4712 SHA256 304c3c6a3748eaa478d98b3af95668cef50262c5f6c7a872dbace8c828bca594 SHA512 678ea73d436550565828f682cf90382ed7f3fd166f9daea8643998781099a561899e7b6db5a53b691950f0c67440caabf3b087608db9532c17db2ac02e277c0c WHIRLPOOL 5f19462b456bae09a6983351c894735dd5c58f244154c8b30a54bda1d564d9728cb13fe779d47b46d2bbedb4a27fd7d575f73613fdcb10484b694ba6117e3d60 +MISC ChangeLog 24142 SHA256 ba4264a7cea98a8caae06642a1c6aa18d188723a2411f5f5f14f7adf2d3fc5e2 SHA512 ff99f8957c5b136a9076b9c0517be97bf96e261a7a90fbc04bdf32f167a69711c060e88063b64f4908f714998413bd68b42767f04be3cfb2f493102ba3b3f4f7 WHIRLPOOL 719334c759ee6cf7551cca53f76d2c2cc89d82438f422adaa0ad8003e7774b18fded26ecb88ba0d5c9d729608e4db0139ee596d92bdd56f7fee1c740254976cf MISC metadata.xml 234 SHA256 8297e76ecd2cb828f604e9f138b263179eb84beb640215a0f60d7613eb46bb7f SHA512 0e94c0e6570a9267a39968d81c3b80680ccbc6eebb62199e4830b021a114c94a0de17ef2103cef62b7e27da1f51f225a30abb802aff82140ae6dc43366113d31 WHIRLPOOL fa6d4d90b092953b88ed3ad03e1e8c189296d268b39d13a4b4dcb78f0c4456341e3f1b44eea0860054fee43079179cb7cf7a912acf1fbe693ecdca6d9a65f081 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCgAGBQJSe7imAAoJELnU8jG9FVirn2MP/1eGPUsBjDKephu66DawJvnJ -JrgkDnMPCv7PL6zMzPaY8L2VcGdHQBOjURPY/vbRhYbGcSy0n6YL6jJGWpX+iY36 -Oy+k0Niw0ZGlKHT5tUUzgNJh7oKbwKFRCOaRYBf3baUAGFUaJ+n6RESbW2GtTMfS -2QXcsUr4YgsTPr7o2gqOkMk2RR7zQv1kqSF9nk0OvmazD0qiqf8+FeUn7m/sQ46b -zCZrKY/wBsSAd6d83Ar44WFYTPeWu42FccIcggVifC3DrYn+j5FDp84QV1aIsqJE -PSO8I/bjEjJqD1di+CtvhRXC8inV5advq5Xagb3nBtiaxTh95irSgN74ycrWV4Du -C8ld1mB+1YocxCs+GWWB8/efANwxQ8NTA+8P4SM5kjNZDLQ2W61Sz8uSWOLFsvu9 -qvYr16kgkNB5RQ2AOhLy2pbGWVbYuApcgCPpq/qGxBg/z6vlAes6FhSlpXQf0HGj -d9/3w97poWBrWhq49gXPT9f2vLhjtQuECVlHOyksZJIsKxiHYl3igRRTuD2Q+ogb -976xR32Tip86eVolT5vbERQnWdeLihsiYH+aGVq1h2SwQHcglVDNVqxOgp5sIqEi -QIaEWlwP6FoVIoecpoF5LAqzYtEp0UBLYYUqeFMO0G/Q9d9Dc3M2qdgDEm0L8p9z -9A+kubRITTiC0QIpuqWi -=lWAI +iQIcBAEBCgAGBQJSi03DAAoJELnU8jG9FVirJrsP/RzYOiDOCsHhvHxlkVQtpuxn +bT0N8aB6y+vB21ewXir1iRy1asnfKSaWhcNriCNVEgmULVexU653MCjtho6OqVTW +JPawEviJS7wTEcXhDkeG+tSMdrfmIvORPBXAoFGhzOuQzWzJJvdBqJ7PTOnFq1gt +GytkWQHO8sUeJlLBSbE4iYr+VtJOqJRzqlGba6+uIxVNnG+4lVfCN3cFRncrXPJD +StEwT0DEbOOz2tp8Or116Rl997PDkU4PRQp4SzO79C8RrBha4Veu6YCBaJ/ZNQBR +MlkaT8I2kx+5ew/SyMDboxh6m4zl+fFsroFTM/R3/ZVhzUwAG6ingmL3Ub7y7B5d +o+bqrXnX3hmy2dgv13C9ycTspcKUe00SIMX126QPj0Qf7zYlozVE9zTixOpVeE3p +rLK+jzFOjz24EoyjOIeJSgy32vkFj1q1CMTpqcw0zW8k7vVCAjdeIT4+GJWEibH8 +aS//lu/+NU/7LXbCHTxom2z7uB6GkpSMiz936LhFlen36DZQJnNctaanmiwDqxsm +kX+xqXF0xg9xPYM/mQRAL6bIbDyDl9QnQoVsHggPfBRmdj+CB/+U8Qqp4DSIALLY +PMgGrXrsUwftNxkNLmF1DmKWBopKrskUfhkfqC2GefrjdYW2EAd+OLK/tfV/XNo6 +KAWZ1eeRqfgNkwUP8ceG +=6TNh -----END PGP SIGNATURE----- diff --git a/sci-chemistry/ccpn/ccpn-2.3.1_p131119.ebuild b/sci-chemistry/ccpn/ccpn-2.3.1_p131119.ebuild new file mode 100644 index 000000000000..d1eeb13fc87a --- /dev/null +++ b/sci-chemistry/ccpn/ccpn-2.3.1_p131119.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.3.1_p131119.ebuild,v 1.1 2013/11/19 11:38:42 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_REQ_USE="ssl,tk" + +inherit eutils flag-o-matic multilib portability python-single-r1 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" +HOMEPAGE="http://www.ccpn.ac.uk/ccpn" +SRC_URI="http://www-old.ccpn.ac.uk/download/${MY_PN}/analysis${MY_PV}r2.tar.gz" +[[ -n ${PATCHSET} ]] \ + && SRC_URI+=" http://dev.gentoo.org/~jlec/distfiles/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch.xz" + +SLOT="0" +LICENSE="|| ( CCPN LGPL-2.1 )" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+opengl" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-lang/tk[threads] + dev-python/numpy[${PYTHON_USEDEP}] + dev-tcltk/tix + =sci-libs/ccpn-data-"${MY_MAJOR}"*[${PYTHON_USEDEP}] + sci-biology/psipred + x11-libs/libXext + x11-libs/libX11 + opengl? ( + media-libs/freeglut + dev-python/pyglet[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND}" + +RESTRICT="mirror" + +S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2) + +src_prepare() { + [[ -n ${PATCHSET} ]] && \ + epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch + + epatch "${FILESDIR}"/${MY_PV}-parallel.patch "${FILESDIR}"/talosn.patch + + append-lfs-flags + + 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 ${CPPFLAGS} ${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 =\).*|\1 -ltk|g" \ + -e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ + -e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I$(python_get_includedir)|g" \ + -e "s|^\(PYTHON_LIB =\).*|\1 -l${EPYTHON}|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 || die + + 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 extendNmr" + for wrapper in ${_wrapper}; do + sed \ + -e "s|gentoo_sitedir|$(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|${EPYTHON}|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 + + dodir ${in_path#${EPREFIX}}/c + + ebegin "Installing main files" + python_moduleinto ${PN} + python_domodule python + eend + + ebegin "Adjusting permissions" + for _file in $(find "${ED}" -type f -name "*so"); do + chmod 755 ${_file} + done + eend + python_optimize +} diff --git a/sci-chemistry/ccpn/files/talosn.patch b/sci-chemistry/ccpn/files/talosn.patch new file mode 100644 index 000000000000..e19a0ab19783 --- /dev/null +++ b/sci-chemistry/ccpn/files/talosn.patch @@ -0,0 +1,16 @@ + ccpnmr2.3/python/ccpnmr/format/general/Constants.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ccpnmr2.3/python/ccpnmr/format/general/Constants.py b/ccpnmr2.3/python/ccpnmr/format/general/Constants.py +index d10553e..fb732db 100644 +--- a/ccpnmr2.3/python/ccpnmr/format/general/Constants.py ++++ b/ccpnmr2.3/python/ccpnmr/format/general/Constants.py +@@ -865,7 +865,7 @@ IoSetupList = [ + 'cyana': ['dihedrals.aco',1,1, [['SelectionList','version','Cyana version:',['2.0','2.1'],None]], + [['SelectionList','version','Cyana version:',['2.0','2.1'],None]]], + 'nmrStar': ['nmrStar.str',1,0, [],[]], +- 'talos': ['dihedral.tab',1,0, [['MultiSelectionList','validClasses','Classes for valid constraint:',['Good','New','Warn','None'],None], ++ 'talos': ['dihedral.tab',1,0, [['MultiSelectionList','validClasses','Classes for valid constraint:',['Good','New','Warn','Dyn', 'Strong', 'Generous', 'None'],None], + ['IntEntry','validCount','Count variable lower limit for valid constraint:',0,None], + ['FloatEntry','multiplyDeviation','Multiplication factor to convert deviation in constraint range:',2.0,None]], + []]}, |