diff options
author | Christian Tietz <christian.tietz@mailbox.org> | 2024-09-18 16:12:53 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-10-20 19:12:11 +0300 |
commit | a8b19387fdd056ae3990a76c7f98213526ef890c (patch) | |
tree | d93d5a9b7781847ea0e82cf41062bfdc08b2de6c /net-misc | |
parent | x11-wm/qtile: Switch over to media-libs/libpulse (diff) | |
download | gentoo-a8b19387fdd056ae3990a76c7f98213526ef890c.tar.gz gentoo-a8b19387fdd056ae3990a76c7f98213526ef890c.tar.bz2 gentoo-a8b19387fdd056ae3990a76c7f98213526ef890c.zip |
net-misc/gerbera: Bump to 2.3.0
Signed-off-by: Christian Tietz <christian.tietz@mailbox.org>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/gerbera/Manifest | 1 | ||||
-rw-r--r-- | net-misc/gerbera/gerbera-2.3.0.ebuild | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/net-misc/gerbera/Manifest b/net-misc/gerbera/Manifest index 515d4831ca87..7c0422512ce0 100644 --- a/net-misc/gerbera/Manifest +++ b/net-misc/gerbera/Manifest @@ -1 +1,2 @@ DIST gerbera-2.2.0.tar.gz 6138157 BLAKE2B eab6008696cf353c50468a686509ed82381375e7b5e5a5a1b38bfcad6e275ca69885df7a8df7ebdf5bb407f7e7ec9401c27e09fbca55ec61ef15c415439b7148 SHA512 6e11d3e40c9a95d278ce4c6f0c914a27fed250e9202bb81c0f539d06622738bfa5b2156ca6bd061872e276858eb203f626c997ddc00810f9d816f4ff9198c97e +DIST gerbera-2.3.0.tar.gz 6255947 BLAKE2B bf1d418574fa315cbae91b4174940f78312c95ad91c30bc9b3714915a9204e7c5968b78de03fc63239d4b3f80a488633b737d3a9bfef86263b6c1a7564435ec0 SHA512 5326a22a244ef572a7a825193f0a8595fd4125295e4d9c7d329966e6d0b2995a48c48b75d1b02e809e2423839709d736e34be0329c5028f23c9af69906dcfae7 diff --git a/net-misc/gerbera/gerbera-2.3.0.ebuild b/net-misc/gerbera/gerbera-2.3.0.ebuild new file mode 100644 index 000000000000..62e14a6f02f9 --- /dev/null +++ b/net-misc/gerbera/gerbera-2.3.0.ebuild @@ -0,0 +1,96 @@ +# 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 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 ) + doc? ( + app-text/doxygen + media-gfx/graphviz + ) + 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}" + +CONFIG_CHECK="~INOTIFY_USER" + +src_configure() { + local mycmakeargs=( + -DBUILD_DOC=$(usex doc) + -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 +} |