app-i18n/librime-lua: Initial addition.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Arfrever Frehtes Taifersar Arahesis
2020-12-27 19:01:23 -05:00
committed by Mike Gilbert
parent a2cd534a19
commit e27c985c8c
4 changed files with 122 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST librime-lua-20201011103348.tar.gz 21600 BLAKE2B f7046d1eb23391ca70543aa64c52092081cef51a69ac3a282f2f1392eaf760515186f063e9d469c5c41ac9f495ace814ab741a0821d1a635b9ad1f4faa7a3912 SHA512 2a3d3b49d53066fe96dd008e8064718082225e6bf185574a25b8e98175d9936abcfa1fdc56e48f9c72a2deb46f8157d6132fd119ff8e0a3d52fbe9e2ea21386c
@@ -0,0 +1,53 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
LUA_COMPAT=(lua{5-1,5-2,5-3,5-4})
inherit cmake lua-single
if [[ "${PV}" == "99999999999999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hchunhui/librime-lua"
else
LIBRIME_LUA_GIT_REVISION="d45a41af2f9d731e3c1516a191cc3160e3cb8377"
fi
DESCRIPTION="Lua support for RIME"
HOMEPAGE="https://github.com/hchunhui/librime-lua"
if [[ "${PV}" == "99999999999999" ]]; then
SRC_URI=""
else
SRC_URI="https://github.com/hchunhui/${PN}/archive/${LIBRIME_LUA_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${LUA_REQUIRED_USE}"
BDEPEND=""
RDEPEND=">=app-i18n/librime-1.6:0=
${LUA_DEPS}"
DEPEND="${RDEPEND}
dev-libs/boost:0"
if [[ "${PV}" != "99999999999999" ]]; then
S="${WORKDIR}/${PN}-${LIBRIME_LUA_GIT_REVISION}"
fi
src_prepare() {
sed \
-e "1icmake_minimum_required(VERSION 3.0)\nproject(${PN})\n" \
-e "s/ PARENT_SCOPE//" \
-e "\$a\\\n" \
-e "\$aadd_library(\${plugin_modules} MODULE \${plugin_objs})" \
-e "\$aset_target_properties(\${plugin_modules} PROPERTIES PREFIX \"\")" \
-e "\$atarget_link_libraries(\${plugin_modules} rime \${plugin_deps})" \
-e "\$ainstall(TARGETS \${plugin_modules} DESTINATION $(get_libdir)/rime-plugins)" \
-i CMakeLists.txt || die
cmake_src_prepare
}
@@ -0,0 +1,53 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
LUA_COMPAT=(lua{5-1,5-2,5-3,5-4})
inherit cmake lua-single
if [[ "${PV}" == "99999999999999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hchunhui/librime-lua"
else
LIBRIME_LUA_GIT_REVISION="d45a41af2f9d731e3c1516a191cc3160e3cb8377"
fi
DESCRIPTION="Lua support for RIME"
HOMEPAGE="https://github.com/hchunhui/librime-lua"
if [[ "${PV}" == "99999999999999" ]]; then
SRC_URI=""
else
SRC_URI="https://github.com/hchunhui/${PN}/archive/${LIBRIME_LUA_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS=""
IUSE=""
REQUIRED_USE="${LUA_REQUIRED_USE}"
BDEPEND=""
RDEPEND=">=app-i18n/librime-1.6:0=
${LUA_DEPS}"
DEPEND="${RDEPEND}
dev-libs/boost:0"
if [[ "${PV}" != "99999999999999" ]]; then
S="${WORKDIR}/${PN}-${LIBRIME_LUA_GIT_REVISION}"
fi
src_prepare() {
sed \
-e "1icmake_minimum_required(VERSION 3.0)\nproject(${PN})\n" \
-e "s/ PARENT_SCOPE//" \
-e "\$a\\\n" \
-e "\$aadd_library(\${plugin_modules} MODULE \${plugin_objs})" \
-e "\$aset_target_properties(\${plugin_modules} PROPERTIES PREFIX \"\")" \
-e "\$atarget_link_libraries(\${plugin_modules} rime \${plugin_deps})" \
-e "\$ainstall(TARGETS \${plugin_modules} DESTINATION $(get_libdir)/rime-plugins)" \
-i CMakeLists.txt || die
cmake_src_prepare
}
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>arfrever.fta@gmail.com</email>
<name>Arfrever Frehtes Taifersar Arahesis</name>
</maintainer>
<maintainer type="project">
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
<upstream>
<remote-id type="github">hchunhui/librime-lua</remote-id>
</upstream>
</pkgmetadata>