From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1616612-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 12DDC158041
	for <garchives@archives.gentoo.org>; Tue,  2 Apr 2024 12:34:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 624722BC015;
	Tue,  2 Apr 2024 12:34:27 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 46A642BC015
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Apr 2024 12:34:26 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D6CFE343208
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Apr 2024 12:34:25 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E28171623
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Apr 2024 12:34:22 +0000 (UTC)
From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" <contact@hacktivis.me>
Message-ID: <1712059995.6fd9b35423c88cbe44c1d3c8ef940a48a223b27d.lanodan@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-sound/lms/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: media-sound/lms/Manifest media-sound/lms/lms-3.51.1.ebuild
X-VCS-Directories: media-sound/lms/
X-VCS-Committer: lanodan
X-VCS-Committer-Name: Haelwenn Monnier
X-VCS-Revision: 6fd9b35423c88cbe44c1d3c8ef940a48a223b27d
X-VCS-Branch: master
Date: Tue,  2 Apr 2024 12:34:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: a2f125f0-c592-45fd-af60-19187b8b3e15
X-Archives-Hash: 019acdaf099b3c2c9645004b3b3adcdc

commit:     6fd9b35423c88cbe44c1d3c8ef940a48a223b27d
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Apr  2 12:13:15 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue Apr  2 12:13:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6fd9b354

media-sound/lms: add 3.51.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 media-sound/lms/Manifest          |  1 +
 media-sound/lms/lms-3.51.1.ebuild | 72 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/media-sound/lms/Manifest b/media-sound/lms/Manifest
index f45a59a77e..d740f50d20 100644
--- a/media-sound/lms/Manifest
+++ b/media-sound/lms/Manifest
@@ -1 +1,2 @@
 DIST lms-3.50.1.tar.gz 419715 BLAKE2B 80a8c08268d48e4fe8b64f66063cbe925b71288d0604c1395b54fdd35cfe7e815f9f67861cd52ba1934debc04291d96fe85c16ef99108fb9491015cea7562396 SHA512 8787d9a26bddb93d55e42f9b5f5c0295d8c67404e7648c3be620e03ae1e1ed243d87ff978a7c687dd349db4309e858807956bfa804207809c3b2fe3eed87977b
+DIST lms-3.51.1.tar.gz 427958 BLAKE2B 88e7afc4fa3c28761d0ce6fa9c5d98ab9c9525f2138ef0523e9bae45511c74c9417b8717de56b054f5ec15c444fcbc00336795f3bdcbbb906ddde97bc54ad6cd SHA512 f53907e0bbf9f6a26d9231e7eca01fd92f981e1271879bcbb960829b1416d1d73e980f50b4a5a12d1b0e48b7b9d1680b53fedce8e015eee33edc3c890625c34b

diff --git a/media-sound/lms/lms-3.51.1.ebuild b/media-sound/lms/lms-3.51.1.ebuild
new file mode 100644
index 0000000000..fe5dbc28e5
--- /dev/null
+++ b/media-sound/lms/lms-3.51.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic pam systemd
+
+DESCRIPTION="Lightweight Music Server."
+HOMEPAGE="http://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="
+	acct-user/lms
+	dev-cpp/wt
+	dev-libs/boost
+	dev-libs/libconfig[cxx]
+	media-libs/taglib
+	media-video/ffmpeg
+
+	!stb? ( media-gfx/graphicsmagick )
+
+"
+
+DEPEND="
+	${RDEPEND}
+
+	stb? ( dev-libs/stb )
+"
+
+BDEPEND="
+	test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-respect-ldflags.patch"
+)
+
+src_configure() {
+	append-flags -I/usr/include/stb/deprecated
+
+	local mycmakeargs=(
+		-DIMAGE_LIBRARY=$(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
+}