Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 355331
Collapse All | Expand All

(-)/usr/portage/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild (-13 / +4 lines)
Lines 1-93 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 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
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $
4
4
5
EAPI=4
5
EAPI=4
6
6
7
inherit autotools java-pkg-opt-2 flag-o-matic
7
inherit autotools java-pkg-opt-2 flag-o-matic
8
8
9
DESCRIPTION="Blu-ray playback libraries"
9
DESCRIPTION="Blu-ray playback libraries"
10
HOMEPAGE="http://www.videolan.org/developers/libbluray.html"
10
HOMEPAGE="http://www.videolan.org/developers/libbluray.html"
11
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.bz2"
11
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.bz2"
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
IUSE="aacs java static-libs utils xine"
16
IUSE="aacs java static-libs utils xine"
17
17
18
COMMON_DEPEND="
18
COMMON_DEPEND="
19
	dev-libs/libxml2
19
	dev-libs/libxml2
20
	xine? ( media-libs/xine-lib )
21
"
20
"
22
RDEPEND="
21
RDEPEND="
23
	${COMMON_DEPEND}
22
	${COMMON_DEPEND}
24
	aacs? ( media-video/aacskeys )
23
	aacs? ( media-video/aacskeys )
25
	java? ( >=virtual/jre-1.6 )
24
	java? ( >=virtual/jre-1.6 )
26
"
25
"
27
DEPEND="
26
DEPEND="
28
	${COMMON_DEPEND}
27
	${COMMON_DEPEND}
29
	java? (
28
	java? (
30
		>=virtual/jdk-1.6
29
		>=virtual/jdk-1.6
31
		dev-java/ant-core
30
		dev-java/ant-core
32
	)
31
	)
33
	dev-util/pkgconfig
32
	dev-util/pkgconfig
34
"
33
"
34
PDEPEND="
35
	xine? ( media-libs/libbluray-xine )
36
"
35
37
36
DOCS="doc/README README.txt TODO.txt"
38
DOCS=( doc/README README.txt TODO.txt )
37
39
38
src_prepare() {
40
src_prepare() {
39
	use java && export JDK_HOME="$(java-config -g JAVA_HOME)"
41
	use java && export JDK_HOME="$(java-config -g JAVA_HOME)"
40
	eautoreconf
42
	eautoreconf
41
43
42
	java-pkg-opt-2_src_prepare
44
	java-pkg-opt-2_src_prepare
43
}
45
}
44
46
45
src_configure() {
47
src_configure() {
46
	local myconf=""
48
	local myconf=""
47
	if use java; then
49
	if use java; then
48
		export JAVACFLAGS="$(java-pkg_javac-args)"
50
		export JAVACFLAGS="$(java-pkg_javac-args)"
49
		append-cflags "$(java-pkg_get-jni-cflags)"
51
		append-cflags "$(java-pkg_get-jni-cflags)"
50
		myconf="--with-jdk=${JDK_HOME}"
52
		myconf="--with-jdk=${JDK_HOME}"
51
	fi
53
	fi
52
54
53
	econf \
55
	econf \
54
		$(use_enable java bdjava) \
56
		$(use_enable java bdjava) \
55
		$(use_enable static-libs static) \
57
		$(use_enable static-libs static) \
56
		$(use_enable utils static) \
58
		$(use_enable utils static) \
57
		$(use_enable utils examples) \
59
		$(use_enable utils examples) \
58
		$myconf
60
		$myconf
59
}
61
}
60
62
61
src_compile() {
63
src_compile() {
62
	emake
64
	emake
63
64
	if use xine; then
65
		cd player_wrappers/xine
66
		emake
67
	fi
68
}
65
}
69
66
70
src_install() {
67
src_install() {
71
	default_src_install
68
	default_src_install
72
69
73
	if use utils; then
70
	if use utils; then
74
		cd src/examples/
71
		cd src/examples/
75
		dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump
72
		dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump
76
		cd .libs/
73
		cd .libs/
77
		dobin bd_info bdsplice hdmv_test libbluray_test list_titles
74
		dobin bd_info bdsplice hdmv_test libbluray_test list_titles
78
		if use java; then
75
		if use java; then
79
			dobin bdj_test
76
			dobin bdj_test
80
		fi
77
		fi
81
	fi
78
	fi
82
79
83
	if use java; then
80
	if use java; then
84
		java-pkg_dojar "${S}/src/.libs/${PN}.jar"
81
		java-pkg_dojar "${S}/src/.libs/${PN}.jar"
85
		doenvd "${FILESDIR}"/90${PN}
82
		doenvd "${FILESDIR}"/90${PN}
86
	fi
83
	fi
87
88
	if use xine; then
89
		cd "${S}"/player_wrappers/xine
90
		emake DESTDIR="${D}" install
91
		newdoc HOWTO README.xine
92
	fi
93
}
84
}
(-)/usr/portage/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild (-69 / +10 lines)
Lines 1-93 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 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
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $
4
4
5
EAPI=4
5
EAPI=4
6
6
7
inherit autotools java-pkg-opt-2 flag-o-matic
7
inherit base
8
8
9
DESCRIPTION="Blu-ray playback libraries"
9
MY_P="libbluray-${PV}"
10
DESCRIPTION="Xine plugin for blu-ray playback libraries"
10
HOMEPAGE="http://www.videolan.org/developers/libbluray.html"
11
HOMEPAGE="http://www.videolan.org/developers/libbluray.html"
11
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.bz2"
12
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${MY_P}.tar.bz2"
12
13
13
LICENSE="GPL-2"
14
LICENSE="GPL-2"
14
SLOT="0"
15
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
16
KEYWORDS="~amd64 ~x86"
16
IUSE="aacs java static-libs utils xine"
17
IUSE=""
17
18
18
COMMON_DEPEND="
19
COMMON_DEPEND="
19
	dev-libs/libxml2
20
	~media-libs/libbluray-${PV}
20
	xine? ( media-libs/xine-lib )
21
	>=media-libs/libbluray-0.0.1_pre20110210-r1
22
	media-libs/xine-lib
21
"
23
"
22
RDEPEND="
24
RDEPEND="
23
	${COMMON_DEPEND}
25
	${COMMON_DEPEND}
24
	aacs? ( media-video/aacskeys )
25
	java? ( >=virtual/jre-1.6 )
26
"
26
"
27
DEPEND="
27
DEPEND="
28
	${COMMON_DEPEND}
28
	${COMMON_DEPEND}
29
	java? (
30
		>=virtual/jdk-1.6
31
		dev-java/ant-core
32
	)
33
	dev-util/pkgconfig
29
	dev-util/pkgconfig
34
"
30
"
35
31
36
DOCS="doc/README README.txt TODO.txt"
32
DOCS=( HOWTO )
37
33
38
src_prepare() {
34
S="${WORKDIR}/${MY_P}/player_wrappers/xine"
39
	use java && export JDK_HOME="$(java-config -g JAVA_HOME)"
40
	eautoreconf
41
42
	java-pkg-opt-2_src_prepare
43
}
44
45
src_configure() {
46
	local myconf=""
47
	if use java; then
48
		export JAVACFLAGS="$(java-pkg_javac-args)"
49
		append-cflags "$(java-pkg_get-jni-cflags)"
50
		myconf="--with-jdk=${JDK_HOME}"
51
	fi
52
53
	econf \
54
		$(use_enable java bdjava) \
55
		$(use_enable static-libs static) \
56
		$(use_enable utils static) \
57
		$(use_enable utils examples) \
58
		$myconf
59
}
60
61
src_compile() {
62
	emake
63
64
	if use xine; then
65
		cd player_wrappers/xine
66
		emake
67
	fi
68
}
69
70
src_install() {
71
	default_src_install
72
73
	if use utils; then
74
		cd src/examples/
75
		dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump
76
		cd .libs/
77
		dobin bd_info bdsplice hdmv_test libbluray_test list_titles
78
		if use java; then
79
			dobin bdj_test
80
		fi
81
	fi
82
83
	if use java; then
84
		java-pkg_dojar "${S}/src/.libs/${PN}.jar"
85
		doenvd "${FILESDIR}"/90${PN}
86
	fi
87
88
	if use xine; then
89
		cd "${S}"/player_wrappers/xine
90
		emake DESTDIR="${D}" install
91
		newdoc HOWTO README.xine
92
	fi
93
}

Return to bug 355331