Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 433127 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-video/lives/lives-1.4.6.ebuild (-40 / +75 lines)
Lines 1-78 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI=4
5
EAPI=5
6
6
inherit autotools eutils
7
inherit autotools eutils
7
8
8
MY_P=LiVES-${PV}
9
MY_P=LiVES-${PV}
9
10
10
DESCRIPTION="LiVES is a Video Editing System"
11
DESCRIPTION="LiVES is a Video Editing System"
11
HOMEPAGE="http://lives.sf.net"
12
HOMEPAGE="http://lives-video.com"
12
SRC_URI="http://www.xs4all.nl/~salsaman/lives/current/${MY_P}.tar.bz2"
13
SRC_URI="http://lives-video.com/releases/${MY_P}.tar.bz2"
13
14
14
LICENSE="GPL-2"
15
LICENSE="GPL-3"
15
SLOT="0"
16
SLOT="0"
16
KEYWORDS="~amd64 ~ppc ~x86"
17
KEYWORDS="~amd64 ~x86"
17
IUSE="libvisual matroska nls ogg theora" # static-libs
18
IUSE="dirac doc dv ffmpeg fftw frei0r gtk3 imagemagick jack ladspa lame libav libvisual matroska mjpeg mplayer nls oil ogg opencv opengl projectm pulseaudio theora x264 youtube"
18
19
19
RDEPEND="media-video/mplayer
20
LANGS="ar fr ca cs da ja nl_NL de_DE pt pt_BR hu es it pl tr ru zh_CN sk he en_GB fi et gl uz te ro uk oc hr ug"
20
	|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
21
for X in ${LANGS} ; do
21
	dev-lang/perl
22
	IUSE+=" linguas_${X}"
23
done
24
25
RDEPEND="
26
	!gtk3? ( >=x11-libs/gtk+-2.24:2 )
27
	gtk3? ( >=x11-libs/gtk+-3.0:3 )
28
	ffmpeg? (
29
		libav? ( media-video/libav:0=[encode,sdl,mp3,theora,vorbis] )
30
		!libav? ( media-video/ffmpeg:0=[encode,sdl,mp3,theora,vorbis] )
31
	)
22
	>=dev-libs/glib-2.14
32
	>=dev-libs/glib-2.14
23
	>=x11-libs/gtk+-2.16:2
33
	dev-lang/perl
24
	media-libs/libsdl
34
	dev-lang/python:*
35
	sys-libs/libavc1394
25
	media-libs/libv4l
36
	media-libs/libv4l
26
	virtual/ffmpeg
37
	media-libs/libpng:=
27
	virtual/jpeg
38
	virtual/jpeg:62
39
	media-libs/libsdl
28
	media-sound/sox
40
	media-sound/sox
29
	virtual/cdrtools
41
	virtual/cdrtools
30
	|| ( dev-lang/python:2.7 dev-lang/python:2.6 )
42
	dirac? ( media-video/dirac )
31
	media-plugins/frei0r-plugins
43
	dv? ( media-libs/libdv
32
	media-sound/jack-audio-connection-kit
44
		  media-video/dvgrab )
33
	>=media-video/mjpegtools-1.6.2
45
	fftw? ( sci-libs/fftw:= )
34
	sys-libs/libavc1394
46
	frei0r? ( media-plugins/frei0r-plugins )
47
	imagemagick? ( || ( media-gfx/imagemagick[jpeg,png] media-gfx/graphicsmagick[imagemagick,jpeg,png] ) )
48
	jack? ( media-sound/jack-audio-connection-kit )
49
	ladspa? ( media-libs/ladspa-sdk )
50
	lame? ( media-sound/lame )
35
	libvisual? ( media-libs/libvisual )
51
	libvisual? ( media-libs/libvisual )
36
	matroska? ( media-video/mkvtoolnix )
52
	matroska? ( media-video/mkvtoolnix )
53
	mjpeg? ( >=media-video/mjpegtools-1.6.2 )
54
	mplayer? ( media-video/mplayer[encode,jpeg,png] )
55
	oil? ( dev-libs/liboil )
37
	ogg? ( media-sound/ogmtools )
56
	ogg? ( media-sound/ogmtools )
38
	theora? ( media-libs/libtheora )"
57
	opencv? ( media-libs/opencv )
39
DEPEND="${DEPEND}
58
	opengl? ( virtual/opengl virtual/glu )
59
	projectm? ( media-libs/libprojectm )
60
	pulseaudio? ( media-sound/pulseaudio )
61
	theora? ( media-libs/libtheora )
62
	x264? ( media-libs/x264 )
63
	youtube? ( net-misc/youtube-dl )
64
	"
65
DEPEND="${RDEPEND}
40
	virtual/pkgconfig
66
	virtual/pkgconfig
41
	nls? ( sys-devel/gettext )"
67
	doc? ( app-doc/doxygen )
68
	nls? ( sys-devel/gettext )
69
	"
42
70
43
DOCS=( AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS README )
71
DOCS=( AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS README )
44
72
45
src_prepare() {
73
src_prepare() {
46
	esvn_clean
74
	# Don't try to detect installed by lives copies of weed #295293
75
	sed -i -e '/^PKG_CHECK_MODULES(WEED/s:true:false:' configure.ac || die
76
77
	# Since we disable static - fix sendOSC static lib problem
78
	sed -i -e '/^sendOSC_LDFLAGS/s:\.a:.la:' libOSC/sendOSC/Makefile.am || die
79
80
	# Since we disable static - fix OSC static lib problem
81
	sed -i -e '/^osc_LDADD=/s:\.a:.la:g' src/Makefile.am || die
47
82
48
	# Don't try to detect installed copies wrt #295293
83
	# Don't remove system weed
49
	sed -i -e '/^PKG_CHECK_MODULES(WEED/s:true:false:' configure.in || die
84
	sed -i -e '/install-exec-hook:/,+1{s/^/#/}' libweed/Makefile.am || die
50
	sed -i -e '/test/s:sendOSC:dIsAbLeAuToMaGiC:' libOSC/sendOSC/Makefile.am || die
51
52
	# Use python 2.x as per reference in plugins
53
	sed -i \
54
		-e '/#!.*env/s:python:python2:' \
55
		lives-plugins/plugins/encoders/multi_encoder* \
56
		lives-plugins/marcos-encoders/lives_*_encoder* || die
57
85
58
	AT_M4DIR="mk/autoconf" eautoreconf # for the seds
86
	AT_M4DIR="mk/autoconf" eautoreconf
59
}
87
}
60
88
61
src_configure() {
89
src_configure() {
62
	# $(use_enable static-libs static)
90
	use doc || myconf+=" --disable-doxygen"
91
	use ffmpeg || use libav || myconf+=" --disable-ffmpeg"
92
	use frei0r || myconf+=" --disable-frei0r"
93
	use gtk3 || myconf+=" --disable-gtk3"
94
	use jack || myconf+=" --disable-jack --disable-jack-transport"
95
	use ladspa || myconf+=" --disable-ladspa"
96
	use libvisual || myconf+=" --disable-libvisual"
97
	use mjpeg || myconf+=" --disable-mjpegtools"
98
	use nls || myconf+=" --disable-nls"
99
	use oil || myconf+=" --disable-liboil"
100
	use opengl || myconf+=" --disable-opengl"
101
	use projectm || myconf+=" --disable-projectM"
102
63
	econf \
103
	econf \
64
		--disable-static \
104
		--disable-static \
65
		$(use_enable libvisual) \
105
		${myconf}
66
		$(use_enable nls)
67
}
106
}
68
107
69
src_install() {
108
src_install() {
70
	default
109
	default
71
110
72
	rm -f "${ED}"usr/bin/lives #384727
73
	dosym lives-exe /usr/bin/lives
74
75
	find "${ED}"usr -name '*.la' -exec rm -f {} +
111
	find "${ED}"usr -name '*.la' -exec rm -f {} +
76
	# use static-libs ||
77
	rm -f "${ED}"usr/lib*/libweed-*.a
112
	rm -f "${ED}"usr/lib*/libweed-*.a
78
}
113
}

Return to bug 433127