aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Lloro <ivan.lloro.boada@gmail.com>2024-10-24 11:28:32 +0200
committerIvan Lloro <ivan.lloro.boada@gmail.com>2024-10-24 12:32:30 +0200
commit53b9fd5cbb7c4b70d09d0f0f32fa15600e3412ee (patch)
tree5ecd5a59bc34ecfda2538610f619ba5d6fa3118c /media-gfx/mayo
parentnet-mail/dovecot-fts-flatcurve: clean CFLAGS from upstream (diff)
downloadguru-53b9fd5cbb7c4b70d09d0f0f32fa15600e3412ee.tar.gz
guru-53b9fd5cbb7c4b70d09d0f0f32fa15600e3412ee.tar.bz2
guru-53b9fd5cbb7c4b70d09d0f0f32fa15600e3412ee.zip
media-gfx/mayo: Qt6-enabled compilation
Signed-off-by: Ivan Lloro <ivan.lloro.boada@gmail.com>
Diffstat (limited to 'media-gfx/mayo')
-rw-r--r--media-gfx/mayo/mayo-0.8.0-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/media-gfx/mayo/mayo-0.8.0-r1.ebuild b/media-gfx/mayo/mayo-0.8.0-r1.ebuild
new file mode 100644
index 000000000..946167f8f
--- /dev/null
+++ b/media-gfx/mayo/mayo-0.8.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils desktop xdg
+
+DESCRIPTION="Opensource 3D CAD viewer and converter"
+HOMEPAGE="https://github.com/fougue/mayo"
+SRC_URI="https://github.com/fougue/mayo/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-qt/qttranslations:6
+ >=media-libs/assimp-5.3.1
+ >=sci-libs/opencascade-7.7.0-r2
+ <sci-libs/opencascade-7.8.0
+"
+
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-nogit.patch
+ "${FILESDIR}"/${P}-gcc14.patch
+)
+
+src_configure() {
+ eqmake6 "CASCADE_INC_DIR=/usr/include/opencascade" "CASCADE_LIB_DIR=/usr/$(get_libdir)/opencascade" "ASSIMP_INC_DIR=/usr/include/assimp" "ASSIMP_LIB_DIR=/usr/$(get_libdir)" mayo.pro
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${ED}"
+ dobin mayo
+ newicon -s scalable images/appicon.svg mayo.svg
+ make_desktop_entry "mayo %F" Mayo mayo "Graphics;" "MimeType=model/step;model/iges;model/brep;image/vnd.dxf;model/obj;model/gltf+json;model/gltf+binary;model/vrml;model/stl;model/x.stl-ascii;model/x.stl-binary;application/x-amf;application/x-coff;application/x-coffexec;model/3mf;image/x-3ds;model/vnd.collada+xml;model/x3d+binary;model/x3d+fastinfoset;model/x3d+vrml;model/x3d+xml;model/x3d-vrml;application/directx;"
+ einstalldocs
+}