diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-03-25 17:37:41 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-03-25 17:37:41 +0000 |
commit | 248440b19320377bf788d1586514177522c5e84f (patch) | |
tree | bda13bfd53c33ba8753143e4a9638147b78c7f79 /sci-chemistry | |
parent | bump to 0.17.1, add myself as co-maintainer (diff) | |
download | historical-248440b19320377bf788d1586514177522c5e84f.tar.gz historical-248440b19320377bf788d1586514177522c5e84f.tar.bz2 historical-248440b19320377bf788d1586514177522c5e84f.zip |
sci-chemistry/ccpn: Todays python patches
Package-Manager: portage-2.2.9-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/ccpn/ChangeLog | 7 | ||||
-rw-r--r-- | sci-chemistry/ccpn/Manifest | 32 | ||||
-rw-r--r-- | sci-chemistry/ccpn/ccpn-2.3.1_p140325.ebuild | 166 |
3 files changed, 189 insertions, 16 deletions
diff --git a/sci-chemistry/ccpn/ChangeLog b/sci-chemistry/ccpn/ChangeLog index 9ec6804deb3b..840ef7fb707f 100644 --- a/sci-chemistry/ccpn/ChangeLog +++ b/sci-chemistry/ccpn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-chemistry/ccpn # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.134 2014/03/10 06:51:57 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.135 2014/03/25 17:37:39 jlec Exp $ + +*ccpn-2.3.1_p140325 (25 Mar 2014) + + 25 Mar 2014; Justin Lecher <jlec@gentoo.org> +ccpn-2.3.1_p140325.ebuild: + Todays python patches *ccpn-2.3.1_p140310 (10 Mar 2014) diff --git a/sci-chemistry/ccpn/Manifest b/sci-chemistry/ccpn/Manifest index be5173a83764..2accd57202cd 100644 --- a/sci-chemistry/ccpn/Manifest +++ b/sci-chemistry/ccpn/Manifest @@ -28,6 +28,7 @@ DIST ccpn-update-2.3.1-140120.patch.xz 11404 SHA256 b01310884ccf27450d767b63e2f4 DIST ccpn-update-2.3.1-140131.patch.xz 12620 SHA256 58906f4c2ee0845743d4b90e01bc95cd5051f05274dcc811040769e3b412345d SHA512 2e34f76ab396ebd925054f62d83a6dfca23ccffe6410f14149a39cf570700919e312f02b9e30db0d74a505cba4602e6b8d089d08035a52f22f4a59d2f77fadeb WHIRLPOOL 431f4fc1eb36b33fa306d75232e31ded222da20d345cad1d9715a255352ef0462720a8df6e7412927cf05ddce40b33805dd18edc2943906769634115d39829a0 DIST ccpn-update-2.3.1-140205.patch.xz 14572 SHA256 b21b45375f52a968acbfd4c3371ba1b0417a0399ca7362214818467b1e4552d2 SHA512 8b9d5d35b0555341b5219a511fcf54a3f00249234a594f66c84c4e62f99bde7ff21937662fdd0c1c561bf3fd4d83830088b772e2bb474a071a1a7fe5ba970913 WHIRLPOOL 2f031e7540efa0c88db7e2b9c122210f9fd1a09c6c1d0eccaecbdebee116f8c1ac6baa65bc62b95e68296aa76072f090e4db9c2066631a787d4d3897bed66900 DIST ccpn-update-2.3.1-140310.patch.xz 15000 SHA256 e589f02a41e6019fbb151af40275b574f36ac1a590ebec000d55c64b364ead47 SHA512 adfded0e611b0eae69e8e870d647c984f78cbcc2b7af1517abcc2fe3dee216ec7a513aca8346658dac17a47546f793f0ca0c9dcc6d4de8cbace731ee1f0826d6 WHIRLPOOL 67752aa2ed85902439fd7f5258afe8538ff5457c3fae47c57f268d393a4ae94e2ff18ba33091268d896da3fe5908732dc13a4909542df5684652ccb2e53020f3 +DIST ccpn-update-2.3.1-140325.patch.xz 18364 SHA256 956c92fbd54411703ad1c3457395107110aa9bdd28fbe1e5f2abf8f0645af00a SHA512 f1e2e7a7f5a57cf5bc88d0a043eae902fbbedf8473e641fa724fd6c54ff75f0e24c3dbcd595b0e9c5a839446ab215a9d48727f0236005e53b1d5d949481ad9c7 WHIRLPOOL a17ffa9a6845675a1b09683f2ebdd9353fe756f20df7211127d273a5622efce79b315af6eeff170a33db9c0fe02bd1923bf47c4ef2f99760710f758c6422ff5f EBUILD ccpn-2.1.3.1_p100806.ebuild 5181 SHA256 c3ba268461da63ea23ee7f621a8e4837a368eb3e4c85bcc5245250fb6b377b58 SHA512 701ea90a13dc44e5bf1ea17c0f69adea56b1c14788ab79c67fa4b9726cae532998717515568045aec9bb4e1dd4c352227130115d90c50bf07e7fd132cdee385d WHIRLPOOL 898a618f95b254785739e6fab20af333cb3a44bff12cd6840d1b111f1588a60e48055e8af7ca88457173452f6acba86ebd3bada96390211bc4cd063fe4160fd5 EBUILD ccpn-2.3.1.ebuild 4707 SHA256 b97f41d2321679a416127920c8457e2e019dd98ad79a3e563677c7f2d0f66735 SHA512 54a181c71e47659bc448845c2043f04358dec626162a8c72f392ba91833cb8cbabfc524da5239060531c5d4ca0b3f8d1c81a9a102e14d5014bf57e27e50aede7 WHIRLPOOL 1fe18f4b7349e96ed46648a29aa774fc8ccb6be3880b0f5558914d908bd080462152f3f6d461e961ccbace7d4f4ba6deb36770fa7304d796e6f359c202f5856f EBUILD ccpn-2.3.1_p131119.ebuild 4712 SHA256 304c3c6a3748eaa478d98b3af95668cef50262c5f6c7a872dbace8c828bca594 SHA512 678ea73d436550565828f682cf90382ed7f3fd166f9daea8643998781099a561899e7b6db5a53b691950f0c67440caabf3b087608db9532c17db2ac02e277c0c WHIRLPOOL 5f19462b456bae09a6983351c894735dd5c58f244154c8b30a54bda1d564d9728cb13fe779d47b46d2bbedb4a27fd7d575f73613fdcb10484b694ba6117e3d60 @@ -37,24 +38,25 @@ EBUILD ccpn-2.3.1_p140120.ebuild 4712 SHA256 1bb42d83a252cdd6b9ad8289f8e22467cab EBUILD ccpn-2.3.1_p140131-r1.ebuild 4715 SHA256 f8382a429ff50a9813587a6d989d568787db1eb16bc8b03b551063abbbad2559 SHA512 8df236d946e046ec8a0c0fe54d5b5904a551bdb6a29da02283cf8b88ff4fc25661c65bb7b3a6fcb1a362078449277a97c9e71fec60dadec867d6953cf11ea8a5 WHIRLPOOL 2c341e959059c9391e203718461a9ddecd6913c5c02cd68e6cc43c34a6e3a3a7a828fa60f5b8074ac6c459ab2e1875f9ec5c69b86e236de2d5d31795b2f01c39 EBUILD ccpn-2.3.1_p140205.ebuild 4703 SHA256 be8bfc524ba2650dc2d86f86a2a73bfbd585073ed62feee666e23de40618daf5 SHA512 d399edc3044efb66024f0cad3a8623813708490408d4bfdbd0875ae10dd8c8987f83ea46d0ca90e1cd8fc232aa96cd138c3a705316605a4b9264c9d0668717b9 WHIRLPOOL c113c5afd5dddf34bca47128fdac3894c0716e4817d8d1c858aab31fe3a6830b6d5ac60a998070fb1392e468af6b7bd89eb45a3eca854a16e70dc8c78942e97b EBUILD ccpn-2.3.1_p140310.ebuild 4703 SHA256 8a99ecdd0ddfc78db83adb131e0ca5b5843beb4dc19369448716eb87841701fa SHA512 0aa40183343e9cb2610163fcd6a6f88b034ed31f336d3641da90b05556f0d4df20db03268a22441c663ff14665a6ea9ae425cda8e66d937660ff0efb73a9c4b9 WHIRLPOOL b1e567d128f26c7df2b5ca46f37ae7e31b98308e192868f900b4a0f7832e10d54fa3c74636babf5e63ef1fd09f1d17e9b73c8888b35918d27332bd3c27b33892 -MISC ChangeLog 25685 SHA256 56ee273f36b90c99af31d25e4edac87f9634d6f504052ac9147255702f560195 SHA512 5b135cfb65d411f0bd71c5c81b71d2afccaa66ec3f526e284bc03f199aa66257d30c8d9363ca18c749db044cf666ede3bfd6b8a60c90efb0d4beabff5cb019ec WHIRLPOOL 940c0203eecd0471030f18a0a712740a0c26ce996aa0fc6690979beca44bc1d4dd2dd55680f8bba71e401767cce518c5eaaadaf6bac4afe05a8f21434f5956bd +EBUILD ccpn-2.3.1_p140325.ebuild 4703 SHA256 1437dde5c3acc2e3b3cc95710ff2b87ccbf4afbfdfb40ffd6d983b194e41bc79 SHA512 7f9d60b8d9eff137ef2d35c24b56b3a86055561e4bdc00ae07799134436b0a0b526afb08d13f5073db51c21757adf6fb7ed12621b68082b72375de87d806a844 WHIRLPOOL eb7fb06a4a71e375d619945d9838e203d024fb64357b7b11f5544af4545c8cf7c1e8ad6f998ea8c9cee825675722c23ab0b3acba3b15183435619ad6ec92fc22 +MISC ChangeLog 25820 SHA256 89eec0004182c781d4249d951cfe9aeef066199a855b8e126a93f1923fb44bd2 SHA512 f903eed9bedbf37484a2063588907067e40c4e663c9e4fa436131cfbba8b86dd58bfd8e92b26c385ed3e7148ab9979ce284a62aded62f1ebb0c3131909743562 WHIRLPOOL 73472f4413a3240a3a75935d5297f4a17c0cac3fb5a8d8d1dffeb9142fe0bf3a2138c6995120723c571b4d32c724d7c4360d28f2255a827a0b37511f37811c50 MISC metadata.xml 234 SHA256 8297e76ecd2cb828f604e9f138b263179eb84beb640215a0f60d7613eb46bb7f SHA512 0e94c0e6570a9267a39968d81c3b80680ccbc6eebb62199e4830b021a114c94a0de17ef2103cef62b7e27da1f51f225a30abb802aff82140ae6dc43366113d31 WHIRLPOOL fa6d4d90b092953b88ed3ad03e1e8c189296d268b39d13a4b4dcb78f0c4456341e3f1b44eea0860054fee43079179cb7cf7a912acf1fbe693ecdca6d9a65f081 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQJ8BAEBCgBmBQJTHWELXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQJ8BAEBCgBmBQJTMb7lXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyQ0JDQjFGMzBDQ0UxMjFGNENDNDgxMDdC -OUQ0RjIzMUJEMTU1OEFCAAoJELnU8jG9FVir4+UP/j1jp3n69vG1/9Q/6XjcHkli -1FuTP2JEDx4XpZgK+BoXiP5INvWcDdLzTp+IwWHC1/PGlXXCmcpTpCgoAQqxQ7QA -ogPn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Y94C0e4zmTI04jUB3UWXPvVCYaKyuZiWCRJGMNI6m9/z+5sFSnIanSqWOb8g +zW9OMgq+BtANbnwJYEuyXsCtjg8Ix/zl9b/Mlkic88EkOR1zx9QlgKuJPq9whMDW +3kQnZ7hNPjeBXfwPkm/ETLzt7kmbgmcL44W0TfMwNreCqXuwJ3FvGKKJTdN5OJcK +pJLuP26niDwxk+JsGIs2bcjhX5YGYGQarA61Po2CEBlKcniuDquXWLZKunjHEbpR +zljMWYysRXkcOzjrfBpg +=9ZlF -----END PGP SIGNATURE----- diff --git a/sci-chemistry/ccpn/ccpn-2.3.1_p140325.ebuild b/sci-chemistry/ccpn/ccpn-2.3.1_p140325.ebuild new file mode 100644 index 000000000000..ce5c7cbbbe64 --- /dev/null +++ b/sci-chemistry/ccpn/ccpn-2.3.1_p140325.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2014 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_p140325.ebuild,v 1.1 2014/03/25 17:37:39 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_OPTS="-p2" epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch + + epatch "${FILESDIR}"/${MY_PV}-parallel.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 +} |