pkgsrc/cad/librecad/patches/patch-librecad_src_lib_engine_rs__system.cpp
kamil 8f47ec50bc 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.
2019-10-26 12:23:01 +00:00

20 lines
830 B
C++

$NetBSD: patch-librecad_src_lib_engine_rs__system.cpp,v 1.2 2019/10/26 12:23:01 kamil Exp $
Fix pkgsrc PREFIX.
--- librecad/src/lib/engine/rs_system.cpp.orig 2018-02-15 20:54:45.000000000 +0000
+++ librecad/src/lib/engine/rs_system.cpp
@@ -573,11 +573,8 @@ QStringList RS_System::getDirectoryList(
}
}
- // Ubuntu
- dirList.append("/usr/share/doc/" + appDirName + "/" + subDirectory);
-
- // Redhat style:
- dirList.append("/usr/share/" + 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);