2014-09-12 01:49:22 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-11-18 18:01:30 +01:00
|
|
|
;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net>
|
|
|
|
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
|
2014-09-12 01:49:22 +02: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)
|
|
|
|
#: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 21:41:22 +02:00
|
|
|
#:use-module (gnu packages tls)
|
2014-09-12 01:49:22 +02: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")
|
2015-08-25 13:28:14 +02:00
|
|
|
(version "1.3")
|
2014-09-12 01:49:22 +02:00
|
|
|
(source (origin
|
2015-11-18 17:35:14 +01:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://weechat.org/files/src/weechat-"
|
2014-09-12 01:49:22 +02:00
|
|
|
version ".tar.gz"))
|
2015-11-18 17:35:14 +01:00
|
|
|
(sha256
|
|
|
|
(base32 "13b7dfs3sn71c51fi0bli5rzlsppil6gg1lzik3k8l43yhhqyv2w"))))
|
2014-09-12 01:49:22 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs `(("autoconf" ,autoconf)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("file" ,file)
|
|
|
|
("autogen" ,autogen)
|
2015-01-07 09:44:10 +01:00
|
|
|
("automake" ,automake)
|
|
|
|
("libtool" ,libtool)))
|
2014-09-12 01:49:22 +02:00
|
|
|
(inputs `(("ncurses" ,ncurses)
|
|
|
|
("diffutils" ,diffutils)
|
|
|
|
("gettext" ,gnu-gettext)
|
2015-01-07 09:44:10 +01:00
|
|
|
("libltdl" ,libltdl)
|
2014-09-12 01:49:22 +02: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 17:35:14 +01: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 17:42:44 +01: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 18:01:50 +01:00
|
|
|
(("python2_bin = weechat_python_get_python2_bin.*;")
|
|
|
|
(string-append "python2_bin = strdup (\""
|
2015-11-18 17:42:44 +01:00
|
|
|
(assoc-ref inputs "python")
|
2015-11-18 18:01:50 +01:00
|
|
|
"/bin/python\");\n")))
|
2015-11-18 17:42:44 +01:00
|
|
|
#t)))))
|
2014-09-12 01:49:22 +02: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)))
|