gnu: librecad: Update to 2.2.0.2.
* gnu/packages/engineering.scm (librecad): Update to 2.2.0.2. [arguments]<#:phases>: Delete the patch-boost-error, add-missing-headers and patch-paths phases. Remove trailing #t. * gnu/packages/patches/librecad-support-for-boost-1.76.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. Change-Id: I23cc1a80b2e9e73bdef40575c4104480cc830d8cmaster
parent
2e2d378551
commit
8a683b1628
|
@ -1617,7 +1617,6 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/libphonenumber-reproducible-build.patch \
|
%D%/packages/patches/libphonenumber-reproducible-build.patch \
|
||||||
%D%/packages/patches/libqalculate-3.8.0-libcurl-ssl-fix.patch \
|
%D%/packages/patches/libqalculate-3.8.0-libcurl-ssl-fix.patch \
|
||||||
%D%/packages/patches/libquicktime-ffmpeg.patch \
|
%D%/packages/patches/libquicktime-ffmpeg.patch \
|
||||||
%D%/packages/patches/librecad-support-for-boost-1.76.patch \
|
|
||||||
%D%/packages/patches/libtar-CVE-2013-4420.patch \
|
%D%/packages/patches/libtar-CVE-2013-4420.patch \
|
||||||
%D%/packages/patches/libtgvoip-disable-sse2.patch \
|
%D%/packages/patches/libtgvoip-disable-sse2.patch \
|
||||||
%D%/packages/patches/libtgvoip-disable-webrtc.patch \
|
%D%/packages/patches/libtgvoip-disable-webrtc.patch \
|
||||||
|
|
|
@ -173,7 +173,7 @@
|
||||||
(define-public librecad
|
(define-public librecad
|
||||||
(package
|
(package
|
||||||
(name "librecad")
|
(name "librecad")
|
||||||
(version "2.2.0-rc2")
|
(version "2.2.0.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -182,39 +182,12 @@
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"08cl4935c9vznz9qdw1zgd86rn7hl64zpfayxl07x21bhf53pn24"))
|
"04pyywkc0nzhdx1wi0g63hldmbpdp0wvlrhqv8p3m1z6wyyafgjn"))))
|
||||||
(patches
|
|
||||||
(search-patches "librecad-support-for-boost-1.76.patch"))))
|
|
||||||
(build-system qt-build-system)
|
(build-system qt-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "check"
|
'(#:test-target "check"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; Without this patch boost complains that "make_array" is not a
|
|
||||||
;; member of "boost::serialization".
|
|
||||||
(add-after 'unpack 'patch-boost-error
|
|
||||||
(lambda _
|
|
||||||
(substitute* "librecad/src/lib/math/lc_quadratic.h"
|
|
||||||
(("#include \"rs_vector.h\"" line)
|
|
||||||
(string-append line
|
|
||||||
"\n#include <boost/serialization/array_wrapper.hpp>")))
|
|
||||||
(substitute* "librecad/src/lib/math/rs_math.cpp"
|
|
||||||
(("#include <boost/numeric/ublas/matrix.hpp>" line)
|
|
||||||
(string-append "#include <boost/serialization/array_wrapper.hpp>\n"
|
|
||||||
line)))
|
|
||||||
#t))
|
|
||||||
;; Fix build against Qt 5.11.
|
|
||||||
(add-after 'unpack 'add-missing-headers
|
|
||||||
(lambda _
|
|
||||||
(substitute* "librecad/src/ui/generic/widgetcreator.cpp"
|
|
||||||
(("#include <QPushButton>") "#include <QPushButton>
|
|
||||||
#include <QActionGroup>"))
|
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'patch-paths
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(substitute* "librecad/src/lib/engine/rs_system.cpp"
|
|
||||||
(("/usr/share") (string-append out "/share"))))))
|
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(system* "qmake" (string-append "BOOST_DIR="
|
(system* "qmake" (string-append "BOOST_DIR="
|
||||||
|
@ -227,8 +200,7 @@
|
||||||
(mkdir-p bin)
|
(mkdir-p bin)
|
||||||
(install-file "unix/librecad" bin)
|
(install-file "unix/librecad" bin)
|
||||||
(mkdir-p share)
|
(mkdir-p share)
|
||||||
(copy-recursively "unix/resources" share))
|
(copy-recursively "unix/resources" share)))))))
|
||||||
#t)))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list boost muparser freetype qtbase-5 qtsvg-5))
|
(list boost muparser freetype qtbase-5 qtsvg-5))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
Upstream commit e02f3580311d50b617427652ff77988f6bd62d9d adding Boost 1.76
|
|
||||||
compatibility.
|
|
||||||
|
|
||||||
diff --git a/librecad/src/lib/engine/rs_ellipse.cpp b/librecad/src/lib/engine/rs_ellipse.cpp
|
|
||||||
index 291f734ea..d47bf6ca4 100644
|
|
||||||
--- a/librecad/src/lib/engine/rs_ellipse.cpp
|
|
||||||
+++ b/librecad/src/lib/engine/rs_ellipse.cpp
|
|
||||||
@@ -48,6 +48,9 @@
|
|
||||||
#include <boost/version.hpp>
|
|
||||||
#include <boost/math/tools/roots.hpp>
|
|
||||||
#include <boost/math/special_functions/ellint_2.hpp>
|
|
||||||
+#if BOOST_VERSION > 104500
|
|
||||||
+#include <boost/math/tools/tuple.hpp>
|
|
||||||
+#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace{
|
|
Reference in New Issue