From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/slib/
Date: Fri, 5 Aug 2022 17:48:13 +0000 (UTC) [thread overview]
Message-ID: <1659721690.01b63379a93a881b535fe90112d34501d90c3eb4.xgqt@gentoo> (raw)
commit: 01b63379a93a881b535fe90112d34501d90c3eb4
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 5 17:27:31 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Aug 5 17:48:10 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b63379
dev-scheme/slib: EAPI 8; multiple fixes
Closes: https://bugs.gentoo.org/863803
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
.../{slib-3.2.5-r1.ebuild => slib-3.2.5-r2.ebuild} | 68 +++++++++++-----------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/dev-scheme/slib/slib-3.2.5-r1.ebuild b/dev-scheme/slib/slib-3.2.5-r2.ebuild
similarity index 64%
rename from dev-scheme/slib/slib-3.2.5-r1.ebuild
rename to dev-scheme/slib/slib-3.2.5-r2.ebuild
index a239934da617..6c59160888a4 100644
--- a/dev-scheme/slib/slib-3.2.5-r1.ebuild
+++ b/dev-scheme/slib/slib-3.2.5-r2.ebuild
@@ -1,46 +1,43 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="6"
-
-inherit versionator
+EAPI=8
#version magic thanks to masterdriverz and UberLord using bash array instead of tr
trarr="0abcdefghi"
-MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
+MY_PV="$(ver_cut 1)${trarr:$(ver_cut 2):1}$(ver_cut 3)"
DESCRIPTION="Portable Scheme library for all standard Scheme implementations"
HOMEPAGE="http://people.csail.mit.edu/jaffer/SLIB"
SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${PN}-${MY_PV}.zip"
-
-RESTRICT="mirror"
+S="${WORKDIR}"/${PN}
LICENSE="public-domain BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="gambit scm"
+RESTRICT="mirror"
RDEPEND="
- >=sys-apps/texinfo-5.0
>=dev-scheme/guile-1.8.8:=
gambit? ( dev-scheme/gambit )
- scm? ( dev-scheme/scm )"
-DEPEND="${RDEPEND}
- app-arch/unzip"
+ scm? ( dev-scheme/scm )
+"
+BDEPEND="
+ ${RDEPEND}
+ >=sys-apps/texinfo-5.0
+ app-arch/unzip
+"
DOCS=( ANNOUNCE COPYING FAQ README ChangeLog slib.{txt,html} )
PATCHES=(
- "${FILESDIR}/${P}-fix-paths.patch"
- "${FILESDIR}/${P}-fix-makefile-guile.patch"
+ "${FILESDIR}"/${P}-fix-makefile-guile.patch
+ "${FILESDIR}"/${P}-fix-paths.patch
)
-S="${WORKDIR}/${PN}"
-
src_configure() {
- ./configure \
- --prefix=/usr \
- --libdir=/usr/share || die
+ ./configure --prefix=/usr --libdir=/usr/share || die
}
src_compile() {
@@ -52,44 +49,47 @@ src_compile() {
src_install() {
# core
- dodir /usr/share/${PN}
insinto /usr/share/${PN}
- doins *.{dat,init,ps,scm,sh}
-
- # permissions
- local i
- for i in "${ED%/}"/usr/share/${PN}/*.sh ; do
- fperms +x /usr/share/${PN}/$(basename "$i")
- done
+ doins *.{dat,init,ps,scm}
+ exeinto /usr/share/${PN}
+ doexe *.sh
# bin
dodir /usr/bin/
- dosym /usr/share/${PN}/${PN}.sh /usr/bin/${PN}
+ dosym ../../usr/share/${PN}/${PN}.sh /usr/bin/${PN}
# env
- doenvd "${FILESDIR}/50slib"
+ doenvd "${FILESDIR}"/50slib
# docs
doinfo slib.info
doman slib.1
# guile
- if has_version '=dev-scheme/guile-2.0*'; then
+ if has_version '=dev-scheme/guile-3.0*'; then
+ dodir /usr/share/guile/3.0
+ dosym ../../../../usr/share/${PN}/ /usr/share/guile/3.0/${PN}
+ elif has_version '=dev-scheme/guile-2.0*'; then
dodir /usr/share/guile/2.0
- dosym /usr/share/${PN}/ /usr/share/guile/2.0/${PN}
+ dosym ../../../../usr/share/${PN}/ /usr/share/guile/2.0/${PN}
else
dodir /usr/share/guile/1.8
- dosym /usr/share/${PN}/ /usr/share/guile/1.8/${PN}
+ dosym ../../../../usr/share/${PN}/ /usr/share/guile/1.8/${PN}
fi
+ # gambit
+ use gambit && dodir /usr/share/gambc
+
# backwards compatibility
dodir /usr/lib/
- dosym /usr/share/${PN}/ /usr/lib/${PN}
+ dosym ../../usr/share/${PN}/ /usr/lib/${PN}
+
+ einstalldocs
}
_new_catalog() {
- if [[ ! "$1" =~ ^(guile|scm)$ ]]; then
- echo -n "(load \"${ROOT}/usr/share/slib/$1.init\")" || die
+ if [[ ! "${1}" =~ ^(guile|scm)$ ]]; then
+ echo -n "(load \"${ROOT}/usr/share/slib/${1}.init\")" || die
fi
echo " (require 'new-catalog) (slib:report-version)" || die
}
next reply other threads:[~2022-08-05 17:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 17:48 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-06 12:16 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/slib/ Sam James
2022-09-27 12:34 Maciej Barć
2022-09-27 12:34 Maciej Barć
2022-08-05 19:21 Maciej Barć
2022-08-05 19:03 Maciej Barć
2021-01-06 22:31 Fabian Groffen
2018-10-17 17:23 Amy Liffey
2018-04-05 14:57 Aaron Bauman
2018-03-19 7:02 Mikle Kolyada
2018-03-17 18:16 Matt Turner
2018-03-05 10:36 Tobias Klausmann
2018-02-18 10:36 Sergei Trofimovich
2018-02-18 8:34 Sergei Trofimovich
2016-11-20 15:33 Ettore Di Giacinto
2016-10-24 20:12 Ettore Di Giacinto
2016-05-26 8:51 Tobias Klausmann
2016-03-20 11:53 Agostino Sarubbo
2016-03-06 12:58 Agostino Sarubbo
2015-08-13 0:22 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1659721690.01b63379a93a881b535fe90112d34501d90c3eb4.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox