# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils cmake-utils subversion DESCRIPTION="OpenCOLLADA is a stream based reader and writer library for COLLADA files" HOMEPAGE="http://www.opencollada.org/" LICENSE="MIT" ESVN_REPO_URI="http://opencollada.googlecode.com/svn/trunk" ESVN_PROJECT="opencollada-trunk" ESVN_PATCHES="${FILESDIR}/opencollada-comment-assert.patch" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" #There is somefunctionality to use expat instead of libxml2. #However the top CMakeLists.txt says it doesn't work. So I didn't #include the functionality or dependency. DEPEND="dev-libs/libpcre dev-libs/libxml2" RDEPEND="${DEPEND}" src_configure() { local mycmakeargs=" -DUSE_SHARED=ON" cmake-utils_src_configure } src_install() { #OpenCOLLADA doesn't come with an automated install. #I followed what I understand to be the gentoo install paths. #That means most packages that use it will need a custom config #for these directories. If someone knows a better way by all means fix it. insinto /usr/include/opencollada/GeneratedSaxParser/include doins -r GeneratedSaxParser/include/* insinto /usr/include/opencollada/COLLADABaseUtils/include doins -r COLLADABaseUtils/include/* insinto /usr/include/opencollada/COLLADAFramework/include doins -r COLLADAFramework/include/* insinto /usr/include/opencollada/COLLADASaxFrameworkLoader/include doins -r COLLADASaxFrameworkLoader/include/* insinto /usr/include/opencollada/COLLADAStreamWriter/include doins -r COLLADAStreamWriter/include/* insinto /usr/lib/opencollada doins lib/* #env.d file for ld search path dodir /etc/env.d echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/opencollada" > "${ED}"/etc/env.d/45opencollada || die "env.d failed" }