Created
November 24, 2012 09:58
-
-
Save stanaka/4139081 to your computer and use it in GitHub Desktop.
weechat patch for enabling charset plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/weechat.rb b/Library/Formula/weechat.rb | |
index 52eee04..8fdbb0d 100644 | |
--- a/Library/Formula/weechat.rb | |
+++ b/Library/Formula/weechat.rb | |
@@ -20,6 +20,10 @@ class Weechat < Formula | |
option 'python', 'Build the python module (requires framework Python)' | |
option 'aspell', 'Build the aspell module that checks your spelling' | |
+ def patches | |
+ DATA | |
+ end | |
+ | |
def install | |
# Remove all arch flags from the PERL_*FLAGS as we specify them ourselves. | |
# This messes up because the system perl is a fat binary with 32, 64 and PPC | |
@@ -66,3 +70,33 @@ class Weechat < Formula | |
EOS | |
end | |
end | |
+ | |
+__END__ | |
+diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake | |
+index a7b2d24..371d630 100644 | |
+--- a/cmake/FindIconv.cmake | |
++++ b/cmake/FindIconv.cmake | |
+@@ -43,10 +43,7 @@ FIND_LIBRARY(ICONV_LIBRARY | |
+ IF(ICONV_INCLUDE_PATH) | |
+ IF(ICONV_LIBRARY) | |
+ STRING(REGEX REPLACE "/[^/]*$" "" ICONV_LIB_PATH "${ICONV_LIBRARY}") | |
+- CHECK_LIBRARY_EXISTS(iconv libiconv_open ${ICONV_LIB_PATH} ICONV_FOUND) | |
+- IF(NOT ICONV_FOUND) | |
+- CHECK_LIBRARY_EXISTS(iconv iconv_open ${ICONV_LIB_PATH} ICONV_FOUND) | |
+- ENDIF(NOT ICONV_FOUND) | |
++ CHECK_LIBRARY_EXISTS(iconv iconv_open ${ICONV_LIB_PATH} ICONV_FOUND) | |
+ ELSE(ICONV_LIBRARY) | |
+ CHECK_FUNCTION_EXISTS(iconv_open ICONV_FOUND) | |
+ ENDIF(ICONV_LIBRARY) | |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |
+index 50d2f01..f812c74 100644 | |
+--- a/src/CMakeLists.txt | |
++++ b/src/CMakeLists.txt | |
+@@ -92,6 +92,7 @@ ENDIF(NOT DISABLE_GNUTLS) | |
+ FIND_PACKAGE(Iconv) | |
+ IF(ICONV_FOUND) | |
+ ADD_DEFINITIONS( -DHAVE_ICONV ) | |
++ LIST(APPEND EXTRA_LIBS iconv) | |
+ ENDIF(ICONV_FOUND) | |
+ | |
+ FIND_LIBRARY(DL_LIBRARY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment