Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/mediatomb: mediatomb-0.12.2_pre20150118-r1.ebuild ChangeLog
Date: Sun, 01 Feb 2015 23:27:56
Message-Id: 20150201232752.4755110DAE@oystercatcher.gentoo.org
1 mgorny 15/02/01 23:27:52
2
3 Modified: ChangeLog
4 Added: mediatomb-0.12.2_pre20150118-r1.ebuild
5 Log:
6 Introduce USE=libav to control the preferred implementation. Add subslot op to force rebuilds on ABI change.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.63 net-misc/mediatomb/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 18 Jan 2015 18:54:09 -0000 1.62
24 +++ ChangeLog 1 Feb 2015 23:27:52 -0000 1.63
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/mediatomb
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.62 2015/01/18 18:54:09 thev00d00 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.63 2015/02/01 23:27:52 mgorny Exp $
30 +
31 +*mediatomb-0.12.2_pre20150118-r1 (01 Feb 2015)
32 +
33 + 01 Feb 2015; Michał Górny <mgorny@g.o>
34 + +mediatomb-0.12.2_pre20150118-r1.ebuild:
35 + Introduce USE=libav to control the preferred implementation. Add subslot op to
36 + force rebuilds on ABI change.
37
38 *mediatomb-0.12.2_pre20150118 (18 Jan 2015)
39
40
41
42
43 1.1 net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mediatomb-0.12.2_pre20150118-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild,v 1.1 2015/02/01 23:27:52 mgorny Exp $
53
54 EAPI=5
55 inherit autotools eutils linux-info systemd user vcs-snapshot
56
57 DESCRIPTION="MediaTomb is an open source UPnP MediaServer"
58 HOMEPAGE="http://www.mediatomb.cc/"
59 SRC_URI="https://github.com/v00d00/${PN}/archive/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~arm ~x86"
64
65 IUSE="curl debug +exif +ffmpeg flac id3tag +inotify +javascript lastfm
66 libav +magic +mp4 mysql +sqlite +taglib thumbnail +zlib"
67 REQUIRED_USE="
68 || ( mysql sqlite )
69 taglib? ( !id3tag )
70 id3tag? ( !taglib )
71 thumbnail? ( ffmpeg )
72 "
73
74 DEPEND="mysql? ( virtual/mysql )
75 dev-libs/expat
76 id3tag? ( media-libs/id3lib )
77 javascript? ( >=dev-lang/spidermonkey-1.8.5:0 )
78 taglib? ( media-libs/taglib )
79 sqlite? ( >=dev-db/sqlite-3 )
80 lastfm? ( >=media-libs/lastfmlib-0.4 )
81 exif? ( media-libs/libexif )
82 mp4? ( >=media-libs/libmp4v2-1.9.1_p479:0 )
83 ffmpeg? (
84 libav? ( >=media-video/libav-10:0= )
85 !libav? ( >=media-video/ffmpeg-2.2:0= )
86 )
87 flac? ( media-libs/flac )
88 thumbnail? ( media-video/ffmpegthumbnailer[jpeg] )
89 curl? ( net-misc/curl net-misc/youtube-dl )
90 magic? ( sys-apps/file )
91 sys-apps/util-linux
92 zlib? ( sys-libs/zlib )
93 virtual/libiconv
94 "
95 RDEPEND="${DEPEND}"
96
97 CONFIG_CHECK="~INOTIFY_USER"
98
99 pkg_setup() {
100 use inotify && linux-info_pkg_setup
101
102 enewgroup mediatomb
103 enewuser mediatomb -1 -1 /dev/null mediatomb
104 }
105
106 src_prepare() {
107 # Support spidermonkey-187 #423991 #482392
108 if has_version "~dev-lang/spidermonkey-1.8.7" ; then
109 epatch "${FILESDIR}"/${PN}-0.12.1-mozjs187.patch
110 fi
111
112 epatch_user
113
114 eautoreconf
115 }
116
117 src_configure() {
118 econf \
119 $(use_enable curl) \
120 $(use_enable curl youtube) \
121 $(use_enable debug tombdebug) \
122 $(use_enable exif libexif) \
123 $(use_enable ffmpeg) \
124 $(use_enable flac) \
125 $(use_enable id3tag id3lib) \
126 $(use_enable inotify) \
127 $(use_enable javascript libjs) \
128 $(use_enable lastfm lastfm) \
129 $(use_enable magic libmagic) \
130 $(use_enable mp4 libmp4v2) \
131 $(use_enable mysql) \
132 $(use_enable sqlite sqlite3) \
133 $(use_enable taglib) \
134 $(use_enable thumbnail ffmpegthumbnailer) \
135 --enable-external-transcoding \
136 --enable-protocolinfo-extension
137 }
138
139 src_install() {
140 default
141
142 systemd_dounit "${S}"/scripts/systemd/"${PN}".service
143 use mysql && systemd_dounit "${S}"/scripts/systemd/"${PN}"-mysql.service
144
145 newinitd "${FILESDIR}"/${PN}-0.12.1.initd ${PN}
146 use mysql || sed -i -e "/use mysql/d" "${ED}"/etc/init.d/${PN}
147 newconfd "${FILESDIR}"/${PN}-0.12.0.confd ${PN}
148
149 insinto /etc/mediatomb
150 newins "${FILESDIR}/${PN}-0.12.0.config" config.xml
151 fperms 0600 /etc/mediatomb/config.xml
152 fowners mediatomb:mediatomb /etc/mediatomb/config.xml
153
154 keepdir /var/lib/mediatomb
155 fowners mediatomb:mediatomb /var/lib/mediatomb
156 }
157
158 pkg_postinst() {
159 if use mysql ; then
160 elog "MediaTomb has been built with MySQL support and needs"
161 elog "to be configured before being started."
162 elog "For more information, please consult the MediaTomb"
163 elog "documentation: http://mediatomb.cc/pages/documentation"
164 elog
165 fi
166
167 elog "To configure MediaTomb edit:"
168 elog "/etc/mediatomb/config.xml"
169 elog
170 elog "The MediaTomb web interface can be reached at (after the service is started):"
171 elog "http://localhost:49152/"
172 }