Gentoo Archives: gentoo-commits

From: Ian Whyman <thev00d00@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/gerbera/files/, net-misc/gerbera/
Date: Thu, 31 Jan 2019 20:56:37
Message-Id: 1548968164.f130a7b274ed2fc3e5c880cc42951d9e50ca6cb1.thev00d00@gentoo
1 commit: f130a7b274ed2fc3e5c880cc42951d9e50ca6cb1
2 Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 31 20:55:34 2019 +0000
4 Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 31 20:56:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f130a7b2
7
8 net-misc/gerbera: Fix config file, tidy old files
9
10 Closes: https://bugs.gentoo.org/676690
11 Closes: https://bugs.gentoo.org/676686
12 Package-Manager: Portage-2.3.59, Repoman-2.3.12
13 Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org>
14
15 .../files/gerbera-1.1.0-build-failure.patch | 14 ---
16 net-misc/gerbera/files/gerbera-1.3.0.config | 2 +-
17 net-misc/gerbera/gerbera-1.3.0-r1.ebuild | 101 +++++++++++++++++++++
18 3 files changed, 102 insertions(+), 15 deletions(-)
19
20 diff --git a/net-misc/gerbera/files/gerbera-1.1.0-build-failure.patch b/net-misc/gerbera/files/gerbera-1.1.0-build-failure.patch
21 deleted file mode 100644
22 index ff5f6075ec1..00000000000
23 --- a/net-misc/gerbera/files/gerbera-1.1.0-build-failure.patch
24 +++ /dev/null
25 @@ -1,14 +0,0 @@
26 -diff --git gerbera/src/file_request_handler.cc src/file_request_handler.cc
27 -index 2fade4a9..de33617b 100644
28 ---- gerbera/src/file_request_handler.cc
29 -+++ gerbera/src/file_request_handler.cc
30 -@@ -282,8 +282,8 @@ void FileRequestHandler::get_info(IN const char* filename, OUT UpnpFileInfo* inf
31 - header = header + "CaptionInfo.sec: " + url;
32 - }
33 - }
34 --#endif
35 - }
36 -+#endif
37 - }
38 -
39 - if (!string_ok(mimeType))
40
41 diff --git a/net-misc/gerbera/files/gerbera-1.3.0.config b/net-misc/gerbera/files/gerbera-1.3.0.config
42 index 4c41a27143c..5659140c6f8 100644
43 --- a/net-misc/gerbera/files/gerbera-1.3.0.config
44 +++ b/net-misc/gerbera/files/gerbera-1.3.0.config
45 @@ -11,7 +11,7 @@
46 </ui>
47 <name>Gerbera</name>
48 <udn>uuid:f6344839-539b-4cb9-9a12-cab6bbb30fd9</udn>
49 - <home>/var/lib/gerbera<home>
50 + <home>/var/lib/gerbera</home>
51 <webroot>/usr/share/gerbera/web</webroot>
52 <!--
53 How frequently (in seconds) to send ssdp:alive advertisements.
54
55 diff --git a/net-misc/gerbera/gerbera-1.3.0-r1.ebuild b/net-misc/gerbera/gerbera-1.3.0-r1.ebuild
56 new file mode 100644
57 index 00000000000..fcdb0195c5e
58 --- /dev/null
59 +++ b/net-misc/gerbera/gerbera-1.3.0-r1.ebuild
60 @@ -0,0 +1,101 @@
61 +# Copyright 1999-2019 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=6
65 +
66 +inherit cmake-utils eutils linux-info systemd tmpfiles user
67 +
68 +if [[ ${PV} == 9999 ]]; then
69 + EGIT_REPO_URI="https://github.com/gerbera/${PN}.git"
70 + KEYWORDS=""
71 + SRC_URI=""
72 + inherit git-r3
73 +else
74 + SRC_URI="https://github.com/gerbera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
75 + KEYWORDS="~amd64 ~x86"
76 + S="${WORKDIR}/${P}"
77 +fi
78 +
79 +DESCRIPTION="UPnP Media Server (Based on MediaTomb)"
80 +HOMEPAGE="https://github.com/gerbera/gerbera"
81 +
82 +LICENSE="GPL-2"
83 +SLOT="0"
84 +IUSE="curl debug +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript lastfm libav +magic mysql protocol-extensions systemd +taglib"
85 +
86 +DEPEND="
87 + !!net-misc/mediatomb
88 + >=net-libs/libupnp-1.8.3[ipv6,reuseaddr]
89 + >=dev-db/sqlite-3
90 + dev-libs/expat
91 + mysql? ( dev-db/mysql-connector-c )
92 + javascript? ( dev-lang/duktape )
93 + taglib? ( >=media-libs/taglib-1.11 )
94 + lastfm? ( >=media-libs/lastfmlib-0.4 )
95 + exif? ( media-libs/libexif )
96 + exiv2? ( media-gfx/exiv2 )
97 + ffmpeg? (
98 + libav? ( >=media-video/libav-10:0= )
99 + !libav? ( >=media-video/ffmpeg-2.2:0= )
100 + )
101 + ffmpegthumbnailer? ( media-video/ffmpegthumbnailer )
102 + curl? ( net-misc/curl net-misc/youtube-dl )
103 + magic? ( sys-apps/file )
104 + sys-apps/util-linux
105 + sys-libs/zlib
106 + virtual/libiconv
107 +"
108 +RDEPEND="${DEPEND}"
109 +
110 +CONFIG_CHECK="~INOTIFY_USER"
111 +
112 +pkg_setup() {
113 + linux-info_pkg_setup
114 +
115 + enewgroup ${PN}
116 + enewuser ${PN} -1 -1 /dev/null ${PN}
117 +}
118 +
119 +src_configure() {
120 + local mycmakeargs=(
121 + -DWITH_CURL="$(usex curl)" \
122 + -DWITH_DEBUG="$(usex debug)" \
123 + -DWITH_EXIF="$(usex exif)" \
124 + -DWITH_EXIV2="$(usex exiv2)" \
125 + -DWITH_AVCODEC="$(usex ffmpeg)" \
126 + -DWITH_FFMPEGTHUMBNAILER="$(usex ffmpegthumbnailer)" \
127 + -DWITH_JS="$(usex javascript)" \
128 + -DWITH_LASTFM="$(usex lastfm)" \
129 + -DWITH_MAGIC="$(usex magic)" \
130 + -DWITH_MYSQL="$(usex mysql)"
131 + -DWITH_PROTOCOL_EXTENSIONS="$(usex protocol-extensions)" \
132 + -DWITH_SYSTEMD="$(usex systemd)" \
133 + -DWITH_TAGLIB="$(usex taglib)" \
134 + -DWITH_INOTIFY=1
135 + )
136 +
137 + cmake-utils_src_configure
138 +}
139 +
140 +src_install() {
141 + cmake-utils_src_install
142 +
143 + newinitd "${FILESDIR}/${PN}-1.0.0.initd" "${PN}"
144 + newconfd "${FILESDIR}/${PN}-1.0.0.confd" "${PN}"
145 +
146 + insinto /etc/${PN}
147 + newins "${FILESDIR}/${P}.config" config.xml
148 + fperms 0640 /etc/${PN}/config.xml
149 + fowners root:gerbera /etc/${PN}/config.xml
150 +
151 + keepdir /var/lib/${PN}
152 + fowners ${PN}:${PN} /var/lib/${PN}
153 +}
154 +
155 +pkg_postinst() {
156 + if use mysql ; then
157 + elog "Gerbera has been built with MySQL support and needs"
158 + elog "to be configured before being started. By default"
159 + elog "SQLite will be used."
160 + fi
161 +}