summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-07-10 07:12:53 +0000
committerJustin Lecher <jlec@gentoo.org>2012-07-10 07:12:53 +0000
commited87eed90c632057069fefad7f750b41e00d5aaa (patch)
tree7c56f5fece92fcd39ccc27a5d5ae3b5650a7c7b1 /sci-chemistry/cns
parentmarked x86 per bug 419885 (diff)
downloadhistorical-ed87eed90c632057069fefad7f750b41e00d5aaa.tar.gz
historical-ed87eed90c632057069fefad7f750b41e00d5aaa.tar.bz2
historical-ed87eed90c632057069fefad7f750b41e00d5aaa.zip
sci-chemistry/cns: Drop old
Package-Manager: portage-2.2.0_alpha116/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/cns')
-rw-r--r--sci-chemistry/cns/ChangeLog8
-rw-r--r--sci-chemistry/cns/Manifest21
-rw-r--r--sci-chemistry/cns/cns-1.1.ebuild144
-rw-r--r--sci-chemistry/cns/cns-1.2.1-r6.ebuild243
-rw-r--r--sci-chemistry/cns/files/1.1-time-length-10.patch11
-rw-r--r--sci-chemistry/cns/files/1.2-allow-unknown-architectures.patch15
-rw-r--r--sci-chemistry/cns/files/1.2.1-aria.patch475
7 files changed, 12 insertions, 905 deletions
diff --git a/sci-chemistry/cns/ChangeLog b/sci-chemistry/cns/ChangeLog
index daf8908ac717..11c0e231291d 100644
--- a/sci-chemistry/cns/ChangeLog
+++ b/sci-chemistry/cns/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-chemistry/cns
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/ChangeLog,v 1.50 2012/07/10 06:58:28 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/ChangeLog,v 1.51 2012/07/10 07:12:52 jlec Exp $
+
+ 10 Jul 2012; Justin Lecher <jlec@gentoo.org> -cns-1.1.ebuild,
+ -cns-1.2.1-r6.ebuild, -files/1.2.1-aria.patch,
+ -files/1.1-time-length-10.patch,
+ -files/1.2-allow-unknown-architectures.patch:
+ Drop old
10 Jul 2012; Jeff Horelick <jdhore@gentoo.org> cns-1.2.1-r7.ebuild:
marked x86 per bug 419859
diff --git a/sci-chemistry/cns/Manifest b/sci-chemistry/cns/Manifest
index a5ee7c716200..831e1bd64a47 100644
--- a/sci-chemistry/cns/Manifest
+++ b/sci-chemistry/cns/Manifest
@@ -1,10 +1,7 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
-AUX 1.1-time-length-10.patch 443 SHA256 73ca56b80588aabd513d6f5171db1217189899e04b5e460a55824eef13c5505a SHA512 6c7f5ebe61705ebbc7b3ebb638317f884dff09e475de8acb25533a9f9a172e0f99423130f7c07fcfa518ddcbae79f2d8982f8e40efab86fb7f365481b19144e2 WHIRLPOOL ceff22bcac45bd76d71f8d61b3c11518175848e75c06a1f8585f59749a237405f02cd4caa5b02692602397879436788658f1ad6a55f59ce78ca46da9fb4f4ab0
-AUX 1.2-allow-unknown-architectures.patch 540 SHA256 47f398e4c534f01eb64a1c68d477d21a8371707a0977b900d9f2124d3d37243d SHA512 4ae9e3c1560374b3a1b953bbdc5bed45a12c263dca162304328647aabb2f695e4c0eb52ac4d444cb61bcc147a531ed0584ed30ed4ce586334fb975af38337228 WHIRLPOOL f6c6d813a3d1599cfb807aa7dab86991931f0c13938d8eb3e84fb5f2caebf50aecdd36425191a851187c91c2c03c8527c8be180cf6444e916baec1694b33e2b1
AUX 1.2.1-allow-gcc-openmp.patch 926 SHA256 8c650b36ef731f7b799397ac9f6abfe9cdf46508df930e7bd3a0f2a0dc2e2275 SHA512 cdaae39096625ff1b84ec76b36d2ec3f2e4e4e532d347fa3f0d3e0aa239e2477301de6c768f14788a9b599694568422009bc1c0298ad677cab28d463e0ea8524 WHIRLPOOL 56af947ac685adb889796416870a365abb4be702b77ca4acf695fc2578e8e876e778376518854fb14e7a2349439fd144def300fe0d45b0fa5f90e4a3b6cdec95
-AUX 1.2.1-aria.patch 15006 SHA256 08585a1e88b8b8da0f983e934a2859b128e4cba5e714af3b6ed40f334fdbe982 SHA512 efb5824abc4a92f780fd29a289933b73f8a7fc795214d86099bee4bfaeb38367ff99cb219eac90e55dc24e04a7a65ad89a7b272c9fd3a8912b8ec9dd72914415 WHIRLPOOL df92b4bdfc9c0e9b3432adde46fdfbe831c1f5ac98dee187995be7cc5ffdd3d4dd164ade38aed619c82227dd1d036ff924fc1f69c22c3dcd8425b9818a411d1f
AUX 1.2.1-aria2.3.patch 658 SHA256 c393799beabda5f61a7dcad9aaa4d211c14eb17b1ffd5200c3306c7ef71d19f3 SHA512 54758723bc4900673dff73e3aa4d9ead803c44ee3af514259b21c73f7495aaa077e29efe381e674d2a6c5c8d888d7c9cf4d4a998b6c4b6d91de488dc4526f7e4 WHIRLPOOL 440bc5066864e90211ea2d8faa8f9758a5472108ad7e33a3157a84d62bf5d3f61af743198205669e520e98aee6d11c720660bf8e088d6c4251cfce6fb230ce90
AUX 1.2.1-gentoo.patch 2071 SHA256 f7e1f27e68d3b186814ec9f73a86a5ecd589c3d4c4e06b1f08a894556661fde0 SHA512 ecc545e66859d3a88c38cfd40abc278fdd8fca520d63b8d8ab3f2301352962cc70ba436078edec793fda90212fe44c0d333163d64c37afd65e19240f1044feb7 WHIRLPOOL 9069500123cde11a630403f414dd6678224d683f4e790ee79c3d3ec413e0ae9071c8e54828482d14f040682fc3b8719689ba66d6cdd37bb428ee903819e9e06f
AUX 1.2.1-ifort.patch 5346 SHA256 bac35147159fac06fcb3a03a4f09c56224d4ee852b86a771121d98c42f3a9c65 SHA512 738ac365cdf77f5fe0d1b93e1a3b55453b589854822ca18220d32f912c799f8ca133317419f39baf1f8376126b5dc4ea073a19e2c0e05ddb970008bddaed93f3 WHIRLPOOL 74b96c04536806612b5643b4448639bbfd2c75022f6f868656c71bf4514e8907b6ec4c1e34bc96a644a4f1af048e98704d6ca478cc3f67d15bb5e8f31ba9ba21
@@ -15,25 +12,17 @@ AUX cns_solve_env_sh 7070 SHA256 da571cba2a2244e571870b1783fd6cdce1b595e14234cfb
AUX cns_solve_env_sh-1.3_p7 7332 SHA256 88127d99380544e502dfe3b3a7788102a7f6b30e7245b26e5e204b8b611bbc1d SHA512 afe2f24c85eff265659e5b2ba2edab519c3193d30b2dcd815bc91a929fd4f4a9167148f8248237569f809d627a8fa623a46fe82d3e0a2cb1827bed910ce565cb WHIRLPOOL 31dbf0ad952ce1d0f7d105d48bf6a27d510ee8deb2c6e4b0d06387e41a0b4c2b62f88d7b6c87bcecdd6bd17501556ec0c4afa0feec6ab64a2fca6563a2268184
DIST aria2.3.1.tar.gz 1833973 SHA256 cc45ed2d66182cf0ee197a7cf3bc7edd8d5043d95cdcd19e1cec9aeb82c2fdbc SHA512 79a2cd89e2120acecb04f286a153dbf52c16500e8956c9dad49b1e1ed94a7b2449c7b044bae6f87e0d2b452a1467a2c02de74f0fa85b0eae66042386e2f5e2d5 WHIRLPOOL 2ff003322601b42bec0d2431e2f1f85819b3982f8da612ff778bb404e51f0fcbca3faa6998e9c0635f9e73899609bb1e273420cac182952aa744364c20299723
DIST aria2.3.2.tar.gz 1836270 SHA256 30727ea8bdc2e3b44e5970545008fcfa07fa59aa28b76824956a2aa71daa9615 SHA512 009a1d0079f5cc162dc732749ddd2b33297268f0d988b2f37bda4ed50c7764ceef7ae5b56b322c7ac79427a4a2a92d1239199891445cb5e2b3d0908ed670e2aa WHIRLPOOL f18af5b751e79c92e04f4dc12b6b806a1c505b269559a2342bdd6280b790f9f0df9bb4afe366af03beaf09af0128c6b68c39bc66603d51ad24914c78b2579cf3
-DIST cns_solve_1.1_basic_inputs.tar.gz 5049767 SHA256 916d86d96159bd945a3b05e26c71af0cc6097234776385630f618fa2641cf3eb
-DIST cns_solve_1.1_data.tar.gz 18770504 SHA256 da59213013b845ca357decfc11337c7dfdb3134bd012c710291c66e8febdbb37
-DIST cns_solve_1.1_test.tar.gz 2852870 SHA256 c5d049596cca4f6985b0b4997f4fa62345d2c111b8fab534918829ade1899a23
DIST cns_solve_1.21_all-mp.tar.gz 32748040 SHA256 7ab464e20932eb024ba6378738da77a4a03642d63b0ca9772b612a7cf27baec1 SHA512 383324d771570b501e388fba9bf20789f483a3a4044eb3334c7a7e7835e0c345b784e0d344b22d20a10fe1c33ed21c9013adb1af5912808af480b96abe275857 WHIRLPOOL fecd0b2dfba43e5525a9fcc8543a55867602b376744848ddafd4c132bcdfc32225780f543742fa225b5e0f0ce658c1029a9ca8b80d5ee3f2491b6d63e8ad91b0
DIST cns_solve_1.3_all.tar.gz 61789401 SHA256 b7573148d5718c617dfba2c2684a7b28c176893e033aadef0926a381c61f2c7a SHA512 4b04e42c4bad5e2b5e74cf0089697283f319bfb9a43a485e6374420609c9ae41362c513e821d10253913934a425d8f7b067194f957c78632781c65d786ea6d1a WHIRLPOOL 5640df95263d40964bfbb87e05cfe5b957d056659ea0aa0ee8c5c284d1b97763355b73205b3b28850ed95bcebe78a85281b7295c7fbacc66a0abe31f023c63cc
-EBUILD cns-1.1.ebuild 3749 SHA256 18971dfaf06932193bcc31accf8a84644bb0beac67b12d1a7c4b1b89891fa2ef SHA512 694904db878e97a2e96c0eb67ff9847478679e93d024a5e34b9e47fd405cf124c21036f88f72402dce61bbefed32a8f1151ba5ad6701ccdf89f96089ca41f949 WHIRLPOOL f7a675d7f5bd63d97ac51bae828c35a818b0fd7c76f5a90a929d5f82aea264875ac62d3714b563bf78f6f708bb7c97c0d47e7785a154f7740f55e5cfc1ef272f
-EBUILD cns-1.2.1-r6.ebuild 6861 SHA256 9b05ee4e7db37d1bf2846f671c9740224e1ed3ba21004d4bc01b40202f3620b2 SHA512 4bcdc5d57083f4424f698c808c469528b692766d65cc98d91e2d21400516eb2e607ba70f20d1d1e03b88a61abc0bfb11ab5a586586bf2d82a79406f63780b2f9 WHIRLPOOL 0b832697fb46259e812dbdbdc108fbd918c1fd2a72ba2320396bf236abde60a6f8a6d8c3e709f85a5a0b5c8977d74d3d5a62cf537f9303039ec2073acff44c66
EBUILD cns-1.2.1-r7.ebuild 6866 SHA256 9352ddd67964fd740abaa3502d8545cc584e313540442041f97a821df2f1d66f SHA512 84695743b82df413179418f9a11caca4402eefd6f6f12641931cae793bdd62a71942c88b5c664a08f11733849ea1049f745bd134a83e0362dc38c18e53e392e3 WHIRLPOOL beb2520075f56d9549b4c29c250feea631d5608f8d0560fedd919ed55e8daa37768db2ed6629baca74c934615b58d6cdf0cfe48dfa9db75801a65f81f83be075
EBUILD cns-1.3_p7.ebuild 6098 SHA256 a0b10cd40f4e06f40df93ac07001127117260cae5cc8b974b6a8c3ab0cb0e148 SHA512 04fc35fae401e15a787591c885b81f8dd5e33cedbd0082d2246c7a0b57e0e10836d1ca4bf9399d239933ff6e75667870906c8485c99b30bbad5ad7250d83242d WHIRLPOOL d70bef57645e4cecd0366f5708e3dfea8529f57f5f096d067a0d5ed327f177391d419a91ee0d9cd18d4ac219556ac6cb743edea91d298923768d2cb6f17ae923
-MISC ChangeLog 8701 SHA256 83afc92dd5c8c19245ba7da1a9b003be1f89370ac153c2ca414abba6a1723d70 SHA512 b3e77d5eeca36d227ab729e2d6ab5dc95ca5c425e2e7f8070363ec94ecef83e520c583e05e36f7ed2a0e7e13199764a0aa86af6bce7310819e39279593afc39b WHIRLPOOL 74cb082fe8428a6c3aab446f752c3a013132682291a35fa579e60a74d4fdf361fb55376de65a50b758dc0c2ad6317828bce227d53673f598097f695a41706021
+MISC ChangeLog 8907 SHA256 6606f452016b64e9f89eb83a3363d77368d2f95239a683ca014a8ba28c39dfa3 SHA512 94f4bddf0f22fe05f35c36dd00dd757daf198742c02e7e8d2f99daa3e0ecaaa369df10dd5aabd3ee0bcbaf74ca0a1b97e2b08fc34277b0a248fb8d10b2623b57 WHIRLPOOL d85fc10c6382db3888367474a023444f8b631f55a0207886822940ea3b9c0132d4d4513acd0eb1be7ab02c52600a833bc45e379ea42eba1146315f67582387fc
MISC metadata.xml 309 SHA256 b324f51d14838e35c102e299cbb7b5c3d777c91ffdbe011fbc085a117226b189 SHA512 e1f0a9275cfcdd6b840ac8d7b39109ce5e8e2eef79acd1648de6b760b1416ac15cf2260bae84d4fbb7d66c37b165d0159c783aed1b408b5d0cc2924a44a196f0 WHIRLPOOL bcec37dc5fcce1aab1e052dbf7ed93f8ab0f7541893ad615774af5e4f2858ad79d09a6579e6afd23505969c4a6f6b26bc95fdb4224e061e0b7794184563b8115
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
+Comment: GPGTools - http://gpgtools.org
-iQEcBAEBCgAGBQJP+9KaAAoJEPUd7O0j6ekAAx0H/jAurk5Wc4KyazclwOAB4IMy
-ZiR0/CovgrC0f4pF30lu0P7syvEg4zazp75QrAfgdznY+zRgSQzk1FKM61QUFMni
-O5nR7B0dY3aNfA+KSwFCvpDWIss045Dn8L2IV5+RYXvEFwBFccnhAT50j1Ey/MEB
-RVbrtSXOm6IFizULXXPoOdZNEfI+8yA/TtuYHYiKy3MjGIMI8Zp8jJe132qHcyZ9
-62wti2B02Pbk+83xlISCsIKtRCRKtwMtmJWigzYKGaMwqWF49ovLkhgvr6iEdgeW
-RbB7sgVy+oWUX6xgQv33ZxAmfqTwQcpadKlzPyAhr8rbN6YKKG3a4lv17XmB2/I=
-=tf7O
+iEYEAREKAAYFAk/71foACgkQgAnW8HDreRZSoACfb62ddET4I/nHxsVb8wk/fYmJ
+QGIAoK5Xknh3lJn6Lm5Zcf0balIupVMo
+=sw49
-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/cns/cns-1.1.ebuild b/sci-chemistry/cns/cns-1.1.ebuild
deleted file mode 100644
index 20993d47664a..000000000000
--- a/sci-chemistry/cns/cns-1.1.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/cns-1.1.ebuild,v 1.10 2011/06/21 16:05:16 jlec Exp $
-
-inherit eutils fortran-2 toolchain-funcs
-
-MY_PN="${PN}_solve"
-MY_P="${MY_PN}_${PV}"
-
-DESCRIPTION="Crystallography and NMR System"
-HOMEPAGE="http://cns.csb.yale.edu/"
-SRC_URI="
- ${MY_P}_basic_inputs.tar.gz
- ${MY_P}_data.tar.gz
- test? ( ${MY_P}_test.tar.gz )"
-
-SLOT="0"
-LICENSE="cns"
-KEYWORDS="ppc x86"
-IUSE="test"
-
-RDEPEND="
- virtual/fortran
- app-shells/tcsh"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-RESTRICT="fetch"
-
-pkg_nofetch() {
- einfo "Fill out the form at http://cns.csb.yale.edu/cns_request/"
- einfo "and place these files:"
- einfo ${A}
- einfo "in ${DISTDIR}."
-}
-
-get_fcomp() {
- case $(tc-getFC) in
- *gfortran* )
- FCOMP="gfortran" ;;
- ifort )
- FCOMP="ifc" ;;
- * )
- FCOMP=$(tc-getFC) ;;
- esac
-}
-src_unpack() {
- get_fcomp
- unpack ${A}
-
- # The length of time must be at least 10, not 9
- # http://gcc.gnu.org/ml/fortran/2006-02/msg00198.html
- epatch "${FILESDIR}"/${PV}-time-length-10.patch
-
- # Set up location for the build directory
- # Uses obsolete `sort` syntax, so we set _POSIX2_VERSION
- sed -i \
- -e "s:_CNSsolve_location_:${S}:g" \
- -e "17 s:\(.*\):\1\nsetenv _POSIX2_VERSION 199209:g" \
- "${S}"/cns_solve_env
-}
-
-src_compile() {
- local GLOBALS
- if [[ $(tc-getFC) =~ g77 ]]; then
- GLOBALS="-fno-globals"
- fi
-
- # make install really means build, since it's expected to be used in-place
- emake \
- CC="$(tc-getCC)" \
- F77=$(tc-getFC) \
- LD=$(tc-getFC) \
- CCFLAGS="${CFLAGS} -DCNS_ARCH_TYPE_\$(CNS_ARCH_TYPE) \$(EXT_CCFLAGS)" \
- F77OPT="${FFLAGS:- -O2} \$(CNS_MALIGN_I86)" \
- F77STD="${GLOBALS}" \
- LDFLAGS="${LDFLAGS}" \
- g77install \
- || die "emake failed"
-}
-
-src_test() {
- # We need to force on g77 manually, because we can't get aliases working
- # when we source in a -c
- einfo "Running tests ..."
- csh -c \
- "setenv CNS_G77; source cns_solve_env; make run_tests" \
- || die "tests failed"
- einfo "Displaying test results ..."
- cat "${S}"/*_g77/test/*.diff-test
-}
-
-src_install() {
- # Install to locations resembling FHS
- sed -i \
- -e "s:${S}:usr:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_ROOT usr:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_DATA \$CNS_ROOT/share/data:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_DOC \$CNS_ROOT/share/doc/${PF}:g" \
- -e "s:CNS_MODULE \$CNS_SOLVE/modules:CNS_MODULE \$CNS_DATA/modules:g" \
- -e "s:\$CNS_LIB:\$CNS_DATA:g" \
- -e "s:CNS_HELPLIB \$CNS_SOLVE/helplib:CNS_HELPLIB \$CNS_DATA/helplib:g" \
- -e "s:\$CNS_SOLVE/bin/cns_info:\$CNS_DATA/bin/cns_info:g" \
- "${S}"/cns_solve_env
-
- # Get rid of setup stuff we don't need in the installed script
- sed -i \
- -e "83,$ d" \
- -e "37,46 d" \
- "${S}"/cns_solve_env
-
- newbin "${S}"/*_g77/bin/cns_solve* cns_solve \
- || die "install cns_solve failed"
-
- # Can be run by either cns_solve or cns
- dosym cns_solve /usr/bin/cns
-
- # Don't want to install this
- rm -f "${S}"/*_g77/utils/Makefile
-
- dobin "${S}"/*_g77/utils/* || die "install utils failed"
-
- dobin "${S}"/bin/cns_{edit,header,transfer,web} || die "install bin failed"
-
- insinto /usr/share/cns
- doins -r "${S}"/libraries "${S}"/modules "${S}"/helplib
- doins "${S}"/bin/cns_info
- doins "${S}"/cns_solve_env
-
- dohtml \
- -A iq,cgi,csh,cv,def,fm,gif,hkl,inp,jpeg,lib,link,list,mask,mtf,param,pdb,pdf,pl,ps,sc,sca,sdb,seq,tbl,top \
- -f all_cns_info_template,omac,def \
- -r doc/html/*
-
- # Conflits with app-text/dos2unix
- rm -f "${D}"/usr/bin/dos2unix
-}
-
-pkg_postinst() {
- ewarn "You must source ${ROOT}usr/share/cns/cns_solve_env"
- ewarn "before running CNS. It's a C-shell script,"
- ewarn "so you also must be using csh or tcsh."
-}
diff --git a/sci-chemistry/cns/cns-1.2.1-r6.ebuild b/sci-chemistry/cns/cns-1.2.1-r6.ebuild
deleted file mode 100644
index 6d0fc21497bd..000000000000
--- a/sci-chemistry/cns/cns-1.2.1-r6.ebuild
+++ /dev/null
@@ -1,243 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/cns-1.2.1-r6.ebuild,v 1.9 2012/02/04 15:01:15 tomka Exp $
-
-EAPI=3
-
-inherit eutils fortran-2 toolchain-funcs versionator flag-o-matic
-
-MY_PN="${PN}_solve"
-MY_PV="$(delete_version_separator 2)"
-MY_P="${MY_PN}_${MY_PV}"
-
-DESCRIPTION="Crystallography and NMR System"
-HOMEPAGE="http://cns.csb.yale.edu/"
-SRC_URI="
- ${MY_P}_all-mp.tar.gz
- aria? ( aria2.3.1.tar.gz )"
-
-SLOT="0"
-LICENSE="cns"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="aria openmp"
-
-RDEPEND="
- virtual/fortran
- app-shells/tcsh"
-DEPEND="${RDEPEND}"
-
-FORTRAN_NEED_OPENMP=1
-
-S="${WORKDIR}/${MY_P}"
-
-RESTRICT="fetch"
-
-pkg_nofetch() {
- elog "Fill out the form at http://cns.csb.yale.edu/cns_request/"
- use aria && elog "and http://aria.pasteur.fr/"
- elog "and place these files:"
- elog ${A}
- elog "in ${DISTDIR}."
-}
-
-get_fcomp() {
- case $(tc-getFC) in
- *gfortran* )
- FCOMP="gfortran" ;;
- ifort )
- FCOMP="ifc" ;;
- * )
- FCOMP=$(tc-getFC) ;;
- esac
-}
-
-pkg_setup() {
- fortran-2_pkg_setup
- get_fcomp
-}
-
-get_bitness() {
- echo > "${T}"/test.c
- $(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
- case $(file "${T}"/test.o) in
- *64-bit*|*ppc64*|*x86_64*) export _bitness="64";;
- *32-bit*|*ppc*|*i386*) export _bitness="32";;
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
- esac
-}
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${PV}-gentoo.patch \
- "${FILESDIR}"/${PV}-parallel.patch
-
- get_bitness
-
- if use aria; then
- pushd "${WORKDIR}"/aria* >& /dev/null
- # Update the cns sources in aria for version 1.2.1
- epatch "${FILESDIR}"/1.2.1-aria2.3.patch
-
- # Update the code with aria specific things
- cp -rf cns/src/* "${S}"/source/
- popd >& /dev/null
- fi
-
- # the code uses Intel-compiler-specific directives
- if [[ $(tc-getFC) =~ gfortran ]]; then
- epatch "${FILESDIR}"/${PV}-allow-gcc-openmp.patch
- use openmp && \
- append-flags -fopenmp && append-ldflags -fopenmp
- COMP="gfortran"
- [[ ${_bitness} == 64 ]] && \
- append-fflags -fdefault-integer-8
- elif [[ $(tc-getFC) == if* ]]; then
- epatch "${FILESDIR}"/${PV}-ifort.patch
- use openmp && \
- append-flags -openmp && append-ldflags -openmp
- COMP="ifort"
- [[ ${_bitness} == 64 ]] && append-fflags -i8
- fi
-
- [[ ${_bitness} == 64 ]] && \
- append-cflags "-DINTEGER='long long int'"
-
- # Set up location for the build directory
- # Uses obsolete `sort` syntax, so we set _POSIX2_VERSION
- cp "${FILESDIR}"/cns_solve_env_sh "${T}"/
- sed -i \
- -e "s:_CNSsolve_location_:${S}:g" \
- -e "17 s:\(.*\):\1\nsetenv _POSIX2_VERSION 199209:g" \
- "${S}"/cns_solve_env
- sed -i \
- -e "s:_CNSsolve_location_:${S}:g" \
- -e "17 s:\(.*\):\1\nexport _POSIX2_VERSION; _POSIX2_VERSION=199209:g" \
- "${T}"/cns_solve_env_sh
-
- einfo "Fixing shebangs..."
- find "${S}" -type f \
- -exec sed "s:/bin/csh:${EPREFIX}/bin/csh:g" -i '{}' \; || die
-}
-
-src_compile() {
- local GLOBALS
- local MALIGN
- if [[ $(tc-getFC) =~ g77 ]]; then
- GLOBALS="-fno-globals"
- MALIGN='\$(CNS_MALIGN_I86)'
- fi
-
- # Set up the compiler to use
- pushd instlib/machine/unsupported/g77-unix 2>/dev/null
- ln -s Makefile.header Makefile.header.${FCOMP} || die
- popd 2>/dev/null
-
- # make install really means build, since it's expected to be used in-place
- # -j1 doesn't mean we do no respect MAKEOPTS!
- emake -j1 \
- CC="$(tc-getCC)" \
- F77=$(tc-getFC) \
- LD=$(tc-getFC) \
- CCFLAGS="${CFLAGS} -DCNS_ARCH_TYPE_\$(CNS_ARCH_TYPE) \$(EXT_CCFLAGS)" \
- LDFLAGS="${LDFLAGS}" \
- F77OPT="${FFLAGS:- -O2} ${MALIGN}" \
- F77STD="${GLOBALS}" \
- OMPLIB="${OMPLIB}" \
- compiler="${COMP}" \
- install \
- || die "emake failed"
-}
-
-src_test() {
- # We need to force on g77 manually, because we can't get aliases working
- # when we source in a -c
- einfo "Running tests ..."
- sh -c \
- "export CNS_G77=ON; source ${T}/cns_solve_env_sh; make run_tests" \
- || die "tests failed"
- einfo "Displaying test results ..."
- cat "${S}"/*_g77/test/*.diff-test
-}
-
-src_install() {
- # Install to locations resembling FHS
- sed -i \
- -e "s:${S}:usr:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_ROOT ${EPREFIX}/usr:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_DATA \$CNS_ROOT/share/cns:g" \
- -e "s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_DOC \$CNS_ROOT/share/doc/${PF}:g" \
- -e "s:CNS_LIB \$CNS_SOLVE/libraries:CNS_LIB \$CNS_DATA/libraries:g" \
- -e "s:CNS_MODULE \$CNS_SOLVE/modules:CNS_MODULE \$CNS_DATA/modules:g" \
- -e "s:CNS_HELPLIB \$CNS_SOLVE/helplib:CNS_HELPLIB \$CNS_DATA/helplib:g" \
- -e "s:\$CNS_SOLVE/bin/cns_info:\$CNS_DATA/cns_info:g" \
- -e "/^g77on/d" \
- "${S}"/cns_solve_env
- # I don't entirely understand why the sh version requires a leading /
- # for CNS_SOLVE and CNS_ROOT, but it does
- sed -i \
- -e "s:${S}:/usr:g" \
- -e "s:^\(^[[:space:]]*CNS_SOLVE=.*\):\1\nexport CNS_ROOT=${EPREFIX}/usr:g" \
- -e "s:^\(^[[:space:]]*CNS_SOLVE=.*\):\1\nexport CNS_DATA=\$CNS_ROOT/share/cns:g" \
- -e "s:^\(^[[:space:]]*CNS_SOLVE=.*\):\1\nexport CNS_DOC=\$CNS_ROOT/share/doc/${PF}:g" \
- -e "s:CNS_LIB=\$CNS_SOLVE/libraries:CNS_LIB=\$CNS_DATA/libraries:g" \
- -e "s:CNS_MODULE=\$CNS_SOLVE/modules:CNS_MODULE=\$CNS_DATA/modules:g" \
- -e "s:CNS_HELPLIB=\$CNS_SOLVE/helplib:CNS_HELPLIB=\$CNS_DATA/helplib:g" \
- -e "s:\$CNS_SOLVE/bin/cns_info:\$CNS_DATA/cns_info:g" \
- -e "/^g77on/d" \
- -e "/^g77off/d" \
- "${T}"/cns_solve_env_sh
-
- # Get rid of setup stuff we don't need in the installed script
- sed -i \
- -e "83,$ d" \
- -e "37,46 d" \
- "${S}"/cns_solve_env
- sed -i \
- -e "84,$ d" \
- -e "39,50 d" \
- "${T}"/cns_solve_env_sh
-
- newbin "${S}"/*linux*/bin/cns_solve* cns_solve \
- || die "install cns_solve failed"
-
- # Can be run by either cns_solve or cns
- dosym cns_solve /usr/bin/cns
-
- # Don't want to install this
- rm -f "${S}"/*linux*/utils/Makefile
-
- dobin "${S}"/*linux*/utils/* || die "install utils failed"
-
- sed -i \
- -e "s:\$CNS_SOLVE/doc/:\$CNS_SOLVE/share/doc/${PF}/:g" \
- "${S}"/bin/cns_web || die
-
- dobin "${S}"/bin/cns_{edit,header,transfer,web} || die "install bin failed"
-
- insinto /usr/share/cns
- doins -r "${S}"/libraries "${S}"/modules "${S}"/helplib || die
- doins "${S}"/bin/cns_info || die
-
- insinto /etc/profile.d
- newins "${S}"/cns_solve_env cns_solve_env.csh || die
- newins "${T}"/cns_solve_env_sh cns_solve_env.sh || die
-
- dohtml \
- -A iq,cgi,csh,cv,def,fm,gif,hkl,inp,jpeg,lib,link,list,mask,mtf,param,pdb,pdf,pl,ps,sc,sca,sdb,seq,tbl,top \
- -f all_cns_info_template,omac,def \
- -r doc/html/* || die
- # Conflits with app-text/dos2unix
- rm -f "${D}"/usr/bin/dos2unix
-}
-
-pkg_info() {
- if use openmp; then
- elog "Set OMP_NUM_THREADS to the number of threads you want."
- elog "If you get segfaults on large structures, set the GOMP_STACKSIZE"
- elog "variable if using gcc (16384 should be good)."
- fi
-}
-
-pkg_postinst() {
- pkg_info
-}
diff --git a/sci-chemistry/cns/files/1.1-time-length-10.patch b/sci-chemistry/cns/files/1.1-time-length-10.patch
deleted file mode 100644
index 2b38bad6254b..000000000000
--- a/sci-chemistry/cns/files/1.1-time-length-10.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- cns_solve_1.1.orig/instlib/machine/unsupported/g77-unix/machine_f.f 2006-06-07 11:04:45.000000000 -0700
-+++ cns_solve_1.1/instlib/machine/unsupported/g77-unix/machine_f.f 2006-06-07 11:04:59.000000000 -0700
-@@ -65,7 +65,7 @@
- CHARACTER*(*) A
- INTEGER AMAX, ALEN
- C local
-- CHARACTER DSTR*8, TSTR*9
-+ CHARACTER DSTR*8, TSTR*10
- C begin
- IF (AMAX.LT.8) THEN
- WRITE(6,'(A)') ' %VTIME-ERR: string to small'
diff --git a/sci-chemistry/cns/files/1.2-allow-unknown-architectures.patch b/sci-chemistry/cns/files/1.2-allow-unknown-architectures.patch
deleted file mode 100644
index 327ffb2811b3..000000000000
--- a/sci-chemistry/cns/files/1.2-allow-unknown-architectures.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- cns_solve_1.2.orig/bin/install 2008-01-09 17:21:43.000000000 -0800
-+++ cns_solve_1.2/bin/install 2008-01-09 17:21:59.000000000 -0800
-@@ -78,12 +78,6 @@
- exit 1
- endif
- #
--if ( $CNS_ARCH =~ unknown* ) then
-- echo "the architecture of the machine is unknown - CNS_ARCH=$CNS_ARCH"
-- echo 'aborting installation'
-- exit 1
--endif
--#
- set prod=`echo $CNS_ARCH | awk 'BEGIN{FS="-"}{print $1}'`
- set cpu=`echo $CNS_ARCH | awk 'BEGIN{FS="-"}{print $2}' | sed 's/[0-9]*\.*[0-9]*$//'`
- set os=`echo $CNS_ARCH | awk 'BEGIN{FS="-"}{print $3}'`
diff --git a/sci-chemistry/cns/files/1.2.1-aria.patch b/sci-chemistry/cns/files/1.2.1-aria.patch
deleted file mode 100644
index 35c962b882c9..000000000000
--- a/sci-chemistry/cns/files/1.2.1-aria.patch
+++ /dev/null
@@ -1,475 +0,0 @@
-diff -arNu aria2.2/cns/src/cns.f aria2.2.new/cns/src/cns.f
---- aria2.2/cns/src/cns.f 2007-08-22 17:25:51.000000000 +0200
-+++ aria2.2.new/cns/src/cns.f 2009-06-14 15:28:39.907685273 +0200
-@@ -12,7 +12,7 @@
- C + J.Kuszewski, M.Nilges, N.S.Pannu, R.J.Read, +
- C + L.M.Rice, T.Simonson, G.L.Warren +
- C +===============================================================+
--C + Copyright 1997-2007 Yale University +
-+C + Copyright 1997-2008 Yale University +
- C +===============================================================+
- C +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- C
-@@ -470,6 +470,7 @@
- INTEGER HNLEN, TMP, PTRSZ, STLEN
- CHARACTER*(1) CNSPTMP
- CHARACTER*(4) ST
-+!$ integer omp_get_max_threads
- C
- C write header
- WRITE(6,'(10X,A)')
-@@ -511,7 +512,7 @@
- &' J.Kuszewski, M.Nilges, N.S.Pannu, R.J.Read,',
- &' L.M.Rice, T.Simonson, G.L.Warren.'
- WRITE(6,'(10X,A)')
-- &' Copyright (c) 1997-2007 Yale University'
-+ &' Copyright (c) 1997-2008 Yale University'
- WRITE(6,'(10X,A)')
- &'============================================================'
- C
-@@ -526,6 +527,9 @@
- WRITE(6,'(10X,7A)')
- & ' Running on machine: ',HOSTNM(1:HNLEN),
- & ' (',SYSNM(1:TMP),',',ST(1:STLEN),'-bit)'
-+!$ write(6,'(31x,a,i3,a)') 'with',omp_get_max_threads(),
-+!$ & ' threads'
-+!$C (to change use setenv OMP_NUM_THREADS x)
- C
- CALL GETNAM(USERNM,12,TMP)
- WRITE(6,'(10X,2A)')
-diff -arNu aria2.2/cns/src/energy.f aria2.2.new/cns/src/energy.f
---- aria2.2/cns/src/energy.f 2006-12-18 16:26:49.000000000 +0100
-+++ aria2.2.new/cns/src/energy.f 2009-06-14 14:47:57.421262637 +0200
-@@ -23,7 +23,8 @@
- INTEGER I, NDIM, N
- DOUBLE PRECISION TOTAL
- DOUBLE COMPLEX DCVAL
-- DOUBLE COMPLEX EDUMMY
-+CCC modifcation ATB 4/27/08
-+ DOUBLE PRECISION EDUMMY
- C parameters
- DOUBLE PRECISION ZERO, ONE
- PARAMETER (ZERO=0.0D0, ONE=1.0D0)
-diff -arNu aria2.2/cns/src/noe.f aria2.2.new/cns/src/noe.f
---- aria2.2/cns/src/noe.f 2007-08-22 17:25:51.000000000 +0200
-+++ aria2.2.new/cns/src/noe.f 2009-06-14 15:03:30.001587922 +0200
-@@ -36,8 +36,8 @@
- INTEGER ISLCT(*), JSLCT(*)
- C local
- INTEGER I, II, NISLCT, NJSLCT, ICL1, ICL2, NN, ITEMP, IEMODE
-- CHARACTER*4 CLASS, CLASS2, STEMP, SRESET
-- DOUBLE PRECISION SCALE, RTEMP, NOEDST, THRESH
-+ CHARACTER*4 CLASS, CLASS2, STEMP, SRESET, DENMODE
-+ DOUBLE PRECISION SCALE, RTEMP, NOEDST, THRESH, GAMMA, KAPPA
- LOGICAL MATCH
- C parameter
- DOUBLE PRECISION ZERO, ONE, SIX
-@@ -140,7 +140,7 @@
- & NPEAKI,HEAP(HPNPID),HEAP(HPNSPC),
- & HEAP(HPNPP1),HEAP(HPNPP2),HEAP(HPNHP1),HEAP(HPNHP2),
- & HEAP(HPNVOL),HEAP(HPCDIS),HEAP(HPCVOL),NATOM,ISLCT,NISLCT,
-- & JSLCT,NJSLCT,X,Y,Z)
-+ & JSLCT,NJSLCT,X,Y,Z,HEAP(HPDENINIT))
- C===================================================================
- ELSE IF (WD(1:4).EQ.'? ') THEN
- WRITE(6,'(A,I6,A,I6,A,/,A,F8.3,A,I6)')
-@@ -167,7 +167,8 @@
- C
- C get the class name:
- CALL NEXTA4('class-name=',CLASS)
-- CALL NEXTF('AVERaging=',RTEMP)
-+CCC modification ATB 4/27/08
-+ CALL NEXTF('AVEXponent=',RTEMP)
- DO I=1,NOECCN
- CALL EQSTWC(NOECNM(I),4,CLASS,4,1,1,MATCH)
- IF (MATCH) THEN
-@@ -179,7 +180,8 @@
- C
- C get the class name:
- CALL NEXTA4('class-name=',CLASS)
-- CALL NEXTF('AVERaging=',RTEMP)
-+CCC modification ATB 4/27/08
-+ CALL NEXTF('OREXponent=',RTEMP)
- DO I=1,NOECCN
- CALL EQSTWC(NOECNM(I),4,CLASS,4,1,1,MATCH)
- IF (MATCH) THEN
-@@ -585,6 +587,38 @@
- IF (NOEICV.GT.0) CALL NOEPRI(THRESH,1)
- END IF
- C====================================================================
-+CCC modification ATB 5/02/08
-+ ELSE IF (WD(1:4).EQ.'OUTD') THEN
-+ CALL NOEOUT(0)
-+ IF (NOEICV.GT.0) CALL NOEOUT(1)
-+C====================================================================
-+CCC modification ATB 4/25/08
-+ ELSE IF (WD(1:3).EQ.'DEN') THEN
-+ CALL NEXTWD('DEN>')
-+ IF (WD(1:4).NE.'INIT'.AND.WD(1:4).NE.'UPDA') THEN
-+ WRITE(6,'(A)') ' %NOE-ERR: DEN expects INIT or UPDAte'
-+ ELSE
-+ DENMODE=WD(1:4)
-+ GAMMA=0.0D0
-+ KAPPA=0.0D0
-+ IF (DENMODE.EQ.'UPDA') THEN
-+ CALL NEXTWD('DEN>')
-+ IF (WD(1:4).NE.'GAMM') THEN
-+ WRITE(6,'(A)') ' %NOE-ERR: DEN UPDAte expects GAMMa parameter'
-+ ELSE
-+ CALL NEXTF('GAMMa=',GAMMA)
-+ CALL NEXTWD('DEN>')
-+ IF (WD(1:4).NE.'KAPP') THEN
-+ WRITE(6,'(A)') ' %NOE-ERR: DEN UPDAte expects KAPPa parameter'
-+ ELSE
-+ CALL NEXTF('KAPPa=',KAPPA)
-+ END IF
-+ END IF
-+ END IF
-+ CALL NOEDEN(DENMODE,GAMMA,KAPPA,0)
-+ IF (NOEICV.GT.0) CALL NOEDEN(DENMODE,GAMMA,KAPPA,1)
-+ END IF
-+C====================================================================
- ELSE IF (WD(1:4).EQ.'ANAL') THEN
- CALL NEXTA4('ANALyse=',RANA)
- C====================================================================
-@@ -683,7 +717,7 @@
- & NOEXCL,NPEAKI,NOEPID,NOESPC,NOEPP1,NOEPP2,NOEHP1,
- $ NOEHP2,NOEVOL,NOECDI,
- & NOECVO,NATOM,ISLCT,NISLCT,
-- & JSLCT,NJSLCT,X,Y,Z)
-+ & JSLCT,NJSLCT,X,Y,Z,NOEDENINIT)
- C
- C Subroutine parses an NOE ASSIgn statement and
- C puts the information into the NOE restraints list
-@@ -706,7 +740,7 @@
- DOUBLE PRECISION NOEPP1(*),NOEPP2(*),NOEHP1(*),NOEHP2(*)
- DOUBLE PRECISION NOEVOL(*), NOECDI(*),NOECVO(*)
- INTEGER NATOM, ISLCT(*), NISLCT, JSLCT(*), NJSLCT
-- DOUBLE PRECISION X(*), Y(*), Z(*)
-+ DOUBLE PRECISION X(*), Y(*), Z(*), NOEDENINIT(*)
- C local
- INTEGER I, II, JJ, J, TISLCT, TJSLCT, PEAKID
- LOGICAL SUCCES,OK
-@@ -737,6 +771,10 @@
- CALL NEXTF('lower-average-distance=',NOELOW(NOENUM))
- CALL NEXTF('higher-average-distance=',NOEHIG(NOENUM))
- C
-+C initialize initial DEN distance
-+ NOEDENINIT(NOENUM)=ZERO
-+
-+C
- C initialize time-average and running average stuff
- C
- C set the time-averaged distance and
-@@ -1732,6 +1770,232 @@
- RETURN
- END
- C====================================================================
-+ SUBROUTINE NOEOUT(ITEST)
-+C
-+C print a list of current NOE restraints
-+C as assign statements
-+C Front-end for NOEPR3
-+ IMPLICIT NONE
-+C I/O
-+ INCLUDE 'cns.inc'
-+ INCLUDE 'heap.inc'
-+ INCLUDE 'noe.inc'
-+ INTEGER ITEST
-+C begin
-+ CALL NOEPR3(ITEST,
-+ & HEAP(HPNORR),HEAP(HPNIPR),HEAP(HPNILS),HEAP(HPNJPR),
-+ & HEAP(HPNJLS),HEAP(HPNCND),HEAP(HPNRAV),HEAP(HPNRRV),
-+ & HEAP(HPNDIS),HEAP(HPNLOW),HEAP(HPNHIG),
-+ & HEAP(HPNVIO),HEAP(HPNCV), HEAP(HPNPID))
-+
-+ RETURN
-+ END
-+C====================================================================
-+ SUBROUTINE NOEPR3(ITEST,
-+ & NOEORR,NOEIPR,NOEILS,NOEJPR,
-+ & NOEJLS,NOECND,NOERAV,NOERRV,
-+ & NOEDIS,NOELOW,NOEHIG,
-+ & NOEVIO,NOECV,NOEPID)
-+ IMPLICIT NONE
-+C I/O
-+ INCLUDE 'cns.inc'
-+ INCLUDE 'noe.inc'
-+ INCLUDE 'mtf.inc'
-+ INCLUDE 'pick.inc'
-+ INCLUDE 'comand.inc'
-+ INCLUDE 'numbers.inc'
-+ INTEGER ITEST
-+C
-+C global NOE arrays on HEAP
-+C restraint and atom pointers
-+ INTEGER NOEORR(*),NOEIPR(*),NOEILS(*),NOEJPR(*),NOEJLS(*)
-+C classes
-+ INTEGER NOECND(*)
-+C averages
-+ DOUBLE PRECISION NOERAV(*),NOERRV(*)
-+C target distance and errors
-+ DOUBLE PRECISION NOEDIS(*),NOELOW(*),NOEHIG(*)
-+C number of violations
-+ INTEGER NOEVIO(*)
-+C time average pointer, test set, restraint number
-+ INTEGER NOECV(*), NOEPID(*)
-+C
-+C local
-+ INTEGER N, K, I, J, CLASS, NORR
-+ INTEGER I1, I2
-+C begin
-+ IF (NOENUM.GT.0) THEN
-+C
-+C loop over all classes
-+ DO CLASS=1,NOECCN
-+ IF (NOEPOT(CLASS).EQ.NOESYM.OR.
-+ & NOEPOT(CLASS).EQ.NOEHDI.OR.
-+ & NOEPOT(CLASS).EQ.NOE3DP) THEN
-+ CALL WRNDIE(-5,'NOEPRI',
-+ & 'DENOut not possible with POTEntial set to SYMM, HIGH, or 3DPO')
-+ ELSE
-+C
-+C loop over all NOE's belonging to this class
-+ DO N=1,NOENUM
-+ IF ((ITEST.EQ.0.AND.NOECV(N).NE.NOEICV).OR.
-+ & (ITEST.EQ.1.AND.NOECV(N).EQ.NOEICV)) THEN
-+ IF (NOECND(N).EQ.CLASS) THEN
-+C
-+C WE ONLY TAKE THE FIRST FROM EACH SET
-+ NORR=NOEORR(N)+1
-+C
-+C DO I=NOEIPR(NORR)+1,NOEIPR(NORR+1)
-+C
-+C WE ONLY TAKE THE FIRST FROM EACH SET
-+ I=NOEIPR(NORR)+1
-+ K=NOEILS(I)
-+ I1=K
-+C
-+C WE ONLY TAKE THE FIRST FROM EACH SET
-+ J=NOEJPR(NORR)+1
-+ K=NOEJLS(J)
-+ I2=K
-+C
-+ WRITE(PUNIT,'(A,I6,A,I6,A,F6.3,A,F6.3,A,F6.3)')
-+ & 'ASSIGn (id ',
-+ & I1, ' ) (id ', I2, ' ) ', NOEDIS(N),
-+ & ' ', NOELOW(N), ' ', NOEHIG(N)
-+C
-+ END IF
-+ END IF
-+ END DO
-+ END IF
-+ END DO
-+ END IF
-+ RETURN
-+ END
-+C====================================================================
-+ SUBROUTINE NOEDEN(DENMODE,GAMMA,KAPPA,ITEST)
-+C
-+C print a list of current NOE restraints
-+C Front-end for NOEPR2
-+ IMPLICIT NONE
-+C I/O
-+ INCLUDE 'cns.inc'
-+ INCLUDE 'heap.inc'
-+ INCLUDE 'noe.inc'
-+ CHARACTER*4 DENMODE
-+ DOUBLE PRECISION GAMMA, KAPPA
-+ INTEGER ITEST
-+C begin
-+ CALL NOEDEN2(DENMODE,GAMMA,KAPPA,ITEST,
-+ & HEAP(HPNORR),HEAP(HPNIPR),HEAP(HPNILS),HEAP(HPNJPR),
-+ & HEAP(HPNJLS),HEAP(HPNCND),HEAP(HPNRAV),HEAP(HPNRRV),
-+ & HEAP(HPNDIS),HEAP(HPNLOW),HEAP(HPNHIG),
-+ & HEAP(HPNVIO),HEAP(HPNCV), HEAP(HPNPID),
-+ & HEAP(HPDENINIT))
-+
-+ RETURN
-+ END
-+C====================================================================
-+ SUBROUTINE NOEDEN2(DENMODE,GAMMA,KAPPA,ITEST,
-+ & NOEORR,NOEIPR,NOEILS,NOEJPR,
-+ & NOEJLS,NOECND,NOERAV,NOERRV,
-+ & NOEDIS,NOELOW,NOEHIG,
-+ & NOEVIO,NOECV,NOEPID,NOEDENINIT)
-+ IMPLICIT NONE
-+C I/O
-+ INCLUDE 'cns.inc'
-+ INCLUDE 'noe.inc'
-+ INCLUDE 'mtf.inc'
-+ INCLUDE 'pick.inc'
-+ INCLUDE 'comand.inc'
-+ INCLUDE 'numbers.inc'
-+ CHARACTER*4 DENMODE
-+ DOUBLE PRECISION GAMMA,KAPPA
-+ INTEGER ITEST
-+C
-+C global NOE arrays on HEAP
-+C restraint and atom pointers
-+ INTEGER NOEORR(*),NOEIPR(*),NOEILS(*),NOEJPR(*),NOEJLS(*)
-+C classes
-+ INTEGER NOECND(*)
-+C averages
-+ DOUBLE PRECISION NOERAV(*),NOERRV(*)
-+C target distance and errors
-+ DOUBLE PRECISION NOEDIS(*),NOELOW(*),NOEHIG(*)
-+C number of violations
-+ INTEGER NOEVIO(*)
-+C time average pointer, test set, restraint number
-+ INTEGER NOECV(*), NOEPID(*)
-+C initial den distance
-+ DOUBLE PRECISION NOEDENINIT(*)
-+C
-+C local
-+ DOUBLE PRECISION EN, NOERMS, NOERM2(NOECMX), THRESH
-+ DOUBLE COMPLEX DBCOMP
-+ DOUBLE PRECISION DBPREC
-+ INTEGER NOENU2(NOECMX)
-+ INTEGER NOEVIT
-+ INTEGER N, K, I, J, CLASS, NOENUML, NORR
-+ CHARACTER*6 SSAVE
-+ CHARACTER*11 SSPOT
-+ LOGICAL QHEAD
-+C begin
-+ THRESH=-0.1
-+ NOERMS=ZERO
-+ NOEVIT=0
-+ NOENUML=0
-+ IF (NOENUM.GT.0) THEN
-+C
-+C
-+C loop over all classes
-+ DO CLASS=1,NOECCN
-+ NOENU2(CLASS)=0
-+ NOERM2(CLASS)=ZERO
-+ NOEVIO(CLASS)=0
-+ IF (NOEPOT(CLASS).EQ.NOESYM.OR.
-+ & NOEPOT(CLASS).EQ.NOEHDI.OR.
-+ & NOEPOT(CLASS).EQ.NOE3DP) THEN
-+ CALL WRNDIE(-5,'NOEPRI',
-+ & 'DEN not possible with POTEntial set to SYMM, HIGH, or 3DPO')
-+ ELSE
-+C
-+C loop over all NOE's belonging to this class
-+ QHEAD=.TRUE.
-+ DO N=1,NOENUM
-+ IF ((ITEST.EQ.0.AND.NOECV(N).NE.NOEICV).OR.
-+ & (ITEST.EQ.1.AND.NOECV(N).EQ.NOEICV)) THEN
-+ IF (NOECND(N).EQ.CLASS) THEN
-+ NOENUML=NOENUML+1
-+C
-+C get NOE energy, current distance (in PCDATA(PCGEOM), and other results
-+ CALL ENOE(EN,'ANAL',N)
-+ NOERMS=NOERMS+PCDATA(PCDEVI)**2
-+ NOERM2(CLASS)=NOERM2(CLASS)+PCDATA(PCDEVI)**2
-+ NOENU2(CLASS)=NOENU2(CLASS)+1
-+ IF (ABS(PCDATA(PCDEVI)).GT.THRESH) THEN
-+ NOEVIO(CLASS)=NOEVIO(CLASS)+1
-+ NOEVIT=NOEVIT+1
-+ END IF
-+C
-+ IF (DENMODE.EQ.'INIT') THEN
-+C
-+C initialization
-+ NOEDENINIT(N)=PCDATA(PCGEOM)
-+CCCCxxx NOEDIS(N)=PCDATA(PCGEOM)
-+ ELSE
-+C
-+C update step
-+ NOEDIS(N)=NOEDIS(N)+KAPPA*(GAMMA*(PCDATA(PCGEOM)-NOEDIS(N))+
-+ & (ONE-GAMMA)*(NOEDENINIT(N)-NOEDIS(N)) )
-+ END IF
-+C
-+ END IF
-+ END IF
-+ END DO
-+ END IF
-+ END DO
-+C
-+ END IF
-+ RETURN
-+ END
-+C====================================================================
- SUBROUTINE ENOE(EN,ANALYS,NA)
- C
- C Routine computes force field for NOE restraints
-@@ -3357,6 +3621,7 @@
- HPNRRV=0
- HPNNSP=0
- HPNDIS=0
-+ HPDENINIT=0
- HPNLOW=0
- HPNHIG=0
- HPNWGH=0
-@@ -3373,7 +3638,6 @@
- HPNVOL=0
- HPCVOL=0
- HPCDIS=0
-- HPNPRD=0
- C
- C
- C reset other variables
-@@ -3463,6 +3727,7 @@
- IF (HPNRRV.NE.0) CALL FREHP(HPNRRV,IREAL8(NOEMAX))
- IF (HPNNSP.NE.0) CALL FREHP(HPNNSP,INTEG4(NOEMAX))
- IF (HPNDIS.NE.0) CALL FREHP(HPNDIS,IREAL8(NOEMAX))
-+ IF (HPDENINIT.NE.0) CALL FREHP(HPDENINIT,IREAL8(NOEMAX))
- IF (HPNLOW.NE.0) CALL FREHP(HPNLOW,IREAL8(NOEMAX))
- IF (HPNHIG.NE.0) CALL FREHP(HPNHIG,IREAL8(NOEMAX))
- IF (HPNWGH.NE.0) CALL FREHP(HPNWGH,IREAL8(NOEMAX))
-@@ -3495,6 +3760,7 @@
- HPNRRV=0
- HPNNSP=0
- HPNDIS=0
-+ HPDENINIT=0
- HPNLOW=0
- HPNHIG=0
- HPNWGH=0
-@@ -3511,7 +3777,6 @@
- HPNVOL=0
- HPCVOL=0
- HPCDIS=0
-- HPNPRD=0
- C
- C now allocate new space
- IF (NOENEW.GT.0) THEN
-@@ -3536,6 +3801,7 @@
- HPNRRV=ALLHP(IREAL8(NOENEW))
- HPNNSP=ALLHP(INTEG4(NOENEW))
- HPNDIS=ALLHP(IREAL8(NOENEW))
-+ HPDENINIT=ALLHP(IREAL8(NOENEW))
- HPNCND=ALLHP(INTEG4(NOENEW))
- HPNJLS=ALLHP(INTEG4(NOENEW))
- HPNJPR=ALLHP(INTEG4(NOENEW))
-diff -arNu aria2.2/cns/src/noe.inc aria2.2.new/cns/src/noe.inc
---- aria2.2/cns/src/noe.inc 2007-08-22 17:25:51.000000000 +0200
-+++ aria2.2.new/cns/src/noe.inc 2009-06-14 15:24:50.995208687 +0200
-@@ -29,6 +29,9 @@
- C list for distances and +/- error estimates (heap pointers)
- INTEGER HPNDIS, HPNLOW, HPNHIG
- C
-+C list for initial DEN distances
-+ INTEGER HPDENINIT
-+C
- C individual weights on restraints
- INTEGER HPNWGH
- C
-@@ -119,7 +122,7 @@
- INTEGER HPNVIO, HPNEXC, HPNNUM
-
- C peak identifier
-- INTEGER NPEAKI, HPNPID, HPNPRD
-+ INTEGER NPEAKI, HPNPID
- C
- C
- C
-@@ -142,7 +145,7 @@
- & NMONO, RAVEXP, NOECOR, NOEICV,
- & HPNVIO, HPNEXC, HPNNUM,
- & NPEAKI, HPNPID, IDIMER, HPNPP1, HPNPP2,
-- & HPNHP1, HPNHP2, HPNVOL, HPCVOL, HPCDIS, HPNPRD
-+ & HPNHP1, HPNHP2, HPNVOL, HPCVOL, HPCDIS, HPDENINIT
- C
- C character string block
- C