diff options
author | Marty E. Plummer <hanetzer@protonmail.com> | 2017-07-10 21:09:43 -0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-26 08:16:07 +0200 |
commit | 3c223be5553eb663bb63278a1e38c7f26a59835b (patch) | |
tree | 9e4c39c069dca02f3b24344fd89265bb6c458336 /dev-lang | |
parent | app-arch/lziprecover: Drop old (diff) | |
download | gentoo-3c223be5553eb663bb63278a1e38c7f26a59835b.tar.gz gentoo-3c223be5553eb663bb63278a1e38c7f26a59835b.tar.bz2 gentoo-3c223be5553eb663bb63278a1e38c7f26a59835b.zip |
dev-lang/luajit: add static-libs to IUSE, update EAPI=6
Mostly to help debug an issue with dev-lua/mpack[luajit] on elibc_musl.
Closes: https://github.com/gentoo/gentoo/pull/5082
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/luajit/luajit-2.0.5-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-lang/luajit/luajit-2.0.5-r1.ebuild b/dev-lang/luajit/luajit-2.0.5-r1.ebuild new file mode 100644 index 000000000000..a60c5c127574 --- /dev/null +++ b/dev-lang/luajit/luajit-2.0.5-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pax-utils toolchain-funcs versionator + +MY_PV="$(get_version_component_range 1-3)" +MY_P="LuaJIT-${MY_PV}" +if [[ -n $(get_version_component_range 4) ]]; then + HOTFIX="v${PV}" + HOTFIX="${HOTFIX/_p/_hotfix}.patch" +fi + +DESCRIPTION="Just-In-Time Compiler for the Lua programming language" +HOMEPAGE="http://luajit.org/" +SRC_URI="http://luajit.org/download/${MY_P}.tar.gz + ${HOTFIX:+http://luajit.org/download/${HOTFIX}}" + +LICENSE="MIT" +# this should probably be pkgmoved to 2.0 for sake of consistency. +SLOT="2" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="lua52compat static-libs" + +S="${WORKDIR}/${MY_P}" + +src_prepare(){ + if [[ -n ${HOTFIX} ]]; then + eapply "${DISTDIR}/${HOTFIX}" + fi + default +} + +_emake() { + emake \ + Q= \ + PREFIX="${EPREFIX}/usr" \ + MULTILIB="$(get_libdir)" \ + DESTDIR="${D}" \ + HOST_CC="$(tc-getBUILD_CC)" \ + STATIC_CC="$(tc-getCC)" \ + DYNAMIC_CC="$(tc-getCC) -fPIC" \ + TARGET_LD="$(tc-getCC)" \ + TARGET_AR="$(tc-getAR) rcus" \ + BUILDMODE="$(usex static-libs mixed dynamic)" \ + TARGET_STRIP="true" \ + INSTALL_LIB="${ED%/}/usr/$(get_libdir)" \ + "$@" +} + +src_compile() { + _emake XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")" +} + +src_install(){ + _emake install + + pax-mark m "${ED}usr/bin/luajit-${MY_PV}" + + HTML_DOCS="doc/." einstalldocs +} |