2016-02-17 16:24:09 +01:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
2017-10-28 21:37:23 +02:00
|
|
|
EAPI=6
|
2016-02-17 16:24:09 +01:00
|
|
|
|
2017-10-28 21:37:23 +02:00
|
|
|
inherit eutils qmake-utils
|
2016-02-17 16:24:09 +01:00
|
|
|
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/openscad/openscad.git"
|
|
|
|
else
|
|
|
|
SRC_URI="http://files.openscad.org/${P}.src.tar.gz"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="The Programmers Solid 3D CAD Modeller"
|
|
|
|
HOMEPAGE="http://www.openscad.org/"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
2018-01-07 11:26:22 +01:00
|
|
|
CDEPEND="dev-util/ccache
|
|
|
|
media-gfx/opencsg
|
2016-02-17 16:24:09 +01:00
|
|
|
sci-mathematics/cgal
|
2017-10-28 21:37:23 +02:00
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtopengl:5
|
2016-02-17 16:24:09 +01:00
|
|
|
dev-cpp/eigen:3
|
|
|
|
dev-libs/gmp:0
|
|
|
|
dev-libs/mpfr:0
|
|
|
|
dev-libs/boost:=
|
2018-11-20 11:19:37 +01:00
|
|
|
>=x11-libs/qscintilla-2.10.7
|
2016-02-17 16:24:09 +01:00
|
|
|
"
|
|
|
|
DEPEND="${CDEPEND}"
|
|
|
|
RDEPEND="${CDEPEND}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
#Use our CFLAGS (specifically don't force x86)
|
|
|
|
sed -i "s/QMAKE_CXXFLAGS_RELEASE = .*//g" ${PN}.pro || die
|
|
|
|
|
|
|
|
sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
|
2017-10-28 21:37:23 +02:00
|
|
|
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myqmakeargs=(
|
|
|
|
openscad.pro
|
|
|
|
)
|
|
|
|
eqmake5 "${myqmakeargs[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake INSTALL_ROOT="${D}" install
|
2016-02-17 16:24:09 +01:00
|
|
|
}
|