aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-15 21:04:29 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-15 21:04:29 +0100
commit5f3bbdd655e095639112920670142a829ec65683 (patch)
tree43136ed19f49498d60b570dd54318aa6c3293c91 /sci-physics/openmx/openmx-3.6.ebuild
parentprofiles/package.mask: unmask fullprof, fixed (diff)
downloadsci-5f3bbdd655e095639112920670142a829ec65683.tar.gz
sci-5f3bbdd655e095639112920670142a829ec65683.tar.bz2
sci-5f3bbdd655e095639112920670142a829ec65683.zip
sci-physics/openmx: fix fetch, version bump
no keywords yet because compilation fails at the end with some undefined references Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'sci-physics/openmx/openmx-3.6.ebuild')
-rw-r--r--sci-physics/openmx/openmx-3.6.ebuild96
1 files changed, 0 insertions, 96 deletions
diff --git a/sci-physics/openmx/openmx-3.6.ebuild b/sci-physics/openmx/openmx-3.6.ebuild
deleted file mode 100644
index 4da849ef5..000000000
--- a/sci-physics/openmx/openmx-3.6.ebuild
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="Material eXplorer"
-HOMEPAGE="http://www.openmx-square.org/"
-SRC_URI="
- http://www.openmx-square.org/${PN}${PV}.tar.gz
- http://www.openmx-square.org/bugfixed/11Nov14/patch${PV}.1.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="-debug mpi openmp test"
-
-RDEPEND="
- virtual/blas
- virtual/lapack
- sci-libs/fftw:3.0[mpi?,openmp?]
- mpi? ( virtual/mpi )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S="${WORKDIR}/${PN}${PV}"
-
-pkg_setup() {
- if use mpi; then
- export CC="mpicc"
- else
- tc-export CC
- fi
-
- if use openmp; then
- if tc-has-openmp; then
- export CC="${CC} -fopenmp"
- else
- die "Please switch to an openmp compatible compiler"
- fi
- fi
-}
-
-src_prepare() {
- cd "${WORKDIR}"
- mv *.out "${PN}${PV}"/work/input_example
- mv *.[hc] "${PN}${PV}"/source
-}
-
-src_configure() {
- local FFTW_FLAVOUR=fftw3
- if use openmp; then
- FFTW_FLAVOUR=fftw3_omp
- else
- export CFLAGS="${CFLAGS} -Dnoomp"
- fi
- if use mpi; then
- FFTW_FLAVOUR=fftw3_mpi
- else
- export CFLAGS="${CFLAGS} -Dnompi"
- fi
- CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags lapack)"
- CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags ${FFTW_FLAVOUR})"
- export CFLAGS
-
- local MX_LIB="$($(tc-getPKG_CONFIG) --static --libs lapack)"
- local MX_LIB="${MX_LIB} $($(tc-getPKG_CONFIG) --static --libs ${FFTW_FLAVOUR})"
-
- sed \
- -e "s%^CC *=.*$%CC = ${CC} ${CFLAGS}%" \
- -e "s%^LIB *=.*$%LIB = ${MX_LIB}%" \
- -i source/makefile || die
-}
-
-src_compile() {
- emake -C source
-}
-
-src_test() {
- cd work
- ../source/openmx -runtest || die
-}
-
-src_install() {
- insinto /usr/share/${P}
- doins -r DFT_DATA11
- cd work
- insinto /usr/share/${P}/examples
- doins -r *
- cd ../source
- dodir /usr/bin
- emake DESTDIR="${D}/usr/bin" install
- dodoc "${S}/${PN}${PV}.pdf"
- use test && dodoc "${S}"/work/runtest.result
-}