2465575deb
QCAD has been largely rewritten since the previous version (QCAD 2) was updated in pkgsrc, meaning that the changes are vast. From the authors website: QCAD 3 comes with a new and improved CAD engine which improves performance (spatial index) and allows for advanced property editing and future extensions (dynamic properties). The other major addition is a powerful and complete ECMAScript interface. New interactive tools can be developed with a few lines of ECMAScript but even entire new applications can be developed using QCAD technology. QCAD 3 is also the first QCAD version that fully supports the DWG format as well as various different versions of the DXF format. The complete ChangeLog is at http://www.qcad.org/en/changelog
20 lines
1,009 B
JavaScript
20 lines
1,009 B
JavaScript
$NetBSD: patch-scripts_Widgets_LibraryBrowser_LibraryBrowser.js,v 1.1 2016/08/30 10:56:04 plunky Exp $
|
|
|
|
fix path to libraries
|
|
|
|
--- scripts/Widgets/LibraryBrowser/LibraryBrowser.js.orig 2016-07-01 07:13:14.000000000 +0000
|
|
+++ scripts/Widgets/LibraryBrowser/LibraryBrowser.js
|
|
@@ -173,12 +173,12 @@ LibraryBrowser.getSourceList = function(
|
|
var libs;
|
|
|
|
// no configuration: add all libraries available in libraries subdir:
|
|
- librariesDir = new QDir("libraries");
|
|
+ librariesDir = new QDir("@PREFIX@/share/qcad/libraries");
|
|
libs = librariesDir.entryList([], filters, sortFlags);
|
|
for (i=0; i<libs.length; i++) {
|
|
// always add default library if available:
|
|
if (libs[i]==="default" || noSourcesConfigured) {
|
|
- sourceList.push(QDir.fromNativeSeparators(new QDir("libraries/%1".arg(libs[i])).absolutePath()));
|
|
+ sourceList.push(QDir.fromNativeSeparators(new QDir("%1/%2".arg(librariesDir.absolutePath()).arg(libs[i])).absolutePath()));
|
|
}
|
|
}
|