summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@gentoo.org>2019-01-31 13:07:28 -0700
committerChristoph Junghans <junghans@gentoo.org>2019-01-31 13:15:50 -0700
commite7249adcf0d036b82685cb11898e5ad86f314dc1 (patch)
tree31fdb2c2a1def89fa9bd5b50ddc346b146c28ff9
parentsci-chemistry/votca-xtp: version bump (diff)
downloadgentoo-e7249adcf0d036b82685cb11898e5ad86f314dc1.tar.gz
gentoo-e7249adcf0d036b82685cb11898e5ad86f314dc1.tar.bz2
gentoo-e7249adcf0d036b82685cb11898e5ad86f314dc1.zip
sci-chemistry/votca-ctp: version bump
Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Christoph Junghans <junghans@gentoo.org>
-rw-r--r--sci-chemistry/votca-ctp/Manifest2
-rw-r--r--sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild71
-rw-r--r--sci-chemistry/votca-ctp/votca-ctp-9999.ebuild33
3 files changed, 103 insertions, 3 deletions
diff --git a/sci-chemistry/votca-ctp/Manifest b/sci-chemistry/votca-ctp/Manifest
new file mode 100644
index 00000000000..f527423449b
--- /dev/null
+++ b/sci-chemistry/votca-ctp/Manifest
@@ -0,0 +1,2 @@
+DIST votca-ctp-1.5.tar.gz 1345419 BLAKE2B 148846b9118cabfa541eb4fe0129e366d0c447e2daf969833beb5df91ca7b43f0262c5845303ccf05ed8d3f9e2c2a5e0f876ec97c2601419ed04a28d56640494 SHA512 bc4dbddcefb473015a6513f44f4fddd5995a8598f82505e81b3c50ae771e64e8c979f39a347ab2deb55054e7efffad28b5ff3f73d2c1b8905bcaf6f007ff2959
+DIST votca-ctp-manual-1.5.pdf 970539 BLAKE2B 8646215a4c2cd7be6d4c03820f00b8067e15c27f51fb6678540026cff1af0e28dffa528423ad47a4047a8f84fc1078d503a56a4a235e004735f0276ec1a6a33e SHA512 a315c1b4b37461f4f0d30ead1fec2ca33ff23d81c9d5e4d888ef7d7dd722f68f9596826f828f8a76841d6dde6889f623b73d9fe0f8a6c5a7cec1c16a83cf9030
diff --git a/sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild b/sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild
new file mode 100644
index 00000000000..892997f7af3
--- /dev/null
+++ b/sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MAKEFILE_GENERATOR="ninja"
+
+inherit cmake-utils multilib
+
+IUSE="doc"
+if [ "${PV}" != "9999" ]; then
+ SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )"
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
+ S="${WORKDIR}/${P#votca-}"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/${PN/-//}.git"
+ KEYWORDS=""
+fi
+
+DESCRIPTION="Votca charge transport module"
+HOMEPAGE="http://www.votca.org"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND="
+ ~sci-libs/votca-tools-${PV}[sqlite]
+ >=dev-cpp/eigen-3.3
+ sci-libs/gsl
+ ~sci-chemistry/votca-csg-${PV}"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+if [ "${PV}" != "9999" ]; then
+ DEPEND="${DEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ dev-texlive/texlive-latexextra
+ virtual/latex-base
+ dev-tex/pgf
+ )"
+fi
+
+DOCS=( README.md NOTICE CHANGELOG.md )
+
+src_configure() {
+ [[ ${PV} = *9999* ]] && mycmakeargs=(
+ -DBUILD_XTP_MANUAL=$(usex doc)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc; then
+ [[ ${PV} != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
+ cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html
+ dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please read and cite:"
+ einfo "VOTCA-CTP, J. Chem. Theo. Comp. 7, 3335-3345 (2011)"
+ einfo "https://dx.doi.org/10.1021/ct200388s"
+ einfo
+}
diff --git a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild b/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild
index 4e400a2318b..892997f7af3 100644
--- a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild
+++ b/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -7,9 +7,10 @@ CMAKE_MAKEFILE_GENERATOR="ninja"
inherit cmake-utils multilib
-IUSE=""
+IUSE="doc"
if [ "${PV}" != "9999" ]; then
- SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
S="${WORKDIR}/${P#votca-}"
else
@@ -33,8 +34,34 @@ RDEPEND="
DEPEND="${RDEPEND}
virtual/pkgconfig"
+if [ "${PV}" != "9999" ]; then
+ DEPEND="${DEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ dev-texlive/texlive-latexextra
+ virtual/latex-base
+ dev-tex/pgf
+ )"
+fi
+
DOCS=( README.md NOTICE CHANGELOG.md )
+src_configure() {
+ [[ ${PV} = *9999* ]] && mycmakeargs=(
+ -DBUILD_XTP_MANUAL=$(usex doc)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc; then
+ [[ ${PV} != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
+ cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html
+ dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html
+ fi
+}
+
pkg_postinst() {
einfo
einfo "Please read and cite:"