From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 50C7A138306 for ; Thu, 14 Jul 2016 17:30:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC1FC21C13C; Thu, 14 Jul 2016 17:30:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC6A121C13C for ; Thu, 14 Jul 2016 17:30:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29877340CA5 for ; Thu, 14 Jul 2016 17:30:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 00582244E for ; Thu, 14 Jul 2016 17:30:31 +0000 (UTC) From: "Christoph Junghans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Junghans" Message-ID: <1468517422.6cb701d4e1f513c9d98a6cebf208ecfc95e0220a.ottxor@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/votca-csg/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/votca-csg/votca-csg-9999.ebuild X-VCS-Directories: sci-chemistry/votca-csg/ X-VCS-Committer: ottxor X-VCS-Committer-Name: Christoph Junghans X-VCS-Revision: 6cb701d4e1f513c9d98a6cebf208ecfc95e0220a X-VCS-Branch: master Date: Thu, 14 Jul 2016 17:30:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e9de5f57-f0cd-44f3-ae63-9047dfe29b65 X-Archives-Hash: fa76102a6c0e8f603fff9364b179e5d7 commit: 6cb701d4e1f513c9d98a6cebf208ecfc95e0220a Author: Christoph Junghans gentoo org> AuthorDate: Thu Jul 14 17:28:41 2016 +0000 Commit: Christoph Junghans gentoo org> CommitDate: Thu Jul 14 17:30:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cb701d4 sci-chemistry/votca-csg: import live ebuild from sci Package-Manager: portage-2.2.28 sci-chemistry/votca-csg/votca-csg-9999.ebuild | 114 ++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild new file mode 100644 index 0000000..1b619ba --- /dev/null +++ b/sci-chemistry/votca-csg/votca-csg-9999.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git" + KEYWORDS="" +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="git://github.com/${PN/-//}-manual.git 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="git://github.com/${PN/-//}-tutorials.git 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 "http://dx.doi.org/10.1021/ct900369w" + einfo +}