diff options
Diffstat (limited to 'media-libs/coin')
-rw-r--r-- | media-libs/coin/Manifest | 5 | ||||
-rw-r--r-- | media-libs/coin/coin-4.0.3.ebuild | 110 | ||||
-rw-r--r-- | media-libs/coin/files/coin-4.0.3-find-qhelpgenerator.patch | 23 | ||||
-rw-r--r-- | media-libs/coin/metadata.xml | 1 |
4 files changed, 138 insertions, 1 deletions
diff --git a/media-libs/coin/Manifest b/media-libs/coin/Manifest index 0a908f594cbc..1e55825e3ae4 100644 --- a/media-libs/coin/Manifest +++ b/media-libs/coin/Manifest @@ -1,4 +1,7 @@ AUX coin-4.0.0-0007-Locate-slotted-qhelpgenerator.patch 581 BLAKE2B 97f7784d780e5d06a8c032a9d5707bd1d883dee59a0c04fe06205b98f2f3bf38d547e683eb9474da0771c3fe0a0964e611a4108c5d34b44679be27a52fdb5639 SHA512 73b95646c47f2ec07f20fb776b5b7df8e8df45a1f13c002e15cce56a8d35e374cc6a0515461aa265ae70b49cde7648554dc9aafb84f27afb6e78f368b67b1b7e +AUX coin-4.0.3-find-qhelpgenerator.patch 842 BLAKE2B 225b06881b36f7adfd3d43fbe8b36f35c24133f8e20d112b8fa534890cfb19d1c8cb9c75f22fd42cbcb108818b080d0fd3fed26deffe939f5bbb47101099d574 SHA512 39f3fadff5c25e0276959d405c0483709fa34e2badc13cecc932a73acdc6570daeeb4e7a36d3abee9fba6c245b7f2ae21971e9db8fe8c68a1bc804a5b6724dc9 DIST coin-4.0.2-src.tar.gz 7160869 BLAKE2B a434ea2a550557024c665e392aa189e991296b5f8c9cd2c0dc5bb71d41a948ed9d9b34eac69dc9a651f70abf8ec1f188cb8df6534d6e31b6e4e1a6ec4acaffcd SHA512 31fcb69627e466c89bb640c5b2351db4e51772408a4ce56cae7d6f550ddf19adf9b121252479297d5c2a208032194d8f4e7bf97686b0611df1ac45231e09baad +DIST coin-4.0.3-src.tar.gz 13099754 BLAKE2B c56f9e7b837bad76996a78ba3351c43b78b082c6250735e678ca9af79b3518d369e223a1625d74c8d007fff814f32e6bd6fe04c4dd5df9dd999f6afed767afeb SHA512 b661bf2124b0de1b46e76a6699b0975abb3aed4dc9019bf32531c535179dc84a90fe4e19def6f6cda7b175470636040d0e58812d532198cf207296d37c539915 EBUILD coin-4.0.2.ebuild 2569 BLAKE2B e4e7a1da2bc14756efed8f1e601ff4e1db004078ae569a11ee8b75f6eeb9f52b2e2cba8a3dacac492ef3f30619488f67e29b66433f78f340985a41fbe9a41872 SHA512 88a059ffa555b701b6b13c3d38c0620fd903e55e4166241b69438b8db56045977aa94821049de7052fa518bd8aa8ad121fbd02456988705d0ff46369674523b3 -MISC metadata.xml 456 BLAKE2B bc0dd1a54611c13dc18dc24cecb17034bf9dc1a2dec1f1ef8fb35c5ce08d5ad069ae19af9e4ed4ed4cea081c414da4db3ecde92eaef8d1095f7dd69ad17afabb SHA512 ac7dda1fbc082b46d13cff9ed35c9b129ab854b8ed3552f9b1dbd7a4be914a5871f219cd280fbd96e6ac4f0b184b74282b8e952818e8a3acef6b25e70f529bc6 +EBUILD coin-4.0.3.ebuild 2601 BLAKE2B 6450359e551f0acdb9576b921810306149b0ee1f9b00d5fc445d28e0eaa55da251d16003514dc5c13d3ace7c9164394bd8ab44a559b4321c2425bccaf595eff9 SHA512 6e90d89ca4876ac476cd98008f7bea23274ef0585f236e3f481b7e7aad3497390ad3fe4b6dee6c165a106ebc3a87419d59408478432861492defcbe281a33ff6 +MISC metadata.xml 524 BLAKE2B 50c53572571e199de0c8dae522d8f12b427ddbc62839e7f95cf4f3778fba3c8e192990d21d85f84f9a9920d491431e259c97148e8be1469d0dd499c500350485 SHA512 1cdeea35e143f6a750663501c43a83575426859ac798fe9e7825661c452d23a62bab7c739d1b6417072f514a372b6ca5f0afdd65358dbe819d0b6a3d6492bcb0 diff --git a/media-libs/coin/coin-4.0.3.ebuild b/media-libs/coin/coin-4.0.3.ebuild new file mode 100644 index 000000000000..75d11ab2481a --- /dev/null +++ b/media-libs/coin/coin-4.0.3.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="High-level 3D graphics toolkit, fully compatible with SGI Open Inventor 2.1" +HOMEPAGE="https://github.com/coin3d/coin/wiki" +SRC_URI="https://github.com/coin3d/coin/releases/download/v${PV}/${P}-src.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="|| ( GPL-2 PEL )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="debug doc +exceptions openal qch test threads" + +REQUIRED_USE="qch? ( doc )" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/bzip2 + dev-libs/expat + media-libs/fontconfig + media-libs/freetype:2 + media-libs/simage + sys-libs/zlib + virtual/opengl + virtual/glu + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + openal? ( media-libs/openal ) +" +DEPEND="${RDEPEND} + dev-libs/boost:0 + x11-base/xorg-proto +" +BDEPEND=" + doc? ( + app-text/doxygen + qch? ( || ( + dev-qt/qttools:6[assistant] + dev-qt/qthelp:5 + ) ) + ) +" + +PATCHES=( "${FILESDIR}"/${P}-find-qhelpgenerator.patch ) + +DOCS=( AUTHORS FAQ FAQ.legal NEWS THANKS docs/HACKING ) + +src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/859832 + # https://github.com/coin3d/coin/issues/521 + filter-lto + + use debug && append-cppflags -DCOIN_DEBUG=1 + + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + + -DCOIN_BUILD_SHARED_LIBS=ON + -DCOIN_BUILD_TESTS=$(usex test) + -DCOIN_BUILD_DOCUMENTATION=$(usex doc) + + -DCOIN_BUILD_INTERNAL_DOCUMENTATION=OFF + -DCOIN_BUILD_AWESOME_DOCUMENTATION=$(usex doc) + -DCOIN_BUILD_DOCUMENTATION_MAN=$(usex doc) + -DCOIN_BUILD_DOCUMENTATION_QTHELP=$(usex qch) + -DCOIN_BUILD_DOCUMENTATION_CHM=OFF + + -DCOIN_THREADSAFE=$(usex threads) + -DHAVE_VRML97=ON + -DCOIN_HAVE_JAVASCRIPT=OFF + -DHAVE_NODEKITS=ON + -DHAVE_DRAGGERS=ON + -DHAVE_MANIPULATORS=ON + -DHAVE_SOUND=$(usex openal) + -DHAVE_3DS_IMPORT_CAPABILITIES=ON + -DUSE_EXTERNAL_EXPAT=ON + -DUSE_EXCEPTIONS=$(usex exceptions) + -DUSE_SUPERGLU=OFF + + -DFONTCONFIG_RUNTIME_LINKING=OFF + -DFREETYPE_RUNTIME_LINKING=OFF + -DLIBBZIP2_RUNTIME_LINKING=OFF + -DOPENAL_RUNTIME_LINKING=OFF + -DSIMAGE_RUNTIME_LINKING=OFF + -DZLIB_RUNTIME_LINKING=OFF + -DGLU_RUNTIME_LINKING=OFF + -DSPIDERMONKEY_RUNTIME_LINKING=ON + + -DCOIN_VERBOSE=$(usex debug) + -DHAVE_MULTIPLE_VERSION=OFF + + -DCOIN_BUILD_SINGLE_LIB=ON + ) + use doc && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON ) + + cmake_src_configure +} + +src_test() { + pushd "${BUILD_DIR}/bin" > /dev/null || die + ./CoinTests -r detailed || die "Tests failed." + popd > /dev/null || die +} diff --git a/media-libs/coin/files/coin-4.0.3-find-qhelpgenerator.patch b/media-libs/coin/files/coin-4.0.3-find-qhelpgenerator.patch new file mode 100644 index 000000000000..1ac924a5c28b --- /dev/null +++ b/media-libs/coin/files/coin-4.0.3-find-qhelpgenerator.patch @@ -0,0 +1,23 @@ +--- a/src/doc/CMakeLists.txt 2024-09-06 07:36:34.000000000 +0200 ++++ b/src/doc/CMakeLists.txt 2024-10-13 20:41:26.450802361 +0200 +@@ -32,13 +32,15 @@ + endif() + endif() + if(COIN_BUILD_DOCUMENTATION_QTHELP) +- find_program(QHG_LOCATION NAMES qhelpgenerator qhelpgenerator-qt5 DOC "Qt qhelpgenerator") +- if(NOT QHG_LOCATION) +- message(FATAL_ERROR "Missing program Qt qhelpgenerator") ++ find_package(Qt6Tools QUIET COMPONENTS Help) ++ if(Qt6Tools_FOUND) ++ get_target_property(QHG_LOCATION Qt6::qhelpgenerator LOCATION) + else() +- set(GENERATE_QHP YES) +- mark_as_advanced(QHG_LOCATION) ++ find_package(Qt5Help REQUIRED) ++ get_target_property(QHG_LOCATION Qt5::qhelpgenerator LOCATION) + endif() ++ set(GENERATE_QHP YES) ++ mark_as_advanced(QHG_LOCATION) + endif() + + # Add default files diff --git a/media-libs/coin/metadata.xml b/media-libs/coin/metadata.xml index bcd622631c00..8ab9e491c2ab 100644 --- a/media-libs/coin/metadata.xml +++ b/media-libs/coin/metadata.xml @@ -6,6 +6,7 @@ </maintainer> <use> <flag name="exceptions">Compile with C++ exceptions</flag> + <flag name="qch">Install API documentation in QCH format</flag> <flag name="qthelp">Build API documentation in QtHelp format</flag> </use> <upstream> |