Ticket #25547: akonadi-1.3.90.port.diff
File akonadi-1.3.90.port.diff, 4.2 KB (added by bjoern.ricks@…, 14 years ago) |
---|
-
files/patch-akonadi-prefix.h.cmake.diff
1 --- akonadi-prefix.h.cmake.orig 2010-03-25 14:28:55.000000000 -0400 2 +++ akonadi-prefix.h.cmake 2010-03-25 14:29:05.000000000 -0400 1 Index: akonadi-1.3.90/akonadi-prefix.h.cmake 2 =================================================================== 3 --- akonadi-1.3.90.orig/akonadi-prefix.h.cmake 2010-07-04 16:11:13.000000000 +0200 4 +++ akonadi-1.3.90/akonadi-prefix.h.cmake 2010-07-06 15:59:50.000000000 +0200 3 5 @@ -4,4 +4,4 @@ 4 6 #define AKONADIDATA "${SHARE_INSTALL_PREFIX}" 5 7 #define AKONADICONFIG "${CONFIG_INSTALL_DIR}" -
files/patch-akonadi-libs-xdgdatadirs.diff
1 Index: akonadi-1.3.90/libs/xdgbasedirs.cpp 2 =================================================================== 3 --- akonadi-1.3.90.orig/libs/xdgbasedirs.cpp 2010-07-04 16:10:58.000000000 +0200 4 +++ akonadi-1.3.90/libs/xdgbasedirs.cpp 2010-07-06 16:19:53.000000000 +0200 5 @@ -114,7 +114,7 @@ 6 { 7 if ( qstrncmp( "data", resource, 4 ) == 0 ) { 8 if ( instance()->mDataDirs.isEmpty() ) { 9 - QStringList dataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "/usr/local/share:/usr/share" ); 10 + QStringList dataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "/usr/local/share:/usr/share:@@PREFIX@@/share" ); 11 12 #ifdef Q_OS_WIN 13 const QString prefixDataDir = QLatin1String( AKONADIPREFIX "/" AKONADIDATA ); -
Portfile
5 5 PortGroup kde4 1.0 6 6 7 7 name akonadi 8 version 1.3.1 9 revision 1 8 version 1.3.90 10 9 categories devel kde kde4 11 10 maintainers nomaintainer 12 11 description A personal information management storage service. … … 16 15 homepage http://pim.kde.org/akonadi/ 17 16 master_sites http://download.akonadi-project.org/ 18 17 use_bzip2 yes 19 checksums md5 e6eef3ed5c28d55f4b6530544e379413\20 sha1 b6e97634878fe52785f3dec7d6394a18579d4a50\21 rmd160 487408ad3ac49983b9151aba358225f203ed19a118 checksums md5 3536b65df3b3d5f43f55e2f72e9a0130 \ 19 sha1 7759a2ee55c8f76fad6ee4fb3197d55c201d8613 \ 20 rmd160 874eac7d06651c61e6f61fd03c40ae6c0699a90a 22 21 23 depends_build-append port:qt4-mac 24 depends_lib-append port:soprano \ 25 port:boost \ 26 port:shared-mime-info 27 depends_run-append path:bin/mysql5:mysql5-server 22 patchfiles patch-akonadi-prefix.h.cmake.diff \ 23 patch-akonadi-libs-xdgdatadirs.diff 24 patch.pre_args -p1 25 patch.dir ${workpath}/${distname} 28 26 29 patch.dir ${workpath}/${distname}30 patchfiles patch-akonadi-prefix.h.cmake.diff31 27 post-patch { 32 28 reinplace s|@@APPS@@|${applications_dir}| ${workpath}/${distname}/akonadi-prefix.h.cmake 29 reinplace s|@@PREFIX@@|${prefix}| ${workpath}/${distname}/libs/xdgbasedirs.cpp 33 30 } 34 31 32 depends_build-append port:shared-mime-info 33 34 depends_lib-append port:soprano \ 35 port:boost \ 36 port:qt4-mac \ 37 port:sqlite3 38 39 depends_run-append path:bin/mysql5:mysql5-server 40 41 35 42 configure.args-append -DMYSQLD_EXECUTABLE="${prefix}/libexec/mysqld" \ 43 -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE \ 36 44 ../${distname} 37 45 38 46 platform darwin 9 { … … 44 52 } 45 53 } 46 54 55 post-activate { 56 ui_debug "Updating MIME database..." 57 system "${prefix}/bin/update-mime-database ${prefix}/share/mime" 58 } 59 60 post-deactivate { 61 ui_debug "Updating MIME database..." 62 system "${prefix}/bin/update-mime-database ${prefix}/share/mime" 63 } 64 47 65 livecheck.type regex 48 66 livecheck.url ${master_sites} 49 67 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"