[112875] trunk/dports/devel/clucene
ryandesign at macports.org
ryandesign at macports.org
Sun Nov 3 00:10:04 PDT 2013
Revision: 112875
https://trac.macports.org/changeset/112875
Author: ryandesign at macports.org
Date: 2013-11-03 00:10:04 -0700 (Sun, 03 Nov 2013)
Log Message:
-----------
clucene: fix build on Mavericks (#40899)
Modified Paths:
--------------
trunk/dports/devel/clucene/Portfile
Added Paths:
-----------
trunk/dports/devel/clucene/files/patch-src-shared-CLucene-LuceneThreads.h.diff
trunk/dports/devel/clucene/files/patch-src-shared-CLucene-config-repl_tchar.h.diff
Modified: trunk/dports/devel/clucene/Portfile
===================================================================
--- trunk/dports/devel/clucene/Portfile 2013-11-03 07:04:33 UTC (rev 112874)
+++ trunk/dports/devel/clucene/Portfile 2013-11-03 07:10:04 UTC (rev 112875)
@@ -29,5 +29,8 @@
# http://sourceforge.net/tracker/?func=detail&aid=3461512&group_id=80013&atid=558446
patchfiles 0001-Fix-.pc-file-by-adding-clucene-shared-library.patch
+patchfiles-append patch-src-shared-CLucene-LuceneThreads.h.diff \
+ patch-src-shared-CLucene-config-repl_tchar.h.diff
+
livecheck.regex "${name}-core-(\\d+\.\\d+\.\\d+\[a-z\]*)${extract.suffix}"
Added: trunk/dports/devel/clucene/files/patch-src-shared-CLucene-LuceneThreads.h.diff
===================================================================
--- trunk/dports/devel/clucene/files/patch-src-shared-CLucene-LuceneThreads.h.diff (rev 0)
+++ trunk/dports/devel/clucene/files/patch-src-shared-CLucene-LuceneThreads.h.diff 2013-11-03 07:10:04 UTC (rev 112875)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/clucene/bugs/219/
+--- a/src/shared/CLucene/LuceneThreads.h
++++ b/src/shared/CLucene/LuceneThreads.h
+@@ -7,6 +7,9 @@
+ #ifndef _LuceneThreads_h
+ #define _LuceneThreads_h
+
++#if defined(_CL_HAVE_PTHREAD)
++ #include <pthread.h>
++#endif
+
+ CL_NS_DEF(util)
+ class CLuceneThreadIdCompare;
Added: trunk/dports/devel/clucene/files/patch-src-shared-CLucene-config-repl_tchar.h.diff
===================================================================
--- trunk/dports/devel/clucene/files/patch-src-shared-CLucene-config-repl_tchar.h.diff (rev 0)
+++ trunk/dports/devel/clucene/files/patch-src-shared-CLucene-config-repl_tchar.h.diff 2013-11-03 07:10:04 UTC (rev 112875)
@@ -0,0 +1,63 @@
+https://sourceforge.net/p/clucene/bugs/219/
+--- a/src/shared/CLucene/config/repl_tchar.h
++++ b/src/shared/CLucene/config/repl_tchar.h
+@@ -28,26 +28,26 @@
+ #define _istdigit iswdigit //* digit char check
+ #define _totlower towlower //* convert char to lower case
+ #define _totupper towupper //* convert char to lower case
+- #define _tcslwr wcslwr //* convert string to lower case
++ #define _tcslwr std::wcslwr //* convert string to lower case
+
+ //these are the string handling functions
+ //we may need to create wide-character/multi-byte replacements for these
+- #define _tcscpy wcscpy //copy a string to another string
+- #define _tcsncpy wcsncpy //copy a specified amount of one string to another string.
+- #define _tcscat wcscat //copy a string onto the end of the other string
+- #define _tcsncat wcsncat
+- #define _tcschr wcschr //find location of one character
+- #define _tcsstr wcsstr //find location of a string
+- #define _tcslen wcslen //get length of a string
+- #define _tcscmp wcscmp //case sensitive compare two strings
+- #define _tcsncmp wcsncmp //case sensitive compare two strings
+- #define _tcscspn wcscspn //location of any of a set of character in a string
++ #define _tcscpy std::wcscpy //copy a string to another string
++ #define _tcsncpy std::wcsncpy //copy a specified amount of one string to another string.
++ #define _tcscat std::wcscat //copy a string onto the end of the other string
++ #define _tcsncat std::wcsncat
++ #define _tcschr std::wcschr //find location of one character
++ #define _tcsstr std::wcsstr //find location of a string
++ #define _tcslen std::wcslen //get length of a string
++ #define _tcscmp std::wcscmp //case sensitive compare two strings
++ #define _tcsncmp std::wcsncmp //case sensitive compare two strings
++ #define _tcscspn std::wcscspn //location of any of a set of character in a string
+
+ //string compare
+ #ifdef _CL_HAVE_FUNCTION_WCSICMP
+- #define _tcsicmp wcsicmp //* case insensitive compare two string
++ #define _tcsicmp std::wcsicmp //* case insensitive compare two string
+ #else
+- #define _tcsicmp wcscasecmp //* case insensitive compare two string
++ #define _tcsicmp std::wcscasecmp //* case insensitive compare two string
+ #endif
+ #if defined(_CL_HAVE_FUNCTION_WCSDUP)
+ #define _tcsdup wcsdup
+@@ -56,8 +56,8 @@
+ #endif
+
+ //conversion functions
+- #define _tcstod wcstod //convert a string to a double
+- #define _tcstoi64 wcstoll //* convers a string to an 64bit bit integer
++ #define _tcstod std::wcstod //convert a string to a double
++ #define _tcstoi64 std::wcstoll //* convers a string to an 64bit bit integer
+ #define _itot _i64tot
+ #define _i64tot lltow //* converts a 64 bit integer to a string (with base)
+ #else //if defined(_ASCII)
+@@ -105,7 +105,7 @@
+ //some tchar headers miss these...
+ #ifndef _tcstoi64
+ #if defined(_UCS2)
+- #define _tcstoi64 wcstoll //* convers a string to an 64bit bit integer
++ #define _tcstoi64 std::wcstoll //* convers a string to an 64bit bit integer
+ #else
+ #define _tcstoi64 strtoll
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131103/584c789a/attachment-0001.html>
More information about the macports-changes
mailing list