You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
130 lines
2.9 KiB
130 lines
2.9 KiB
12 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
11 years ago
|
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythplugins/mythplugins-0.26.0_p20130729.ebuild,v 1.1 2013/08/03 11:34:06 rich0 Exp $
|
||
12 years ago
|
|
||
11 years ago
|
EAPI=5
|
||
12 years ago
|
|
||
|
PYTHON_DEPEND="2:2.6"
|
||
11 years ago
|
BACKPORTS="7367cbc46553f565006ef0dc9c1e719276f2a969"
|
||
12 years ago
|
MY_P=${P%_p*}
|
||
|
|
||
|
inherit eutils python
|
||
|
|
||
|
DESCRIPTION="Official MythTV plugins"
|
||
|
HOMEPAGE="http://www.mythtv.org"
|
||
|
SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/${MY_P}.tar.bz2
|
||
|
${BACKPORTS:+http://dev.gentoo.org/~rich0/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
MYTHPLUGINS="mytharchive mythbrowser mythgallery mythgame \
|
||
11 years ago
|
mythmusic mythnetvision mythnews mythweather mythzoneminder"
|
||
12 years ago
|
|
||
|
IUSE="${MYTHPLUGINS} cdda cdr exif fftw raw"
|
||
|
|
||
|
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
|
||
11 years ago
|
=media-tv/mythtv-${PV}*:=[python]
|
||
12 years ago
|
mytharchive? (
|
||
|
app-cdr/dvd+rw-tools
|
||
11 years ago
|
virtual/python-imaging:=
|
||
12 years ago
|
media-video/dvdauthor
|
||
|
media-video/mjpegtools[png]
|
||
|
media-video/transcode
|
||
|
virtual/cdrtools
|
||
|
)
|
||
|
mythgallery? (
|
||
11 years ago
|
media-libs/tiff:=
|
||
12 years ago
|
virtual/opengl
|
||
11 years ago
|
exif? ( >media-libs/libexif-0.6.9:= )
|
||
12 years ago
|
raw? ( media-gfx/dcraw )
|
||
|
)
|
||
|
mythmusic? (
|
||
11 years ago
|
>=media-libs/flac-1.1.2:=
|
||
|
>=media-libs/libvorbis-1.0:=
|
||
|
>=media-libs/taglib-1.6:=
|
||
12 years ago
|
media-sound/lame
|
||
|
virtual/opengl
|
||
|
cdda? (
|
||
11 years ago
|
dev-libs/libcdio:=
|
||
12 years ago
|
cdr? ( virtual/cdrtools )
|
||
|
)
|
||
11 years ago
|
fftw? ( sci-libs/fftw:= )
|
||
12 years ago
|
)
|
||
|
mythnetvision? (
|
||
11 years ago
|
=dev-lang/python-2*:=[xml]
|
||
|
dev-python/lxml:=
|
||
|
dev-python/mysql-python:=
|
||
|
dev-python/oauth:=
|
||
|
dev-python/pycurl:=
|
||
12 years ago
|
)
|
||
|
mythweather? (
|
||
|
dev-perl/DateManip
|
||
|
dev-perl/DateTime-Format-ISO8601
|
||
|
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
|
||
|
)"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
REQUIRED_USE="
|
||
|
cdda? ( mythmusic )
|
||
|
cdr? ( mythmusic cdda )
|
||
|
exif? ( mythgallery )
|
||
|
fftw? ( mythmusic )
|
||
|
mythnews? ( mythbrowser )
|
||
|
raw? ( mythgallery )"
|
||
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
pkg_setup() {
|
||
|
python_set_active_version 2
|
||
|
python_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
[[ -n ${BACKPORTS} ]] && \
|
||
|
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||
|
epatch
|
||
|
|
||
|
epatch_user
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--python=python2 \
|
||
|
--enable-opengl \
|
||
11 years ago
|
$(use_enable mythzoneminder) \
|
||
12 years ago
|
$(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"
|
||
|
}
|