summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2020-12-27 05:00:00 +0000
committerMike Gilbert <floppym@gentoo.org>2020-12-27 19:01:23 -0500
commite27c985c8ca9cf49bef7e32ff7f4e207fe5c1f9e (patch)
tree3c94ee5f18b78ed4fd57cc9f284eb94fa0a19dfa /app-i18n/librime-lua
parentapp-i18n/rime-data: Set maintainer Arfrever. (diff)
downloadgentoo-e27c985c8ca9cf49bef7e32ff7f4e207fe5c1f9e.tar.gz
gentoo-e27c985c8ca9cf49bef7e32ff7f4e207fe5c1f9e.tar.bz2
gentoo-e27c985c8ca9cf49bef7e32ff7f4e207fe5c1f9e.zip
app-i18n/librime-lua: Initial addition.
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n/librime-lua')
-rw-r--r--app-i18n/librime-lua/Manifest1
-rw-r--r--app-i18n/librime-lua/librime-lua-20201011103348.ebuild53
-rw-r--r--app-i18n/librime-lua/librime-lua-99999999999999.ebuild53
-rw-r--r--app-i18n/librime-lua/metadata.xml15
4 files changed, 122 insertions, 0 deletions
diff --git a/app-i18n/librime-lua/Manifest b/app-i18n/librime-lua/Manifest
new file mode 100644
index 000000000000..63cef86cfde2
--- /dev/null
+++ b/app-i18n/librime-lua/Manifest
@@ -0,0 +1 @@
+DIST librime-lua-20201011103348.tar.gz 21600 BLAKE2B f7046d1eb23391ca70543aa64c52092081cef51a69ac3a282f2f1392eaf760515186f063e9d469c5c41ac9f495ace814ab741a0821d1a635b9ad1f4faa7a3912 SHA512 2a3d3b49d53066fe96dd008e8064718082225e6bf185574a25b8e98175d9936abcfa1fdc56e48f9c72a2deb46f8157d6132fd119ff8e0a3d52fbe9e2ea21386c
diff --git a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
new file mode 100644
index 000000000000..5abed7223b09
--- /dev/null
+++ b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
@@ -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
+}
diff --git a/app-i18n/librime-lua/librime-lua-99999999999999.ebuild b/app-i18n/librime-lua/librime-lua-99999999999999.ebuild
new file mode 100644
index 000000000000..fcf9189fe7df
--- /dev/null
+++ b/app-i18n/librime-lua/librime-lua-99999999999999.ebuild
@@ -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
+}
diff --git a/app-i18n/librime-lua/metadata.xml b/app-i18n/librime-lua/metadata.xml
new file mode 100644
index 000000000000..b297cca916f4
--- /dev/null
+++ b/app-i18n/librime-lua/metadata.xml
@@ -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>