summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Tietz <christian.tietz@mailbox.org>2024-07-07 16:18:43 +0200
committerYixun Lan <dlan@gentoo.org>2024-07-13 10:46:40 +0000
commit916dec5101d724cc050336a663f33443a93b5ed2 (patch)
treefffbebedceeb88c4b7fa1784fbf9ef6374bf60a3 /net-misc
parentmedia-libs/libjxl: Stabilize 0.8.3 ppc64, #935981 (diff)
downloadgentoo-916dec5101d724cc050336a663f33443a93b5ed2.tar.gz
gentoo-916dec5101d724cc050336a663f33443a93b5ed2.tar.bz2
gentoo-916dec5101d724cc050336a663f33443a93b5ed2.zip
net-misc/gerbera: Bump to 2.2.0
Signed-off-by: Christian Tietz <christian.tietz@mailbox.org> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/gerbera/Manifest1
-rw-r--r--net-misc/gerbera/gerbera-2.2.0.ebuild90
2 files changed, 91 insertions, 0 deletions
diff --git a/net-misc/gerbera/Manifest b/net-misc/gerbera/Manifest
index de1a9d6d3b0f..44e5c5374c0d 100644
--- a/net-misc/gerbera/Manifest
+++ b/net-misc/gerbera/Manifest
@@ -1,2 +1,3 @@
DIST gerbera-1.12.1.tar.gz 4368573 BLAKE2B 870b1296b89d51086048c5c5a52109f336facbf0bce02313487cb5c80ca4bb9a5590f64683f5ac92a3c3026ef9c3e22275a38fdc52fd8cbe887ec6f3c7b38ab9 SHA512 54f4b9fe38f4890d1cac16d433bd70cb2892f3659fffcd5f52814d2f9377c4a8eb68deb3a13053531609727f7ae6cb5ee12bbf652bc41dd1eabd83e6f8dcc1f2
DIST gerbera-2.1.0.tar.gz 5828980 BLAKE2B d611b9db723e52d417c64ce6ff8bfd77009ad7b7c2454b8f722810aacfde76b892894e8a70cf4e25474f970b13353eb770d4663f91ac59ac87cea858928005fb SHA512 5069ffb470dc10c5b7e6f95e9d61794e00d8a4473835860e7bca63ff1c34f2b8544b3a7fed8373a20e6bbddb2bc016ecb39a8321e930813e65e444b653e5a24f
+DIST gerbera-2.2.0.tar.gz 6138157 BLAKE2B eab6008696cf353c50468a686509ed82381375e7b5e5a5a1b38bfcad6e275ca69885df7a8df7ebdf5bb407f7e7ec9401c27e09fbca55ec61ef15c415439b7148 SHA512 6e11d3e40c9a95d278ce4c6f0c914a27fed250e9202bb81c0f539d06622738bfa5b2156ca6bd061872e276858eb203f626c997ddc00810f9d816f4ff9198c97e
diff --git a/net-misc/gerbera/gerbera-2.2.0.ebuild b/net-misc/gerbera/gerbera-2.2.0.ebuild
new file mode 100644
index 000000000000..ea5940db0a95
--- /dev/null
+++ b/net-misc/gerbera/gerbera-2.2.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake linux-info
+
+DESCRIPTION="UPnP Media Server"
+HOMEPAGE="https://gerbera.io"
+
+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"
+ S="${WORKDIR}/${P}"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+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:=[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=ON
+ -DWITH_JS=$(usex javascript)
+ -DWITH_LASTFM=OFF
+ -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
+}