Ticket #30077: strigi-Portfile.diff
File strigi-Portfile.diff, 5.5 KB (added by nerdling (Jeremy Lavergne), 13 years ago) |
---|
-
files/strigi-fix-check-gcc-visibility-macro-ccache.patch
1 diff -uNr strigi-0.5.7.orig/cmake/MacroCheckGccVisibility.cmake strigi-0.5.7/cmake/MacroCheckGccVisibility.cmake2 --- strigi-0.5.7.orig/cmake/MacroCheckGccVisibility.cmake 2007-10-26 08:25:39.000000000 -04003 +++ strigi-0.5.7/cmake/MacroCheckGccVisibility.cmake 2008-05-19 01:28:13.000000000 -04004 @@ -13,7 +13,7 @@5 check_cxx_compiler_flag(-fvisibility=hidden ${GccVisibility})6 7 # get the gcc version8 - exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)9 + exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info)10 11 string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")12 # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: -
files/strigi-dbus-types.patch
1 --- strigi-0.7.0/src/daemon/dbus/dbuscpp/dbusmessagereader.horig 2009-09-23 21:37:10 +02002 +++ strigi-0.7.0/src/daemon/dbus/dbuscpp/dbusmessagereader.h 2009-09-23 21:38:03 +02003 @@ -60,10 +60,10 @@ public:4 DBusMessageReader& operator>>(std::vector<int32_t>& s);5 DBusMessageReader& operator>>(std::vector<uint32_t>& s);6 DBusMessageReader& operator>>(std::string& s);7 - DBusMessageReader& operator>>(dbus_int32_t& s);8 - DBusMessageReader& operator>>(dbus_uint32_t& s);9 - DBusMessageReader& operator>>(dbus_uint64_t& s);10 - DBusMessageReader& operator>>(dbus_int64_t& s);11 + DBusMessageReader& operator>>(int32_t& s);12 + DBusMessageReader& operator>>(uint32_t& s);13 + DBusMessageReader& operator>>(uint64_t& s);14 + DBusMessageReader& operator>>(int64_t& s);15 DBusMessageReader& operator>>(std::multimap<int, std::string>&);16 DBusMessageReader& operator>>(std::vector<std::pair<bool, std::string> >&);17 bool isOk() const { return ok; }18 --- strigi-0.7.0/src/daemon/dbus/dbuscpp/dbusmessagereader.cpporig 2009-09-23 21:37:07 +020019 +++ strigi-0.7.0/src/daemon/dbus/dbuscpp/dbusmessagereader.cpp 2009-09-23 21:37:47 +020020 @@ -29,7 +29,7 @@ DBusMessageReader::DBusMessageReader(DBu21 }22 }23 DBusMessageReader&24 -DBusMessageReader::operator>>(dbus_uint32_t& s) {25 +DBusMessageReader::operator>>(uint32_t& s) {26 if (!isOk()) return *this;27 if (DBUS_TYPE_UINT32 != dbus_message_iter_get_arg_type(&it)28 && DBUS_TYPE_BOOLEAN != dbus_message_iter_get_arg_type(&it)) {29 @@ -52,7 +52,7 @@ DBusMessageReader::operator>>(int32_t& s30 return *this;31 }32 DBusMessageReader&33 -DBusMessageReader::operator>>(dbus_uint64_t& s) {34 +DBusMessageReader::operator>>(uint64_t& s) {35 if (!isOk()) return *this;36 if (DBUS_TYPE_UINT64 != dbus_message_iter_get_arg_type(&it)) {37 close(); -
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup cmake 1.0 6 if {[variant_isset qt4]} { 7 PortGroup qt4 1.0 8 } 5 PortGroup kde4 1.1 9 6 10 7 name strigi 11 version 0. 6.48 version 0.7.5 12 9 categories devel 13 10 maintainers gmail.com:clubjuggler openmaintainer 14 11 description Fastest and smallest desktop searching program … … 17 14 homepage http://strigi.sourceforge.net/ 18 15 master_sites sourceforge 19 16 use_bzip2 yes 20 patchfiles strigi-fix-check-gcc-visibility-macro-ccache.patch strigi-dbus-types.patch21 patch.pre_args -p122 17 23 18 depends_lib port:bzip2 \ 24 19 port:clucene \ 25 20 port:dbus \ 26 21 port:libxml2 \ 22 port:ffmpeg \ 27 23 port:zlib 28 24 29 checksums md5 324fd9606ac77765501717ff92c04f9a \ 30 sha1 e91f31cc59fdfc303b662a8af899efe1365643bf \ 31 rmd160 4b72de166b077778caa2b3ff31c2168a62155bd1 25 checksums sha1 0aa3632e07c58f2ab5c515004b790bda6cfefbf5 \ 26 rmd160 2cf9fa372de2bc06abcee25d0f41fa5f4916fa3c 32 27 33 28 configure.args-append -DICONV_INCLUDE_DIR:PATH=${prefix}/include \ 34 -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \ 35 -DLIBXML2_INCLUDE_DIR:PATH=${prefix}/include/libxml2 \ 36 -DLIBXML2_LIBRARIES:FILEPATH=${prefix}/lib/libxml2.dylib \ 37 -DENABLE_QT4:BOOL=OFF 29 -DLOG4CXX_INCLUDE_DIR=${prefix}/include/log4cxx \ 30 -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib 38 31 39 32 # Best practice for CMake dictates that builds should be out of source. 40 33 # However, it appears that strigi uses java to create source files and … … 45 38 46 39 post-destroot { 47 40 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 48 xinstall -m 644 -W ${worksrcpath} COPYING README AUTHORS ChangeLog TODO${destroot}${prefix}/share/doc/${name}41 xinstall -m 644 -W ${worksrcpath} COPYING AUTHORS ChangeLog ${destroot}${prefix}/share/doc/${name} 49 42 } 50 43 51 variant qt4 description {Use qt4-mac} {52 configure.args-delete -DENABLE_QT4:BOOL=OFF53 }54 55 44 livecheck.url http://sourceforge.net/projects/strigi/files/ 56 45 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"