1 |
commit: 6c6192cedb2b10882654040e34fb7e7fca82b8c9 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 30 23:37:29 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 1 00:03:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c6192ce |
7 |
|
8 |
media-gfx/librecad: Fix build with Qt5, EAPI-6 bump |
9 |
|
10 |
Thanks-to: Fabio Rossi <rossi.f <AT> inwind.it> |
11 |
Closes: https://bugs.gentoo.org/659466 |
12 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
13 |
|
14 |
media-gfx/librecad/Manifest | 1 + |
15 |
.../librecad/files/librecad-2.1.3-qt-5.11.patch | 40 ++++++++++++++++++++++ |
16 |
...brecad-9999.ebuild => librecad-2.1.3-r4.ebuild} | 28 +++++++-------- |
17 |
media-gfx/librecad/librecad-9999.ebuild | 24 +++++-------- |
18 |
4 files changed, 62 insertions(+), 31 deletions(-) |
19 |
|
20 |
diff --git a/media-gfx/librecad/Manifest b/media-gfx/librecad/Manifest |
21 |
index ea786b1cebf..af31055f733 100644 |
22 |
--- a/media-gfx/librecad/Manifest |
23 |
+++ b/media-gfx/librecad/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST librecad-2.1.3.tar.gz 22415288 BLAKE2B fb920113a7e4b2e9e7e3425f77364c36f6be676a3cd109798786b06d31698fd11437bc7f50cb843ca02d761730e83db7fde475d1bce6a65336a845b5b0114918 SHA512 246cffcc1ea3389997b4a738ab5e3d78e8c1096817ecb1ca28f38d601bc5d1a95f60798ac82308914a34da7b5dbc302b8363cf8b58a97221fdc8ee63010adc6c |
26 |
DIST librecad-2.1.3.zip 26086377 BLAKE2B 7f137c1f6c80f10b803ffbe8a739c230664d81003e47dc0f7b82509fdf0534e5fe046cbc6efaa75149daeaf6f0fa217c1fd08e4de83c74361c99108b6b8fd53a SHA512 9a41c17b512ccbc1a0ebb0e6da8e7297663490479f042fadaffda819e371afc7fa49b789449df9fd4e36a2e2b6f95b9b5be19df47cf3c4252111db2a7ed7f009 |
27 |
|
28 |
diff --git a/media-gfx/librecad/files/librecad-2.1.3-qt-5.11.patch b/media-gfx/librecad/files/librecad-2.1.3-qt-5.11.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..0c61a66d8a1 |
31 |
--- /dev/null |
32 |
+++ b/media-gfx/librecad/files/librecad-2.1.3-qt-5.11.patch |
33 |
@@ -0,0 +1,40 @@ |
34 |
+From 6c392e903e162b9283e88f53006e929663f2e883 Mon Sep 17 00:00:00 2001 |
35 |
+From: Jiri Slaby <jslaby@××××.cz> |
36 |
+Date: Mon, 11 Jun 2018 10:44:00 +0200 |
37 |
+Subject: [PATCH] fix build with Qt 5.11 |
38 |
+ |
39 |
+The new Qt removed some implicit inclusions of headers. To avoid build |
40 |
+errors, add explicit includes of those we use in the sources. |
41 |
+ |
42 |
+Signed-off-by: Jiri Slaby <jslaby@××××.cz> |
43 |
+--- |
44 |
+ librecad/src/ui/forms/qg_commandwidget.cpp | 1 + |
45 |
+ librecad/src/ui/generic/colorwizard.cpp | 1 + |
46 |
+ librecad/src/ui/generic/widgetcreator.cpp | 2 ++ |
47 |
+ 3 files changed, 4 insertions(+) |
48 |
+ |
49 |
+diff --git a/librecad/src/ui/forms/qg_commandwidget.cpp b/librecad/src/ui/forms/qg_commandwidget.cpp |
50 |
+index 835e47d67..2c878e833 100644 |
51 |
+--- a/librecad/src/ui/forms/qg_commandwidget.cpp |
52 |
++++ b/librecad/src/ui/forms/qg_commandwidget.cpp |
53 |
+@@ -27,6 +27,7 @@ |
54 |
+ ** |
55 |
+ **********************************************************************/ |
56 |
+ #include "qg_commandwidget.h" |
57 |
++#include <QAction> |
58 |
+ #include <QKeyEvent> |
59 |
+ #include <algorithm> |
60 |
+ |
61 |
+diff --git a/librecad/src/ui/generic/widgetcreator.cpp b/librecad/src/ui/generic/widgetcreator.cpp |
62 |
+index 7c35144ff..d51190842 100644 |
63 |
+--- a/librecad/src/ui/generic/widgetcreator.cpp |
64 |
++++ b/librecad/src/ui/generic/widgetcreator.cpp |
65 |
+@@ -27,6 +27,8 @@ |
66 |
+ #include "widgetcreator.h" |
67 |
+ #include "ui_widgetcreator.h" |
68 |
+ |
69 |
++#include <QAction> |
70 |
++#include <QActionGroup> |
71 |
+ #include <QSettings> |
72 |
+ #include <QLineEdit> |
73 |
+ #include <QPushButton> |
74 |
|
75 |
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-2.1.3-r4.ebuild |
76 |
similarity index 67% |
77 |
copy from media-gfx/librecad/librecad-9999.ebuild |
78 |
copy to media-gfx/librecad/librecad-2.1.3-r4.ebuild |
79 |
index 2ab7e7f06f7..f7542aac6ff 100644 |
80 |
--- a/media-gfx/librecad/librecad-9999.ebuild |
81 |
+++ b/media-gfx/librecad/librecad-2.1.3-r4.ebuild |
82 |
@@ -1,40 +1,38 @@ |
83 |
# Copyright 1999-2018 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
|
86 |
-EAPI=5 |
87 |
+EAPI=6 |
88 |
|
89 |
-inherit eutils git-r3 qmake-utils |
90 |
+inherit desktop qmake-utils |
91 |
|
92 |
DESCRIPTION="Generic 2D CAD program" |
93 |
HOMEPAGE="https://www.librecad.org/" |
94 |
-SRC_URI="" |
95 |
-EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git" |
96 |
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.tar.gz -> ${P}.tar.gz" |
97 |
|
98 |
LICENSE="GPL-2" |
99 |
SLOT="0" |
100 |
-KEYWORDS="" |
101 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
102 |
|
103 |
IUSE="3d debug doc tools" |
104 |
|
105 |
-DEPEND=" |
106 |
+RDEPEND=" |
107 |
dev-cpp/muParser |
108 |
dev-libs/boost:= |
109 |
dev-qt/qtcore:5 |
110 |
dev-qt/qtgui:5 |
111 |
- dev-qt/qthelp:5 |
112 |
dev-qt/qtprintsupport:5 |
113 |
dev-qt/qtsvg:5 |
114 |
dev-qt/qtwidgets:5 |
115 |
- dev-qt/qtxml:5 |
116 |
media-libs/freetype:2" |
117 |
+DEPEND="${RDEPEND} |
118 |
+ dev-qt/linguist-tools:5 |
119 |
+ dev-qt/qthelp:5 |
120 |
+ dev-qt/qtxml:5 |
121 |
+" |
122 |
|
123 |
-RDEPEND="${DEPEND}" |
124 |
-S="${WORKDIR}/librecad-${PV}" |
125 |
+S="${WORKDIR}/LibreCAD-${PV}" |
126 |
|
127 |
-src_prepare() { |
128 |
- # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8 |
129 |
- use 3d || sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die |
130 |
-} |
131 |
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" ) |
132 |
|
133 |
src_configure() { |
134 |
eqmake5 -r |
135 |
@@ -43,8 +41,6 @@ src_configure() { |
136 |
src_install() { |
137 |
dobin unix/librecad |
138 |
use tools && dobin unix/ttf2lff |
139 |
- insinto /usr/share |
140 |
- doins -r unix/appdata |
141 |
insinto /usr/share/${PN} |
142 |
doins -r unix/resources/* |
143 |
use doc && docinto html && dodoc -r librecad/support/doc/* |
144 |
|
145 |
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild |
146 |
index 2ab7e7f06f7..4c0e87ee95e 100644 |
147 |
--- a/media-gfx/librecad/librecad-9999.ebuild |
148 |
+++ b/media-gfx/librecad/librecad-9999.ebuild |
149 |
@@ -1,13 +1,12 @@ |
150 |
# Copyright 1999-2018 Gentoo Foundation |
151 |
# Distributed under the terms of the GNU General Public License v2 |
152 |
|
153 |
-EAPI=5 |
154 |
+EAPI=6 |
155 |
|
156 |
-inherit eutils git-r3 qmake-utils |
157 |
+inherit desktop git-r3 qmake-utils |
158 |
|
159 |
DESCRIPTION="Generic 2D CAD program" |
160 |
HOMEPAGE="https://www.librecad.org/" |
161 |
-SRC_URI="" |
162 |
EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git" |
163 |
|
164 |
LICENSE="GPL-2" |
165 |
@@ -16,25 +15,22 @@ KEYWORDS="" |
166 |
|
167 |
IUSE="3d debug doc tools" |
168 |
|
169 |
-DEPEND=" |
170 |
+RDEPEND=" |
171 |
dev-cpp/muParser |
172 |
dev-libs/boost:= |
173 |
dev-qt/qtcore:5 |
174 |
dev-qt/qtgui:5 |
175 |
- dev-qt/qthelp:5 |
176 |
dev-qt/qtprintsupport:5 |
177 |
dev-qt/qtsvg:5 |
178 |
dev-qt/qtwidgets:5 |
179 |
- dev-qt/qtxml:5 |
180 |
media-libs/freetype:2" |
181 |
+DEPEND="${RDEPEND} |
182 |
+ dev-qt/linguist-tools:5 |
183 |
+ dev-qt/qthelp:5 |
184 |
+ dev-qt/qtxml:5 |
185 |
+" |
186 |
|
187 |
-RDEPEND="${DEPEND}" |
188 |
-S="${WORKDIR}/librecad-${PV}" |
189 |
- |
190 |
-src_prepare() { |
191 |
- # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8 |
192 |
- use 3d || sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die |
193 |
-} |
194 |
+S="${WORKDIR}/LibreCAD-${PV}" |
195 |
|
196 |
src_configure() { |
197 |
eqmake5 -r |
198 |
@@ -43,8 +39,6 @@ src_configure() { |
199 |
src_install() { |
200 |
dobin unix/librecad |
201 |
use tools && dobin unix/ttf2lff |
202 |
- insinto /usr/share |
203 |
- doins -r unix/appdata |
204 |
insinto /usr/share/${PN} |
205 |
doins -r unix/resources/* |
206 |
use doc && docinto html && dodoc -r librecad/support/doc/* |