Skip to content

Commit

Permalink
dev-lua/mpack: keyword x64-macos and fix install
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Bauman <[email protected]>
  • Loading branch information
FuzzyGophers committed Jun 27, 2021
1 parent d0a20d2 commit 24b6186
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dev-lua/mpack/mpack-1.0.8-r100.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 24b6186

Please sign in to comment.