Gentoo Archives: gentoo-commits

From: Slawek Lis <slis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/librecad/
Date: Mon, 27 Nov 2017 06:50:15
Message-Id: 1511765389.1def1ab69db8cc2d7cf8fdcd9fc06018d1f4479e.slis@gentoo
1 commit: 1def1ab69db8cc2d7cf8fdcd9fc06018d1f4479e
2 Author: Slawomir Lis <slis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 06:48:37 2017 +0000
4 Commit: Slawek Lis <slis <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 06:49:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1def1ab6
7
8 media-gfx/librecad: updated to version without qt4
9
10 librecad-2.1.3-r1 is marked stable, so new revision without qt4 added.
11 Reported in https://bugs.gentoo.org/631808
12
13 Package-Manager: Portage-2.3.16, Repoman-2.3.6
14
15 media-gfx/librecad/librecad-2.1.3-r2.ebuild | 59 +++++++++++++++++++++++++++++
16 1 file changed, 59 insertions(+)
17
18 diff --git a/media-gfx/librecad/librecad-2.1.3-r2.ebuild b/media-gfx/librecad/librecad-2.1.3-r2.ebuild
19 new file mode 100644
20 index 00000000000..517916041bd
21 --- /dev/null
22 +++ b/media-gfx/librecad/librecad-2.1.3-r2.ebuild
23 @@ -0,0 +1,59 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=5
28 +
29 +inherit eutils qmake-utils
30 +
31 +DESCRIPTION="Generic 2D CAD program"
32 +HOMEPAGE="http://www.librecad.org/"
33 +SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38 +
39 +IUSE="3d debug doc tools qt4 +qt5"
40 +REQUIRED_USE="qt5"
41 +
42 +DEPEND="
43 + qt5? (
44 + dev-qt/qtcore:5
45 + dev-qt/qtgui:5
46 + dev-qt/qthelp:5
47 + dev-qt/qtprintsupport:5
48 + dev-qt/qtsvg:5
49 + dev-qt/qtwidgets:5
50 + dev-qt/qtxml:5
51 + )
52 + dev-libs/boost:=
53 + dev-cpp/muParser
54 + media-libs/freetype:2"
55 +
56 +RDEPEND="${DEPEND}"
57 +S="${WORKDIR}/LibreCAD-${PV}"
58 +
59 +src_prepare() {
60 +# epatch "${FILESDIR}/iota-fix-2.1.1.patch"
61 +
62 + # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
63 + if ! use 3d; then
64 + sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
65 + fi
66 +}
67 +
68 +src_configure() {
69 + eqmake5 -r
70 +}
71 +
72 +src_install() {
73 + dobin unix/librecad
74 + use tools && dobin unix/ttf2lff
75 + insinto /usr/share/${PN}
76 + doins -r unix/resources/*
77 + use doc && insinto html && dodoc -r librecad/support/doc/*
78 + insinto /usr/share/appdata
79 + doins unix/appdata/librecad.appdata.xml
80 + doicon librecad/res/main/${PN}.png
81 + make_desktop_entry ${PN} LibreCAD ${PN} Graphics
82 +}