diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-lua/lua-utf8 | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-lua/lua-utf8')
-rw-r--r-- | dev-lua/lua-utf8/Manifest | 4 | ||||
-rw-r--r-- | dev-lua/lua-utf8/files/lua-utf8.Makefile | 42 | ||||
-rw-r--r-- | dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild | 44 | ||||
-rw-r--r-- | dev-lua/lua-utf8/metadata.xml | 20 |
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-lua/lua-utf8/Manifest b/dev-lua/lua-utf8/Manifest new file mode 100644 index 000000000000..fd401294695f --- /dev/null +++ b/dev-lua/lua-utf8/Manifest @@ -0,0 +1,4 @@ +AUX lua-utf8.Makefile 1099 BLAKE2B 5a704cb815f41cee6a5d681ec80f9c3ceab97c6711fddcd91581aaa39d033a418bccc0c59e1c41c1d7f5ada1b85615566d3443f2dcf02e57c8dec88c5480fe41 SHA512 f7a2b59c22cd92b7560a24ac469ffdd24641ab9907c26a8c22d944e75f26b3fe2d80298d70138fd6bdfc5da7a87b1a52cb7243106b47f6daebb237a17fdb06f4 +DIST lua-utf8-0.1.1.tar.gz 35475 BLAKE2B 99ffece901878fc966e0314886ca20255834c76b9266b1806acda7afb84d6a358c556b9a88c10497d2874d7902fac5905907ab25fefb4ba38544d46e3bae1471 SHA512 e0a8632b9391c7e7b35e371f4e95899ec58adb4988f1fe5a7101310f7c774c3a3e88073f156cf7799c57f69c0fc53aff4486beb1e7006bfaa96d86e248e38897 +EBUILD lua-utf8-0.1.1.ebuild 1029 BLAKE2B 479407b8397e0894446a08a9a484a9cdd0fa81485f060088a09011118441c606ebbc47f8f76eccd37f672f5f66146e6dbd4eaac9d08a6dfeb120768bc72e3c3a SHA512 f62e7fa5253d94fbbf016092f0b8f146de112fd7641e0c85273c890681a73cd19d94557f90f5e74b43a13a03180ba82bd36a321724a0723ae78e25d38d703b90 +MISC metadata.xml 639 BLAKE2B eaf42f0f69767063b2e0c4745bd49529dbe1c8edd62dc22422a1af9363321f610625ad138f6a7a6828ebdfef0ade15577ed062f4de2817d99dfc2864c305ae09 SHA512 785c2139f6715e4b177d1d97f7ec13988f59af95461af9400e6085388cac83fcb99e3eb65cbf47449be9ff60ee4d0662316ea82b5fb761a22b3d8207b27b465f diff --git a/dev-lua/lua-utf8/files/lua-utf8.Makefile b/dev-lua/lua-utf8/files/lua-utf8.Makefile new file mode 100644 index 000000000000..456c52f4aaa0 --- /dev/null +++ b/dev-lua/lua-utf8/files/lua-utf8.Makefile @@ -0,0 +1,42 @@ +# this file builds lua-utf8 + +MY_USE_LUA?=luajit +PKG_CONFIG?=pkg-config +PREFIX?=/usr/local +DESTDIR?=/ + +LUA_LIBDIR := $(shell $(PKG_CONFIG) --variable INSTALL_CMOD $(MY_USE_LUA)) +LUA_INC := $(shell $(PKG_CONFIG) --variable INSTALL_INC $(MY_USE_LUA)) +LUA_SHARE := $(shell $(PKG_CONFIG) --variable INSTALL_LMOD $(MY_USE_LUA)) +CWARNS := -Wall -pedantic +CFLAGS += -I$(LUA_INC) -fPIC $(CWARNS) +LIB_OPTION := -shared +LDFLAGS += $(LIB_OPTION) + +SONAME := lua-utf8.so +SONAMEV := $(SONAME).0 +LIBRARY := $(SONAMEV).1.1 +SRC := lutf8lib.c +OBJ := $(patsubst %.c, %.o, $(SRC)) + +FILES := parseucd.lua + +all: $(LIBRARY) $(SONAMEV) $(SONAME) + +$(SONAMEV): + ln -s $(LIBRARY) $@ + +$(SONAME): + ln -s $(SONAMEV) $@ + +$(LIBRARY): $(OBJ) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(LIBRARY) $(OBJ) -lc + +install: + install -d $(DESTDIR)$(LUA_LIBDIR) + install $(SONAME) $(DESTDIR)$(LUA_LIBDIR) + install -d $(DESTDIR)$(LUA_SHARE) + install --mode=0444 $(FILES) $(DESTDIR)$(LUA_SHARE) + +clean: + rm -rf $(LIBRARY) $(SONAMEV) $(SONAME) *.o diff --git a/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild b/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild new file mode 100644 index 000000000000..0b6609140168 --- /dev/null +++ b/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="UTF-8 support for Lua" +HOMEPAGE="https://github.com/starwing/luautf8" +SRC_URI="https://github.com/starwing/luautf8/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="luajit test" + +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + !luajit? ( >=dev-lang/lua-5.1:= ) + luajit? ( dev-lang/luajit:2 )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN//-/}-${PV}" + +src_prepare() { + default + + cp -v "${FILESDIR}/${PN}".Makefile "${S}"/Makefile || die +} + +src_compile() { + tc-export CC + emake DESTDIR="${D}" PREFIX="${EPREFIX}" MY_USE_LUA="$(usex luajit 'luajit' 'lua')" PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}" MY_USE_LUA="$(usex luajit 'luajit' 'lua')" PKG_CONFIG="$(tc-getPKG_CONFIG)" install + einstalldocs +} + +src_test() { + LUA_CPATH=./?.so $(usex luajit 'luajit' 'lua') test.lua || die +} diff --git a/dev-lua/lua-utf8/metadata.xml b/dev-lua/lua-utf8/metadata.xml new file mode 100644 index 000000000000..efc3ff445600 --- /dev/null +++ b/dev-lua/lua-utf8/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>vpayno+gentoo@gmail.com</email> + <name>Victor Payno</name> + </maintainer> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> + <longdescription lang="en"> + This module adds UTF-8 support to Lua. + + It use data extracted from Unicode Character Database, and tested on Lua 5.2.3, Lua 5.3.0 and LuaJIT. + </longdescription> + <upstream> + <remote-id type="github">starwing/luautf8</remote-id> + </upstream> +</pkgmetadata> |