Skip to content

Commit c21fdf9

Browse files
committed
media-sound/lms: add 3.77.0
Signed-off-by: David Roman <stkw0@disroot.org>
1 parent 82e753e commit c21fdf9

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

media-sound/lms/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST lms-3.76.0.tar.gz 639354 BLAKE2B 9d7dace2caafcb7fab06945e2c4e4eacb6a7d5eebb36ef6cfeb2180240a1cfb5bef94771cc19e839d159aa99750136dc675f40aa12692ede50d4be3622b81709 SHA512 f04402f79650f2b41f59e6bd52d65a5dad16e6537521c8fcb4356d9d131f4e4b57c4b8635f61ec58f11ae38b370d7d1720287d8ac1d3b117e1d4f3b047b2b763
2+
DIST lms-3.77.0.tar.gz 3611834 BLAKE2B d5defb4e133b9278bd0be0db7259199c540140af4bb139e36efe97b58ecb509f9a015a307a3c994bad7fdd5617451c25c90a5d93d25ef653881ff9a12b85cd0b SHA512 4448707a92e7049dd11fbe59af58d059c965a5b61d13ea9382acf858c1df0a70e8f4d395ff84e067615a8591026595943119495ef1c8bb03de4099c99efc4285

media-sound/lms/lms-3.77.0.ebuild

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 2024-2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit cmake pam systemd
7+
8+
DESCRIPTION="Lightweight Music Server."
9+
HOMEPAGE="https://lms-demo.poupon.dev/ https://github.com/epoupon/lms"
10+
SRC_URI="https://github.com/epoupon/lms/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
11+
12+
LICENSE="GPL-3"
13+
SLOT="0"
14+
KEYWORDS="~amd64"
15+
IUSE="test jukebox +stb"
16+
RESTRICT="!test? ( test )"
17+
18+
RDEPEND="
19+
app-arch/libarchive
20+
acct-user/lms
21+
dev-cpp/wt:=
22+
dev-libs/boost:=
23+
dev-libs/libconfig[cxx]
24+
dev-libs/pugixml:=
25+
media-libs/taglib:=
26+
media-video/ffmpeg[lame,opus]
27+
sys-libs/pam
28+
29+
jukebox? ( media-libs/libpulse )
30+
!stb? ( media-gfx/graphicsmagick )
31+
32+
"
33+
34+
DEPEND="
35+
${RDEPEND}
36+
dev-libs/xxhash
37+
stb? ( dev-libs/stb )
38+
"
39+
40+
BDEPEND="
41+
test? ( dev-cpp/gtest )
42+
"
43+
44+
src_configure() {
45+
local mycmakeargs=(
46+
-DLMS_IMAGE_BACKEND=$(usex stb stb graphicsmagick)
47+
-DENABLE_TESTS=$(usex test)
48+
)
49+
50+
cmake_src_configure
51+
}
52+
53+
src_install() {
54+
cmake_src_install
55+
56+
systemd_newunit conf/systemd/default.service lms.service
57+
newinitd "${FILESDIR}/lms.init" lms
58+
dopamd conf/pam/lms
59+
mv "${ED}/usr/share/lms/lms.conf" "${ED}/etc/lms.conf" || die
60+
61+
# Already installed in the proper directory
62+
rm "${ED}/usr/share/lms/default.service" || die
63+
rm "${ED}/usr/share/lms/lms" || die
64+
65+
keepdir /var/log/lms
66+
fowners -R lms:lms /var/log/lms
67+
68+
keepdir /var/lms
69+
fowners lms:lms /var/lms
70+
}

0 commit comments

Comments
 (0)