diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-02-01 23:27:52 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-02-01 23:27:52 +0000 |
commit | 8f16d8cf51692dd359027bdbb0caac9712641a38 (patch) | |
tree | c44aa9e28e1763ddf79beec18ee9e9a0c53c73a3 | |
parent | Version bump wrt bug 538452 (diff) | |
download | gentoo-2-8f16d8cf51692dd359027bdbb0caac9712641a38.tar.gz gentoo-2-8f16d8cf51692dd359027bdbb0caac9712641a38.tar.bz2 gentoo-2-8f16d8cf51692dd359027bdbb0caac9712641a38.zip |
Introduce USE=libav to control the preferred implementation. Add subslot op to force rebuilds on ABI change.
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
-rw-r--r-- | net-misc/mediatomb/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild | 123 |
2 files changed, 131 insertions, 1 deletions
diff --git a/net-misc/mediatomb/ChangeLog b/net-misc/mediatomb/ChangeLog index cb4dd3b0a334..d1eb6e97d49c 100644 --- a/net-misc/mediatomb/ChangeLog +++ b/net-misc/mediatomb/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/mediatomb # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.62 2015/01/18 18:54:09 thev00d00 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.63 2015/02/01 23:27:52 mgorny Exp $ + +*mediatomb-0.12.2_pre20150118-r1 (01 Feb 2015) + + 01 Feb 2015; Michał Górny <mgorny@gentoo.org> + +mediatomb-0.12.2_pre20150118-r1.ebuild: + Introduce USE=libav to control the preferred implementation. Add subslot op to + force rebuilds on ABI change. *mediatomb-0.12.2_pre20150118 (18 Jan 2015) diff --git a/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild b/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild new file mode 100644 index 000000000000..0969e4873730 --- /dev/null +++ b/net-misc/mediatomb/mediatomb-0.12.2_pre20150118-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=5 +inherit autotools eutils linux-info systemd user vcs-snapshot + +DESCRIPTION="MediaTomb is an open source UPnP MediaServer" +HOMEPAGE="http://www.mediatomb.cc/" +SRC_URI="https://github.com/v00d00/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +IUSE="curl debug +exif +ffmpeg flac id3tag +inotify +javascript lastfm + libav +magic +mp4 mysql +sqlite +taglib thumbnail +zlib" +REQUIRED_USE=" + || ( mysql sqlite ) + taglib? ( !id3tag ) + id3tag? ( !taglib ) + thumbnail? ( ffmpeg ) +" + +DEPEND="mysql? ( virtual/mysql ) + dev-libs/expat + id3tag? ( media-libs/id3lib ) + javascript? ( >=dev-lang/spidermonkey-1.8.5:0 ) + taglib? ( media-libs/taglib ) + sqlite? ( >=dev-db/sqlite-3 ) + lastfm? ( >=media-libs/lastfmlib-0.4 ) + exif? ( media-libs/libexif ) + mp4? ( >=media-libs/libmp4v2-1.9.1_p479:0 ) + ffmpeg? ( + libav? ( >=media-video/libav-10:0= ) + !libav? ( >=media-video/ffmpeg-2.2:0= ) + ) + flac? ( media-libs/flac ) + thumbnail? ( media-video/ffmpegthumbnailer[jpeg] ) + curl? ( net-misc/curl net-misc/youtube-dl ) + magic? ( sys-apps/file ) + sys-apps/util-linux + zlib? ( sys-libs/zlib ) + virtual/libiconv +" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~INOTIFY_USER" + +pkg_setup() { + use inotify && linux-info_pkg_setup + + enewgroup mediatomb + enewuser mediatomb -1 -1 /dev/null mediatomb +} + +src_prepare() { + # Support spidermonkey-187 #423991 #482392 + if has_version "~dev-lang/spidermonkey-1.8.7" ; then + epatch "${FILESDIR}"/${PN}-0.12.1-mozjs187.patch + fi + + epatch_user + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable curl) \ + $(use_enable curl youtube) \ + $(use_enable debug tombdebug) \ + $(use_enable exif libexif) \ + $(use_enable ffmpeg) \ + $(use_enable flac) \ + $(use_enable id3tag id3lib) \ + $(use_enable inotify) \ + $(use_enable javascript libjs) \ + $(use_enable lastfm lastfm) \ + $(use_enable magic libmagic) \ + $(use_enable mp4 libmp4v2) \ + $(use_enable mysql) \ + $(use_enable sqlite sqlite3) \ + $(use_enable taglib) \ + $(use_enable thumbnail ffmpegthumbnailer) \ + --enable-external-transcoding \ + --enable-protocolinfo-extension +} + +src_install() { + default + + systemd_dounit "${S}"/scripts/systemd/"${PN}".service + use mysql && systemd_dounit "${S}"/scripts/systemd/"${PN}"-mysql.service + + newinitd "${FILESDIR}"/${PN}-0.12.1.initd ${PN} + use mysql || sed -i -e "/use mysql/d" "${ED}"/etc/init.d/${PN} + newconfd "${FILESDIR}"/${PN}-0.12.0.confd ${PN} + + insinto /etc/mediatomb + newins "${FILESDIR}/${PN}-0.12.0.config" config.xml + fperms 0600 /etc/mediatomb/config.xml + fowners mediatomb:mediatomb /etc/mediatomb/config.xml + + keepdir /var/lib/mediatomb + fowners mediatomb:mediatomb /var/lib/mediatomb +} + +pkg_postinst() { + if use mysql ; then + elog "MediaTomb has been built with MySQL support and needs" + elog "to be configured before being started." + elog "For more information, please consult the MediaTomb" + elog "documentation: http://mediatomb.cc/pages/documentation" + elog + fi + + elog "To configure MediaTomb edit:" + elog "/etc/mediatomb/config.xml" + elog + elog "The MediaTomb web interface can be reached at (after the service is started):" + elog "http://localhost:49152/" +} |