[proaudio] Updated xjadeo ebuild

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


I tried to install xjadeo from the overlay and it failed in many ways.
Here's an ebuild that installs the latest version (0.6.4) and is a bit
cleaned-up version of the ebuild from the overlay.
It's not 100% tidy, escpecially the qt3/qt4 USE-flags look crude and I
didn't test all combinations but jadeo starts after all :)
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit versionator flag-o-matic autotools
MY_P="${PN}-$(replace_version_separator "3" ".")"
DESCRIPTION="xjadeo is a simple video player that is synchronized to jack transport."
HOMEPAGE="http://xjadeo.sourceforge.net/";
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="xv sdl osd qt3 qt4 tools lash tiff"

RDEPEND=">=media-sound/jack-audio-connection-kit-0.100
	>=media-video/ffmpeg-0.4.9
	>=media-libs/alsa-lib-1.0.10
	>=media-libs/imlib2-1.3.0
	lash? ( >=media-sound/lash-0.4.0 )
	sdl? ( >=media-libs/libsdl-1.2.8 )"

DEPEND="${RDPEND}
	>=sys-libs/zlib-1.2.2
	qt3? ( >=x11-libs/qt-3 )
	qt4? ( || ( ( x11-libs/qt-qt3support )
		>=x11-libs/qt-4:4 ) )
	dev-util/pkgconfig"

S="${WORKDIR}/${MY_P}"

pkg_setup() {
	if use qt4 && ! has_version x11-libs/qt-qt3support && ! built_with_use =x11-libs/qt-4* qt3support; then
		eerror "You need to build qt4 with qt3support support to have it in ${PN}"
		die "Enabling qt3support for $PN requires qt4 to be built with qt3support support"
	fi
}

src_configure() {
	if use qt4 ;then
		export QTDIR=/usr
		export QLIBS=/usr/lib/qt4
		myconf="--enable-qtgui"
	fi

	econf $(use_enable xv) \
	$(use_enable sdl) \
	$(use_enable osd ft) \
	$(use_enable qt3 qtgui) \
	$(use_enable tools contrib) \
	$(use_enable lash) \
	$(use_enable tiff) \
	$myconf --enable-imlib2 --without-portmidisrc || die "econf failed"
}

src_install() {
	einstall || die "einstall failed"
	dodoc AUTHORS ChangeLog TODO README NEWS
	use tools && newdoc contrib/README README-tools
	insinto /usr/share/${PN}
	use tools && doins contrib/xjadeo-example.avi
}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/