diff options
author | Christoph Junghans <junghans@gentoo.org> | 2017-09-03 07:38:30 -0600 |
---|---|---|
committer | Christoph Junghans <junghans@gentoo.org> | 2017-09-03 07:41:02 -0600 |
commit | 6e090b5457fa4594209a0334f4c1224814ba21d1 (patch) | |
tree | 3522035a24ceab0a5e7374cecb6313a052bd0fe7 /sci-chemistry | |
parent | sci-libs/votca-tools: version bump (diff) | |
download | gentoo-6e090b5457fa4594209a0334f4c1224814ba21d1.tar.gz gentoo-6e090b5457fa4594209a0334f4c1224814ba21d1.tar.bz2 gentoo-6e090b5457fa4594209a0334f4c1224814ba21d1.zip |
sci-chemistry/votca-csg: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/votca-csg/Manifest | 3 | ||||
-rw-r--r-- | sci-chemistry/votca-csg/votca-csg-1.4.1.ebuild | 113 |
2 files changed, 116 insertions, 0 deletions
diff --git a/sci-chemistry/votca-csg/Manifest b/sci-chemistry/votca-csg/Manifest index 7ead25d47fba..9d379b6119cf 100644 --- a/sci-chemistry/votca-csg/Manifest +++ b/sci-chemistry/votca-csg/Manifest @@ -1,3 +1,6 @@ +DIST votca-csg-1.4.1.tar.gz 347702 SHA256 1ff9fc5ad95cd57e7c1d2c8adad5b32f81a978e2bea34f14f7defcdd11a05ec7 SHA512 87f2798c9b5f2d82ae1c158238f7a3b7007c7ceb7ce82503f0b002f605f2cc0b5ca4c8ef24fab571efae63a81e7a60bc476b5433962c239de4f5d42bae3c10ea WHIRLPOOL 26946d54dd2c1665f411ae0424150ef93db7cf71984377a04a6bb1154d66ba8676f54a4b10f0e8167cee3ae5a4ad26f702a67da2be356c08e5e6a626e2483864 DIST votca-csg-1.4.tar.gz 346527 SHA256 713702613b1e51459a18eb1ef83116eb3dbfd25f05d32e5772ee300a674cdc74 SHA512 26318644c7af2dfa1b81242b27ffac98f2180c3a1f05581bc50a00f644cec4b19ffbaf41c9d941a4714171b56ae93fe41f1a663cd0593ae2b0be2da379119d9b WHIRLPOOL 15c7749b1fa003e92e94f4f3f4ac7698667e5a06f739d4e97686aa904b8433a1e1628fae1c1f718bc4bfd2108d515cb12098852a0ebecb213e478874997f3148 +DIST votca-csg-manual-1.4.1.pdf 1282641 SHA256 8358bf7640d30f3dce75c7c2463383d6c5ca37aca4cb3f4b638a02dbcc806c7b SHA512 e89f41af05eaeb9ea499e8625cc98e2632ec647ec2d8c9c9052dcd4d2935d082b29b51495514e3e06e73ce42b8cda7017fc523a013569378e2bc86bf88ad32d4 WHIRLPOOL 2b8e903fc4ceddb58af8c3d7b78b8c2091aca473154dc613736f39f757e6a546058b16d5272ebbaad441eb143cc2f7edd8afd82fa884aff140aa7102d5b3b417 DIST votca-csg-manual-1.4.pdf 1281983 SHA256 e2e235473a64dc674a373eacaade4922e02a64274c1f28bcf3b443fbf425d1da SHA512 2e1f4a4375d83df9bd357d4d17e79d26a3a31c9177f008de86721427ffc6f43a5000ec840691108b52a8aecf962321ba6363cd975c7445d7230ee5b0b151b3fa WHIRLPOOL 24580fe71202daad3d4f627657c6aa24175df807462e5c03a05de39f5b2ba38a44a51ee7cfc50416795fc4dfbc8041a4360a3dd680ea339464e1097782b71ac9 +DIST votca-csg-tutorials-1.4.1.tar.gz 6339417 SHA256 029e7f033c21ed37d8428c363133326744ff088bdcf3cd6b843a9b60dba268ef SHA512 896ec9d6b2537a06301046a74c1957708eb96d9854b3ec855fe3457208c142f6fb26a03e323a2644862a1efd0030fcceb1189f73655b984462f0f7127a02de90 WHIRLPOOL b540802743eff6c988f00dd8c4f449021f4ca257541394194ef48d0fc364d73d90a1c3845472769c82cfdc20c6dbf8671440fa4c5cc623ab179b2459e87bc078 DIST votca-csg-tutorials-1.4.tar.gz 6348417 SHA256 f5082f57575f09e9a0035f428603946676b251b7cb45b4332ded833be4dca649 SHA512 f3eb28a133ebc04eed07f84d5962943cb9c547c1099638127f15e0015dfdf3f0b25aab4c97d009d6040bf1d69d408cc178edd6e803d33bf1d831e12dca0671c7 WHIRLPOOL da02cda090eb46dd74d6f2bec8adec70ca7a05796ed0d05772133f566e091f794e2d7fa2640ca775e249248624d0f022212444fa3425c3f715a4dea94a300225 diff --git a/sci-chemistry/votca-csg/votca-csg-1.4.1.ebuild b/sci-chemistry/votca-csg/votca-csg-1.4.1.ebuild new file mode 100644 index 000000000000..533b017fe2b9 --- /dev/null +++ b/sci-chemistry/votca-csg/votca-csg-1.4.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +CMAKE_MAKEFILE_GENERATOR="ninja" + +inherit bash-completion-r1 cmake-utils multilib + +IUSE="doc examples extras +gromacs hdf5" +PDEPEND="extras? ( =sci-chemistry/${PN}apps-${PV} )" +if [ "${PV}" != "9999" ]; then + SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz + doc? ( https://github.com/${PN/-//}-manual/releases/download/v${PV}/${PN}-manual-${PV}.pdf ) + examples? ( https://github.com/${PN/-//}-tutorials/archive/v${PV}.tar.gz -> ${PN}-tutorials-${PV}.tar.gz )" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos" + S="${WORKDIR}/${P#votca-}" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN/-//}.git" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Votca coarse-graining engine" +HOMEPAGE="http://www.votca.org" + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + =sci-libs/votca-tools-${PV} + gromacs? ( sci-chemistry/gromacs:= ) + hdf5? ( sci-libs/hdf5 ) + dev-lang/perl + app-shells/bash:*" + +DEPEND="${RDEPEND} + doc? ( + app-doc/doxygen[dot] + dev-texlive/texlive-latexextra + virtual/latex-base + dev-tex/pgf + ) + >=app-text/txt2tags-2.5 + virtual/pkgconfig" + +DOCS=( README.md NOTICE CHANGELOG.md ) + +src_unpack() { + if [[ ${PV} != *9999 ]]; then + default + else + git-r3_src_unpack + if use doc; then + EGIT_REPO_URI="https://github.com/${PN/-//}-manual.git" + EGIT_BRANCH="master" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-manual"\ + git-r3_src_unpack + fi + if use examples; then + EGIT_REPO_URI="https://github.com/${PN/-//}-tutorials.git" + EGIT_BRANCH="master" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials"\ + git-r3_src_unpack + fi + fi +} + +src_configure() { + mycmakeargs=( + -DWITH_GMX=$(usex gromacs) + -DWITH_H5MD=$(usex hdf5) + -DWITH_RC_FILES=OFF + -DLIB=$(get_libdir) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newbashcomp scripts/csg-completion.bash csg_call + for i in "${ED}"/usr/bin/csg_*; do + [[ ${i} = *csg_call ]] && continue + bashcomp_alias csg_call "${i##*/}" + done + if use doc; then + if [[ ${PV} = *9999* ]]; then + #we need to do that here, because we need an installed version of csg to build the manual + [[ ${CHOST} = *-darwin* ]] && \ + emake -C "${WORKDIR}/${PN}"-manual PATH="${PATH}${PATH:+:}${ED}/usr/bin" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}${DYLD_LIBRARY_PATH:+:}${ED}/usr/$(get_libdir)" \ + || emake -C "${WORKDIR}/${PN}"-manual PATH="${PATH}${PATH:+:}${ED}/usr/bin" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}${ED}/usr/$(get_libdir)" + newdoc "${WORKDIR}/${PN}"-manual/manual.pdf "${PN}-manual-${PV}.pdf" + else + dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf" + fi + cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html + dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html + fi + if use examples; then + insinto "/usr/share/doc/${PF}/tutorials" + docompress -x "/usr/share/doc/${PF}/tutorials" + rm -rf "${WORKDIR}/${PN#votca-}"-tutorials*/CMake* + doins -r "${WORKDIR}/${PN#votca-}"-tutorials*/* + fi +} + +pkg_postinst() { + einfo + einfo "Please read and cite:" + einfo "VOTCA, J. Chem. Theory Comput. 5, 3211 (2009). " + einfo "https://dx.doi.org/10.1021/ct900369w" + einfo +} |