1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit elisp-common git-r3 qmake-utils xdg
8 SITEFILE="50${PN}-gentoo.el"
10 DESCRIPTION="The Programmers Solid 3D CAD Modeller"
11 HOMEPAGE="http://www.openscad.org/"
12 EGIT_REPO_URI="https://github.com/openscad/openscad.git"
29 dev-qt/qtgui:5[-gles2-only]
30 dev-qt/qtmultimedia:5[-gles2-only]
33 media-libs/fontconfig:1.0
35 >=media-libs/glew-2.0.0:*
37 sci-mathematics/cgal:=
38 >=x11-libs/qscintilla-2.9.4:=[qt5(+)]
39 emacs? ( >=app-editors/emacs-23.1:* )
46 sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
48 # tries to call ccache even if it's not present otherwise
49 sed -i '/CONFIG += ccache/d' ${PN}.pro || die
60 elisp-compile contrib/*.el
65 emake install INSTALL_ROOT="${D}"
68 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
69 elisp-install ${PN} contrib/*.el contrib/*.elc