sci-physics/oncvpsp - 4.0.1 (phackerlay)

Search

Install

Install this version:

emerge -a =sci-physics/oncvpsp-4.0.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-physics/oncvpsp-4.0.1

Or alternatively:

emerge --autounmask-write -a =sci-physics/oncvpsp-4.0.1

Package Information

Description:
The official repository of the oncvpsp code to generate optimized norm-conserving Vanderbilt pseudopotentials
Homepage:
https://github.com/oncvpsp/oncvpsp
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
4.0.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic

DESCRIPTION="The official repository of the oncvpsp code to generate optimized norm-conserving Vanderbilt pseudopotentials"
HOMEPAGE="
	https://github.com/oncvpsp/oncvpsp
"
SRC_URI="https://github.com/oncvpsp/oncvpsp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

IUSE="+blas_openblas test"

DEPEND="
	sys-devel/gcc[fortran]
	blas_openblas? ( sci-libs/openblas )
"

PATCHES=(
	${FILESDIR}/1-no-libxc.patch
	${FILESDIR}/2-fix-ref-path.patch
	${FILESDIR}/3-make-test-optional.patch
)

REQUIRED_USE="
	^^ ( blas_openblas )
"

src_configure() {
	append-fflags -fdec-blank-format-item
	filter-lto

	default

	MAKE_INC="${S}/make.inc"
	echo "F77        = gfortran" > $MAKE_INC
	echo "F90        = gfortran" >> $MAKE_INC
	echo "CC         = gcc" >> $MAKE_INC
	echo "FCCPP	   = cpp" >> $MAKE_INC
	echo "FLINKER     = gfortran" >> $MAKE_INC
	echo "LIBS = -lopenblas" >> $MAKE_INC
#	echo "FCCPPFLAGS = -ansi -DLIBXC_VERSION=400" >> $MAKE_INC
#	echo "OBJS_LIBXC =    exc_libxc_stub.o" >> $MAKE_INC
#	echo "LIBS += -lxcf90 -lxc" >> $MAKE_INC
#	echo "FFLAGS += -I${EPREFIX}/usr/include" >> $MAKE_INC
#	echo "OBJS_LIBXC =    functionals.o exc_libxc.o" >> $MAKE_INC
}

src_test() {
	emake -j1 test
}

src_install() {
	dobin ${S}/src/oncvpspnr.x
	dobin ${S}/src/oncvpspr.x
	dobin ${S}/src/oncvpsp.x
}

USE Flags

Manage flags for this package: euse -i <flag> -p sci-physics/oncvpsp | euse -E <flag> -p sci-physics/oncvpsp | euse -D <flag> -p sci-physics/oncvpsp

Global/Standard Flags

blas_openblas
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	sys-devel/gcc[fortran]
	blas_openblas? ( sci-libs/openblas )

Manifest for 4.0.1

Type File Size Source URLs
DIST oncvpsp-4.0.1.tar.gz 1371103 bytes https://github.com/oncvpsp/oncvpsp/archive/refs/tags/4.0.1.tar.gz