diff options
Diffstat (limited to 'app-i18n/librime-lua')
-rw-r--r-- | app-i18n/librime-lua/Manifest | 4 | ||||
-rw-r--r-- | app-i18n/librime-lua/librime-lua-20211030072627.ebuild | 53 | ||||
-rw-r--r-- | app-i18n/librime-lua/librime-lua-99999999999999.ebuild | 8 |
3 files changed, 60 insertions, 5 deletions
diff --git a/app-i18n/librime-lua/Manifest b/app-i18n/librime-lua/Manifest index 8c4f5a3d1f05..31730e6212db 100644 --- a/app-i18n/librime-lua/Manifest +++ b/app-i18n/librime-lua/Manifest @@ -1,4 +1,6 @@ DIST librime-lua-20201011103348.tar.gz 21600 BLAKE2B f7046d1eb23391ca70543aa64c52092081cef51a69ac3a282f2f1392eaf760515186f063e9d469c5c41ac9f495ace814ab741a0821d1a635b9ad1f4faa7a3912 SHA512 2a3d3b49d53066fe96dd008e8064718082225e6bf185574a25b8e98175d9936abcfa1fdc56e48f9c72a2deb46f8157d6132fd119ff8e0a3d52fbe9e2ea21386c +DIST librime-lua-20211030072627.tar.gz 27894 BLAKE2B a527e865a9945aa7d56cce3905bc80156b60ebf6323828ca40999cb73ebe8d8f66ddf6b0a1d6d5904f2bc754b5f8fe6ac1f5ecdc56351c2222a21429a0c2b701 SHA512 b15f85b0a18e5e05fa691a84aef7cf3689b4a5271a1d5b6f78ea42488f6dbe4dfc56a91fa547ca3636269b9c898d646d24d3a160096ace9927901f9fdba06e9c EBUILD librime-lua-20201011103348.ebuild 1412 BLAKE2B 98ecf2db48ce1af044ce0249e57da2da033be40da046f5b7d5c40a93b91ab73b1a479182e33842070c4b2da57bff5451c931236f6eadc22a2da468054e400c10 SHA512 2be8960f57334952ea225853c10bd0af1e0da58e63da746f38c43791c1659c302e40f8e61d53ae3c55233037a40f7177fb6ae6335bea4f5432752ce1d69b2bf5 -EBUILD librime-lua-99999999999999.ebuild 1384 BLAKE2B b3892ddc41646a07daf5ad4f6a1788022549673aba9566251767165c176ae1bd6cc03c06bf1d8a8fe3b7ecc226ee81770980d461fed3f86129a5c61da7446e80 SHA512 e1faf6c9bd1e5ba5744dcd0212c2246743cfe6e3693bda450958695f0da636c6787fad402ac12ee328f1c008837babc096e1f0927d4fa8dc445fed65ee61c4ae +EBUILD librime-lua-20211030072627.ebuild 1403 BLAKE2B 08198da195f4f4794d7c6a2cc641aaa67f7c6db4f871b38b97358aed24a7747d542b2eedd83f5c15c7830e706135874e0a94372d29b1ef28dabf43050474ab01 SHA512 8111746867b8a18296bc15eb090cb31d6389e169f93f58c25a910a6ad2566db2dc5ac84e30c0e4e9ea15d939ff2cbc37dd225aad28d43ccbd790f1a1df53e98e +EBUILD librime-lua-99999999999999.ebuild 1340 BLAKE2B f77d43a85abca142676706b14e29e3801c6578b03f4065dfe518b10bd16115747962ba71b5df74bffee99380365f8e7df8671702d98feb558542ff083d7c7e4c SHA512 b841b02e2b1ba8f3f81ab800e92a4fa1de2850db7dc00c896e184f9171ae3079c97896dc9428e9c021183b59db09600c0f66c23c0f873a7b816b90d04b547f6e MISC metadata.xml 468 BLAKE2B ea5c1e18f45d407545766eedaa97001e5d350e8c15933a11541c91b942de5e968fcaee42853ecefca39f01ac8dab17962189267b0cf1a449107743f15e8ff686 SHA512 32a8d40ba13bb8e0cb75579b4ffaf0695ccec5f7cf6c224ef687d1058d0f4adec67a523f8e58002a8020be5e148d05676bc17470c6ddee73f45a4bac961ef0f1 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 000000000000..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}" == "99999999999999" ]]; 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}" == "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 ~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}" != "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 index fcf9189fe7df..0b7dc6a14eba 100644 --- a/app-i18n/librime-lua/librime-lua-99999999999999.ebuild +++ b/app-i18n/librime-lua/librime-lua-99999999999999.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}" == "99999999999999" ]]; 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}" == "99999999999999" ]]; then SRC_URI="" |