diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-12-20 13:05:42 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-12-20 13:28:47 +0000 |
commit | 778bcc52e751edb3d000ff58fe08c73eaa2a854e (patch) | |
tree | 8130fdaa39e34fa3e1ae7727872c7aeabe9a49f3 /sci-libs/libsc/libsc-9999.ebuild | |
parent | sci-libs/libsc: limit unmigrated ebuilds to dev-lang/lua:0 (diff) | |
download | gentoo-778bcc52e751edb3d000ff58fe08c73eaa2a854e.tar.gz gentoo-778bcc52e751edb3d000ff58fe08c73eaa2a854e.tar.bz2 gentoo-778bcc52e751edb3d000ff58fe08c73eaa2a854e.zip |
sci-libs/libsc: migrate to lua-single.eclass
Both the latest release and the live ebuild. Compatibility as per upstream
build scripts.
Uses a weird home-grown way of detecting Lua which makes implicit assumptions
about paths used by Lua headers, I think I've managed to figure it out though.
Status:
- 2.2-r100 builds and installs fine but has one test (dmatrix) failing with
a non-zero exit code, which test however has got nothing to do with Lua;
- 9999 fails to build on an unrelated matter (upstream version-processing
macros do not like "9999" appearing as version number).
Closes: https://bugs.gentoo.org/752840
Signed-off-by: Marek Szuba <marecki@gentoo.org>
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() { |