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/
Date: Thu, 31 Jan 2019 21:10:34
Message-Id: 1548969013.bf531ff44e08bc0d8b00d3d617cd07123e688c84.thev00d00@gentoo
1 commit: bf531ff44e08bc0d8b00d3d617cd07123e688c84
2 Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 31 21:10:13 2019 +0000
4 Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 31 21:10:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf531ff4
7
8 net-misc/gerbera: Tidy old, sync git ebuild
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org>
12
13 net-misc/gerbera/gerbera-1.3.0.ebuild | 101 ----------------------------------
14 net-misc/gerbera/gerbera-9999.ebuild | 4 +-
15 2 files changed, 2 insertions(+), 103 deletions(-)
16
17 diff --git a/net-misc/gerbera/gerbera-1.3.0.ebuild b/net-misc/gerbera/gerbera-1.3.0.ebuild
18 deleted file mode 100644
19 index fcdb0195c5e..00000000000
20 --- a/net-misc/gerbera/gerbera-1.3.0.ebuild
21 +++ /dev/null
22 @@ -1,101 +0,0 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -
28 -inherit cmake-utils eutils linux-info systemd tmpfiles user
29 -
30 -if [[ ${PV} == 9999 ]]; then
31 - EGIT_REPO_URI="https://github.com/gerbera/${PN}.git"
32 - KEYWORDS=""
33 - SRC_URI=""
34 - inherit git-r3
35 -else
36 - SRC_URI="https://github.com/gerbera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 - KEYWORDS="~amd64 ~x86"
38 - S="${WORKDIR}/${P}"
39 -fi
40 -
41 -DESCRIPTION="UPnP Media Server (Based on MediaTomb)"
42 -HOMEPAGE="https://github.com/gerbera/gerbera"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -IUSE="curl debug +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript lastfm libav +magic mysql protocol-extensions systemd +taglib"
47 -
48 -DEPEND="
49 - !!net-misc/mediatomb
50 - >=net-libs/libupnp-1.8.3[ipv6,reuseaddr]
51 - >=dev-db/sqlite-3
52 - dev-libs/expat
53 - mysql? ( dev-db/mysql-connector-c )
54 - javascript? ( dev-lang/duktape )
55 - taglib? ( >=media-libs/taglib-1.11 )
56 - lastfm? ( >=media-libs/lastfmlib-0.4 )
57 - exif? ( media-libs/libexif )
58 - exiv2? ( media-gfx/exiv2 )
59 - ffmpeg? (
60 - libav? ( >=media-video/libav-10:0= )
61 - !libav? ( >=media-video/ffmpeg-2.2:0= )
62 - )
63 - ffmpegthumbnailer? ( media-video/ffmpegthumbnailer )
64 - curl? ( net-misc/curl net-misc/youtube-dl )
65 - magic? ( sys-apps/file )
66 - sys-apps/util-linux
67 - sys-libs/zlib
68 - virtual/libiconv
69 -"
70 -RDEPEND="${DEPEND}"
71 -
72 -CONFIG_CHECK="~INOTIFY_USER"
73 -
74 -pkg_setup() {
75 - linux-info_pkg_setup
76 -
77 - enewgroup ${PN}
78 - enewuser ${PN} -1 -1 /dev/null ${PN}
79 -}
80 -
81 -src_configure() {
82 - local mycmakeargs=(
83 - -DWITH_CURL="$(usex curl)" \
84 - -DWITH_DEBUG="$(usex debug)" \
85 - -DWITH_EXIF="$(usex exif)" \
86 - -DWITH_EXIV2="$(usex exiv2)" \
87 - -DWITH_AVCODEC="$(usex ffmpeg)" \
88 - -DWITH_FFMPEGTHUMBNAILER="$(usex ffmpegthumbnailer)" \
89 - -DWITH_JS="$(usex javascript)" \
90 - -DWITH_LASTFM="$(usex lastfm)" \
91 - -DWITH_MAGIC="$(usex magic)" \
92 - -DWITH_MYSQL="$(usex mysql)"
93 - -DWITH_PROTOCOL_EXTENSIONS="$(usex protocol-extensions)" \
94 - -DWITH_SYSTEMD="$(usex systemd)" \
95 - -DWITH_TAGLIB="$(usex taglib)" \
96 - -DWITH_INOTIFY=1
97 - )
98 -
99 - cmake-utils_src_configure
100 -}
101 -
102 -src_install() {
103 - cmake-utils_src_install
104 -
105 - newinitd "${FILESDIR}/${PN}-1.0.0.initd" "${PN}"
106 - newconfd "${FILESDIR}/${PN}-1.0.0.confd" "${PN}"
107 -
108 - insinto /etc/${PN}
109 - newins "${FILESDIR}/${P}.config" config.xml
110 - fperms 0640 /etc/${PN}/config.xml
111 - fowners root:gerbera /etc/${PN}/config.xml
112 -
113 - keepdir /var/lib/${PN}
114 - fowners ${PN}:${PN} /var/lib/${PN}
115 -}
116 -
117 -pkg_postinst() {
118 - if use mysql ; then
119 - elog "Gerbera has been built with MySQL support and needs"
120 - elog "to be configured before being started. By default"
121 - elog "SQLite will be used."
122 - fi
123 -}
124
125 diff --git a/net-misc/gerbera/gerbera-9999.ebuild b/net-misc/gerbera/gerbera-9999.ebuild
126 index ff9299acd18..1b1129c4725 100644
127 --- a/net-misc/gerbera/gerbera-9999.ebuild
128 +++ b/net-misc/gerbera/gerbera-9999.ebuild
129 @@ -25,7 +25,7 @@ IUSE="curl debug +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript lastfm libav
130
131 DEPEND="
132 !!net-misc/mediatomb
133 - net-libs/libupnp:1.8[ipv6,reuseaddr]
134 + >=net-libs/libupnp-1.8.3[ipv6,reuseaddr]
135 >=dev-db/sqlite-3
136 dev-libs/expat
137 mysql? ( dev-db/mysql-connector-c )
138 @@ -84,7 +84,7 @@ src_install() {
139 newconfd "${FILESDIR}/${PN}-1.0.0.confd" "${PN}"
140
141 insinto /etc/${PN}
142 - newins "${FILESDIR}/${PN}-1.0.0.config" config.xml
143 + newins "${FILESDIR}/${PN}-1.3.0.config" config.xml
144 fperms 0640 /etc/${PN}/config.xml
145 fowners root:gerbera /etc/${PN}/config.xml