diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-25 23:06:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-25 23:06:25 +0000 |
commit | 441d1370330332b7d78f238d2f5e13f7aed5e4e0 (patch) | |
tree | 6a5171dd615dfeee62a45044144c66e864738fb0 /sci-libs/libsc/libsc-9999.ebuild | |
parent | ab3da91fb6c91a9df52fff8f991570f456fd3c7a (diff) |
gentoo christmass resync : 25.12.2020
Diffstat (limited to 'sci-libs/libsc/libsc-9999.ebuild')
-rw-r--r-- | sci-libs/libsc/libsc-9999.ebuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/sci-libs/libsc/libsc-9999.ebuild b/sci-libs/libsc/libsc-9999.ebuild index 229d1ccd05fc..4c588fc838b4 100644 --- a/sci-libs/libsc/libsc-9999.ebuild +++ b/sci-libs/libsc/libsc-9999.ebuild @@ -1,9 +1,11 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit autotools toolchain-funcs eutils +LUA_COMPAT=( lua5-{1..3} ) + +inherit autotools lua-single toolchain-funcs eutils DESCRIPTION="Support for parallel scientific applications" HOMEPAGE="http://www.p4est.org/" @@ -23,10 +25,10 @@ LICENSE="LGPL-2.1+" SLOT="0" IUSE="debug examples mpi openmp romio static-libs threads" -REQUIRED_USE="romio? ( mpi )" +REQUIRED_USE="${LUA_REQUIRED_USE} + romio? ( mpi )" -RDEPEND=" - dev-lang/lua:* +RDEPEND="${LUA_DEPS} sys-apps/util-linux virtual/blas virtual/lapack @@ -36,6 +38,10 @@ DEPEND=" ${RDEPEND} virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${PN}-9999_20201220-autoconf_lua_version.patch +) + DOCS=( AUTHORS NEWS README ) AUTOTOOLS_AUTORECONF=true @@ -50,8 +56,10 @@ pkg_pretend() { src_prepare() { default + sed -i -e "s/@LUA_IMPL@/${ELUA}/" "${S}"/src/sc_lua.h || die + # Inject a version number into the build system - echo "${PV}" > ${S}/.tarball-version + echo "${PV}" > ${S}/.tarball-version || die eautoreconf } @@ -66,7 +74,7 @@ src_configure() { --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" ) - econf "${myeconfargs[@]}" + econf LUA_IMPL="${ELUA}" "${myeconfargs[@]}" } src_install() { |