2014-09-11 23:49:22 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-11-18 17:01:30 +00:00
|
|
|
;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net>
|
|
|
|
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
|
2014-09-11 23:49:22 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
;; TODO: Add ruby
|
|
|
|
|
|
|
|
(define-module (gnu packages weechat)
|
2015-11-29 18:17:33 +00:00
|
|
|
#:use-module (gnu packages)
|
2014-09-11 23:49:22 +00:00
|
|
|
#:use-module (gnu packages ncurses)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
#:use-module (gnu packages gnupg)
|
|
|
|
#:use-module (gnu packages file)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages lua)
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages tcl)
|
|
|
|
#:use-module (gnu packages aspell)
|
|
|
|
#:use-module (gnu packages curl)
|
|
|
|
#:use-module (gnu packages guile)
|
|
|
|
#:use-module (gnu packages cyrus-sasl)
|
|
|
|
#:use-module (gnu packages autogen)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
gnu: Rename module gnutls to tls.
* gnu/packages/gnutls.scm: Rename to...
* gnu/packages/tls.scm: ... this. Change module name accordingly.
* gnu/packages/{admin.scm, cups.scm, curl.scm, dc.scm, dns.scm, emacs.scm,
ftp.scm, gnome.scm, gnunet.scm, gnupg.scm, gsasl.scm, lynx.scm,
mail.scm, messaging.scm, package-management.scm, shishi.scm,
task-management.scm, version-control.scm, video.scm, vpn.scm,
webkit.scm, weechat.scm, wget.scm, wine.scm, xml.scm}: Adapt module
import to new name.
* gnu-system.am (GNU_SYSTEM_MODULES): Rename gnutls module to tls.
2015-07-03 19:41:22 +00:00
|
|
|
#:use-module (gnu packages tls)
|
2014-09-11 23:49:22 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module ((guix licenses) #:select (gpl3)))
|
|
|
|
|
|
|
|
(define-public weechat
|
|
|
|
(package
|
|
|
|
(name "weechat")
|
2016-01-31 07:19:34 +00:00
|
|
|
(version "1.4")
|
2014-09-11 23:49:22 +00:00
|
|
|
(source (origin
|
2015-11-18 16:35:14 +00:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://weechat.org/files/src/weechat-"
|
2014-09-11 23:49:22 +00:00
|
|
|
version ".tar.gz"))
|
2015-11-18 16:35:14 +00:00
|
|
|
(sha256
|
2015-11-29 18:17:33 +00:00
|
|
|
(base32
|
2016-01-31 07:19:34 +00:00
|
|
|
"19apd3hav77v74j7flicai0843k7wrkr2fd3q2ayvzkgnbrrp1ai"))
|
2015-11-29 18:17:33 +00:00
|
|
|
(patches (list (search-patch "weechat-python.patch")))))
|
2014-09-11 23:49:22 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs `(("autoconf" ,autoconf)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("file" ,file)
|
|
|
|
("autogen" ,autogen)
|
2015-01-07 08:44:10 +00:00
|
|
|
("automake" ,automake)
|
|
|
|
("libtool" ,libtool)))
|
2014-09-11 23:49:22 +00:00
|
|
|
(inputs `(("ncurses" ,ncurses)
|
|
|
|
("diffutils" ,diffutils)
|
|
|
|
("gettext" ,gnu-gettext)
|
2015-01-07 08:44:10 +00:00
|
|
|
("libltdl" ,libltdl)
|
2014-09-11 23:49:22 +00:00
|
|
|
("libgcrypt" ,libgcrypt "out")
|
|
|
|
("zlib" ,zlib)
|
|
|
|
("aspell" ,aspell)
|
|
|
|
("curl" ,curl)
|
|
|
|
("gnutls" ,gnutls)
|
|
|
|
("guile" ,guile-2.0)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("cyrus-sasl" ,cyrus-sasl)
|
|
|
|
("lua" ,lua-5.1)
|
|
|
|
("python" ,python-2)
|
|
|
|
("perl" ,perl)
|
|
|
|
("tcl" ,tcl)))
|
2015-11-18 16:35:14 +00:00
|
|
|
(arguments
|
|
|
|
`(#:configure-flags (list (string-append
|
|
|
|
"--with-tclconfig="
|
|
|
|
(assoc-ref %build-inputs "tcl") "/lib"))
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'autogen
|
|
|
|
(lambda _
|
2015-11-18 16:42:44 +00:00
|
|
|
(zero? (system* "./autogen.sh"))))
|
|
|
|
(add-before 'build 'set-python-file-name
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "src/plugins/python/weechat-python.c"
|
2015-11-18 17:01:50 +00:00
|
|
|
(("python2_bin = weechat_python_get_python2_bin.*;")
|
|
|
|
(string-append "python2_bin = strdup (\""
|
2015-11-18 16:42:44 +00:00
|
|
|
(assoc-ref inputs "python")
|
2015-11-18 17:01:50 +00:00
|
|
|
"/bin/python\");\n")))
|
2015-11-18 16:42:44 +00:00
|
|
|
#t)))))
|
2014-09-11 23:49:22 +00:00
|
|
|
(synopsis "Extensible chat client")
|
|
|
|
(description "WeeChat (Wee Enhanced Environment for Chat) is an
|
|
|
|
Internet Relay Chat client, which is designed to be light and fast.
|
|
|
|
The client uses a curses frontend, and there are remote interfaces
|
|
|
|
for Web, Qt, Android and Emacs. In WeeChat everything can be done
|
|
|
|
with a keyboard, though it also supports mouse. It is customizable
|
|
|
|
and extensible with plugins and scripts.")
|
|
|
|
(home-page "http://www.weechat.org/")
|
|
|
|
(license gpl3)))
|