diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/coin |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/coin')
-rw-r--r-- | media-libs/coin/Manifest | 11 | ||||
-rw-r--r-- | media-libs/coin/coin-3.1.3-r2.ebuild | 100 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.0-javascript.patch | 38 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.3-freetype251.patch | 28 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.3-gcc-4.7.patch | 10 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.3-gcc-7.patch | 21 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.3-memhandler-initialization.patch | 23 | ||||
-rw-r--r-- | media-libs/coin/files/coin-3.1.3-pkgconfig-partial.patch | 13 | ||||
-rw-r--r-- | media-libs/coin/metadata.xml | 13 |
9 files changed, 257 insertions, 0 deletions
diff --git a/media-libs/coin/Manifest b/media-libs/coin/Manifest new file mode 100644 index 000000000000..75959a7fbc30 --- /dev/null +++ b/media-libs/coin/Manifest @@ -0,0 +1,11 @@ +AUX coin-3.1.0-javascript.patch 1259 SHA256 179489dfd99872150cc229d4f9d1bd40a03c67df5daad20741ff8b3a1874a883 SHA512 4b7142dae7f463616b695058b6deeac9a6d116a4647430fb6b234b30915ed5fea5d657ee49a8af553c5a946d8a04c93a5cbf98cb92fa10080c1b72ff8ac8b895 WHIRLPOOL 3d9affd7da39b76e8b9f5eba446924ce52f44f67291bd7af4568b0a102381466e88f7d3303d43b6b840957b70e0261c2afe3371bc9ce303cfdc75241231bbc60 +AUX coin-3.1.3-freetype251.patch 767 SHA256 6e490a62ff4a5145f7fb1f1cccf16cc9cdb0f243b00dcb23616d174dfcc5f5fd SHA512 f8ea66a6a21c3b20b221b4b7830feb411295e5207d0f5419183c85bfd8ae52b923f2b202f070482f1c61d4acb86b1f74d4a1ee77b09f6b86d95602db4e2c2406 WHIRLPOOL 3d338d3049d11c905a92f6bd14d2b8f64980190ba2fc49f5f0a1af4d05deeed4865ca456aebab88fe44b550d0bb670b9d21c31956b9220ccd190e7439cace152 +AUX coin-3.1.3-gcc-4.7.patch 347 SHA256 40709f40682d910e5044a11e8dba28ade2689e1b455fea0fc368722d0af3cd1c SHA512 d6f93526203a5c2f787cb03ea34214921daf49e324f867745d6bdc1c24c78359c305396d86cdbf8590b7f1610ef558390b6aba6c488052435896f089ea71d590 WHIRLPOOL ab721e76cb7ba1b0c51db3be9ef6b2b3a5161c394f48716eccaa8d9cbe431465d416e9790e994da835dbcde8e0d9d451f54460d997fc174df92ae027dc5312eb +AUX coin-3.1.3-gcc-7.patch 575 SHA256 b718ccb727c3aa582c399e68ad7269e4d49d221fd56d1c70d3da82279b82b111 SHA512 c4ea88ce111dd7dba1d8b1dd30cf325e91d5617540c5cbcdbe2be95e892641015071dc61830307188cfc16ecbdf58e89129b93621e0dd43ae05f7ad754df7b53 WHIRLPOOL 98c98837bcb316019117e4f936ae0238f42a56ed707fc55a232c39f87063cf84a537a2d497c74aa80524b224018c022200d298c3ffec90d1d3d4aa9a3a35ea84 +AUX coin-3.1.3-memhandler-initialization.patch 906 SHA256 0b660b50bd2ada5bb4404fda84eb72b71b60e747655dc18de2b911d1bb6f9b92 SHA512 f67c7179b1a023a938a55d82cfb1c18ffabc7586211e8e89a4fb4f8a4925f9c98240fffaa9c8dc46febd528e0d0b91607a417f290c0e0c06adbafb171ba1bf6b WHIRLPOOL 7e4a9a568240af0efad7c35b4ddb6a9a0fdb7669305b3dd081047e5ee357fde75a9fc12e8cd809f0434ae1eadc6053f855b9d8fc8bda5332f835d10b07bc145b +AUX coin-3.1.3-pkgconfig-partial.patch 431 SHA256 40d52356991d2aa35571d77373d7534208f04cde4cc828959d468b615935e4ff SHA512 6747ed14dca25017b6126ee2e542bec8cdf36cc634a8f0df059715f022a5f6c6f7126b9ea3c01e099a5564c634921fdc829c7561754df8c2dbf915659c7edb53 WHIRLPOOL c9915dd41237bd039c4c62d51ec1c711555b4b78eb590b302ac5c8dcbd37984d3f468d48fde3de540bf182c491a2ee31daea62bc919fe93cc5f1e77357f03d06 +DIST Coin-3.1.3.tar.gz 5981534 SHA256 583478c581317862aa03a19f14c527c3888478a06284b9a46a0155fa5886d417 SHA512 d6fd47ecc74e96fc4de46e3a683f038f1907b96db2bbe935fb49f2d59190bd18f3f439dc0e4cb435360e74e1d65994a32b21f670d5a76394692616625cb14394 WHIRLPOOL 2b02b2273acfe2f5d779d8adaca8f88c5119a3326e395cc039df6898d2c7c60888d7586de877a27fca3a4cb620662ffe9363d845836b2483c2f3108475ea696c +EBUILD coin-3.1.3-r2.ebuild 2528 SHA256 380a5371d74d7f4f419ecf16b30335d705b145a27d05e817f77d9a01f0746327 SHA512 2ac36a5e18578c8bf947d87152d877caf073f8adfacdadc8e5f5ff3dd76ecd6c31d03d851170fa256b7be37e10f193c7a2107870f76fc102fff489d525e29cbc WHIRLPOOL a629b21a2cd5055e52d42076744d69024c48def8ec5525c120f2ef2182452fb72f6b73b2e29fc27b26f8e3966959a32e57c06fcb79cf6f618d92fb1e0b15d31b +MISC ChangeLog 2602 SHA256 3810bd2ab84a311a04205b8046d125a49fab80b5b2126a12c7ca3fa184c18965 SHA512 89d51fce9da89e2118be1850674af67365c85c805fa92023addca78fceac5161adae1155bb22c0eac74ccf7e7c7d30cb463bcb28c36d901a0dcbd7f8770b6149 WHIRLPOOL 02b36c7a191068803d120798083bbd2939b735fee1611132e8c70cbaac267c9701f6e0c7848a40cafdc64bc10bf0169f107ba0f174c767fce90af5fc410bc807 +MISC ChangeLog-2015 7568 SHA256 c941506d64e24d1df0c20021888d218de9fbaa7a4e35f4787f35660a2c0dba21 SHA512 df81c3004a0e4f756367f7f616bc29b2f415d740515b756027c6b06ba6aaaa64eee1183e90cb328ed43dd66f38fc26a65d102005b44804018b24494afeb75677 WHIRLPOOL bc5b2939c39ffefb5e80493409f4796912c511f116145aceb158bf20f4181b185f68a9cd7812f4ed192406aba80d93a994414033a3d55773c3bbd1185dac58d4 +MISC metadata.xml 411 SHA256 7fda1e4d795d2916f8e800c007c0389450dcb40a5333e0dafacbb40a1904883c SHA512 f72e31a46ab6e7416016be928e63a9c2a8f7aa6d11f7cee64021113c84345b7f8975242cba579eb8294d9890aeadb246fba21f094fb7136b02a20d251964e847 WHIRLPOOL 75e27875106ede429c5b96983cd22d4b938b477351ea6f399a5c6c2b36bcb3b0121fedbd3d54621d2133c3d351fdf5b46d04546567889fca6b1cc78c1ab1f253 diff --git a/media-libs/coin/coin-3.1.3-r2.ebuild b/media-libs/coin/coin-3.1.3-r2.ebuild new file mode 100644 index 000000000000..6880fa4cc0e9 --- /dev/null +++ b/media-libs/coin/coin-3.1.3-r2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools-utils flag-o-matic + +MY_P=${P/c/C} + +DESCRIPTION="A high-level 3D graphics toolkit, fully compatible with SGI Open Inventor 2.1" +HOMEPAGE="https://bitbucket.org/Coin3D/coin/wiki/Home" +SRC_URI="https://bitbucket.org/Coin3D/coin/downloads/${MY_P}.tar.gz" + +LICENSE="|| ( GPL-2 PEL )" +KEYWORDS="amd64 ~arm ~hppa ~ia64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="bzip2 debug doc javascript openal simage static-libs threads zlib" + +# NOTE: expat is not really needed as --enable-system-expat is broken +RDEPEND=" + dev-libs/expat + media-libs/fontconfig + media-libs/freetype:2 + virtual/opengl + virtual/glu + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + bzip2? ( app-arch/bzip2 ) + javascript? ( dev-lang/spidermonkey:0 ) + openal? ( media-libs/openal ) + simage? ( media-libs/simage ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + x11-proto/xextproto + doc? ( app-doc/doxygen ) +" +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.0-javascript.patch + "${FILESDIR}"/${P}-pkgconfig-partial.patch + "${FILESDIR}"/${P}-gcc-4.7.patch + "${FILESDIR}"/${P}-freetype251.patch + "${FILESDIR}"/${P}-memhandler-initialization.patch + "${FILESDIR}"/${P}-gcc-7.patch +) + +DOCS=( + AUTHORS FAQ FAQ.legal NEWS README RELNOTES THANKS + docs/{ChangeLog.v${PV},HACKING,oiki-launch.txt} +) + +src_configure() { + append-cppflags -I"${EPREFIX}/usr/include/freetype2" + # Prefer link-time linking over dlopen + local myeconfargs=( + htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + --disable-dl-fontconfig + --disable-dl-freetype + --disable-dl-libbzip2 + --disable-dl-openal + --disable-dl-simage + --disable-dl-zlib + --disable-dyld + --disable-loadlibrary + --disable-man + --disable-java-wrapper + --enable-3ds-import + --enable-compact + --enable-dl-glu + --enable-dl-spidermonkey + --enable-system-expat + --includedir="${EPREFIX}/usr/include/${PN}" + --with-fontconfig + --with-freetype + $(use_with bzip2) + $(use_enable debug) + $(use_enable debug symbols) + $(use_enable doc html) + $(use_enable javascript javascript-api) + $(use_with javascript spidermonkey) + $(use_enable openal sound) + $(use_with openal) + $(use_with simage) + $(use_enable threads threadsafe) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + # Remove Coin from Libs.private + sed -e '/Libs.private/s/ -lCoin//' -i "${BUILD_DIR}"/Coin.pc || die + + autotools-utils_src_install +} diff --git a/media-libs/coin/files/coin-3.1.0-javascript.patch b/media-libs/coin/files/coin-3.1.0-javascript.patch new file mode 100644 index 000000000000..f45d9cd78cf6 --- /dev/null +++ b/media-libs/coin/files/coin-3.1.0-javascript.patch @@ -0,0 +1,38 @@ +Index: src/vrml97/JS_VRMLClasses.h +=================================================================== +--- src/vrml97/JS_VRMLClasses.h (revision 13505) ++++ src/vrml97/JS_VRMLClasses.h (revision 13506) +@@ -28,6 +28,7 @@ + #error this is a private header file + #endif /* ! COIN_INTERNAL */ + ++#if defined(HAVE_VRML97) && defined(COIN_HAVE_JAVASCRIPT) + /* ********************************************************************** */ + + class SoJavaScriptEngine; +@@ -37,5 +38,6 @@ + void JS_addVRMLclasses(SoJavaScriptEngine * engine); + + /* ********************************************************************** */ ++#endif // HAVE_VRML97 && COIN_HAVE_JAVASCRIPT + + #endif /* !COIN_JS_VRMLCLASSES_H */ +Index: src/vrml97/JS_VRMLClasses.cpp +=================================================================== +--- src/vrml97/JS_VRMLClasses.cpp (revision 13505) ++++ src/vrml97/JS_VRMLClasses.cpp (revision 13506) +@@ -2,7 +2,7 @@ + #include "config.h" + #endif // HAVE_CONFIG_H + +-#ifdef HAVE_VRML97 ++#if defined(HAVE_VRML97) && defined(COIN_HAVE_JAVASCRIPT) + + /**************************************************************************\ + * +@@ -2097,4 +2097,4 @@ + MFVec3dHandler::jsval2field); + } + +-#endif // HAVE_VRML97 ++#endif // HAVE_VRML97 && COIN_HAVE_JAVASCRIPT diff --git a/media-libs/coin/files/coin-3.1.3-freetype251.patch b/media-libs/coin/files/coin-3.1.3-freetype251.patch new file mode 100644 index 000000000000..44e8eefb1f63 --- /dev/null +++ b/media-libs/coin/files/coin-3.1.3-freetype251.patch @@ -0,0 +1,28 @@ +--- Coin-3.1.3/src/glue/freetype.cpp ++++ Coin-3.1.3/src/glue/freetype.cpp +@@ -52,9 +52,9 @@ + #ifdef HAVE_FREETYPE /* In case we're _not_ doing runtime linking. */ + #define FREETYPEGLUE_ASSUME_FREETYPE 1 + #include <ft2build.h> +-#include <freetype/freetype.h> +-#include <freetype/ftglyph.h> +-#include <freetype/ftoutln.h> ++#include FT_FREETYPE_H ++#include FT_GLYPH_H ++#include FT_OUTLINE_H + #endif /* FREETYPEGLUE_ASSUME_FREETYPE */ + + #include <Inventor/C/basic.h> +--- Coin-3.1.3/src/glue/freetype.h ++++ Coin-3.1.3/src/glue/freetype.h +@@ -87,8 +87,8 @@ + + #ifdef HAVE_FREETYPE + #include <ft2build.h> +-#include <freetype/freetype.h> +-#include <freetype/ftglyph.h> ++#include FT_FREETYPE_H ++#include FT_GLYPH_H + #else /* HAVE_FREETYPE */ + + #include <Inventor/C/basic.h> diff --git a/media-libs/coin/files/coin-3.1.3-gcc-4.7.patch b/media-libs/coin/files/coin-3.1.3-gcc-4.7.patch new file mode 100644 index 000000000000..fd2430903802 --- /dev/null +++ b/media-libs/coin/files/coin-3.1.3-gcc-4.7.patch @@ -0,0 +1,10 @@ +--- coin3-3.1.3.orig/include/Inventor/SbBasic.h ++++ coin3-3.1.3/include/Inventor/SbBasic.h +@@ -24,6 +24,7 @@ + * + \**************************************************************************/ + ++#include <Inventor/C/errors/debugerror.h> + #include <Inventor/C/basic.h> + + /* ********************************************************************** */ diff --git a/media-libs/coin/files/coin-3.1.3-gcc-7.patch b/media-libs/coin/files/coin-3.1.3-gcc-7.patch new file mode 100644 index 000000000000..c1f1f560d851 --- /dev/null +++ b/media-libs/coin/files/coin-3.1.3-gcc-7.patch @@ -0,0 +1,21 @@ +diff -urN Coin-3.1.3.orig/src/3ds/SoStream.cpp Coin-3.1.3/src/3ds/SoStream.cpp +--- Coin-3.1.3.orig/src/3ds/SoStream.cpp 2010-03-02 16:20:09.000000000 +0300 ++++ Coin-3.1.3/src/3ds/SoStream.cpp 2017-07-23 15:04:43.808204691 +0300 +@@ -176,7 +176,7 @@ + if (!gotNum) { setBadBit(); return FALSE; } \ + \ + char *ce; \ +- s = '\0'; \ ++ s = NULL; \ + _convertType_ tempVal = _convertFunc_(buf, &ce, 0); \ + \ + if (ce != s) \ +@@ -273,7 +273,7 @@ + gotAll: \ + \ + char *ce; \ +- s = '\0'; \ ++ s = NULL; \ + double tempVal = _convertFunc_(buf, &ce); \ + \ + if (ce != s) \ diff --git a/media-libs/coin/files/coin-3.1.3-memhandler-initialization.patch b/media-libs/coin/files/coin-3.1.3-memhandler-initialization.patch new file mode 100644 index 000000000000..892882b6a3db --- /dev/null +++ b/media-libs/coin/files/coin-3.1.3-memhandler-initialization.patch @@ -0,0 +1,23 @@ +Bug: https://bugs.gentoo.org/show_bug.cgi?id=619378 +Patch http://pkgs.fedoraproject.org/cgit/rpms/Coin3.git/tree/0012-memhandler-initialization.patch?id=ca89ec7227943bdec800ee51b920f578fab87b05 + +--- a/src/misc/SbHash.h ++++ b/src/misc/SbHash.h +@@ -89,6 +89,8 @@ + cc_memalloc_deallocate(entry->memhandler, ptr); + } + SbHashEntry(const Key & key, const Type & obj) : key(key), obj(obj) {} ++ SbHashEntry(const Key & key, const Type & obj, cc_memalloc *memhandler) ++ : key(key), obj(obj), memhandler(memhandler) {} + + Key key; + Type obj; +@@ -218,7 +220,7 @@ + /* Key not already in the hash table; insert a new + * entry as the first element in the bucket + */ +- entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj); ++ entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj, this->memhandler); + entry->next = this->buckets[i]; + this->buckets[i] = entry; + diff --git a/media-libs/coin/files/coin-3.1.3-pkgconfig-partial.patch b/media-libs/coin/files/coin-3.1.3-pkgconfig-partial.patch new file mode 100644 index 000000000000..3fd3bca726d4 --- /dev/null +++ b/media-libs/coin/files/coin-3.1.3-pkgconfig-partial.patch @@ -0,0 +1,13 @@ +diff -ru ../Coin-3.1.3/Coin.pc.in ./Coin.pc.in +--- Coin.pc.in 2010-03-02 14:20:09.000000000 +0100 ++++ Coin.pc.in 2010-06-28 19:27:59.634534460 +0200 +@@ -10,7 +10,8 @@ + Version: @COIN_VERSION@ + Requires: + Conflicts: +-Libs: -L${libdir} @COIN_EXTRA_LDFLAGS@ @COIN_EXTRA_LIBS@ ++Libs: -L${libdir} -lCoin ++Libs.private: -L${libdir} @COIN_EXTRA_LIBS@ + Cflags: -I${includedir} @COIN_EXTRA_CFLAGS@ @COIN_EXTRA_CPPFLAGS@ + + coin_host=@host@ diff --git a/media-libs/coin/metadata.xml b/media-libs/coin/metadata.xml new file mode 100644 index 000000000000..b9eaa9f26554 --- /dev/null +++ b/media-libs/coin/metadata.xml @@ -0,0 +1,13 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + </maintainer> + <use> + <flag name="simage">Texture loading via <pkg>media-libs/simage</pkg> library</flag> + </use> + <upstream> + <remote-id type="bitbucket">Coin3D/coin</remote-id> + </upstream> +</pkgmetadata> |