summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2016-08-03 12:00:08 -0600
committerChristoph Junghans <ottxor@gentoo.org>2016-08-03 12:00:25 -0600
commit951bafca9ed6046b5584a6d7a9b44de579fff99d (patch)
treeb5c99c8c88af7becb3fa57ca86d79dc01996e684 /sci-physics/espresso
parentdev-vcs/git-flow: Update HOMEPAGE (diff)
downloadgentoo-951bafca9ed6046b5584a6d7a9b44de579fff99d.tar.gz
gentoo-951bafca9ed6046b5584a6d7a9b44de579fff99d.tar.bz2
gentoo-951bafca9ed6046b5584a6d7a9b44de579fff99d.zip
sci-physics/espresso: live ebuild update
Package-Manager: portage-2.2.28
Diffstat (limited to 'sci-physics/espresso')
-rw-r--r--sci-physics/espresso/espresso-9999.ebuild50
-rw-r--r--sci-physics/espresso/metadata.xml2
2 files changed, 25 insertions, 27 deletions
diff --git a/sci-physics/espresso/espresso-9999.ebuild b/sci-physics/espresso/espresso-9999.ebuild
index 66a0214e6e55..6b906a0b1a61 100644
--- a/sci-physics/espresso/espresso-9999.ebuild
+++ b/sci-physics/espresso/espresso-9999.ebuild
@@ -24,24 +24,25 @@ fi
LICENSE="GPL-3"
SLOT="0"
-IUSE="cuda doc examples +fftw +hdf5 packages python test -tk"
+IUSE="cuda doc examples +fftw +hdf5 packages +python tcl test"
-REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="
+ packages? ( tcl )
+ || ( python tcl )
+ ${PYTHON_REQUIRED_USE}"
RDEPEND="
+ ${PYTHON_DEPS}
python? (
- ${PYTHON_DEPS}
>dev-python/cython-0.22[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
)
- dev-lang/tcl:0=
+ tcl? ( dev-lang/tcl:0= )
cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 )
fftw? ( sci-libs/fftw:3.0 )
dev-libs/boost:=[mpi]
- virtual/mpi
hdf5? ( sci-libs/hdf5 )
- packages? ( dev-tcltk/tcllib )
- tk? ( >=dev-lang/tk-8.4.18-r1:0= )"
+ packages? ( dev-tcltk/tcllib )"
DEPEND="${RDEPEND}
doc? (
@@ -51,10 +52,6 @@ DEPEND="${RDEPEND}
DOCS=( AUTHORS NEWS README ChangeLog )
-pkg_setup() {
- use python && python-single-r1_pkg_setup
-}
-
src_prepare() {
use cuda && cuda_src_prepare
cmake-utils_src_prepare
@@ -63,9 +60,12 @@ src_prepare() {
src_configure() {
mycmakeargs=(
-DWITH_CUDA=$(usex cuda)
+ -DPYTHON_EXECUTABLE="${PYTHON}"
-DWITH_PYTHON=$(usex python)
+ -DWITH_TCL=$(usex tcl)
-DWITH_TESTS=$(usex test)
- -DWITH_H5MD=$(usex hdf5)
+ -DWITH_SCAFACOS=ON
+ -DINSTALL_PYPRESSO=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_FFTW3=$(usex !fftw)
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=$(usex !hdf5)
-DCMAKE_SKIP_RPATH=YES
@@ -81,7 +81,7 @@ src_compile() {
}
src_install() {
- local i
+ local i docdir="${S}"
cmake-utils_src_install
@@ -91,24 +91,22 @@ src_install() {
save_config ${CMAKE_BUILD_DIR}/src/core/myconfig-final.hpp
if use doc; then
- if [[ ${PV} = 9999 ]] ; then
- newdoc ${CMAKE_BUILD_DIR}/doc/dg/dg.pdf developer_guide.pdf
- newdoc ${CMAKE_BUILD_DIR}/doc/ug/ug.pdf user_guide.pdf
- for i in ${CMAKE_BUILD_DIR}/doc/tutorials/*/*/[0-9]*.pdf; do
- newdoc "${i}" "tutorial_${i##*/}"
- done
- else
- newdoc "${S}"/doc/ug/ug.pdf user_guide.pdf
- for i in "${S}"/doc/tutorials/*/*/[0-9]*.pdf; do
- newdoc "${i}" "tutorial_${i##*/}"
+ [[ ${PV} = 9999 ]] && docdir="${CMAKE_BUILD_DIR}"
+ newdoc "${docdir}"/doc/dg/dg.pdf developer_guide.pdf
+ newdoc "${docdir}"/doc/ug/ug.pdf user_guide.pdf
+ for j in $(usev python) $(usev tcl); do
+ for i in "${docdir}/doc/tutorials/${j}"/*/[0-9]*.pdf; do
+ newdoc "${i}" "${j}_tutorial_${i##*/}"
done
- fi
+ done
dodoc -r ${CMAKE_BUILD_DIR}/doc/doxygen/html
fi
if use examples; then
- insinto /usr/share/${PN}/examples
- doins -r samples/*
+ for i in $(usev python) $(usev tcl); do
+ insinto "/usr/share/${PN}/examples/${i}"
+ doins -r samples/${i}/.
+ done
fi
if use packages; then
diff --git a/sci-physics/espresso/metadata.xml b/sci-physics/espresso/metadata.xml
index 13db45989c89..3d99b653bb90 100644
--- a/sci-physics/espresso/metadata.xml
+++ b/sci-physics/espresso/metadata.xml
@@ -12,6 +12,6 @@
<use>
<flag name="cuda">Enable cuda support</flag>
<flag name="examples">Installs the examples</flag>
- <flag name="packages">Installs extra subpackages</flag>
+ <flag name="packages">Installs extra TCL subpackages</flag>
</use>
</pkgmetadata>