From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH] gnu: Add epic5. Date: Sun, 09 Oct 2016 18:49:29 +0000 Message-ID: <87a8edl5mu.fsf@we.make.ritual.n0.is> References: <20161009184411.30748-1-ngillmann@runbox.com> <20161009184411.30748-2-ngillmann@runbox.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btJAM-0003qk-Gm for guix-devel@gnu.org; Sun, 09 Oct 2016 14:49:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btJAJ-0000Rc-6s for guix-devel@gnu.org; Sun, 09 Oct 2016 14:49:42 -0400 Received: from aibo.runbox.com ([91.220.196.211]:34149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btJAI-0000RB-SQ for guix-devel@gnu.org; Sun, 09 Oct 2016 14:49:39 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1btJAI-0001sy-2V for guix-devel@gnu.org; Sun, 09 Oct 2016 20:49:38 +0200 Received: from xd9bb9abd.dyn.telefonica.de ([217.187.154.189] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1btJAA-0005wc-C3 for guix-devel@gnu.org; Sun, 09 Oct 2016 20:49:30 +0200 In-Reply-To: <20161009184411.30748-2-ngillmann@runbox.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org ng0 writes: > From: ng0 > > * gnu/packages/irc.scm (epic5): New variable. > --- > gnu/packages/irc.scm | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > > diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm > index db398de..f61afb4 100644 > --- a/gnu/packages/irc.scm > +++ b/gnu/packages/irc.scm > @@ -32,9 +32,11 @@ > #:use-module (gnu packages autogen) > #:use-module (gnu packages autotools) > #:use-module (gnu packages base) > + #:use-module (gnu packages backup) > #:use-module (gnu packages compression) > #:use-module (gnu packages curl) > #:use-module (gnu packages cyrus-sasl) > + #:use-module (gnu packages databases) > #:use-module (gnu packages file) > #:use-module (gnu packages gettext) > #:use-module (gnu packages glib) > @@ -47,6 +49,7 @@ > #:use-module (gnu packages perl) > #:use-module (gnu packages pkg-config) > #:use-module (gnu packages python) > + #:use-module (gnu packages ruby) > #:use-module (gnu packages qt) > #:use-module (gnu packages tcl) > #:use-module (gnu packages tls) > @@ -329,3 +332,83 @@ and extensible with plugins and scripts.") > embedded web server, translations (fr, fi, it, hu, de), and many > other enhancements and bug fixes.") > (license license:bsd-3))) > + > +(define-public epic5 > + (package > + (name "epic5") > + (version "2.0.1") > + (source (origin > + (method url-fetch) > + (uri (string-append "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/" > + name "-" version ".tar.xz")) > + (sha256 > + (base32 > + "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm")))) > + (build-system gnu-build-system) > + (arguments > + `(#:test-target "test" > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'patch-perl > + (lambda _ > + (substitute* "regress/crash-irc" > + (("perl5") (which "perl"))))) > + (add-after 'unpack 'patch-bsdinstall > + ;; If we just remove /bin/ some part of the bsdinstall breaks. > + ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which ^___ typo, please correct this to bsdinstall, without the "s" which was correct only when the leading "Furthermore" wasn't there. > + ;; means if we leave /etc/ in, install fails. > + (lambda _ > + (substitute* "bsdinstall" > + (("/bin/strip") "strip") > + (("/bin/cp") "cp") > + (("/bin/chmod") "chmod") > + (("/etc/chown") "chown") > + (("/bin/chgrp") "chgrp") > + (("/bin/mkdir") "mkdir") > + (("/bin/rm") "rm") > + (("/bin/mv") "mv") > + (("/etc/") "")))) > + (replace 'configure > + (lambda* (#:key outputs #:allow-other-keys) > + ;; The tarball uses a very old version of autconf. It doesn't > + ;; understand extra flags like `--enable-fast-install', so > + ;; we need to invoke it with just what it understands. > + (let ((out (assoc-ref outputs "out"))) > + ;; 'configure' doesn't understand '--host'. > + ,@(if (%current-target-system) > + `((setenv "CHOST" ,(%current-target-system))) > + '()) > + (setenv "CONFIG_SHELL" (which "bash")) > + (setenv "SHELL" (which "bash")) > + (zero? > + (system* "./configure" > + (string-append "--prefix=" out) > + "--with-ipv6" "--with-libarchive" > + "--with-ssl" > + (string-append "--with-tcl=" > + (assoc-ref %build-inputs "tcl") > + "/lib/tclConfig.sh"))))))))) > + (inputs > + `(("openssl" ,openssl) > + ("ncurses" ,ncurses) > + ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip files" > + ("perl" ,perl) > + ("tcl" ,tcl) > + ("ruby" ,ruby) > + ("gdbm" ,gdbm))) > + (native-inputs > + `(("pkg-config" ,pkg-config))) > + (home-page "http://epicsol.org") > + (synopsis "Epic5 IRC Client") > + (description > + "EPIC is a IRC client that has been under active development for 20+ years > +in 5 generations. It is stable and mature, and offers an excellent ircII > +interface for those of us who are accustomed to the ircII way of doing things.") > + (license (list license:bsd-3 > + license:isc > + license:bsd-4 > + ;; The epic license is equal to the standard three-clause > + ;; BSD license except that you are not permitted to remove the > + ;; "Redistribution is permitted" clause of the license if you > + ;; distribute binaries. > + license:non-copyleft "http://epicsol.org/copyright")))) > -- > 2.10.1 > > --