summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-20 01:04:56 +0000
committerConrad Kostecki <conikost@gentoo.org>2022-03-20 02:47:26 +0100
commitd6ff6b9279b37148535c2f843c88ed0bcbdfe96a (patch)
tree39633e941404b7b00e6ea53030e6a5737f2b357d /dev-lua
parentx11-libs/pango: Version bump to 1.50.6 (diff)
downloadgentoo-d6ff6b9279b37148535c2f843c88ed0bcbdfe96a.tar.gz
gentoo-d6ff6b9279b37148535c2f843c88ed0bcbdfe96a.tar.bz2
gentoo-d6ff6b9279b37148535c2f843c88ed0bcbdfe96a.zip
dev-lua/readline: misc fixups
- BDEPEND on virtual/pkgconfig as we call it in the ebuild - := on sys-libs/readline as it exposes a subslot for its ABI and we link against it - Add missing || dies - Don't use ${EROOT} (forbidden in src_test), instead use ${ESYSROOT} which should have what we need installed there. Closes: https://github.com/gentoo/gentoo/pull/24676 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/readline/readline-3.0-r1.ebuild (renamed from dev-lua/readline/readline-3.0.ebuild)9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-lua/readline/readline-3.0.ebuild b/dev-lua/readline/readline-3.0-r1.ebuild
index 6eb54114feba..813f6f10ba3e 100644
--- a/dev-lua/readline/readline-3.0.ebuild
+++ b/dev-lua/readline/readline-3.0-r1.ebuild
@@ -21,9 +21,10 @@ RESTRICT="test"
RDEPEND="
dev-lua/luaposix
- sys-libs/readline
+ sys-libs/readline:=
"
DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
src_prepare() {
default
@@ -65,8 +66,8 @@ src_compile() {
lua_src_test() {
pushd "${BUILD_DIR}" || die
- LUA_CPATH="./?.so;${EROOT}/usr/$(get_libdir)/lua/$(ver_cut 1-2 $(lua_get_version))/?.so" ${ELUA} test/test_rl.lua
- popd
+ LUA_CPATH="./?.so;${ESYSROOT}/usr/$(get_libdir)/lua/$(ver_cut 1-2 $(lua_get_version))/?.so" ${ELUA} test/test_rl.lua || die
+ popd || die
}
src_test() {
@@ -82,7 +83,7 @@ lua_src_install() {
insinto "$(lua_get_lmod_dir)"
doins readline.lua
- popd
+ popd || die
}
src_install() {