aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILMostro <ilmostro7@gmail.com>2018-07-19 00:05:55 -0500
committerILMostro <ilmostro7@gmail.com>2018-07-19 00:05:55 -0500
commitc47c875481bab7c5af537eaa345f916f38753aba (patch)
tree44932ea15719a17b5eb088b544aa5f473bd8c3b3
parentnet-irc/weechat-2.2 added (diff)
downloadag-ops-c47c875481bab7c5af537eaa345f916f38753aba.tar.gz
ag-ops-c47c875481bab7c5af537eaa345f916f38753aba.tar.bz2
ag-ops-c47c875481bab7c5af537eaa345f916f38753aba.zip
dev-lang/luajit:2.0.2 slot
-rw-r--r--dev-lang/luajit/luajit-2.0.2.ebuild60
1 files changed, 13 insertions, 47 deletions
diff --git a/dev-lang/luajit/luajit-2.0.2.ebuild b/dev-lang/luajit/luajit-2.0.2.ebuild
index 1fbe283..98baaa1 100644
--- a/dev-lang/luajit/luajit-2.0.2.ebuild
+++ b/dev-lang/luajit/luajit-2.0.2.ebuild
@@ -1,66 +1,32 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit eutils multilib pax-utils versionator toolchain-funcs
+inherit eutils multilib pax-utils toolchain-funcs
-MY_PV="$(get_version_component_range 1-3)"
+MY_PV="$(ver_cut 1-3)"
MY_P="LuaJIT-${MY_PV}"
-if [[ $(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}}"
-
+SRC_URI="http://luajit.org/download/${MY_P}.tar.gz"
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"
+SLOT="2.0.2"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${MY_P}"
-src_prepare(){
- if [[ -n ${HOTFIX} ]]; then
- epatch "${DISTDIR}/${HOTFIX}"
- fi
- sed -i "s,PREFIX= /usr/local,PREFIX= ${EPREFIX}/usr," Makefile || die 'sed failed.'
- sed -i "s,/lib,/$(get_libdir)," etc/${PN}.pc || die 'sed2 failed.'
-}
+# LUA_VERSION=$(readlink -e "${EROOT}"/usr/bin/lua | sed -ne 's:.*/usr/bin/lua\([\d.-]*\):\1:p')
-src_compile() {
- emake \
- Q= \
- PREFIX="${EPREFIX}/usr" \
- 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" \
- TARGET_STRIP="true" \
- INSTALL_LIB="${ED%/}/usr/$(get_libdir)" \
- XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")"
-}
+HTML_DOCS=( doc/ )
+PATCHES=( "${FILESDIR}"/${PN}-luaver.patch
+ "${FILESDIR}"/${PN}-205.patch )
src_install(){
- emake install \
- 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" \
- TARGET_STRIP="true" \
- INSTALL_LIB="${ED%/}/usr/$(get_libdir)"
+ default
pax-mark m "${ED}usr/bin/luajit-${MY_PV}"
- cd "${S}"/doc
- dohtml -r *
+ einstalldocs
}