diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-01-16 18:11:33 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-01-16 18:11:33 +0000 |
commit | a77e1367454d9389d19b72ba753e5a3b82b95b11 (patch) | |
tree | 927fa06794db9f970fa70f37eed57ca25a45ae5f /media-libs/opencollada | |
parent | EAPI bump (diff) | |
download | gentoo-2-a77e1367454d9389d19b72ba753e5a3b82b95b11.tar.gz gentoo-2-a77e1367454d9389d19b72ba753e5a3b82b95b11.tar.bz2 gentoo-2-a77e1367454d9389d19b72ba753e5a3b82b95b11.zip |
media-libs/opencollada: 0_p864
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/opencollada')
-rw-r--r-- | media-libs/opencollada/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/opencollada/Manifest | 5 | ||||
-rw-r--r-- | media-libs/opencollada/files/opencollada-0_p864-expat.patch | 12 | ||||
-rw-r--r-- | media-libs/opencollada/metadata.xml | 8 | ||||
-rw-r--r-- | media-libs/opencollada/opencollada-0_p864.ebuild | 59 |
5 files changed, 94 insertions, 0 deletions
diff --git a/media-libs/opencollada/ChangeLog b/media-libs/opencollada/ChangeLog new file mode 100644 index 000000000000..e55e45ab5ffe --- /dev/null +++ b/media-libs/opencollada/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-libs/opencollada +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencollada/ChangeLog,v 1.1 2012/01/16 18:11:33 sping Exp $ + +*opencollada-0_p864 (16 Jan 2012) + + 16 Jan 2012; Sebastian Pipping <sping@gentoo.org> +opencollada-0_p864.ebuild, + +files/opencollada-0_p864-expat.patch, +metadata.xml: + New package required by media-gfx/blender (bug #390431) + diff --git a/media-libs/opencollada/Manifest b/media-libs/opencollada/Manifest new file mode 100644 index 000000000000..8ad614b2ef36 --- /dev/null +++ b/media-libs/opencollada/Manifest @@ -0,0 +1,5 @@ +AUX opencollada-0_p864-expat.patch 353 RMD160 73fc958e3af8cd4f5892bf78b48230aaf0584fd0 SHA1 a86bb3079c08699ad5b0dff14e9d8c2e76792a3d SHA256 e7d7f303921b09db1b92a0299ad464d6185ac1f470e028829443785ed98bf1a2 +DIST opencollada-0_p864.tar.xz 5255868 RMD160 8054b3513dcc1f5d6b40db38f8a581319d01b633 SHA1 bc1406e144273faaded4759f48234d5f45cb267b SHA256 e939fba12d7118378a6166c3799cb51b29e22dbdeda5204407a261fc06c10d05 +EBUILD opencollada-0_p864.ebuild 1546 RMD160 a514f5f7f23f5dfea73278e466b3dbec301ffefb SHA1 8d7a2a1a8904d3380beffc739e43f2c17cd2a4e2 SHA256 a8679ae95900587b13ff64c27be284d0bd6a92871624b7ed9716463853f9fa50 +MISC ChangeLog 353 RMD160 732bd27b30121dbb28ac88b2332cdcbcc5f98423 SHA1 42e40b107b59eb74775a3eabfd2d1be0ebfeb724 SHA256 82f57bf25b5e3624c64a22c9645e5d53347e78c32ac01011853fb9e56167c568 +MISC metadata.xml 235 RMD160 e964157be48c204555d79827e1bf79c9d9fb23a5 SHA1 767b5eb408113ae55d84adcb94d44a692285d175 SHA256 095e4ee6b3ae673e7ddf0d4e166a632d3384d6374c6dd86d8c401a8f5c43f7fe diff --git a/media-libs/opencollada/files/opencollada-0_p864-expat.patch b/media-libs/opencollada/files/opencollada-0_p864-expat.patch new file mode 100644 index 000000000000..9086acf79214 --- /dev/null +++ b/media-libs/opencollada/files/opencollada-0_p864-expat.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt 2012-01-15 23:14:49.478520648 +0100
++++ b/CMakeLists.txt 2012-01-15 23:15:06.947302261 +0100
+@@ -208,8 +208,7 @@
+
+ if (USE_EXPAT)
+ add_definitions(-DGENERATEDSAXPARSER_XMLPARSER_EXPAT)
+- message("FATAL: EXPAT support not implemented")
+- # TODO:: use externals
++ set(LIBEXPAT_LIBRARIES expat)
+ endif ()
+
+ #adding PCRE
diff --git a/media-libs/opencollada/metadata.xml b/media-libs/opencollada/metadata.xml new file mode 100644 index 000000000000..16bcc9f800a2 --- /dev/null +++ b/media-libs/opencollada/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> diff --git a/media-libs/opencollada/opencollada-0_p864.ebuild b/media-libs/opencollada/opencollada-0_p864.ebuild new file mode 100644 index 000000000000..a00e04b56df2 --- /dev/null +++ b/media-libs/opencollada/opencollada-0_p864.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencollada/opencollada-0_p864.ebuild,v 1.1 2012/01/16 18:11:33 sping Exp $ + +EAPI="3" + +inherit eutils multilib cmake-utils + +DESCRIPTION="Stream based read/write library for COLLADA files" +HOMEPAGE="http://www.opencollada.org/" +SRC_URI="http://www.hartwork.org/public/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="expat" + +RDEPEND="dev-libs/libpcre + expat? ( dev-libs/expat ) + !expat? ( dev-libs/libxml2 ) + media-libs/lib3ds + sys-libs/zlib + dev-libs/zziplib" +DEPEND="${RDEPEND} + sys-apps/findutils + sys-apps/sed" + +CMAKE_BUILD_DIR="${S}"/build + +src_prepare() { + # Remove some bundled dependencies + edos2unix CMakeLists.txt || die + epatch "${FILESDIR}"/${P}-expat.patch + rm -R Externals/{expat,lib3ds,LibXML,pcre,zlib,zziplib} || die + ewarn "$(echo "Remaining bundled dependencies:"; + find Externals -mindepth 1 -maxdepth 1 -type d | sed 's|^|- |')" + + # Remove unused build systems + rm Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die + find "${S}" -name SConscript -delete || die +} + +src_configure() { + local mycmakeargs=" -DUSE_SHARED=ON -DUSE_STATIC=OFF" + + # Master CMakeLists.txt says "EXPAT support not implemented" + # Something like "set(LIBEXPAT_LIBRARIES expat)" is missing to make it build + use expat \ + && mycmakeargs+=' -DUSE_EXPAT=ON -DUSE_LIBXML=OFF' \ + || mycmakeargs+=' -DUSE_EXPAT=OFF -DUSE_LIBXML=ON' + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + mv "${D}"/usr/{lib,$(get_libdir)} || die + + dobin build/bin/OpenCOLLADAValidator || die +} |