Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 726806
Collapse All | Expand All

(-)solvespace-9999.ebuild (-24 / +47 lines)
Lines 1-54 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2020 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
3
5
EAPI=7
4
EAPI=7
6
5
7
inherit cmake-utils git-r3
6
CMAKE_MIN_VERSION=3.7.2
7
8
inherit cmake-utils xdg-utils git-r3
8
9
9
DESCRIPTION="Parametric 2d/3d CAD"
10
DESCRIPTION="Parametric 2d/3d CAD"
10
HOMEPAGE="https://solvespace.com"
11
HOMEPAGE="https://solvespace.com"
11
SRC_URI=
12
EGIT_REPO_URI="https://github.com/solvespace/${PN}.git"
12
EGIT_REPO_URI="https://github.com/solvespace/${PN}.git"
13
EGIT_SUBMODULES=( 'extlib/libdxfrw' 'extlib/flatbuffers' 'extlib/q3d' 'extlib/mimalloc' )
13
14
14
LICENSE="GPL-3"
15
LICENSE="GPL-3"
15
SLOT="0"
16
SLOT="0"
16
KEYWORDS=""
17
KEYWORDS=""
17
IUSE="coverage gtk test"
18
IUSE="coverage debug gtk openmp spacenav test"
18
19
19
DEPEND="
20
DEPEND="sys-libs/zlib
20
	media-libs/libpng:1.2
21
	media-libs/libpng
21
	dev-libs/json-c
22
	dev-libs/flatbuffers
23
	media-libs/freetype:2
22
	media-libs/freetype:2
24
	media-libs/fontconfig:1.0
23
	x11-libs/cairo
25
	dev-cpp/pangomm:1.4
24
	x11-libs/pixman
26
	virtual/glu
25
	coverage? ( dev-util/lcov )
27
	media-libs/glew
26
	gtk? (
28
	gtk? ( dev-cpp/gtkmm:3.0 )"
27
		virtual/glu
28
		media-libs/glew
29
		media-libs/fontconfig:1.0
30
		dev-libs/json-c
31
		dev-cpp/gtkmm:3.0
32
		dev-cpp/pangomm:1.4
33
	)
34
	spacenav? ( dev-libs/libspnav )"
29
RDEPEND="${DEPEND}"
35
RDEPEND="${DEPEND}"
30
HDEPEND="dev-vcs/git"
36
BDEPEND="virtual/pkgconfig
37
	sys-devel/gettext"
38
39
REQUIRED_USE="coverage? ( debug )
40
	spacenav? ( gtk )"
41
42
HTML_DOCS=()
43
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md THIRD_PARTIES.txt )
44
45
pkg_setup() {
46
	if [[ "$(tc-get-compiler-type)" == "gcc" ]]; then
47
		if [[ $(gcc-major-version) -lt 5 ]]; then
48
			die "GCC 5.0+ is required"
49
		fi
50
	fi
51
	if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
52
		tc-has-openmp || die "Please switch to an openmp compatible compiler"
53
	fi
54
}
31
55
32
src_configure() {
56
src_configure() {
57
	CMAKE_BUILD_TYPE="$(usex debug Debug Release)"
33
	local mycmakeargs=(
58
	local mycmakeargs=(
34
		-DENABLE_COVERAGE=$(usex coverage)
59
		-DENABLE_COVERAGE=$(usex coverage)
35
		-DENABLE_GUI=$(usex gtk)
60
		-DENABLE_GUI=$(usex gtk)
61
		-DENABLE_OPENMP=$(usex openmp)
36
		-DENABLE_TESTS=$(usex test)
62
		-DENABLE_TESTS=$(usex test)
37
	)
63
	)
38
	cmake-utils_src_configure
64
	cmake-utils_src_configure
39
}
65
}
40
66
41
src_install() {
42
	cmake-utils_src_install
43
	insinto /usr/share/mime/packages
44
	newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
45
}
46
47
pkg_postinst() {
67
pkg_postinst() {
48
	fdo-mime_mime_database_update
68
	xdg_icon_cache_update
69
	xdg_desktop_database_update
70
	xdg_mimeinfo_database_update
49
}
71
}
50
72
51
pkg_postrm() {
73
pkg_postrm() {
52
	fdo-mime_mime_database_update
74
	xdg_icon_cache_update
75
	xdg_desktop_database_update
76
	xdg_mimeinfo_database_update
53
}
77
}
54

Return to bug 726806