From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH] gnu: Add epic5. Date: Thu, 8 Dec 2016 22:38:05 +0200 Message-ID: <20161208203805.GB2621@macbook42.flashner.co.il> References: <87y41v6evk.fsf@we.make.ritual.n0.is> <20161206193538.22496-1-ng0@libertad.pw> <20161206193538.22496-2-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RASg3xLB4tUQ4RcS" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF5SG-00054V-Of for guix-devel@gnu.org; Thu, 08 Dec 2016 15:38:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF5SD-00079y-Gv for guix-devel@gnu.org; Thu, 08 Dec 2016 15:38:12 -0500 Received: from flashner.co.il ([178.62.234.194]:38375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF5SD-00078u-5N for guix-devel@gnu.org; Thu, 08 Dec 2016 15:38:09 -0500 Content-Disposition: inline In-Reply-To: <20161206193538.22496-2-ng0@libertad.pw> 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: ng0 Cc: guix-devel@gnu.org --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 06, 2016 at 07:35:38PM +0000, ng0 wrote: > From: ng0 >=20 > * gnu/packages/irc.scm (epic5): New variable. > --- > gnu/packages/irc.scm | 91 ++++++++++++++++++++++++++++++++++++++++++++++= +++++- > 1 file changed, 90 insertions(+), 1 deletion(-) >=20 > diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm > index 3b63c899e..74124cf86 100644 > --- a/gnu/packages/irc.scm > +++ b/gnu/packages/irc.scm > @@ -3,7 +3,7 @@ > ;;; Copyright =C2=A9 2014 Kevin Lemonnier > ;;; Copyright =C2=A9 2015 Ludovic Court=C3=A8s > ;;; Copyright =C2=A9 2015, 2016 Efraim Flashner > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 2016 ng0 > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -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,89 @@ 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 > + ;; 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 does = not > + ;; 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=3D" out) > + "--with-ipv6" "--with-libarchive" > + ;; We use libressl because openssl does not come > + ;; with the lib/libssl.a which is needed for ep= ic5. > + ;; XXX: No matter which implementation is chose= n, > + ;; epic5 fails to connect to tls ports of round= robin > + ;; irc networks. This however is believed to be= an > + ;; protocol issue at epic5 related to ircd. > + (string-append "--with-ssl=3D" > + (assoc-ref %build-inputs "libres= sl")) > + (string-append "--with-tcl=3D" > + (assoc-ref %build-inputs "tcl") > + "/lib/tclConfig.sh"))))))))) > + (inputs > + `(("libressl" ,libressl) > + ("ncurses" ,ncurses) > + ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip = files" > + ("perl" ,perl) > + ("tcl" ,tcl) > + ("ruby" ,ruby))) > + (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 > +over 20 years. It is stable and mature, and offers an excellent ircII > +interface for those 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-cl= ause > + ;; BSD license except that you are not permitted to r= emove the > + ;; "Redistribution is permitted" clause of the licens= e if you > + ;; distribute binaries. > + license:non-copyleft "http://epicsol.org/copyright"))= )) > --=20 > 2.11.0 >=20 >=20 I made some minor changes to the substitutes* to return #t and pushed --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --RASg3xLB4tUQ4RcS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEkVdB/rIvpOM7bo+N9MHTkX6s7pMFAlhJxKwACgkQ9MHTkX6s 7pOZ2w//S5qzv3e789Bjl5vqqRsSq0R+Km9YFUWRST69NqgMRbVyfa/vNOT6leth BdDvB3yavTNSPF4a2szn6ZbwKKh/n1K4e1nOzDXP8EM2R/sK+ignmXC0J/ajetwS aTfzPEYAAMI3shGwo2tWOu7P6/fcAWJfKEK51h6pCPsJOcI2V499MRDXkW1uR3ni 06M1Zzu9E6tODo4lr5l1tKIH9gE9aSUrBzsfZJavP/mo1ppuTyNiTqnKKj6bypph U+PXEIle6i6CsLphYg713sM9oqFsXkJrcsC2f99DCh8qSsTdQfaJsVpE5i1Ecmvm EvdoDXFp7rBJO0afr9tcA1pgt/+Mcn0YV+5d6icOSG2DMiTxwMHCFfaflCCqf5YV pp0hg2vHrig95QLHYRvMQGC1LTmfSxL/025tShojNHfbcS55eN8ULDRFd65/VTAh DHcg+zcY0GIriS97gvVWfZcMCcwAStCDSVDe9p3aJdx/CgVa95A8P19YGciw1wt3 InP94Qwr3+4FertQEcEhJzfRHdpSEoxxB8XTZOs0ZRmbl+MyiIxZVfG+tBxt9On9 HVSFuD3KFUkZ1ZdJ/guwrisz7x33dJPohMqsaWH26i6+3PN+s74koPL+rNrB05bo bDe2PYJqOalIGZn9nY49A7qLadPWKfBoc5xiI4VXurAV+kTypxs= =vPAF -----END PGP SIGNATURE----- --RASg3xLB4tUQ4RcS--