openbsd-ports/audio/last.fm/patches/patch-src_libMoose_MooseCommon_cpp
dcoppa ed80a78265 Update to last.fm 1.5.4.27091
Still happy with gcc 3.3.5

Tested on sparc64 and i386
2011-03-30 14:00:48 +00:00

31 lines
1000 B
Plaintext

$OpenBSD: patch-src_libMoose_MooseCommon_cpp,v 1.2 2011/03/30 14:00:48 dcoppa Exp $
--- src/libMoose/MooseCommon.cpp.orig Mon Mar 28 17:17:53 2011
+++ src/libMoose/MooseCommon.cpp Mon Mar 28 17:20:44 2011
@@ -47,7 +47,7 @@ namespace MooseUtils
QString
dataPath( QString file )
{
- return QApplication::applicationDirPath() + "/data/" + file;
+ return "${PREFIX}/share/last.fm/" + file;
}
@@ -112,7 +112,7 @@ servicePath( QString name )
// Hack to get it working with VS2005
dirPath = qApp->applicationDirPath();
#else
- dirPath = qApp->applicationDirPath() + "/services";
+ dirPath = "${PREFIX}/lib/last.fm/services";
#endif
#ifndef QT_NO_DEBUG
@@ -358,7 +358,7 @@ extensionPaths()
// Hack to get it working with VS2005
QString path = qApp->applicationDirPath();
#else
- QString path = qApp->applicationDirPath() + "/extensions";
+ QString path = "${PREFIX}/lib/last.fm/extensions";
#endif
#ifndef QT_NO_DEBUG