aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILMostro <ilmostro7@gmail.com>2018-06-20 01:18:51 -0500
committerILMostro <ilmostro7@gmail.com>2018-06-20 01:18:51 -0500
commit9d7f05df07d037b91d87543fe861250b131d7740 (patch)
treee08cbcd95028550d437e80ba192b54e5524ac487 /dev-lua
parentadded `dev-lua/say` to be checked and updated (diff)
downloadag-ops-9d7f05df07d037b91d87543fe861250b131d7740.tar.gz
ag-ops-9d7f05df07d037b91d87543fe861250b131d7740.tar.bz2
ag-ops-9d7f05df07d037b91d87543fe861250b131d7740.zip
Updated `dev-lua/say` to `EAPI=6`;
added correct lua version check for slotted `dev-lang/lua`.
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/say/say-1.3_p1.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-lua/say/say-1.3_p1.ebuild b/dev-lua/say/say-1.3_p1.ebuild
index edf21e3..9291556 100644
--- a/dev-lua/say/say-1.3_p1.ebuild
+++ b/dev-lua/say/say-1.3_p1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
MY_PV=1.3-1
inherit toolchain-funcs
@@ -15,15 +15,16 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
-COMMON_DEPEND=">=dev-lang/lua-5.1:="
+COMMON_DEPEND=">=dev-lang/lua-5.1:*"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig"
RDEPEND="${COMMON_DEPEND}"
S="${WORKDIR}/${PN}-${MY_PV}"
+DOCS=( CONTRIBUTING.md README.md )
src_install() {
- insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN}
+ LUA_VERSION=$(readlink -e "${EROOT}"/usr/bin/lua | sed -ne 's:.*/usr/bin/lua\([\d.-]*\):\1:p')
+ insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/$LUA_VERSION/${PN}
doins src/init.lua
-dodoc CONTRIBUTING.md README.md
}