summaryrefslogtreecommitdiff
path: root/extra/weechat
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-30 11:55:09 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-30 11:55:09 +0200
commitb0fdec08ea3b6e162b710ca98b0dd56f9ae105eb (patch)
tree376cc5751d9a587815d7270caa61070f38832766 /extra/weechat
parent8abbf69cf497489fb7a0ac3538cb6975285486b7 (diff)
parent76ee9007095484a113d1856786b81e2d2fae8202 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/apcupsd/PKGBUILD community/bmp-musepack/PKGBUILD community/bmp-wma/PKGBUILD community/bonnie++/PKGBUILD community/cantata/PKGBUILD community/checkinstall/PKGBUILD community/chrootuid/PKGBUILD community/compiz-bcop/PKGBUILD community/compiz-fusion-plugins-extra/PKGBUILD community/compiz-fusion-plugins-main/PKGBUILD community/compiz/PKGBUILD community/compizconfig-backend-gconf/PKGBUILD community/compizconfig-python/PKGBUILD community/ekg2/PKGBUILD community/emerald/PKGBUILD community/fbgetty/PKGBUILD community/flumotion/PKGBUILD community/leafnode/PKGBUILD community/libcompizconfig/PKGBUILD community/libdnet/PKGBUILD community/libee/PKGBUILD community/libtxc_dxtn/PKGBUILD community/linux-tools/PKGBUILD community/openntpd/PKGBUILD community/osiris/PKGBUILD community/perl-package-stash-xs/PKGBUILD community/perl-params-util/PKGBUILD community/procstatd/PKGBUILD community/scponly/PKGBUILD community/sniffit/PKGBUILD community/synergy/PKGBUILD community/turbojpeg/PKGBUILD community/unbound/PKGBUILD community/uucp/PKGBUILD core/gawk/PKGBUILD core/ifenslave/PKGBUILD core/jfsutils/PKGBUILD core/openldap/PKGBUILD core/rfkill/PKGBUILD core/systemd/PKGBUILD core/wireless_tools/PKGBUILD core/xinetd/PKGBUILD extra/avahi/PKGBUILD extra/calligra/PKGBUILD extra/clutter-gst/PKGBUILD extra/flac/PKGBUILD extra/hddtemp/PKGBUILD extra/libbluray/PKGBUILD extra/libdmx/PKGBUILD extra/libfs/PKGBUILD extra/libjpeg-turbo/PKGBUILD extra/libtiff/PKGBUILD extra/libxau/PKGBUILD extra/libxfixes/PKGBUILD extra/licq/PKGBUILD extra/mariadb/PKGBUILD extra/mesa/PKGBUILD extra/perl-guard/PKGBUILD extra/perl-template-toolkit/PKGBUILD extra/pidgin/PKGBUILD extra/pigeonhole/PKGBUILD extra/poppler/PKGBUILD extra/postgresql/PKGBUILD extra/python-geoip/PKGBUILD extra/python/PKGBUILD extra/samba/PKGBUILD extra/sqlite/PKGBUILD extra/vde2/PKGBUILD extra/vim/PKGBUILD extra/vlc/PKGBUILD extra/wireshark/PKGBUILD extra/xfce4-dict/PKGBUILD libre/libquicktime-libre/PKGBUILD libre/xscreensaver-libre/PKGBUILD
Diffstat (limited to 'extra/weechat')
-rw-r--r--extra/weechat/PKGBUILD18
-rw-r--r--extra/weechat/ruby-2.0.0-crash-fix.diff76
2 files changed, 6 insertions, 88 deletions
diff --git a/extra/weechat/PKGBUILD b/extra/weechat/PKGBUILD
index d67f26041..cc5c661b3 100644
--- a/extra/weechat/PKGBUILD
+++ b/extra/weechat/PKGBUILD
@@ -1,30 +1,24 @@
-# $Id: PKGBUILD 180587 2013-03-23 23:09:44Z td123 $
+# $Id: PKGBUILD 186429 2013-05-26 09:26:13Z bluewind $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>
pkgname=weechat
-pkgver=0.4.0
-pkgrel=3
+pkgver=0.4.1
+pkgrel=2
pkgdesc="Fast, light and extensible IRC client (curses UI)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.weechat.org/"
license=('GPL')
depends=('gnutls' 'curl' 'libgcrypt')
-makedepends=('cmake' 'pkgconfig' 'perl' 'python2' 'lua' 'tcl>=8.6.0' 'ruby' 'aspell' 'guile')
+makedepends=('cmake' 'pkg-config' 'perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell' 'guile')
optdepends=('perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell' 'guile')
options=('!libtool')
-source=("http://www.weechat.org/files/src/${pkgname}-${pkgver}.tar.bz2"
- 'ruby-2.0.0-crash-fix.diff')
-md5sums=('b2e10ca1e3a72142fcc8d58c7c774b1b'
- '8bafb0ec603af018e2d66155640685b4')
+source=("http://www.weechat.org/files/src/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('071d6f1cd21c892cae126af21095c43f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- # fix: https://bugs.archlinux.org/task/34342
- # original commit: http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=4fdbb83a079f24a742633fd4d02084911580c19c
- patch -Np1 -i ${srcdir}/ruby-2.0.0-crash-fix.diff
-
mkdir build
cd build
cmake .. -DPREFIX=/usr \
diff --git a/extra/weechat/ruby-2.0.0-crash-fix.diff b/extra/weechat/ruby-2.0.0-crash-fix.diff
deleted file mode 100644
index bfc816ade..000000000
--- a/extra/weechat/ruby-2.0.0-crash-fix.diff
+++ /dev/null
@@ -1,76 +0,0 @@
-X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=blobdiff_plain;f=src%2Fplugins%2Fruby%2Fweechat-ruby-api.c;h=101caec961829de03f8097edc63f497eab99aaa3;hp=bbc2fbcbe3c5290a8a975c4676a85a8c7e0998b7;hb=4fdbb83a079f24a742633fd4d02084911580c19c;hpb=55e58811b3df451db4f95b1035a39f5659788989
-
-diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c
-index bbc2fbc..101caec 100644
---- a/src/plugins/ruby/weechat-ruby-api.c
-+++ b/src/plugins/ruby/weechat-ruby-api.c
-@@ -1333,28 +1333,21 @@ weechat_ruby_api_config_new_option (VALUE class, VALUE config_file,
- VALUE description, VALUE string_values,
- VALUE min, VALUE max, VALUE default_value,
- VALUE value, VALUE null_value_allowed,
-- VALUE function_check_value,
-- VALUE data_check_value,
-- VALUE function_change,
-- VALUE data_change,
-- VALUE function_delete,
-- VALUE data_delete)
-+ VALUE callbacks)
- {
- char *c_config_file, *c_section, *c_name, *c_type, *c_description;
- char *c_string_values, *c_default_value, *c_value;
- char *c_function_check_value, *c_data_check_value, *c_function_change;
- char *c_data_change, *c_function_delete, *c_data_delete, *result;
- int c_min, c_max, c_null_value_allowed;
-- VALUE return_value;
-+ VALUE function_check_value, data_check_value, function_change, data_change;
-+ VALUE function_delete, data_delete, return_value;
-
- API_FUNC(1, "config_new_option", API_RETURN_EMPTY);
- if (NIL_P (config_file) || NIL_P (section) || NIL_P (name) || NIL_P (type)
- || NIL_P (description) || NIL_P (string_values) || NIL_P (min)
- || NIL_P (max) || NIL_P (default_value) || NIL_P (value)
-- || NIL_P (null_value_allowed) || NIL_P (function_check_value)
-- || NIL_P (data_check_value) || NIL_P (function_change)
-- || NIL_P (data_change) || NIL_P (function_delete)
-- || NIL_P (data_delete))
-+ || NIL_P (null_value_allowed) || NIL_P (callbacks))
- API_WRONG_ARGS(API_RETURN_EMPTY);
-
- Check_Type (config_file, T_STRING);
-@@ -1368,12 +1361,21 @@ weechat_ruby_api_config_new_option (VALUE class, VALUE config_file,
- Check_Type (default_value, T_STRING);
- Check_Type (value, T_STRING);
- Check_Type (null_value_allowed, T_FIXNUM);
-- Check_Type (function_check_value, T_STRING);
-- Check_Type (data_check_value, T_STRING);
-- Check_Type (function_change, T_STRING);
-- Check_Type (data_change, T_STRING);
-- Check_Type (function_delete, T_STRING);
-- Check_Type (data_delete, T_STRING);
-+ Check_Type (callbacks, T_ARRAY);
-+
-+ /*
-+ * due to a Ruby limitation (15 arguments max by function), we receive the
-+ * the callbacks in an array of 6 strings (3 callbacks + 3 data)
-+ */
-+ if (RARRAY_LEN(callbacks) != 6)
-+ API_WRONG_ARGS(API_RETURN_EMPTY);
-+
-+ function_check_value = rb_ary_entry (callbacks, 0);
-+ data_check_value = rb_ary_entry (callbacks, 1);
-+ function_change = rb_ary_entry (callbacks, 2);
-+ data_change = rb_ary_entry (callbacks, 3);
-+ function_delete = rb_ary_entry (callbacks, 4);
-+ data_delete = rb_ary_entry (callbacks, 5);
-
- c_config_file = StringValuePtr (config_file);
- c_section = StringValuePtr (section);
-@@ -5915,7 +5917,7 @@ weechat_ruby_api_init (VALUE ruby_mWeechat)
- API_DEF_FUNC(config_new, 3);
- API_DEF_FUNC(config_new_section, 14);
- API_DEF_FUNC(config_search_section, 2);
-- API_DEF_FUNC(config_new_option, 17);
-+ API_DEF_FUNC(config_new_option, 12);
- API_DEF_FUNC(config_search_option, 3);
- API_DEF_FUNC(config_string_to_boolean, 1);
- API_DEF_FUNC(config_option_reset, 2);