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

Collapse All | Expand All

(-)a/opencollada-0_p864-r1.ebuild (-18 / +19 lines)
Lines 1-36 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
# $Header: /var/cvsroot/gentoo-x86/media-libs/opencollada/opencollada-0_p864-r1.ebuild,v 1.4 2012/12/01 18:32:28 blueness Exp $
3
# $Header: $
4
4
5
EAPI="3"
5
EAPI="5"
6
6
7
inherit eutils multilib cmake-utils
7
inherit eutils multilib cmake-utils vcs-snapshot
8
8
9
DESCRIPTION="Stream based read/write library for COLLADA files"
9
DESCRIPTION="Stream based read/write library for COLLADA files"
10
HOMEPAGE="http://www.opencollada.org/"
10
HOMEPAGE="http://www.opencollada.org/"
11
SRC_URI="http://www.hartwork.org/public/${P}.tar.xz"
11
COMMIT="ceb409cabdccda3000aa2e5c065850b8fde60b0f"
12
SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/tarball/${COMMIT} -> ${P}.tar.gz"
12
13
13
LICENSE="MIT"
14
LICENSE="MIT"
14
SLOT="0"
15
SLOT="0"
15
KEYWORDS="~amd64 ppc64 ~x86"
16
KEYWORDS="~amd64 ~ppc64 ~x86"
16
IUSE="expat"
17
IUSE="expat"
17
18
18
RDEPEND="dev-libs/libpcre
19
RDEPEND="dev-libs/libpcre
19
	expat? ( dev-libs/expat )
20
	dev-libs/zziplib
20
	!expat? ( dev-libs/libxml2 )
21
	media-libs/lib3ds
21
	media-libs/lib3ds
22
	sys-libs/zlib
22
	sys-libs/zlib
23
	dev-libs/zziplib"
23
	>=sys-devel/gcc-4.7
24
	expat? ( dev-libs/expat )
25
	!expat? ( dev-libs/libxml2 )"
24
DEPEND="${RDEPEND}
26
DEPEND="${RDEPEND}
25
	sys-apps/findutils
27
	sys-apps/findutils
26
	sys-apps/sed"
28
	sys-apps/sed"
27
29
28
CMAKE_BUILD_DIR="${S}"/build
30
BUILD_DIR="${S}"/build
29
31
30
src_prepare() {
32
src_prepare() {
31
	# Remove some bundled dependencies
33
	# Remove some bundled dependencies
32
	edos2unix CMakeLists.txt || die
34
	edos2unix CMakeLists.txt || die
33
	epatch "${FILESDIR}"/${P}-expat.patch
35
	epatch "${FILESDIR}"/${PN}-0_p864-expat.patch
34
	rm -R Externals/{expat,lib3ds,LibXML,pcre,zlib,zziplib} || die
36
	rm -R Externals/{expat,lib3ds,LibXML,pcre,zlib,zziplib} || die
35
	ewarn "$(echo "Remaining bundled dependencies:";
37
	ewarn "$(echo "Remaining bundled dependencies:";
36
		find Externals -mindepth 1 -maxdepth 1 -type d | sed 's|^|- |')"
38
		find Externals -mindepth 1 -maxdepth 1 -type d | sed 's|^|- |')"
Lines 38-46 Link Here
38
	# Remove unused build systems
40
	# Remove unused build systems
39
	rm Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die
41
	rm Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die
40
	find "${S}" -name SConscript -delete || die
42
	find "${S}" -name SConscript -delete || die
41
42
	epatch "${FILESDIR}"/${P}-gcc-4.7.patch
43
	epatch "${FILESDIR}"/${P}-parallel.patch  # still not fully done
44
}
43
}
45
44
46
src_configure() {
45
src_configure() {
Lines 54-63 Link Here
54
	cmake-utils_src_configure
53
	cmake-utils_src_configure
55
}
54
}
56
55
57
src_compile() {
58
	MAKEOPTS="${MAKEOPTS} -j1" cmake-utils_src_compile  # TODO
59
}
60
61
src_install() {
56
src_install() {
62
	cmake-utils_src_install
57
	cmake-utils_src_install
63
	if [[ $(get_libdir) != 'lib' ]]; then
58
	if [[ $(get_libdir) != 'lib' ]]; then
Lines 69-72 Link Here
69
			> "${D}"/etc/env.d/99opencollada || die
64
			> "${D}"/etc/env.d/99opencollada || die
70
65
71
	dobin build/bin/OpenCOLLADAValidator || die
66
	dobin build/bin/OpenCOLLADAValidator || die
67
68
	local l
69
	cd "${D}"/usr/$(get_libdir)/opencollada || die
70
	for l in lib{Open,Gen}*.so; do
71
		dosym opencollada/${l} /usr/$(get_libdir)/${l}
72
	done
72
}
73
}

Return to bug 486018