mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-lang/luajit: drop EAPI=2
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST LuaJIT-1.1.6.tar.gz 364447 BLAKE2B 6c9f0c8269770268a123052d63fc72ad5e44f72ded209d5e0c360d693e9867db47c31e77bbdb2452dd44e1a69181047d54874334d1d931cf25670b28c0ad6125 SHA512 5b08d0409bed23b3efd05d50007819c0023323fb0f921256fd33902b434221ebaa5ff4568813863ba3220271f7fd54720479ab8161b09d26ef5873030431592a
|
||||
DIST LuaJIT-2.0.2.tar.gz 843031 BLAKE2B 7dbf36c1d41106bb55b4588920a79b4c68139e009cb157d0f4ca8f0c72d8f7def1edd4517237234c5833acdbda0ec3dc25edb18bc55298b139463dbb6e58476a SHA512 c1afea13ec61a59f37d1f61fc50bcac47208d9d4f0a80689b74e901ad2b34294b6c89a0b4eef54b43f3d2db411660da61b191b0bbfba4ba2f97743a9ee4484e3
|
||||
DIST LuaJIT-2.0.3.tar.gz 844927 BLAKE2B a6ed54ef562b7af594367cbc0ed6e20295bb64781ceb6b46df81d10d7abd9fdaf902344ab7a6dfdffa6fc38b05e70648ae53c9cffdfb2a866989eba4b02fe9df SHA512 7b3e3de22ac3602299b5918b60801e45a3278e547a15c16fdae7359538d4ada27ba664935d5f97c7409f330c2f8efeaae9ea03415f5e9d5a9d81e022cd5d36e0
|
||||
DIST LuaJIT-2.0.4.tar.gz 847615 BLAKE2B b410d06734056283655e70a53b4f1160553cc74a9d6a80d4a919f7f38589888fff339eda661ec623258a5f186f4eb2d2c9b5809b6f7e55f9e058058426e2fe74 SHA512 a72957bd85d8f457269e78bf08c19b28c5707df5d19920d61918f8a6913f55913ce13037fb9a6463c04cefde0c6644739f390e09d656e4bbc2c236927aa3f8f9
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit pax-utils
|
||||
|
||||
MY_P="LuaJIT-${PV}"
|
||||
|
||||
DESCRIPTION="A Just-In-Time Compiler for the Lua programming language"
|
||||
HOMEPAGE="http://luajit.org/"
|
||||
SRC_URI="http://luajit.org/download/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="1"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="readline"
|
||||
|
||||
DEPEND="readline? ( sys-libs/readline )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare(){
|
||||
# fixing prefix
|
||||
sed -i -e "s#/usr/local#${D}/usr#" Makefile \
|
||||
|| die "failed to fix prefix in Makefile"
|
||||
sed -i -e 's#/usr/local/#/usr/#' src/luaconf.h \
|
||||
|| die "failed to fix prefix in luaconf.h"
|
||||
|
||||
# forcing the use of our CFLAGS
|
||||
sed -i -e "s/\$(MYCFLAGS)/\$(MYCFLAGS) ${CFLAGS}/" src/Makefile \
|
||||
|| die "failed to force the use of the CFLAGS from the user"
|
||||
}
|
||||
|
||||
src_compile(){
|
||||
if use readline; then
|
||||
emake linux_rl || die "emake failed."
|
||||
else
|
||||
emake linux || die "emake failed."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install(){
|
||||
einstall
|
||||
|
||||
# removing empty dir that was supposed to have the man pages.
|
||||
# dev-lang/luajit:1 doesn't install man pages.
|
||||
rm -rf "${D}usr/man"
|
||||
|
||||
mv "${D}usr/bin/luajit" "${D}usr/bin/luajit-${PV}" || die "mv failed!"
|
||||
pax-mark m "${D}usr/bin/luajit-${PV}"
|
||||
dosym "luajit-${PV}" "/usr/bin/luajit-${SLOT}"
|
||||
}
|
||||
Reference in New Issue
Block a user