summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Waibel <waebbl-gentoo@posteo.net>2022-04-15 12:24:33 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-04-22 13:22:33 +0300
commitc38e764c452df53a9a7959debddd7b46bbaab8b1 (patch)
treebe4f3207117f41078d1f1fa65507344b39f95a5b /media-gfx/opencsg
parentapp-text/apvlv: fix subslot binders on 0.4.0 (diff)
downloadgentoo-c38e764c452df53a9a7959debddd7b46bbaab8b1.tar.gz
gentoo-c38e764c452df53a9a7959debddd7b46bbaab8b1.tar.bz2
gentoo-c38e764c452df53a9a7959debddd7b46bbaab8b1.zip
media-gfx/opencsg: bump to 1.5.1
Closes: https://bugs.gentoo.org/838439 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/opencsg')
-rw-r--r--media-gfx/opencsg/Manifest1
-rw-r--r--media-gfx/opencsg/opencsg-1.5.1.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/media-gfx/opencsg/Manifest b/media-gfx/opencsg/Manifest
index d211f22f22dd..3f9563bd4b32 100644
--- a/media-gfx/opencsg/Manifest
+++ b/media-gfx/opencsg/Manifest
@@ -1 +1,2 @@
DIST OpenCSG-1.4.2.tar.gz 933135 BLAKE2B 20882afaddf40cc4e0c43c3e70bad334aae3885241a3993ce7083de20f9b10d6e6c4eb3a55abba2b1eca64fdae784c491492543a5012b8b2d67eb63a16dd693b SHA512 fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778
+DIST OpenCSG-1.5.1.tar.gz 967182 BLAKE2B a24d7e736b58af78dfed218e7015c9a580c447b65367209fade0c90a36cf7bb638c4abe10cdf37a07c8f16d46389e92341ab72ea8d9c189e380502cbb2962d29 SHA512 aef3e785e730fd8f2ee06719d1c7a57c105e7432fb4dc6f4ad4305aabf1c7d4438ef869ae4eb840dc272b35f20c4ff296e6dd5418337230081e74ac4c91cd342
diff --git a/media-gfx/opencsg/opencsg-1.5.1.ebuild b/media-gfx/opencsg/opencsg-1.5.1.ebuild
new file mode 100644
index 000000000000..e530115c0f39
--- /dev/null
+++ b/media-gfx/opencsg/opencsg-1.5.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils
+
+MY_P="OpenCSG-${PV}"
+
+DESCRIPTION="The Constructive Solid Geometry rendering library"
+HOMEPAGE="https://www.opencsg.org"
+SRC_URI="https://www.opencsg.org/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="doc"
+RESTRICT="test"
+
+RDEPEND="
+ media-libs/glew:0=
+ virtual/opengl
+"
+
+# qtgui is needed for opengles2 feature by
+# /usr/lib64/qt5/mkspecs/feature/unix/opengl.prf
+DEPEND="${RDEPEND}
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+"
+
+DOCS=( build.txt changelog.txt )
+
+PATCHES=( "${FILESDIR}"/${PN}-1.4.2-includepath.patch )
+
+src_prepare() {
+ default
+
+ # removes duplicated headers
+ rm -r glew || die "failed to remove bundled glew"
+}
+
+src_configure() {
+ eqmake5 opencsg.pro INSTALLDIR="${EPREFIX}/usr" LIBDIR="$(get_libdir)"
+}
+
+src_compile() {
+ # rebuild Makefiles in subdirs
+ emake INSTALLDIR="${EPREFIX}/usr" LIBDIR="$(get_libdir)" qmake_all
+ emake sub-src
+}
+
+src_install() {
+ emake -C src INSTALL_ROOT="${ED}" install
+ use doc && local HTML_DOCS=( doc/. )
+ einstalldocs
+}