diff options
Diffstat (limited to 'app-admin/lsyncd/lsyncd-2.2.3.ebuild')
-rw-r--r-- | app-admin/lsyncd/lsyncd-2.2.3.ebuild | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/app-admin/lsyncd/lsyncd-2.2.3.ebuild b/app-admin/lsyncd/lsyncd-2.2.3.ebuild index 67ccfb4ab94d..afa60bc84968 100644 --- a/app-admin/lsyncd/lsyncd-2.2.3.ebuild +++ b/app-admin/lsyncd/lsyncd-2.2.3.ebuild @@ -1,28 +1,40 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=8 -CMAKE_IN_SOURCE_BUILD="YES_PLEASE_OMG" -inherit cmake-utils +LUA_COMPAT=( lua5-{2,3} ) +LUA_REQ_USE="deprecated" + +inherit cmake lua-single DESCRIPTION="Live Syncing (Mirror) Daemon" -HOMEPAGE="https://github.com/axkibe/lsyncd" -SRC_URI="https://github.com/axkibe/lsyncd/archive/release-${PV}.tar.gz -> ${P}.tar.gz" +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" +LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" + +REQUIRED_USE="${LUA_REQUIRED_USE}" -CDEPEND=">=dev-lang/lua-5.2[deprecated]" -DEPEND="${CDEPEND} +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" -RDEPEND="${CDEPEND} - net-misc/rsync" PATCHES=( - "${FILESDIR}"/${PN}-2.3.3-mandir.patch + "${FILESDIR}"/${PN}-2.2.3-cmake_lua_version.patch + "${FILESDIR}"/${PN}-2.2.3-mandir.patch ) -S=${WORKDIR}/${PN}-release-${PV} +src_configure() { + local mycmakeargs=( + -DLUA_ABI_VERSION=$(ver_cut 1-2 $(lua_get_version)) + ) + cmake_src_configure +} |