Skip to content

Commit

Permalink
sci-chemistry/votca: fix python dep
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/833818
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Christoph Junghans <[email protected]>
  • Loading branch information
junghans committed Feb 21, 2022
1 parent ab24d7c commit 24d49d5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion sci-chemistry/votca/votca-2022.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python3_{8..10} )

inherit bash-completion-r1 cmake
inherit bash-completion-r1 cmake python-single-r1

if [[ ${PV} == *9999 ]]; then
inherit git-r3
Expand All @@ -25,12 +26,14 @@ HOMEPAGE="https://www.votca.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+gromacs test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"

RDEPEND="
!sci-libs/votca-tools
!sci-chemistry/votca-csg
!sci-chemistry/votca-xtp
${PYTHON_DEPS}
app-shells/bash:*
>=dev-cpp/eigen-3.3
dev-libs/boost:=
Expand All @@ -47,6 +50,13 @@ BDEPEND="virtual/pkgconfig"

DOCS=( README.rst NOTICE.rst CHANGELOG.rst )

src_prepare() {
# espressopp was removed from gentoo
rm -r ./csg-tutorials/spce/ibi_espressopp || die
python_fix_shebang .
cmake_src_prepare
}

src_configure() {
local mycmakeargs=(
-DENABLE_TESTING=$(usex test)
Expand Down
12 changes: 11 additions & 1 deletion sci-chemistry/votca/votca-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python3_{8..10} )

inherit bash-completion-r1 cmake
inherit bash-completion-r1 cmake python-single-r1

if [[ ${PV} == *9999 ]]; then
inherit git-r3
Expand All @@ -25,12 +26,14 @@ HOMEPAGE="https://www.votca.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+gromacs test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"

RDEPEND="
!sci-libs/votca-tools
!sci-chemistry/votca-csg
!sci-chemistry/votca-xtp
${PYTHON_DEPS}
app-shells/bash:*
>=dev-cpp/eigen-3.3
dev-libs/boost:=
Expand All @@ -47,6 +50,13 @@ BDEPEND="virtual/pkgconfig"

DOCS=( README.rst NOTICE.rst CHANGELOG.rst )

src_prepare() {
# espressopp was removed from gentoo
rm -r ./csg-tutorials/spce/ibi_espressopp || die
python_fix_shebang .
cmake_src_prepare
}

src_configure() {
local mycmakeargs=(
-DENABLE_TESTING=$(usex test)
Expand Down

0 comments on commit 24d49d5

Please sign in to comment.