[csw-devel] SF.net SVN: gar:[18360] csw/mgar/pkg/librecad/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Jun 12 12:06:55 CEST 2012


Revision: 18360
          http://gar.svn.sourceforge.net/gar/?rev=18360&view=rev
Author:   cgrzemba
Date:     2012-06-12 10:06:55 +0000 (Tue, 12 Jun 2012)
Log Message:
-----------
librecad/trunk: add resource path patch

Modified Paths:
--------------
    csw/mgar/pkg/librecad/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/librecad/trunk/files/0001-adjust-rs_system-forcsw.patch

Modified: csw/mgar/pkg/librecad/trunk/Makefile
===================================================================
--- csw/mgar/pkg/librecad/trunk/Makefile	2012-06-12 09:09:13 UTC (rev 18359)
+++ csw/mgar/pkg/librecad/trunk/Makefile	2012-06-12 10:06:55 UTC (rev 18360)
@@ -32,6 +32,7 @@
 
 PATCHFILES += 0000-adjust-for-csw-environment.patch
 PATCHFILES += 0000-add-csw-settings.patch
+PATCHFILES += 0001-adjust-rs_system-forcsw.patch
 
 BUILD_DEP_PKGS += CSWqt4-gxx-dev
 BUILD_DEP_PKGS += CSWmuparser-dev
@@ -66,7 +67,7 @@
 	ginstall -m 755   $(WORKSRC)/unix/librecad $(DESTDIR)$(bindir)
 	ginstall -m 755   $(WORKSRC)/unix/ttf2lff $(DESTDIR)$(bindir)
 	ginstall -d $(DESTDIR)$(datadir)/resources
-	gcp -rfp  $(WORKSRC)/unix/resources $(DESTDIR)$(datadir)
+	gcp -rfp  $(WORKSRC)/unix/resources $(DESTDIR)$(datadir)/librecad
 	@$(MAKECOOKIE)
 
 include gar/category.mk

Added: csw/mgar/pkg/librecad/trunk/files/0001-adjust-rs_system-forcsw.patch
===================================================================
--- csw/mgar/pkg/librecad/trunk/files/0001-adjust-rs_system-forcsw.patch	                        (rev 0)
+++ csw/mgar/pkg/librecad/trunk/files/0001-adjust-rs_system-forcsw.patch	2012-06-12 10:06:55 UTC (rev 18360)
@@ -0,0 +1,18 @@
+--- a/librecad/src/lib/engine/rs_system.cpp
++++ b/librecad/src/lib/engine/rs_system.cpp
+@@ -544,6 +544,7 @@ QStringList RS_System::getDirectoryList(const QString& _subDirectory) {
+ 
+         // Others, RVT April 25, 2011 removed, doesn anybody use that still?
+         // dirList.append("/usr/X11R6/share/" + appDirName + "/" + subDirectory);
++        dirList.append("/opt/csw/share/" + appDirName + "/" + subDirectory);
+ 
+ 
+ #ifdef Q_OS_MAC
+@@ -557,6 +558,7 @@ QStringList RS_System::getDirectoryList(const QString& _subDirectory) {
+         // Add support directory if librecad is run-in-place,
+         // not for Apple because it uses resources this is more for unix systems
+         dirList.append(appDir + "/resources/" + subDirectory);
++        dirList.append("/opt/csw/share/"+ appDirName + "/resources/" + subDirectory);
+ #endif
+ 
+     // Individual directories:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list