Install this version:
emerge -a =sci-libs/wannier90-4.0.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-libs/wannier90-4.0.2
Or alternatively:
emerge --autounmask-write -a =sci-libs/wannier90-4.0.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 4.0.2 | 8 | ~amd64 | 0 |
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Package for generating maximally-localized Wannier functions"
HOMEPAGE="https://wannier.org"
SRC_URI="https://github.com/wannier-developers/wannier90/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="LGPL-2.1+"
IUSE="mpi"
SLOT="0"
DEPEND="
sci-libs/flexiblas[system-blas]
mpi? ( virtual/mpi[fortran] >=sys-devel/gcc-12 )
!mpi? ( >=sys-devel/gcc-12[fortran] )
"
BDEPEND="
"
src_configure() {
# echo "FCOPTS = -fallow-argument-mismatch -fPIC" >> ${S}/make.inc
local mycmakeargs=(
-DWANNIER90_WITH_C=ON
-DWANNIER90_SHARED_LIBS=ON
-DWANNIER90_MPI="$(usex mpi ON OFF)"
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p sci-libs/wannier90 |
euse -E <flag> -p sci-libs/wannier90 |
euse -D <flag> -p sci-libs/wannier90
sci-libs/flexiblas[system-blas] mpi? ( virtual/mpi[fortran] >=sys-devel/gcc-12 ) !mpi? ( >=sys-devel/gcc-12[fortran] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | wannier90-4.0.2.tar.gz | 246694521 bytes | https://github.com/wannier-developers/wannier90/archive/refs/tags/v4.0.2.tar.gz |