public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Christoph Junghans" <ottxor@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/votca-csg/
Date: Thu, 14 Jul 2016 17:30:31 +0000 (UTC)	[thread overview]
Message-ID: <1468517422.6cb701d4e1f513c9d98a6cebf208ecfc95e0220a.ottxor@gentoo> (raw)

commit:     6cb701d4e1f513c9d98a6cebf208ecfc95e0220a
Author:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 14 17:28:41 2016 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> 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
+}


             reply	other threads:[~2016-07-14 17:30 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 17:30 Christoph Junghans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-01 19:36 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/votca-csg/ Andreas Sturmlechner
2022-02-20 14:58 Christoph Junghans
2022-02-20 14:58 Christoph Junghans
2022-02-20 14:58 Christoph Junghans
2021-09-19 15:20 Christoph Junghans
2021-07-18 23:24 Christoph Junghans
2021-04-05 16:53 Andreas Sturmlechner
2021-03-28 10:02 Agostino Sarubbo
2021-03-27 16:07 Sam James
2021-03-19 19:46 Christoph Junghans
2021-03-14 19:15 Christoph Junghans
2021-02-28 18:08 Andreas Sturmlechner
2021-01-18 10:14 David Seifert
2021-01-13  1:20 Christoph Junghans
2021-01-13  1:20 Christoph Junghans
2021-01-06 15:10 Fabian Groffen
2020-12-10 19:26 Christoph Junghans
2020-11-04 16:08 Christoph Junghans
2020-11-03 19:48 Christoph Junghans
2020-08-22 23:36 Christoph Junghans
2020-06-21 15:41 Christoph Junghans
2020-04-18  5:01 Christoph Junghans
2020-01-12 21:51 Christoph Junghans
2020-01-12 20:06 Christoph Junghans
2019-11-22  2:26 Christoph Junghans
2019-05-20 11:03 Mikle Kolyada
2019-05-06 16:41 Christoph Junghans
2019-01-31 20:16 Christoph Junghans
2018-11-24 23:44 Christoph Junghans
2018-10-25  0:44 Christoph Junghans
2018-09-28 12:37 Christoph Junghans
2017-09-03 14:55 Christoph Junghans
2017-09-03 13:41 Christoph Junghans
2017-07-30 10:04 Michał Górny
2016-12-20 14:30 Tobias Klausmann
2016-11-25 21:50 Christoph Junghans
2016-11-24  5:04 Christoph Junghans
2016-11-14  2:01 Christoph Junghans
2016-10-29 21:41 Christoph Junghans
2016-09-27 18:13 Christoph Junghans
2016-08-19 21:59 Christoph Junghans
2016-04-19 20:17 Ian Stakenvicius
2016-01-22 18:51 Michael Palimaka
2016-01-15 22:30 Christoph Junghans
2015-09-24  5:20 Christoph Junghans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468517422.6cb701d4e1f513c9d98a6cebf208ecfc95e0220a.ottxor@gentoo \
    --to=ottxor@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox