commit: 588adc3fc84b8e7d34d4f9b07521407c1395610f Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> AuthorDate: Thu Jun 6 18:43:19 2024 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sun Jun 23 19:47:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588adc3f
app-admin/lsyncd: add 2.3.1 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/37059 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> app-admin/lsyncd/Manifest | 1 + .../files/lsyncd-2.3.1-cmake_lua_version.patch | 20 ++++++++++ app-admin/lsyncd/lsyncd-2.3.1.ebuild | 46 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/app-admin/lsyncd/Manifest b/app-admin/lsyncd/Manifest index f13b50eed67b..e57d9dcadd25 100644 --- a/app-admin/lsyncd/Manifest +++ b/app-admin/lsyncd/Manifest @@ -1 +1,2 @@ DIST lsyncd-2.2.3.tar.gz 85165 BLAKE2B 9b3ce9ad882f12a0cf800ca0418092807c5c30451fe273eae18486b2ab245fbdc77dee937983bf78f678e20448dda39771c4bca96d8efe010cc45d470a30eba3 SHA512 2193a342f8aa7d8cfb55378c9c59ca61d2d8e4026263fd6e6560c730c712cef1f189305a3f9bca58f5b9c9ffae5af12e1d75e5355d5bdae86a47ad9595b8169a +DIST lsyncd-2.3.1.tar.gz 125126 BLAKE2B b966e2ea1887c93fe26b4fbaeedec50c4d6fd2a66eee0fbafc859a49a4b85eddc20d78ae6483be7a8f9acc66c67da3199dad757bc7b772dead2cccc9d60e621d SHA512 195cc46e00c58301aca6afb027eb0ad663254b3028bcf3e5d4fb7709bbcf2a6eb8ba9a39cae62c951eb4562795e0a147efb1ddcdd22a0b46742ec7c17f478fbe diff --git a/app-admin/lsyncd/files/lsyncd-2.3.1-cmake_lua_version.patch b/app-admin/lsyncd/files/lsyncd-2.3.1-cmake_lua_version.patch new file mode 100644 index 000000000000..e5cf18b371f0 --- /dev/null +++ b/app-admin/lsyncd/files/lsyncd-2.3.1-cmake_lua_version.patch @@ -0,0 +1,20 @@ +--- a/cmake/FindLua.cmake ++++ b/cmake/FindLua.cmake +@@ -37,7 +37,7 @@ + #SET(_POSSIBLE_LUA_LIBRARY lua) + + # Determine possible naming suffixes (there is no standard for this) +-SET(_POSSIBLE_SUFFIXES "54" "5.4" "-5.4" "53" "5.3" "-5.3" "52" "5.2" "-5.2" "") ++SET(_POSSIBLE_SUFFIXES "${LUA_ABI_VERSION}") + + # Set up possible search names and locations + FOREACH(_SUFFIX IN LISTS _POSSIBLE_SUFFIXES) +@@ -54,7 +54,7 @@ + + # Find the lua executable + FIND_PROGRAM(LUA_COMPILER +- NAMES luac5.3 ${_POSSIBLE_LUA_COMPILER} ++ NAMES ${_POSSIBLE_LUA_COMPILER} + ) + + # Find the lua header diff --git a/app-admin/lsyncd/lsyncd-2.3.1.ebuild b/app-admin/lsyncd/lsyncd-2.3.1.ebuild new file mode 100644 index 000000000000..5986c0e42b44 --- /dev/null +++ b/app-admin/lsyncd/lsyncd-2.3.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{3,4} ) +LUA_REQ_USE="deprecated" + +inherit cmake lua-single + +DESCRIPTION="Live Syncing (Mirror) Daemon" +HOMEPAGE="https://github.com/lsyncd/lsyncd" +SRC_URI="https://github.com/lsyncd/lsyncd/archive/release-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-release-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +DEPEND="${LUA_DEPS}" +RDEPEND="${LUA_DEPS} + net-misc/rsync" +# Both lua and luac are invoked at build time +BDEPEND="${LUA_DEPS} + app-text/asciidoc + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-cmake_lua_version.patch +) + +src_prepare(){ + cmake_src_prepare + # fix examples directory + sed -i "s@examples DESTINATION doc@examples DESTINATION share/doc/${PF}/examples@" \ + CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DLUA_ABI_VERSION=$(ver_cut 1-2 $(lua_get_version)) + ) + cmake_src_configure +}
