media-sound/lms: add 3.62.0

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman 2024-12-19 10:58:41 +01:00
parent dbcf07cc16
commit ed39713b92
No known key found for this signature in database
GPG Key ID: FFAD0D85E1A0C8D7
2 changed files with 69 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST lms-3.60.1.tar.gz 458729 BLAKE2B aaa5872e4fe9aee0e494f39404620468a1159e1a1948bdbf28403ea37850a9c6337d5311cf1068c6ad58912b5d0b11b8edb659f2d0068b877484a587e9a2ce4c SHA512 d5068192167a706d0e144033ff4146bbbae29be2b1bd8fda858d0cb7b6196fe1a0c7f1286656b387ea8c874b4793a8f5b9eb239e7d6793a8c0367e45272afec2
DIST lms-3.61.0.tar.gz 465049 BLAKE2B b4d08b92c31c09734d5961c634839b729a6497e6319463d0d5ae919330d1a195d12d2cfeb5171e3a879d7bf81c34a44aa8493eecd2cb1aed76cd400a02db0687 SHA512 ea812f0fa0ad89319a1d219205092025f63883ca3b8612e2fc8ff286362fd7961a793d19e23fb8a6393bd796dedff14f6f94f6e96c6403ae456c1cf05cfc7fbf
DIST lms-3.62.0.tar.gz 473881 BLAKE2B a90b0cb8f1f1f6be2595065851dd7adcced135ddec21ae005cb0da17383a8a0179f96c205e1eee353284740fb432be29810a418baf3e53440f157dc3f7b0fb2d SHA512 17a45b6dc3689b8758e4f8ffa10909e3c71b18f716538986b8e526d8821cf707def3a11ddec6b76e5c8e927f72b7b54cb57fbe29ee5e33a4a5035de448c76f7b

View File

@ -0,0 +1,68 @@
# Copyright 2024 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
dev-libs/boost
dev-libs/libconfig[cxx]
media-libs/taglib
media-video/ffmpeg[mp3,opus]
sys-libs/pam
!stb? ( media-gfx/graphicsmagick )
"
DEPEND="
${RDEPEND}
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
}