diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-02-06 15:46:32 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-02-06 15:46:32 +0000 |
commit | 9e46774d2e1953f13cf6b3d9948fdc8a860bc219 (patch) | |
tree | a6d943301cac238c7579e3c8527668a97c3d6502 /sci-chemistry | |
parent | Respect CXXFLAGS, add suid flag and postinst warning wrt bug 402395 by Steffe... (diff) | |
download | historical-9e46774d2e1953f13cf6b3d9948fdc8a860bc219.tar.gz historical-9e46774d2e1953f13cf6b3d9948fdc8a860bc219.tar.bz2 historical-9e46774d2e1953f13cf6b3d9948fdc8a860bc219.zip |
Drop old
Package-Manager: portage-2.2.0_alpha85/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/cns/ChangeLog | 6 | ||||
-rw-r--r-- | sci-chemistry/cns/Manifest | 15 | ||||
-rw-r--r-- | sci-chemistry/cns/cns-1.2.1-r5.ebuild | 242 | ||||
-rw-r--r-- | sci-chemistry/cns/cns-1.2.1.ebuild | 200 |
4 files changed, 11 insertions, 452 deletions
diff --git a/sci-chemistry/cns/ChangeLog b/sci-chemistry/cns/ChangeLog index 45c1ca7b6e42..98278dcf83ee 100644 --- a/sci-chemistry/cns/ChangeLog +++ b/sci-chemistry/cns/ChangeLog @@ -1,6 +1,10 @@ # 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.44 2012/02/04 15:01:15 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/ChangeLog,v 1.45 2012/02/06 15:46:32 jlec Exp $ + + 06 Feb 2012; Justin Lecher <jlec@gentoo.org> -cns-1.2.1.ebuild, + -cns-1.2.1-r5.ebuild: + Drop old 04 Feb 2012; Thomas Kahle <tomka@gentoo.org> cns-1.2.1-r6.ebuild: marked x86 per bug 391555 diff --git a/sci-chemistry/cns/Manifest b/sci-chemistry/cns/Manifest index 3df8ac1ddf06..88bbf3eb69db 100644 --- a/sci-chemistry/cns/Manifest +++ b/sci-chemistry/cns/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX 1.1-time-length-10.patch 443 RMD160 664ae29ccb2921954ffb14653e4560ed2bef1fa4 SHA1 ca1ddd1535c54bd541570eaf0187eb4c6f638e13 SHA256 73ca56b80588aabd513d6f5171db1217189899e04b5e460a55824eef13c5505a AUX 1.2-allow-unknown-architectures.patch 540 RMD160 559f16141025b3d102a316af79ba0ee195846774 SHA1 d168a0413aab5e84ea48f1de5e0a84bc7206fcc7 SHA256 47f398e4c534f01eb64a1c68d477d21a8371707a0977b900d9f2124d3d37243d @@ -19,20 +19,17 @@ DIST cns_solve_1.1_basic_inputs.tar.gz 5049767 RMD160 eb5686a006d53cf269456eaecd DIST cns_solve_1.1_data.tar.gz 18770504 RMD160 a18470f31fa6213e817dadf3c3c56231ebce9e63 SHA1 3eaae5ecd1df14412083af8a31a6e3f7b14c4753 SHA256 da59213013b845ca357decfc11337c7dfdb3134bd012c710291c66e8febdbb37 DIST cns_solve_1.1_test.tar.gz 2852870 RMD160 2f7e7b5ed4e603b2459944a8991829d1361315b5 SHA1 c50587cf3fdfcb1266d13dbd689a9b8b094fb681 SHA256 c5d049596cca4f6985b0b4997f4fa62345d2c111b8fab534918829ade1899a23 DIST cns_solve_1.21_all-mp.tar.gz 32748040 RMD160 0da9c1858e858474a8798149b7692b9e097adc9e SHA1 3ba32a6622b55dfff397b6844e8b8a594124a482 SHA256 7ab464e20932eb024ba6378738da77a4a03642d63b0ca9772b612a7cf27baec1 -DIST cns_solve_1.21_all.tar.gz 32739912 RMD160 ab763373923264497d1ccb507cab23b2e1af9826 SHA1 93059805e14f0482cf58755daecc52cf97863215 SHA256 a581c6a0e9e5ffd45f025520959921d7ba91bb5d1e6569f1c81e709bb6f87c81 DIST cns_solve_1.3_all.tar.gz 61221912 RMD160 6bce0ddeb04651223be46c0d94504d57da2b3e60 SHA1 51d069b8799d574b2d6124474ba8bcd1655f237e SHA256 9f7e38575d101870cf87a23a1bbaac378ed2cf60a9fada71868a10e4cbf6e1e2 EBUILD cns-1.1.ebuild 3749 RMD160 e3e939dc4bfee9acace88181d4206417d0d40099 SHA1 44bd3184af25ac3713be2914a1c3292840479d4e SHA256 18971dfaf06932193bcc31accf8a84644bb0beac67b12d1a7c4b1b89891fa2ef -EBUILD cns-1.2.1-r5.ebuild 6843 RMD160 44c3031a036837d687989af3861dc55218ce00d7 SHA1 23c01e04d76e63831ca529694a207de33114b25e SHA256 79ad99649fcda855569f467f78ab03c9def972dd0d3b485e3ae432dd0ccd0b06 EBUILD cns-1.2.1-r6.ebuild 6861 RMD160 55c955df92c42c12189031bd4179f059a8cadfe8 SHA1 1394acd3917d0459d57568af2c2de4f04dc5f258 SHA256 9b05ee4e7db37d1bf2846f671c9740224e1ed3ba21004d4bc01b40202f3620b2 EBUILD cns-1.2.1-r7.ebuild 6862 RMD160 8a8dd57c652f21fd44079a2af6774664b6bc3efb SHA1 32b6c3c207be6f14d4cbdfd9936b843147b3d104 SHA256 33b87c54cebdaa1159937c0ec0c8360c4c10a45344e803a51020d73008c013ae -EBUILD cns-1.2.1.ebuild 5591 RMD160 f06d7b6913492eeac5e1c8cb4cdd26344a82c7b9 SHA1 37922ec85c0c872c81a65a704d9bd97659c6a2f8 SHA256 7c90b8357889c2730f40ae556608763a9e27696b5f485a8f4ed9a154d3181f8d EBUILD cns-1.3_p5.ebuild 6098 RMD160 1f8ae90ce32108de0acfb4f4aaa3d52c7096958a SHA1 8fb8c381acb5f5ea3584d261dea919c848ef4949 SHA256 fef533bbce218d5f3800648def3a8226c7d3611df127c338401ead0021a5c66a -MISC ChangeLog 7835 RMD160 3615489171e54ad5d42e647d12dd34a327f266e5 SHA1 8cca5b58e21ceb1d538c5b77aa5015b000e0eefa SHA256 853acc91d9b273627353760389e7db621ae8a46efccff1054d294f33c1591cbf +MISC ChangeLog 7936 RMD160 7afb5adc21263d989cba5523d03367a8841a1604 SHA1 e8c6db8959b71ccc0fc82d9f53eb9f8956e93f6e SHA256 6d89850d5de64a9fdc42f9c0c6ec87a8594bee0e8b4f92e64e48b87d4967cee2 MISC metadata.xml 309 RMD160 795b309a43b2deab1061f07c27ac092a290fc4c7 SHA1 3242a8d4127632b627277254eeae9a3ec98e2107 SHA256 b324f51d14838e35c102e299cbb7b5c3d777c91ffdbe011fbc085a117226b189 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.18 (GNU/Linux) -iF4EAREIAAYFAk8tSEoACgkQodBTJSDyo67zNAD/WRDJrQpYe/T0tgCRHxvo9OAw -4PUFh5RiS940iixfnQQA/iVa1nAeGFNK4iJ4k+aFmVD19m33WhbTurI7M2UEe0El -=ASkX +iEYEAREKAAYFAk8v9d0ACgkQgAnW8HDreRa03gCgxTZ7LiucjFet8BigfU86B6IZ +m8MAoI4x1doatSdC+O0F8wLmwUrM/ECk +=V+kS -----END PGP SIGNATURE----- diff --git a/sci-chemistry/cns/cns-1.2.1-r5.ebuild b/sci-chemistry/cns/cns-1.2.1-r5.ebuild deleted file mode 100644 index e62a8e66cf1f..000000000000 --- a/sci-chemistry/cns/cns-1.2.1-r5.ebuild +++ /dev/null @@ -1,242 +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.2.1-r5.ebuild,v 1.11 2011/06/21 16:05:16 jlec 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" \ - "${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/cns-1.2.1.ebuild b/sci-chemistry/cns/cns-1.2.1.ebuild deleted file mode 100644 index 16ace3511fe3..000000000000 --- a/sci-chemistry/cns/cns-1.2.1.ebuild +++ /dev/null @@ -1,200 +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.2.1.ebuild,v 1.13 2011/06/21 16:05:16 jlec Exp $ - -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=" - !openmp? ( ${MY_P}_all.tar.gz ) - openmp? ( ${MY_P}_all-mp.tar.gz )" - -SLOT="0" -LICENSE="cns" -KEYWORDS="amd64 ~ppc ~x86" -IUSE="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/" - 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 -} - -src_unpack() { - unpack ${A} - cd "${S}" - - use openmp && append-fflags -fopenmp && \ - append-ldflags -fopenmp - - # Someone already did the same in the openmp version, apparently - use openmp || epatch "${FILESDIR}"/1.2-allow-unknown-architectures.patch - - # the code uses Intel-compiler-specific directives - use openmp && epatch "${FILESDIR}"/${PV}-allow-gcc-openmp.patch - - # 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 -} - -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 - emake \ - 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}" \ - 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 ..." - sh -c \ - "export CNS_G77=ON; source .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 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_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=/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" \ - "${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}"/*_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" - - sed -i \ - -e "s:\$CNS_SOLVE/doc/:\$CNS_SOLVE/share/doc/${PF}/:g" \ - "${S}"/bin/cns_web - - 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 - - insinto /etc/profile.d - newins "${S}"/cns_solve_env cns_solve_env.csh - newins "${T}"/cns_solve_env_sh cns_solve_env.sh - - 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_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). Also run" - elog "ulimit -s 16384." - fi -} - -pkg_postinst() { - pkg_info -} |