mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-lua/lpeg: drop 1.0.2-r101
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST lpeg-1.0.2.tar.gz 71840 BLAKE2B e0d8fb4e9d17c9018f0b206cd3f7c9c0e21398c119600b5b0705c8df19e0956347bea795c7c3ded8e62e0c09802dd8eab931a5e3769fcacf44c35aa2b17fa8d6 SHA512 110527ddf9f8e5e8a80ef0ae8847c8ba8cd2597dba3bfe2865cba9af60daafbb885f21e74231952f5ab793d021e050b482066a821c6954d52090a5eae77e9814
|
||||
DIST lpeg-1.1.0.zip 78933 BLAKE2B 90895d74088d59529229825dd0058f69d0cb035d0b5ef9be49d9643c02e7b37ffcf358daa6b7129ff8df2247946dd12627d2ed1be23f61c51112303b702842b1 SHA512 5be6d3d9608881d044185e4e9cb5a7577d94b82276f4273f5dda7e2da93e13b926eaced9fc577dd83a4af231224c85a0336ddb920d94fbb334f8f55f7f21f8b4
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
|
||||
inherit lua flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Parsing Expression Grammars for Lua"
|
||||
HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/"
|
||||
SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
|
||||
IUSE="test debug doc"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${LUA_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
DOCS=( HISTORY )
|
||||
HTML_DOCS=( lpeg.html re.html )
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.0.2-makefile.patch )
|
||||
|
||||
lua_src_prepare() {
|
||||
if ! test -d "${S}.${ELUA}/" ; then
|
||||
cp -ral "${S}/" "${S}.${ELUA}/" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use debug && append-cflags -DLPEG_DEBUG
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
append-ldflags "-undefined dynamic_lookup"
|
||||
fi
|
||||
|
||||
lua_foreach_impl lua_src_prepare
|
||||
}
|
||||
|
||||
lua_src_compile() {
|
||||
cd "${S}.${ELUA}/" || die
|
||||
emake CC="$(tc-getCC)" \
|
||||
LUADIR="${EPREFIX}/$(lua_get_include_dir)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
lua_foreach_impl lua_src_compile
|
||||
}
|
||||
|
||||
lua_src_test() {
|
||||
cd "${S}.${ELUA}/" || die
|
||||
${ELUA} test.lua || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
lua_foreach_impl lua_src_test
|
||||
}
|
||||
|
||||
lua_src_install() {
|
||||
cd "${S}.${ELUA}/" || die
|
||||
local instdir
|
||||
instdir="$(lua_get_cmod_dir)"
|
||||
exeinto "${instdir#${EPREFIX}}"
|
||||
doexe lpeg.so
|
||||
instdir="$(lua_get_lmod_dir)"
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins re.lua
|
||||
|
||||
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}/lpeg.so"
|
||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" "${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lua_foreach_impl lua_src_install
|
||||
cd "${S}" || die
|
||||
use doc && einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user