diff options
Diffstat (limited to 'media-plugins/mythplugins/mythplugins-0.27.5_p20150627-r1.ebuild')
-rw-r--r-- | media-plugins/mythplugins/mythplugins-0.27.5_p20150627-r1.ebuild | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/media-plugins/mythplugins/mythplugins-0.27.5_p20150627-r1.ebuild b/media-plugins/mythplugins/mythplugins-0.27.5_p20150627-r1.ebuild new file mode 100644 index 000000000000..9bd3de8e9cc7 --- /dev/null +++ b/media-plugins/mythplugins/mythplugins-0.27.5_p20150627-r1.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" +BACKPORTS="9498257571e8158926b60a0eefc74568c4436823" +MY_P=${P%_p*} + +inherit eutils python-single-r1 + +DESCRIPTION="Official MythTV plugins" +HOMEPAGE="http://www.mythtv.org" +SRC_URI="https://github.com/MythTV/mythtv/archive/v0.27.5.tar.gz -> mythtv-0.27.5.tar.gz + ${BACKPORTS:+https://dev.gentoo.org/~rich0/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +MYTHPLUGINS="mytharchive mythbrowser mythgallery mythgame \ +mythmusic mythnetvision mythnews mythweather mythzoneminder" + +IUSE="${MYTHPLUGINS} alsa cdda cdr exif fftw hls ieee1394 libass raw theora vorbis xml xvid" + +DEPEND="!media-plugins/mytharchive + !media-plugins/mythbrowser + !media-plugins/mythgallery + !media-plugins/mythgame + !media-plugins/mythmovies + !media-plugins/mythmusic + !media-plugins/mythnetvision + !media-plugins/mythnews + !media-plugins/mythweather + =media-tv/mythtv-${PV}*:=[alsa=,hls=,ieee1394=,libass=,python,theora=,vorbis=,xml=,xvid=] + dev-libs/glib:= + xml? ( >=dev-libs/libxml2-2.6.0:= ) + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + dev-qt/qtsql:4 + dev-libs/openssl:= + alsa? ( >=media-libs/alsa-lib-1.0.24:= ) + hls? ( + media-libs/faac:= + media-libs/libvpx:= + >=media-libs/x264-0.0.20111220:= + >=media-sound/lame-3.93.1 + ) + media-libs/freetype:= + libass? ( >=media-libs/libass-0.9.11:= ) + media-libs/libpng:= + theora? ( + media-libs/libtheora:= + media-libs/libogg:= + ) + xvid? ( >=media-libs/xvid-1.1.0:= ) + virtual/libudev:= + ieee1394? ( + >=sys-libs/libraw1394-1.2.0:= + >=sys-libs/libavc1394-0.5.3:= + >=media-libs/libiec61883-1.0.0:= + ) + x11-libs/libX11:= + sys-libs/zlib:= + x11-libs/libXext:= + x11-libs/libXinerama:= + x11-libs/libXrandr:= + x11-libs/libXv:= + x11-libs/libXxf86vm:= + fftw? ( sci-libs/fftw:= ) + sys-apps/util-linux:= + mythzoneminder? ( virtual/mysql ) + mytharchive? ( + app-cdr/dvd+rw-tools + virtual/python-imaging:= + media-video/dvdauthor + media-video/mjpegtools[png] + media-video/transcode + virtual/cdrtools + ) + mythgallery? ( + media-libs/tiff:= + virtual/opengl + exif? ( >media-libs/libexif-0.6.9:= ) + raw? ( media-gfx/dcraw ) + ) + mythmusic? ( + >=media-libs/flac-1.1.2:= + >=media-libs/taglib-1.6:= + >=media-libs/libvorbis-1.0:= + media-libs/libogg:= + >=media-sound/lame-3.93.1 + virtual/opengl + cdda? ( + dev-libs/libcdio:= + cdr? ( virtual/cdrtools ) + ) + + ) + mythnetvision? ( + ${PYTHON_DEPS} + dev-python/lxml:= + dev-python/mysql-python:= + dev-python/oauth:= + dev-python/pycurl:= + ) + mythweather? ( + dev-perl/DateManip + dev-perl/DateTime-Format-ISO8601 + >=dev-perl/DateTime-1 + dev-perl/ImageSize + dev-perl/JSON + dev-perl/SOAP-Lite + dev-perl/XML-Simple + dev-perl/XML-Parser + dev-perl/XML-SAX + dev-perl/XML-XPath + ) + mythbrowser? ( + dev-qt/qtwebkit:4 + )" +RDEPEND="${DEPEND}" + +REQUIRED_USE=" + cdda? ( mythmusic ) + cdr? ( mythmusic cdda ) + exif? ( mythgallery ) + fftw? ( mythmusic ) + mythmusic? ( vorbis ) + mythnews? ( mythbrowser ) + raw? ( mythgallery ) + mythnetvision? ( ${PYTHON_REQUIRED_USE} )" + +S="${WORKDIR}/mythtv-0.27.5/mythplugins" + +pkg_setup() { + use mythnetvision? && python-single-r1_pkg_setup +} + +src_prepare() { + [[ -n ${BACKPORTS} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${WORKDIR}/${MY_P}/patches" \ + epatch + + epatch_user +} + +src_configure() { + ./configure \ + --prefix=/usr \ + --python=${EPYTHON} \ + --enable-opengl \ + $(use_enable mythzoneminder) \ + $(use_enable mytharchive) \ + $(use_enable mythbrowser) \ + $(use_enable mythgallery) \ + $(use_enable mythgame) \ + $(use_enable mythmusic) \ + $(use_enable mythnetvision) \ + $(use_enable mythnews) \ + $(use_enable mythweather) \ + $(use_enable cdda cdio) \ + $(use_enable exif) \ + $(use_enable exif new-exif) \ + $(use_enable raw dcraw) \ + || die "configure failed" +} + +src_install() { + emake INSTALL_ROOT="${D}" install || die "make install failed" +} |