1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 CMAKE_MAKEFILE_GENERATOR="ninja"
8 inherit bash-completion-r1 cmake-utils multilib
11 if [ "${PV}" != "9999" ]; then
12 SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
13 doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
15 S="${WORKDIR}/${P#votca-}"
18 EGIT_REPO_URI="https://github.com/${PN/-//}.git"
22 DESCRIPTION="Votca excitation and charge properties module"
23 HOMEPAGE="http://www.votca.org"
29 ~sci-libs/votca-tools-${PV}[sqlite]
31 ~sci-chemistry/votca-csg-${PV}
36 >=app-text/txt2tags-2.5
39 if [ "${PV}" != "9999" ]; then
43 dev-texlive/texlive-latexextra
49 DOCS=( README.md NOTICE CHANGELOG.md )
52 [[ ${PV} = *9999* ]] && mycmakeargs=(
53 -DBUILD_XTP_MANUAL=$(usex doc)
55 cmake-utils_src_configure
59 cmake-utils_src_install
61 [[ ${PV} != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
62 cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html
63 dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html
69 einfo "Please read and cite:"
70 einfo "VOTCA-XTP, J. Chem. Theo. Comp. 14, 6353 (2018)"
71 einfo "https://doi.org/10.1021/acs.jctc.8b00617"