mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/gerbera: Bump to 2.5.0
Closes: https://bugs.gentoo.org/941944 Closes: https://bugs.gentoo.org/946962 Signed-off-by: Christian Tietz <christian.tietz@mailbox.org> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
81aeba9f55
commit
c3e134cae4
@@ -1 +1,2 @@
|
||||
DIST gerbera-2.3.0.tar.gz 6255947 BLAKE2B bf1d418574fa315cbae91b4174940f78312c95ad91c30bc9b3714915a9204e7c5968b78de03fc63239d4b3f80a488633b737d3a9bfef86263b6c1a7564435ec0 SHA512 5326a22a244ef572a7a825193f0a8595fd4125295e4d9c7d329966e6d0b2995a48c48b75d1b02e809e2423839709d736e34be0329c5028f23c9af69906dcfae7
|
||||
DIST gerbera-2.5.0.tar.gz 9873077 BLAKE2B 5bf64753b2aac48fbeef965d774b6c8ad5c04654d605c9e82498f3bda9fd3cc80663f2165af40b440af6db29205474442c97bb83890b92ed42962d00d7c9537a SHA512 f8b172b2a55d38a4ac32de52f519be51876ed523bd7d45098c31b4eaa5f28bc8c542b2927b2e75dc7c508bd7e0232e90c69b8851f8fcfe48494c873ff3586e93
|
||||
|
||||
116
net-misc/gerbera/gerbera-2.5.0.ebuild
Normal file
116
net-misc/gerbera/gerbera-2.5.0.ebuild
Normal file
@@ -0,0 +1,116 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DIR="doc"
|
||||
DOCS_AUTODOC=0
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
# python-any-r1 is inherited first because docs.eclass sources it, and cmake.eclass exports phases.
|
||||
inherit python-any-r1 cmake docs flag-o-matic 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 doc +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript +magic +matroska mysql systemd +taglib"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/gerbera
|
||||
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[png] )
|
||||
javascript? ( dev-lang/duktape:= )
|
||||
magic? ( sys-apps/file )
|
||||
matroska? ( media-libs/libmatroska:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
taglib? ( media-libs/taglib:= )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="doc? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
|
||||
')
|
||||
media-gfx/graphviz
|
||||
)"
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
|
||||
src_configure() {
|
||||
# bug #941944
|
||||
filter-lto
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_DOC=OFF
|
||||
-DINSTALL_DOC=OFF
|
||||
-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_compile() {
|
||||
cmake_src_compile
|
||||
docs_compile
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user