diff options
author | Anatol Pomozov | 2015-12-14 09:08:47 -0800 |
---|---|---|
committer | Anatol Pomozov | 2015-12-14 09:27:09 -0800 |
commit | 297aac01c54fd44e8454f84a4595396ebd1d2833 (patch) | |
tree | 6ebdc6dd33c28c27c78758ed32aeba4da52225f1 /Use-usr-share-for-resource-files-bin-folder-is-for-b.patch | |
parent | 241c10ffba16a42379c1a9a4467995597ca5a8c0 (diff) | |
download | aur-297aac01c54fd44e8454f84a4595396ebd1d2833.tar.gz |
updpkg
Diffstat (limited to 'Use-usr-share-for-resource-files-bin-folder-is-for-b.patch')
-rw-r--r-- | Use-usr-share-for-resource-files-bin-folder-is-for-b.patch | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Use-usr-share-for-resource-files-bin-folder-is-for-b.patch b/Use-usr-share-for-resource-files-bin-folder-is-for-b.patch new file mode 100644 index 000000000000..001f9ca87aae --- /dev/null +++ b/Use-usr-share-for-resource-files-bin-folder-is-for-b.patch @@ -0,0 +1,77 @@ +From 3ccc5276eefd927c6e999b22fb6cc997b79fc8a4 Mon Sep 17 00:00:00 2001 +From: Anatol Pomozov <anatol.pomozov@gmail.com> +Date: Mon, 14 Dec 2015 09:05:10 -0800 +Subject: [PATCH] Use /usr/share for resource files bin folder is for + binaries. + +--- + DSView/CMakeLists.txt | 30 +++++++++++++++--------------- + DSView/pv/devicemanager.cpp | 5 +++++ + 2 files changed, 20 insertions(+), 15 deletions(-) + +diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt +index c5703c6..eb8bbc0 100644 +--- a/DSView/CMakeLists.txt ++++ b/DSView/CMakeLists.txt +@@ -352,21 +352,21 @@ set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "/usr/local/lib") + + # Install the executable. + install(TARGETS ${PROJECT_NAME} DESTINATION bin/) +-install(FILES res/DSLogic.fw DESTINATION bin/res/) +-install(FILES res/DSLogic33.bin DESTINATION bin/res/) +-install(FILES res/DSLogic50.bin DESTINATION bin/res/) +-install(FILES res/DSLogicPro.fw DESTINATION bin/res/) +-install(FILES res/DSLogicPro.bin DESTINATION bin/res/) +-install(FILES res/DSCope.fw DESTINATION bin/res/) +-install(FILES res/DSCope.bin DESTINATION bin/res/) +-install(FILES res/DSLogic0.dsc DESTINATION bin/res/) +-install(FILES res/DSLogic0.def.dsc DESTINATION bin/res/) +-install(FILES res/DSLogic1.dsc DESTINATION bin/res/) +-install(FILES res/DSLogic1.def.dsc DESTINATION bin/res/) +-install(FILES res/DSLogic2.dsc DESTINATION bin/res/) +-install(FILES res/DSLogic2.def.dsc DESTINATION bin/res/) +-install(FILES res/DSCope1.dsc DESTINATION bin/res/) +-install(FILES res/DSCope1.def.dsc DESTINATION bin/res/) ++install(FILES res/DSLogic.fw DESTINATION share/dsview/) ++install(FILES res/DSLogic33.bin DESTINATION share/dsview/) ++install(FILES res/DSLogic50.bin DESTINATION share/dsview/) ++install(FILES res/DSLogicPro.fw DESTINATION share/dsview/) ++install(FILES res/DSLogicPro.bin DESTINATION share/dsview/) ++install(FILES res/DSCope.fw DESTINATION share/dsview/) ++install(FILES res/DSCope.bin DESTINATION share/dsview/) ++install(FILES res/DSLogic0.dsc DESTINATION share/dsview/) ++install(FILES res/DSLogic0.def.dsc DESTINATION share/dsview/) ++install(FILES res/DSLogic1.dsc DESTINATION share/dsview/) ++install(FILES res/DSLogic1.def.dsc DESTINATION share/dsview/) ++install(FILES res/DSLogic2.dsc DESTINATION share/dsview/) ++install(FILES res/DSLogic2.def.dsc DESTINATION share/dsview/) ++install(FILES res/DSCope1.dsc DESTINATION share/dsview/) ++install(FILES res/DSCope1.def.dsc DESTINATION share/dsview/) + + #=============================================================================== + #= Packaging (handled by CPack) +diff --git a/DSView/pv/devicemanager.cpp b/DSView/pv/devicemanager.cpp +index 066af64..d6406d9 100644 +--- a/DSView/pv/devicemanager.cpp ++++ b/DSView/pv/devicemanager.cpp +@@ -103,12 +103,17 @@ std::list<boost::shared_ptr<device::DevInst> > DeviceManager::driver_scan( + + // Check If DSL hardware driver + if (strncmp(driver->name, "virtual", 7)) { ++ /* + QDir dir(QCoreApplication::applicationDirPath()); + if (!dir.cd("res")) + return driver_devices; + QString str = dir.absolutePath() + "/"; + QString str_utf8 = QString::fromLocal8Bit(str.toLocal8Bit()); + strcpy(config_path, str_utf8.toUtf8().data()); ++ */ ++ // dirty ++ // maybe use QStandardPaths::standardLocations(QStandardPaths::AppDataLocation); ++ strcpy(config_path, "/usr/share/dsview/"); + } + + // Do the scan +-- +2.6.4 + |