weechat 0.4.3

Closes Homebrew/homebrew#26556.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Gregory Pakosz 2014-02-09 23:27:27 +01:00 committed by Mike McQuaid
parent ec83dcdd25
commit 2ec407895b
1 changed files with 2 additions and 32 deletions

View File

@ -2,8 +2,8 @@ require 'formula'
class Weechat < Formula
homepage 'http://www.weechat.org'
url 'http://www.weechat.net/files/src/weechat-0.4.2.tar.bz2'
sha1 '837892c8eb24b3d7de26e17e87aafe88d7da0862'
url 'http://www.weechat.net/files/src/weechat-0.4.3.tar.bz2'
sha1 'c9043ae4df8057c1410eeaf4c5c8818e97963e16'
head 'git://git.savannah.nongnu.org/weechat.git'
@ -18,14 +18,6 @@ class Weechat < Formula
option 'with-perl', 'Build the perl module'
option 'with-ruby', 'Build the ruby module'
# cmake finds brewed python when installed, but when searching for the
# libraries it searches for system libraries first. This patch disables
# default search paths and ensures that brewed python is found first, if not
# it falls back to system python.
def patches
DATA
end
def install
args = std_cmake_args + %W[
-DPREFIX=#{prefix}
@ -57,25 +49,3 @@ class Weechat < Formula
EOS
end
end
__END__
--- weechat-0.4.1-original/cmake/FindPython.cmake 2013-05-20 03:06:14.000000000 -0500
+++ weechat-0.4.1/cmake/FindPython.cmake 2013-05-23 14:24:33.000000000 -0500
@@ -41,7 +41,8 @@
ELSE(ENABLE_PYTHON3)
FIND_PROGRAM(PYTHON_EXECUTABLE
NAMES python2.7 python2.6 python2.5 python
- PATHS /usr/bin /usr/local/bin /usr/pkg/bin
+ PATHS HOMEBREW_PREFIX/bin /usr/bin
+ NO_DEFAULT_PATH
)
ENDIF(ENABLE_PYTHON3)
@@ -74,6 +75,7 @@
FIND_LIBRARY(PYTHON_LIBRARY
NAMES python2.7 python2.6 python2.5 python
PATHS ${PYTHON_POSSIBLE_LIB_PATH}
+ NO_DEFAULT_PATH
)
ENDIF(ENABLE_PYTHON3)