From 129160ec854dca4c3fedb5bcfbcb56930371da0f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Jan 2021 21:06:00 +0000 Subject: gentoo new year resync : 01.01.2021 --- .../librime-lua/librime-lua-99999999999999.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 app-i18n/librime-lua/librime-lua-99999999999999.ebuild (limited to 'app-i18n/librime-lua/librime-lua-99999999999999.ebuild') 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 +} -- cgit v1.2.3