commit: 2eef5a85b0c5b544c6dc689ae24e9a2771423412 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Wed Dec 4 21:15:15 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Wed Dec 4 22:30:21 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2eef5a85
sci-libs/starparse: switch to guile eclass Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> ...tarparse-0.9.ebuild => starparse-0.9-r1.ebuild} | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/sci-libs/starparse/starparse-0.9.ebuild b/sci-libs/starparse/starparse-0.9-r1.ebuild similarity index 58% rename from sci-libs/starparse/starparse-0.9.ebuild rename to sci-libs/starparse/starparse-0.9-r1.ebuild index a18173e1b..593105df2 100644 --- a/sci-libs/starparse/starparse-0.9.ebuild +++ b/sci-libs/starparse/starparse-0.9-r1.ebuild @@ -1,7 +1,10 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +GUILE_COMPAT=( 1-8 ) +inherit guile-single DESCRIPTION="Library for parsing NMR star files (peak-list format) and CIF files" HOMEPAGE="http://burrow-owl.sourceforge.net/" @@ -14,12 +17,32 @@ KEYWORDS="~amd64" IUSE="guile test" RESTRICT="!test? ( test )" -REQUIRED_USE="test? ( guile )" +REQUIRED_USE="test? ( guile ) guile? ( ${GUILE_REQUIRED_USE} )" -RDEPEND="guile? ( dev-scheme/guile:12 )" +RDEPEND="guile? ( ${GUILE_DEPS} )" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +src_prepare() { + default + if use guile; then + guile-single_src_prepare + fi +} + +pkg_setup() { + if use guile; then + guile-single_pkg_setup + fi +} + src_configure() { econf $(use_enable guile) } + +src_install() { + default + if use guile; then + guile_unstrip_ccache + fi +}
