summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2021-06-27 15:54:05 -0400
committerAaron Bauman <bman@gentoo.org>2021-06-27 15:54:05 -0400
commit24b61864615d2c975cbf4b27f421574bcf4fefdb (patch)
tree9c75c4c12f5ef97db4700ce4db0dea5b745bc20f /dev-lua/mpack
parentdev-perl/Mail-Box-IMAP4: Version bump 3.007 (diff)
downloadgentoo-24b61864615d2c975cbf4b27f421574bcf4fefdb.tar.gz
gentoo-24b61864615d2c975cbf4b27f421574bcf4fefdb.tar.bz2
gentoo-24b61864615d2c975cbf4b27f421574bcf4fefdb.zip
dev-lua/mpack: keyword x64-macos and fix install
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'dev-lua/mpack')
-rw-r--r--dev-lua/mpack/mpack-1.0.8-r100.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-lua/mpack/mpack-1.0.8-r100.ebuild b/dev-lua/mpack/mpack-1.0.8-r100.ebuild
index b573bd2b996b..f26a805ece17 100644
--- a/dev-lua/mpack/mpack-1.0.8-r100.ebuild
+++ b/dev-lua/mpack/mpack-1.0.8-r100.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x64-macos"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
@@ -96,6 +96,14 @@ lua_src_install() {
emake "${myemakeargs[@]}" install
popd
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ local luav=$(lua_get_version)
+ # we only want the major version (e.g. 5.1)
+ local luamv=${luav:0:3}
+ local file="lua/${luamv}/mpack.so"
+ install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" "${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
+ fi
}
src_install() {