[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2022-03-09 Thread Jakov Smolić
commit: 496fff70e053b184017ff67ef32ce369948da86e
Author: Jakov Smolić  gentoo  org>
AuthorDate: Wed Mar  9 08:58:55 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Wed Mar  9 08:58:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496fff70

app-i18n/librime-lua: drop 20201011103348

Signed-off-by: Jakov Smolić  gentoo.org>

 app-i18n/librime-lua/Manifest  |  1 -
 .../librime-lua/librime-lua-20201011103348.ebuild  | 53 --
 2 files changed, 54 deletions(-)

diff --git a/app-i18n/librime-lua/Manifest b/app-i18n/librime-lua/Manifest
index 8229a6191846..00d57a498cb6 100644
--- a/app-i18n/librime-lua/Manifest
+++ b/app-i18n/librime-lua/Manifest
@@ -1,2 +1 @@
-DIST librime-lua-20201011103348.tar.gz 21600 BLAKE2B 
f7046d1eb23391ca70543aa64c52092081cef51a69ac3a282f2f1392eaf760515186f063e9d469c5c41ac9f495ace814ab741a0821d1a635b9ad1f4faa7a3912
 SHA512 
2a3d3b49d53066fe96dd008e8064718082225e6bf185574a25b8e98175d9936abcfa1fdc56e48f9c72a2deb46f8157d6132fd119ff8e0a3d52fbe9e2ea21386c
 DIST librime-lua-20211030072627.tar.gz 27894 BLAKE2B 
a527e865a9945aa7d56cce3905bc80156b60ebf6323828ca40999cb73ebe8d8f66ddf6b0a1d6d5904f2bc754b5f8fe6ac1f5ecdc56351ca21429a0c2b701
 SHA512 
b15f85b0a18e5e05fa691a84aef7cf3689b4a5271a1d5b6f78ea42488f6dbe4dfc56a91fa547ca3636269b9c898d646d24d3a160096ace9927901f9fdba06e9c

diff --git a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild 
b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
deleted file mode 100644
index 52202aa4718d..
--- a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-LUA_COMPAT=( lua5-{1..4} )
-
-inherit cmake lua-single
-
-if [[ "${PV}" == "99" ]]; 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}" == "99" ]]; 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 ~ppc ~ppc64 ~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}" != "99" ]]; 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
-}



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/, app-i18n/fcitx/

2022-01-30 Thread David Seifert
commit: 918290cac3f3872d8e7d88748fe192abf5e166e9
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jan 30 10:21:51 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jan 30 10:21:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=918290ca

app-i18n/*: consistent LUA_COMPAT style

Signed-off-by: David Seifert  gentoo.org>

 app-i18n/fcitx/fcitx-4.2.9.8.ebuild| 4 ++--
 app-i18n/fcitx/fcitx-4..ebuild | 4 ++--
 app-i18n/librime-lua/librime-lua-20201011103348.ebuild | 4 ++--
 app-i18n/librime-lua/librime-lua-20211030072627.ebuild | 4 ++--
 app-i18n/librime-lua/librime-lua-99.ebuild | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/app-i18n/fcitx/fcitx-4.2.9.8.ebuild 
b/app-i18n/fcitx/fcitx-4.2.9.8.ebuild
index b7b077a9ed9d..a3cf6681a440 100644
--- a/app-i18n/fcitx/fcitx-4.2.9.8.ebuild
+++ b/app-i18n/fcitx/fcitx-4.2.9.8.ebuild
@@ -1,8 +1,8 @@
-# Copyright 2003-2021 Gentoo Authors
+# Copyright 2003-2022 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})
+LUA_COMPAT=( lua5-{1..4} )
 
 inherit cmake gnome2-utils lua-single xdg-utils
 

diff --git a/app-i18n/fcitx/fcitx-4..ebuild 
b/app-i18n/fcitx/fcitx-4..ebuild
index 76f6bdd6c634..0a5ca80701ca 100644
--- a/app-i18n/fcitx/fcitx-4..ebuild
+++ b/app-i18n/fcitx/fcitx-4..ebuild
@@ -1,8 +1,8 @@
-# Copyright 2003-2020 Gentoo Authors
+# Copyright 2003-2022 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})
+LUA_COMPAT=( lua5-{1..4} )
 
 inherit cmake gnome2-utils lua-single xdg-utils
 

diff --git a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild 
b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
index 996b1508ab82..52202aa4718d 100644
--- a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
+++ b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
@@ -1,8 +1,8 @@
-# Copyright 2020-2021 Gentoo Authors
+# Copyright 2020-2022 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})
+LUA_COMPAT=( lua5-{1..4} )
 
 inherit cmake lua-single
 

diff --git a/app-i18n/librime-lua/librime-lua-20211030072627.ebuild 
b/app-i18n/librime-lua/librime-lua-20211030072627.ebuild
index 74d5ffac79a3..64263dc37b78 100644
--- a/app-i18n/librime-lua/librime-lua-20211030072627.ebuild
+++ b/app-i18n/librime-lua/librime-lua-20211030072627.ebuild
@@ -1,8 +1,8 @@
-# Copyright 2020-2021 Gentoo Authors
+# Copyright 2020-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
-LUA_COMPAT=(lua{5-3,5-4})
+LUA_COMPAT=( lua5-{3..4} )
 
 inherit cmake lua-single
 

diff --git a/app-i18n/librime-lua/librime-lua-99.ebuild 
b/app-i18n/librime-lua/librime-lua-99.ebuild
index 0b7dc6a14eba..2211e7aea769 100644
--- a/app-i18n/librime-lua/librime-lua-99.ebuild
+++ b/app-i18n/librime-lua/librime-lua-99.ebuild
@@ -1,8 +1,8 @@
-# Copyright 2020-2021 Gentoo Authors
+# Copyright 2020-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
-LUA_COMPAT=(lua{5-3,5-4})
+LUA_COMPAT=( lua5-{3..4} )
 
 inherit cmake lua-single
 



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2021-11-18 Thread Mike Gilbert
commit: f684c5b95b944d2e820bd300da5e68f3832890ea
Author: Arfrever Frehtes Taifersar Arahesis  Apache  Org>
AuthorDate: Thu Nov 18 09:00:00 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Thu Nov 18 22:22:10 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f684c5b9

app-i18n/librime-lua: Version bump (20211030072627).

Closes: https://bugs.gentoo.org/787593
Signed-off-by: Arfrever Frehtes Taifersar Arahesis  Apache.Org>
Signed-off-by: Mike Gilbert  gentoo.org>

 app-i18n/librime-lua/Manifest  |  1 +
 .../librime-lua/librime-lua-20211030072627.ebuild  | 53 ++
 2 files changed, 54 insertions(+)

diff --git a/app-i18n/librime-lua/Manifest b/app-i18n/librime-lua/Manifest
index 63cef86cfde2..8229a6191846 100644
--- a/app-i18n/librime-lua/Manifest
+++ b/app-i18n/librime-lua/Manifest
@@ -1 +1,2 @@
 DIST librime-lua-20201011103348.tar.gz 21600 BLAKE2B 
f7046d1eb23391ca70543aa64c52092081cef51a69ac3a282f2f1392eaf760515186f063e9d469c5c41ac9f495ace814ab741a0821d1a635b9ad1f4faa7a3912
 SHA512 
2a3d3b49d53066fe96dd008e8064718082225e6bf185574a25b8e98175d9936abcfa1fdc56e48f9c72a2deb46f8157d6132fd119ff8e0a3d52fbe9e2ea21386c
+DIST librime-lua-20211030072627.tar.gz 27894 BLAKE2B 
a527e865a9945aa7d56cce3905bc80156b60ebf6323828ca40999cb73ebe8d8f66ddf6b0a1d6d5904f2bc754b5f8fe6ac1f5ecdc56351ca21429a0c2b701
 SHA512 
b15f85b0a18e5e05fa691a84aef7cf3689b4a5271a1d5b6f78ea42488f6dbe4dfc56a91fa547ca3636269b9c898d646d24d3a160096ace9927901f9fdba06e9c

diff --git a/app-i18n/librime-lua/librime-lua-20211030072627.ebuild 
b/app-i18n/librime-lua/librime-lua-20211030072627.ebuild
new file mode 100644
index ..74d5ffac79a3
--- /dev/null
+++ b/app-i18n/librime-lua/librime-lua-20211030072627.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+LUA_COMPAT=(lua{5-3,5-4})
+
+inherit cmake lua-single
+
+if [[ "${PV}" == "99" ]]; then
+   inherit git-r3
+
+   EGIT_REPO_URI="https://github.com/hchunhui/librime-lua;
+else
+   LIBRIME_LUA_GIT_REVISION="67ef681a9fd03262c49cc7f850cc92fc791b1e85"
+fi
+
+DESCRIPTION="Lua module for RIME"
+HOMEPAGE="https://github.com/hchunhui/librime-lua;
+if [[ "${PV}" == "99" ]]; 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 ~ppc ~ppc64 ~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}" != "99" ]]; 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
+}



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2021-11-18 Thread Mike Gilbert
commit: a053a63c06b0b8c62542879ab448663ed1d432df
Author: Arfrever Frehtes Taifersar Arahesis  Apache  Org>
AuthorDate: Thu Nov 18 08:00:00 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Thu Nov 18 22:22:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a053a63c

app-i18n/librime-lua: Delete support for Lua 5.1 and 5.2.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis  Apache.Org>
Signed-off-by: Mike Gilbert  gentoo.org>

 app-i18n/librime-lua/librime-lua-99.ebuild | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app-i18n/librime-lua/librime-lua-99.ebuild 
b/app-i18n/librime-lua/librime-lua-99.ebuild
index fcf9189fe7df..0b7dc6a14eba 100644
--- a/app-i18n/librime-lua/librime-lua-99.ebuild
+++ b/app-i18n/librime-lua/librime-lua-99.ebuild
@@ -1,8 +1,8 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 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})
+LUA_COMPAT=(lua{5-3,5-4})
 
 inherit cmake lua-single
 
@@ -11,10 +11,10 @@ if [[ "${PV}" == "99" ]]; then
 
EGIT_REPO_URI="https://github.com/hchunhui/librime-lua;
 else
-   LIBRIME_LUA_GIT_REVISION="d45a41af2f9d731e3c1516a191cc3160e3cb8377"
+   LIBRIME_LUA_GIT_REVISION=""
 fi
 
-DESCRIPTION="Lua support for RIME"
+DESCRIPTION="Lua module for RIME"
 HOMEPAGE="https://github.com/hchunhui/librime-lua;
 if [[ "${PV}" == "99" ]]; then
SRC_URI=""



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2021-09-06 Thread Sam James
commit: 44a8421941a9aa6072b3eca4d506a6cdc18d223b
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  6 21:34:29 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  6 21:34:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44a84219

app-i18n/librime-lua: Keyword 20201011103348 ppc64, #760803

Signed-off-by: Sam James  gentoo.org>

 app-i18n/librime-lua/librime-lua-20201011103348.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild 
b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
index 15749c557d2..996b1508ab8 100644
--- a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
+++ b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
@@ -24,7 +24,7 @@ fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
 IUSE=""
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2021-09-06 Thread Sam James
commit: 530c727c541f21da5431974678aa3b760cf3fe43
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  6 21:34:20 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  6 21:34:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=530c727c

app-i18n/librime-lua: Keyword 20201011103348 ppc, #760803

Signed-off-by: Sam James  gentoo.org>

 app-i18n/librime-lua/librime-lua-20201011103348.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild 
b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
index 5abed7223b0..15749c557d2 100644
--- a/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
+++ b/app-i18n/librime-lua/librime-lua-20201011103348.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -24,7 +24,7 @@ fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~ppc ~x86"
 IUSE=""
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: app-i18n/librime-lua/

2020-12-27 Thread Mike Gilbert
commit: e27c985c8ca9cf49bef7e32ff7f4e207fe5c1f9e
Author: Arfrever Frehtes Taifersar Arahesis  Apache  Org>
AuthorDate: Sun Dec 27 05:00:00 2020 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Mon Dec 28 00:01:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e27c985c

app-i18n/librime-lua: Initial addition.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis  Apache.Org>
Signed-off-by: Mike Gilbert  gentoo.org>

 app-i18n/librime-lua/Manifest  |  1 +
 .../librime-lua/librime-lua-20201011103348.ebuild  | 53 ++
 .../librime-lua/librime-lua-99.ebuild  | 53 ++
 app-i18n/librime-lua/metadata.xml  | 15 ++
 4 files changed, 122 insertions(+)

diff --git a/app-i18n/librime-lua/Manifest b/app-i18n/librime-lua/Manifest
new file mode 100644
index 000..63cef86cfde
--- /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 000..5abed7223b0
--- /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}" == "99" ]]; 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}" == "99" ]]; 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}" != "99" ]]; 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-99.ebuild 
b/app-i18n/librime-lua/librime-lua-99.ebuild
new file mode 100644
index 000..fcf9189fe7d
--- /dev/null
+++ b/app-i18n/librime-lua/librime-lua-99.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}" == "99" ]]; 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}" == "99" ]]; 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}" != "99" ]]; 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)" \
+