commit:     1f01ac62b323220e94a82f6160e5d34e413ab872
Author:     Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
AuthorDate: Mon Jan  2 19:08:46 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 01:31:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f01ac62

net-misc/gerbera: add 1.12.1

Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/gerbera/Manifest              |  1 +
 net-misc/gerbera/gerbera-1.12.1.ebuild | 90 ++++++++++++++++++++++++++++++++++
 net-misc/gerbera/metadata.xml          |  1 -
 3 files changed, 91 insertions(+), 1 deletion(-)

diff --git a/net-misc/gerbera/Manifest b/net-misc/gerbera/Manifest
index d006c871b6d5..b85511069214 100644
--- a/net-misc/gerbera/Manifest
+++ b/net-misc/gerbera/Manifest
@@ -1 +1,2 @@
 DIST gerbera-1.12.0.tar.gz 4363130 BLAKE2B 
c9db8418fecaa7d58046f61b52148eb2e3fe168414d78909517aad22ddf68cb19c658ec25e8a2c5e1764aa457d8f3cbb676e2a50f4bd610dfc275f576ec70881
 SHA512 
0dd051058638dc5c3a834f92e6733a3e3f2833c73dd8184f4878d6dd1f3b9e5dabba5d62c13fc9a0e2424b8efb5501dab9acbb8befa1bdfbf178894a6c70bc16
+DIST gerbera-1.12.1.tar.gz 4368573 BLAKE2B 
870b1296b89d51086048c5c5a52109f336facbf0bce02313487cb5c80ca4bb9a5590f64683f5ac92a3c3026ef9c3e22275a38fdc52fd8cbe887ec6f3c7b38ab9
 SHA512 
54f4b9fe38f4890d1cac16d433bd70cb2892f3659fffcd5f52814d2f9377c4a8eb68deb3a13053531609727f7ae6cb5ee12bbf652bc41dd1eabd83e6f8dcc1f2

diff --git a/net-misc/gerbera/gerbera-1.12.1.ebuild 
b/net-misc/gerbera/gerbera-1.12.1.ebuild
new file mode 100644
index 000000000000..00f14f51b749
--- /dev/null
+++ b/net-misc/gerbera/gerbera-1.12.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake linux-info
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/gerbera/${PN}.git";
+       inherit git-r3
+else
+       
SRC_URI="https://github.com/gerbera/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+       S="${WORKDIR}/${P}"
+fi
+
+DESCRIPTION="UPnP Media Server"
+HOMEPAGE="https://gerbera.io";
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="curl debug +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript +magic 
+matroska mysql systemd +taglib"
+
+RDEPEND="
+       acct-user/gerbera
+       dev-db/sqlite
+       dev-libs/libebml:=
+       dev-libs/libfmt:=
+       dev-libs/pugixml
+       dev-libs/spdlog:=
+       >=net-libs/libupnp-1.14.12:=[ipv6(+),reuseaddr,-blocking-tcp]
+       sys-apps/util-linux
+       sys-libs/zlib
+       virtual/libiconv
+       curl? ( net-misc/curl )
+       exif? ( media-libs/libexif )
+       exiv2? ( media-gfx/exiv2 )
+       ffmpeg? ( media-video/ffmpeg:= )
+       ffmpegthumbnailer? ( media-video/ffmpegthumbnailer )
+       javascript? ( dev-lang/duktape:= )
+       magic? ( sys-apps/file )
+       matroska? ( media-libs/libmatroska:= )
+       mysql? ( dev-db/mysql-connector-c )
+       taglib? ( media-libs/taglib )
+"
+
+DEPEND="${RDEPEND}"
+
+CONFIG_CHECK="~INOTIFY_USER"
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_AVCODEC=$(usex ffmpeg)
+               -DWITH_CURL=$(usex curl)
+               -DWITH_DEBUG=$(usex debug)
+               -DWITH_EXIF=$(usex exif)
+               -DWITH_EXIV2=$(usex exiv2)
+               -DWITH_FFMPEGTHUMBNAILER=$(usex ffmpegthumbnailer)
+               -DWITH_INOTIFY=1
+               -DWITH_JS=$(usex javascript)
+               -DWITH_LASTFM=NO
+               -DWITH_MAGIC=$(usex magic)
+               -DWITH_MATROSKA=$(usex matroska)
+               -DWITH_MYSQL=$(usex mysql)
+               -DWITH_SYSTEMD=$(usex systemd)
+               -DWITH_TAGLIB=$(usex taglib)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       newinitd "${FILESDIR}"/${PN}-1.0.0.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}-1.0.0.confd ${PN}
+
+       insinto /etc/${PN}
+       newins "${FILESDIR}"/${PN}-1.3.0.config config.xml
+       fperms 0640 /etc/${PN}/config.xml
+       fowners root:gerbera /etc/${PN}/config.xml
+}
+
+pkg_postinst() {
+       if use mysql; then
+               elog "Gerbera has been built with MySQL support and needs"
+               elog "to be configured before being started. By default"
+               elog "SQLite will be used."
+       fi
+}

diff --git a/net-misc/gerbera/metadata.xml b/net-misc/gerbera/metadata.xml
index 46cb19df5ff3..6463221bb5fe 100644
--- a/net-misc/gerbera/metadata.xml
+++ b/net-misc/gerbera/metadata.xml
@@ -14,7 +14,6 @@
                <flag name="curl">Support HTTP media sources (e.g. internet 
radio)</flag>
                <flag name="exiv2">Use <pkg>media-gfx/exiv2</pkg> to extract 
EXIF information</flag>
                <flag name="ffmpegthumbnailer">Enable video thumbnail support 
with <pkg>media-video/ffmpegthumbnailer</pkg></flag>
-               <flag name="lastfm">Enable last.fm support</flag>
                <flag name="mysql">Use <pkg>dev-db/mysql</pkg> as backend 
rather than SQLite3</flag>
                <flag name="taglib">Use <pkg>media-libs/taglib</pkg> for 
reading files' metadata</flag>
        </use>

Reply via email to