commit: 56ccef4ecbc1a9628448358ac5a7965499675f4f Author: David Roman <davidroman96 <AT> gmail <DOT> com> AuthorDate: Thu Oct 30 13:24:56 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Thu Oct 30 13:24:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56ccef4e
media-sound/lms: limite wt version to workaround compilation bug Signed-off-by: David Roman <davidroman96 <AT> gmail.com> media-sound/lms/lms-3.71.0-r2.ebuild | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/media-sound/lms/lms-3.71.0-r2.ebuild b/media-sound/lms/lms-3.71.0-r2.ebuild new file mode 100644 index 0000000000..8bf47d0304 --- /dev/null +++ b/media-sound/lms/lms-3.71.0-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake pam systemd + +DESCRIPTION="Lightweight Music Server." +HOMEPAGE="https://lms-demo.poupon.dev/ https://github.com/epoupon/lms" +SRC_URI="https://github.com/epoupon/lms/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test +stb" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/libarchive + acct-user/lms + <=dev-cpp/wt-4.12.0:= + dev-libs/boost:= + dev-libs/libconfig[cxx] + dev-libs/pugixml:= + media-libs/taglib:= + media-video/ffmpeg[lame,opus] + sys-libs/pam + + !stb? ( media-gfx/graphicsmagick ) + +" + +DEPEND=" + ${RDEPEND} + dev-libs/xxhash + stb? ( dev-libs/stb ) +" + +BDEPEND=" + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DLMS_IMAGE_BACKEND=$(usex stb stb graphicsmagick) + -DENABLE_TESTS=$(usex test) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + systemd_newunit conf/systemd/default.service lms.service + newinitd "${FILESDIR}/lms.init" lms + dopamd conf/pam/lms + mv "${ED}/usr/share/lms/lms.conf" "${ED}/etc/lms.conf" || die + + # Already installed in the proper directory + rm "${ED}/usr/share/lms/default.service" || die + rm "${ED}/usr/share/lms/lms" || die + + keepdir /var/log/lms + fowners -R lms:lms /var/log/lms + + keepdir /var/lms + fowners lms:lms /var/lms +}
