aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Roman <davidroman96@gmail.com>2024-08-06 11:24:53 +0200
committerDavid Roman <davidroman96@gmail.com>2024-08-06 11:24:53 +0200
commit3da86ebdba38387cc3e760efeef4c603865c4244 (patch)
tree676d064eeba5ee5e2c18f1e1ffcdcd708165b0c9 /media-sound
parentmedia-sound/supersonic: add missing RDEPENDs (diff)
downloadguru-3da86ebdba38387cc3e760efeef4c603865c4244.tar.gz
guru-3da86ebdba38387cc3e760efeef4c603865c4244.tar.bz2
guru-3da86ebdba38387cc3e760efeef4c603865c4244.zip
media-sound/lms: add missing RDEPEND
Closes: https://bugs.gentoo.org/937443 Signed-off-by: David Roman <davidroman96@gmail.com>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/lms/lms-3.56.0-r1.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/media-sound/lms/lms-3.56.0-r1.ebuild b/media-sound/lms/lms-3.56.0-r1.ebuild
new file mode 100644
index 000000000..d271ce719
--- /dev/null
+++ b/media-sound/lms/lms-3.56.0-r1.ebuild
@@ -0,0 +1,72 @@
+# 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 )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-respect-ldflags.patch"
+)
+
+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
+}