pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cad/librecad librecad: Upgrade to 2.2.0 rc1
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8352c6dfdc3
branches: trunk
changeset: 403388:e8352c6dfdc3
user: kamil <kamil%pkgsrc.org@localhost>
date: Sat Oct 26 12:23:01 2019 +0000
description:
librecad: Upgrade to 2.2.0 rc1
Exact changelog is unknown, but there is Qt4 -> Qt5 switch.
Upstream changelog
==================
2.2.0 Release Candidate
There were more than 250 commits since 2.2.0-alpha, thus it was overdue to get rid of the alpha in the tag now.
With some more improvements in the last couple weeks, we switch directly to Release Candidate as the response from community is, that the master branch is stable.
There are only some minor changes in the line before the final 2.2.0 release.
diffstat:
cad/librecad/Makefile | 57 +++++----
cad/librecad/PLIST | 22 ++-
cad/librecad/distinfo | 24 +--
cad/librecad/patches/patch-librecad_src_lib_engine_rs__color.h | 14 --
cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.cpp | 13 --
cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.h | 14 --
cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.cpp | 13 --
cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.h | 15 --
cad/librecad/patches/patch-librecad_src_lib_engine_rs__system.cpp | 12 +-
cad/librecad/patches/patch-librecad_src_main_qc__applicationwindow.cpp | 17 +-
cad/librecad/patches/patch-librecad_src_ui_forms_qg__commandwidget.cpp | 14 ++
cad/librecad/patches/patch-librecad_src_ui_generic_colorwizard.cpp | 14 ++
cad/librecad/patches/patch-librecad_src_ui_generic_widgetcreator.cpp | 15 ++
cad/librecad/patches/patch-scripts_postprocess-unix.sh | 9 +-
14 files changed, 118 insertions(+), 135 deletions(-)
diffs (truncated from 406 to 300 lines):
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/Makefile
--- a/cad/librecad/Makefile Sat Oct 26 12:19:04 2019 +0000
+++ b/cad/librecad/Makefile Sat Oct 26 12:23:01 2019 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.47 2019/08/22 12:22:52 ryoon Exp $
-#
+# $NetBSD: Makefile,v 1.48 2019/10/26 12:23:01 kamil Exp $
-DISTNAME= LibreCAD-2.1.3
+GITHUB_PROJECT= LibreCAD
+DISTNAME= LibreCAD-2.2.0.rc1
PKGNAME= ${DISTNAME:tl}
-PKGREVISION= 10
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_GITHUB:=LibreCAD/}
+GITHUB_TAG= ${PKGVERSION_NOREV:C/.rc1/-rc1/}
MAINTAINER= ryoon%NetBSD.org@localhost
HOMEPAGE= http://librecad.org/
@@ -22,34 +22,42 @@
SUBST_CLASSES+= qtdir
SUBST_STAGE.qtdir= pre-configure
-SUBST_MESSAGE.qtdir= Set qt4/bin
+SUBST_MESSAGE.qtdir= Set qt5/bin
SUBST_FILES.qtdir+= scripts/postprocess-unix.sh
SUBST_VARS.qtdir+= QTDIR
+
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fix hardcoded path
SUBST_FILES.prefix+= librecad/src/lib/engine/rs_system.cpp
SUBST_VARS.prefix+= PREFIX
-AUTO_MKDIRS= yes
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mclang*)
+BUILDLINK_TRANSFORM+= rm:-fext-numeric-literals
+.endif
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= share/${PKGBASE}
+INSTALLATION_DIRS+= lib/${PKGBASE}
-#
-# We disable long double math functions, because otherwise one of
-# the boost headers brings in a log1pl() function which was not
-# present (in NetBSD 7) causing compilation failure
-#
-# We configure the plugins directory separately so that we can use
-# make install below, which handles the libtooling of the shared
-# plugins automatically
-#
+QMAKE_OPTIONS+= CONFIG+=release
+QMAKE_OPTIONS+= BOOST_DIR=${PREFIX}
+QMAKE_OPTIONS+= BOOST_LIBDIR=${PREFIX}/lib
+QMAKE_OPTIONS+= MUPARSER_DIR=${PREFIX}
+QMAKE_OPTIONS+= QMAKE_LFLAGS_RELEASE=
+QMAKE_OPTIONS+= DISABLE_POSTSCRIPT=true
+
do-configure:
- cd ${WRKSRC} && ${QTDIR}/bin/qmake \
- QMAKE_CXXFLAGS=-DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- cd ${WRKSRC}/plugins && ${QTDIR}/bin/qmake \
- INSTALLS+=target target.path=${PREFIX}/lib/librecad/plugins
+ ${RUN} cd ${WRKSRC} && ${QTDIR}/bin/qmake ${QMAKE_OPTIONS:Q}
+ ${RUN} cd ${WRKSRC}/plugins && ${QTDIR}/bin/qmake \
+ INSTALLS+=target target.path=${PREFIX}/lib/librecad/plugins
do-install:
+ ${RUN} cd ${WRKSRC} && ./scripts/postprocess-unix.sh
${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad \
${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/unix/ttf2lff \
@@ -60,18 +68,17 @@
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/tools/ttf2lff/ttf2lff.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
- cd ${WRKSRC}/plugins && \
+ ${RUN} cd ${WRKSRC}/plugins && \
${SETENV} ${MAKE_ENV} ${MAKE} INSTALL_ROOT=${DESTDIR} install
- cd ${WRKSRC}/unix/resources && ${PAX} -rwpm fonts \
+ ${RUN} cd ${WRKSRC}/unix/resources && ${PAX} -rwpm fonts \
${DESTDIR}${PREFIX}/lib/librecad
- cd ${WRKSRC}/unix/resources && ${PAX} -rwpm library patterns qm \
+ ${RUN} cd ${WRKSRC}/unix/resources && ${PAX} -rwpm library patterns qm \
${DESTDIR}${PREFIX}/share/librecad
+.include "../../x11/qt5-qtsvg/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../math/muparser/buildlink3.mk"
-.include "../../x11/qt4-libs/buildlink3.mk"
-BUILDLINK_DEPMETHOD.qt4-tools= full
-.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/PLIST
--- a/cad/librecad/PLIST Sat Oct 26 12:19:04 2019 +0000
+++ b/cad/librecad/PLIST Sat Oct 26 12:23:01 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2016/09/05 21:13:21 plunky Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/10/26 12:23:01 kamil Exp $
bin/librecad
bin/ttf2lff
lib/librecad/fonts/OpenGostTypeA-Regular.lff
@@ -47,15 +47,15 @@
lib/librecad/fonts/symeteo.lff
lib/librecad/fonts/symusic.lff
lib/librecad/fonts/unicode.lff
-lib/librecad/fonts/wqy-unicode.lff
-lib/librecad/plugins/libalign.la
-lib/librecad/plugins/libasciifile.la
-lib/librecad/plugins/libimportshp.la
-lib/librecad/plugins/liblist.la
-lib/librecad/plugins/libpicfile.la
-lib/librecad/plugins/libplotequation.la
-lib/librecad/plugins/libsameprop.la
-lib/librecad/plugins/libsample.la
+lib/librecad/plugins/libalign.so
+lib/librecad/plugins/libasciifile.so
+lib/librecad/plugins/libgear.so
+lib/librecad/plugins/libimportshp.so
+lib/librecad/plugins/liblist.so
+lib/librecad/plugins/libpicfile.so
+lib/librecad/plugins/libplotequation.so
+lib/librecad/plugins/libsameprop.so
+lib/librecad/plugins/libsample.so
man/man1/librecad.1
man/man1/ttf2lff.1
share/applications/librecad.desktop
@@ -1433,6 +1433,7 @@
share/librecad/qm/librecad_ja.qm
share/librecad/qm/librecad_ko.qm
share/librecad/qm/librecad_lv.qm
+share/librecad/qm/librecad_mk.qm
share/librecad/qm/librecad_nl.qm
share/librecad/qm/librecad_no.qm
share/librecad/qm/librecad_pa.qm
@@ -1490,6 +1491,7 @@
share/librecad/qm/plugins_ja.qm
share/librecad/qm/plugins_ko.qm
share/librecad/qm/plugins_lv.qm
+share/librecad/qm/plugins_mk.qm
share/librecad/qm/plugins_nl.qm
share/librecad/qm/plugins_no.qm
share/librecad/qm/plugins_pa.qm
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/distinfo
--- a/cad/librecad/distinfo Sat Oct 26 12:19:04 2019 +0000
+++ b/cad/librecad/distinfo Sat Oct 26 12:23:01 2019 +0000
@@ -1,14 +1,12 @@
-$NetBSD: distinfo,v 1.8 2017/09/10 14:10:43 joerg Exp $
+$NetBSD: distinfo,v 1.9 2019/10/26 12:23:01 kamil Exp $
-SHA1 (LibreCAD-2.1.3.tar.gz) = eac60a4e7eadf2969d34f289059053cff4068309
-RMD160 (LibreCAD-2.1.3.tar.gz) = bbcc26997c907b445c43af323644141035cd5304
-SHA512 (LibreCAD-2.1.3.tar.gz) = 246cffcc1ea3389997b4a738ab5e3d78e8c1096817ecb1ca28f38d601bc5d1a95f60798ac82308914a34da7b5dbc302b8363cf8b58a97221fdc8ee63010adc6c
-Size (LibreCAD-2.1.3.tar.gz) = 22415288 bytes
-SHA1 (patch-librecad_src_lib_engine_rs__color.h) = f20d193e4fcdfd933d25430f66be71b4468ab2c3
-SHA1 (patch-librecad_src_lib_engine_rs__image.cpp) = 375c9454c549dcb16ca29195aec1f0f36a99bd2a
-SHA1 (patch-librecad_src_lib_engine_rs__image.h) = b10da3f1f4f68a15acd2363eae37e1b8644431b3
-SHA1 (patch-librecad_src_lib_engine_rs__polyline.cpp) = f922a1427204d8b3bbe3e76d4ff7ca4caac59565
-SHA1 (patch-librecad_src_lib_engine_rs__polyline.h) = 8c5991db6b71a7511ab0ddf5870b5014a18460e9
-SHA1 (patch-librecad_src_lib_engine_rs__system.cpp) = 8a31fb54946c06460b2328c8a3490ec26f60f33c
-SHA1 (patch-librecad_src_main_qc__applicationwindow.cpp) = cadee00f00d10d27c201375f06e14f8cd56a9cdc
-SHA1 (patch-scripts_postprocess-unix.sh) = e98c0a2d114e2730b2cb53eb6f137080253377a3
+SHA1 (LibreCAD-2.2.0.rc1.tar.gz) = 2bffa19ac39a18d9d79fde72e624d7aebbdfa236
+RMD160 (LibreCAD-2.2.0.rc1.tar.gz) = 1521ddedf187c4ce9081062edf88f3f39d5bbb7c
+SHA512 (LibreCAD-2.2.0.rc1.tar.gz) = c7baf28511f75b63382f6f7c508b2e244638a0ecbe4cf99f4854b1f628a6772b942d95c7cbbf9082d06e066cd9ab2a33961ac48bb1d0846f5c2d75f657e5d914
+Size (LibreCAD-2.2.0.rc1.tar.gz) = 13578543 bytes
+SHA1 (patch-librecad_src_lib_engine_rs__system.cpp) = 38ceb3cde81042a1eeb6c68ead874e1a3a3512bb
+SHA1 (patch-librecad_src_main_qc__applicationwindow.cpp) = 1234b3b4e087c651da76c1d8d7770bebaa71dddc
+SHA1 (patch-librecad_src_ui_forms_qg__commandwidget.cpp) = 97c40234eec588569a862387dc509cc911cb31dc
+SHA1 (patch-librecad_src_ui_generic_colorwizard.cpp) = db049f7bc948913ef215a1a8c2d7d94367b12f1b
+SHA1 (patch-librecad_src_ui_generic_widgetcreator.cpp) = 1533f373059b7068638eea9ebc32a614c997c13d
+SHA1 (patch-scripts_postprocess-unix.sh) = dfa529bff1251967764c1a21654976844cc7e19a
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__color.h
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__color.h Sat Oct 26 12:19:04 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__color.h,v 1.1 2016/09/05 21:13:21 plunky Exp $
-
-add missing includes
-
---- librecad/src/lib/engine/rs_color.h.orig 2016-06-20 18:43:27.000000000 +0000
-+++ librecad/src/lib/engine/rs_color.h
-@@ -29,6 +29,7 @@
- #define RS_COLOR_H
-
- #include <QColor>
-+#include <ostream>
-
- #include "rs.h"
- #include "rs_flags.h"
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.cpp
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.cpp Sat Oct 26 12:19:04 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__image.cpp,v 1.1 2017/09/10 14:10:43 joerg Exp $
-
---- librecad/src/lib/engine/rs_image.cpp.orig 2017-09-10 10:54:08.660814636 +0000
-+++ librecad/src/lib/engine/rs_image.cpp
-@@ -35,6 +35,8 @@
- #include "rs_painterqt.h"
- #include "rs_math.h"
-
-+RS_ImageData::~RS_ImageData() = default;
-+
- RS_ImageData::RS_ImageData(int _handle,
- const RS_Vector& _insertionPoint,
- const RS_Vector& _uVector,
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.h
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__image.h Sat Oct 26 12:19:04 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__image.h,v 1.1 2017/09/10 14:10:43 joerg Exp $
-
-Default destructor can't be created in all instances, so make it explicit.
-
---- librecad/src/lib/engine/rs_image.h.orig 2017-09-10 10:42:08.481789997 +0000
-+++ librecad/src/lib/engine/rs_image.h
-@@ -39,6 +39,7 @@ struct RS_ImageData {
- * Default constructor. Leaves the data object uninitialized.
- */
- RS_ImageData() = default;
-+ ~RS_ImageData();
-
- RS_ImageData(int handle,
- const RS_Vector& insertionPoint,
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.cpp
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.cpp Sat Oct 26 12:19:04 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__polyline.cpp,v 1.1 2017/09/10 14:10:43 joerg Exp $
-
---- librecad/src/lib/engine/rs_polyline.cpp.orig 2017-09-10 10:39:08.690420563 +0000
-+++ librecad/src/lib/engine/rs_polyline.cpp
-@@ -41,6 +41,8 @@ RS_PolylineData::RS_PolylineData():
- {
- }
-
-+RS_PolylineData::~RS_PolylineData() = default;
-+
- RS_PolylineData::RS_PolylineData(const RS_Vector& _startpoint,
- const RS_Vector& _endpoint,
- bool _closed):
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.h
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__polyline.h Sat Oct 26 12:19:04 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__polyline.h,v 1.1 2017/09/10 14:10:43 joerg Exp $
-
-Default destructor can't be created in all instances, so make it explicit.
-
---- librecad/src/lib/engine/rs_polyline.h.orig 2017-09-10 10:37:45.908701029 +0000
-+++ librecad/src/lib/engine/rs_polyline.h
-@@ -38,7 +38,7 @@
- */
- struct RS_PolylineData : public RS_Flags {
- RS_PolylineData();
-- ~RS_PolylineData()=default;
-+ virtual ~RS_PolylineData();
- RS_PolylineData(const RS_Vector& startpoint,
- const RS_Vector& endpoint,
- bool closed);
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_lib_engine_rs__system.cpp
--- a/cad/librecad/patches/patch-librecad_src_lib_engine_rs__system.cpp Sat Oct 26 12:19:04 2019 +0000
+++ b/cad/librecad/patches/patch-librecad_src_lib_engine_rs__system.cpp Sat Oct 26 12:23:01 2019 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-librecad_src_lib_engine_rs__system.cpp,v 1.1 2016/09/05 21:13:21 plunky Exp $
+$NetBSD: patch-librecad_src_lib_engine_rs__system.cpp,v 1.2 2019/10/26 12:23:01 kamil Exp $
-Help LibreCAD find the installed files
+Fix pkgsrc PREFIX.
---- librecad/src/lib/engine/rs_system.cpp.orig 2016-09-04 20:35:17.219964268 +0000
+--- librecad/src/lib/engine/rs_system.cpp.orig 2018-02-15 20:54:45.000000000 +0000
+++ librecad/src/lib/engine/rs_system.cpp
-@@ -600,11 +600,8 @@ QStringList RS_System::getDirectoryList(
+@@ -573,11 +573,8 @@ QStringList RS_System::getDirectoryList(
}
}
@@ -13,8 +13,8 @@
-
- // Redhat style:
- dirList.append("/usr/share/" + appDirName + "/" + subDirectory);
-+ dirList.append("@PREFIX@/share/" + appDirName + "/" + subDirectory);
-+ dirList.append("@PREFIX@/lib/" + appDirName + "/" + subDirectory);
++ dirList.append("@PREFIX@/share/" + appDirName + "/" + subDirectory);
++ dirList.append("@PREFIX@/lib/" + appDirName + "/" + subDirectory);
// Others, RVT April 25, 2011 removed, doesn anybody use that still?
// dirList.append("/usr/X11R6/share/" + appDirName + "/" + subDirectory);
diff -r 43dfc2c36af4 -r e8352c6dfdc3 cad/librecad/patches/patch-librecad_src_main_qc__applicationwindow.cpp
--- a/cad/librecad/patches/patch-librecad_src_main_qc__applicationwindow.cpp Sat Oct 26 12:19:04 2019 +0000
Home |
Main Index |
Thread Index |
Old Index