Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/mediatomb: mediatomb-0.12.1-r8.ebuild ChangeLog
Date: Sat, 03 May 2014 19:51:42
Message-Id: 20140503195136.122002004E@flycatcher.gentoo.org
1 vapier 14/05/03 19:51:36
2
3 Modified: ChangeLog
4 Added: mediatomb-0.12.1-r8.ebuild
5 Log:
6 Fix random crashes in thumbnail generation code.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.53 net-misc/mediatomb/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?rev=1.53&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?rev=1.53&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/ChangeLog?r1=1.52&r2=1.53
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v
20 retrieving revision 1.52
21 retrieving revision 1.53
22 diff -u -r1.52 -r1.53
23 --- ChangeLog 29 Apr 2014 04:05:36 -0000 1.52
24 +++ ChangeLog 3 May 2014 19:51:35 -0000 1.53
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/mediatomb
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.52 2014/04/29 04:05:36 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.53 2014/05/03 19:51:35 vapier Exp $
30 +
31 +*mediatomb-0.12.1-r8 (03 May 2014)
32 +
33 + 03 May 2014; Mike Frysinger <vapier@g.o>
34 + +files/mediatomb-0.12.1-thumbnail-locking.patch, +mediatomb-0.12.1-r8.ebuild,
35 + files/mediatomb-0.12.1-thumb-cache.patch:
36 + Fix random crashes in thumbnail generation code.
37
38 29 Apr 2014; Mike Frysinger <vapier@g.o> metadata.xml:
39 Document USE=curl a bit better #505546 by BT.
40
41
42
43 1.1 net-misc/mediatomb/mediatomb-0.12.1-r8.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.1-r8.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.1-r8.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mediatomb-0.12.1-r8.ebuild
49 ===================================================================
50 # Copyright 1999-2014 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.1-r8.ebuild,v 1.1 2014/05/03 19:51:35 vapier Exp $
53
54 EAPI=5
55 inherit autotools eutils linux-info user
56
57 DEB_VER="5"
58 DESCRIPTION="MediaTomb is an open source UPnP MediaServer"
59 HOMEPAGE="http://www.mediatomb.cc/"
60
61 SRC_URI="mirror://sourceforge/mediatomb/${P}.tar.gz
62 mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_VER}.debian.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~ppc ~x86"
67
68 IUSE="curl debug +exif +ffmpeg flac id3tag +inotify +javascript lastfm
69 libextractor +magic +mp4 mysql +sqlite +taglib thumbnail +zlib"
70 REQUIRED_USE="
71 || ( mysql sqlite )
72 taglib? ( !id3tag )
73 id3tag? ( !taglib )
74 thumbnail? ( ffmpeg !libextractor )
75 ffmpeg? ( !libextractor )
76 libextractor? ( !ffmpeg !thumbnail )
77 "
78
79 DEPEND="mysql? ( virtual/mysql )
80 dev-libs/expat
81 id3tag? ( media-libs/id3lib )
82 javascript? ( >=dev-lang/spidermonkey-1.8.5:0 )
83 taglib? ( media-libs/taglib )
84 sqlite? ( >=dev-db/sqlite-3 )
85 lastfm? ( >=media-libs/lastfmlib-0.4 )
86 exif? ( media-libs/libexif )
87 libextractor? ( media-libs/libextractor )
88 mp4? ( >=media-libs/libmp4v2-1.9.1_p479:0 )
89 ffmpeg? ( virtual/ffmpeg )
90 flac? ( media-libs/flac )
91 thumbnail? ( media-video/ffmpegthumbnailer[jpeg] )
92 curl? ( net-misc/curl net-misc/youtube-dl )
93 magic? ( sys-apps/file )
94 sys-apps/util-linux
95 zlib? ( sys-libs/zlib )
96 virtual/libiconv
97 "
98 RDEPEND="${DEPEND}"
99
100 CONFIG_CHECK="~INOTIFY_USER"
101
102 pkg_setup() {
103 enewgroup mediatomb
104 enewuser mediatomb -1 -1 /dev/null mediatomb
105 }
106
107 src_prepare() {
108 # Apply Debians patchset
109 local p dd="${WORKDIR}"/debian/patches
110 sed -i -r '/^[-+]{3} /s:[.][.]/::' "${dd}"/* || die
111 # We use our version as it seems to be more complete.
112 sed -i '/^0010_fix_libmp4v2_build.patch/d' "${dd}"/series || die
113 for p in $(<"${dd}"/series) ; do
114 epatch "${dd}"/${p}
115 done
116
117 # libmp4v2 API breakage #410235
118 epatch "${FILESDIR}"/${P}-libmp4v2.patch
119
120 # Use system libuuid #270830
121 epatch "${FILESDIR}"/${P}-system-uuid.patch
122
123 # Support spidermonkey-187 #423991 #482392
124 if has_version "~dev-lang/spidermonkey-1.8.7" ; then
125 epatch "${FILESDIR}"/${P}-mozjs187.patch
126 fi
127
128 # Support libextractor-0.6.0 #435394
129 epatch "${FILESDIR}"/${P}-libextractor.patch
130
131 # Fix inotify and hard links
132 epatch "${FILESDIR}"/${P}-inotify-hard-links.patch
133
134 # Add support for caching thumbnails
135 epatch "${FILESDIR}"/${P}-thumb-cache.patch
136 epatch "${FILESDIR}"/${P}-thumbnail-locking.patch
137
138 # Respect AR #464710
139 epatch "${FILESDIR}"/${P}-system-ar.patch
140
141 # Add flac metadata support #494398
142 epatch "${FILESDIR}"/${P}-flac-metadata.patch
143
144 # Work around broken youtube support by using youtube-dl #467110
145 epatch "${FILESDIR}"/${P}-youtube-dl.patch
146
147 epatch_user
148
149 eautoreconf
150 }
151
152 src_configure() {
153 econf \
154 $(use_enable curl) \
155 $(use_enable curl youtube) \
156 $(use_enable debug tombdebug) \
157 $(use_enable exif libexif) \
158 $(use_enable ffmpeg) \
159 $(use_enable flac FLAC) \
160 $(use_enable id3tag id3lib) \
161 $(use_enable inotify) \
162 $(use_enable javascript libjs) \
163 $(use_enable lastfm lastfmlib) \
164 $(use_enable libextractor) \
165 $(use_enable magic libmagic) \
166 $(use_enable mp4 libmp4v2) \
167 $(use_enable mysql) \
168 $(use_enable sqlite sqlite3) \
169 $(use_enable taglib) \
170 $(use_enable thumbnail ffmpegthumbnailer) \
171 $(use_enable zlib) \
172 --enable-external-transcoding \
173 --enable-protocolinfo-extension
174 }
175
176 src_install() {
177 default
178
179 newinitd "${FILESDIR}"/${PN}-0.12.1.initd ${PN}
180 use mysql || sed -i -e "/use mysql/d" "${ED}"/etc/init.d/${PN}
181 newconfd "${FILESDIR}"/${PN}-0.12.0.confd ${PN}
182
183 insinto /etc/mediatomb
184 newins "${FILESDIR}/${PN}-0.12.0.config" config.xml
185 fperms 0600 /etc/mediatomb/config.xml
186 fowners mediatomb:mediatomb /etc/mediatomb/config.xml
187
188 keepdir /var/lib/mediatomb
189 fowners mediatomb:mediatomb /var/lib/mediatomb
190 }
191
192 pkg_postinst() {
193 if use mysql ; then
194 elog "MediaTomb has been built with MySQL support and needs"
195 elog "to be configured before being started."
196 elog "For more information, please consult the MediaTomb"
197 elog "documentation: http://mediatomb.cc/pages/documentation"
198 elog
199 fi
200
201 elog "To configure MediaTomb edit:"
202 elog "/etc/mediatomb/config.xml"
203 elog
204 elog "The MediaTomb web interface can be reached at (after the service is started):"
205 elog "http://localhost:49152/"
206 }