From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] Re: syntax check before commit and patch: net-perl-psyc Date: Tue, 14 Jun 2016 14:56:55 +0000 Message-ID: <20160614145655.GA19069@khazad-dum> References: <20160613140750.GA11984@khazad-dum> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCpm9-0003ju-Ad for guix-devel@gnu.org; Tue, 14 Jun 2016 10:57:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCpm5-0003Ff-3t for guix-devel@gnu.org; Tue, 14 Jun 2016 10:57:08 -0400 Received: from 93-95-228-168.1984.is ([93.95.228.168]:45824 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCpm3-0003F3-N6 for guix-devel@gnu.org; Tue, 14 Jun 2016 10:57:05 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 19b2a5f5 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Tue, 14 Jun 2016 14:56:57 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20160613140750.GA11984@khazad-dum> 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 --neYutvxvOLaeuPCA Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom 771d300cd6f195720e782464ce7a7328edcf566f Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Tue, 14 Jun 2016 14:52:52 +0000 Subject: [PATCH] gnu: Add perl-net-psyc. * gnu/packages/perl.scm (perl-net-psyc): New Variable. --- gnu/packages/perl.scm | 69 +++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index e7e7967..c16a913 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -7,6 +7,7 @@ ;;; Copyright =C2=A9 2016 Mark H Weaver ;;; Copyright =C2=A9 2016 Jochem Raat ;;; Copyright =C2=A9 2016 Efraim Flashner +;;; Copyright =C2=A9 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ #:use-module (gnu packages) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl)) @@ -3865,6 +3867,73 @@ cycle. Functions called in the package itself will = still be bound by their name, but they won't show up as methods on your class or instances.") (license (package-license perl)))) +;; highly optional dependencies: rxaudio (mp3 binary from 1996) +;; opt. perl: MP3::List (psycmp3), Curses (psycion), pwd.pl +;; (psyccmd), SGI::FAM module (psycfilemonitor); for full +;; functionality package all except MP3::List. +(define-public perl-net-psyc + (let ((commit "4176f5236e73e99391c0877152d5596ab0a9b154")) + (package + (name "perl-net-psyc") + (version (string-append "1.0" "-" + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "git://git.psyced.org/git/perlpsyc") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "19msvr1kriqa6n8cnk8z96xd5i0v5cy2y52jsj08vaj79b4m7sph"))= )) + (build-system perl-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace + 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/perl-net-psyc")) + (libpsyc (string-append out "/lib/psyc/ion")) + (libperl (string-append out "/lib/perl5/site_perl/" + ,(package-version perl))) + (bin (string-append out "/bin"))) + (copy-recursively "lib/perl5" libperl) + (copy-recursively "lib/psycion" libpsyc) + (copy-recursively "bin" bin) + (install-file "cgi/psycpager" (string-append doc "/cgi")) + (copy-recursively "contrib" (string-append doc "/contrib")) + (copy-recursively "hooks" (string-append doc "/hooks")) + (copy-recursively "sdj" (string-append doc "/sdj")) + (install-file "README.txt" doc) + (install-file "TODO.txt" doc) + #t))) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + ;; Make sure all executables in "bin" find the Per= l modules + ;; provided by this package at runtime. + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (path (string-append out "/lib/perl5/site_p= erl"))) + (for-each (lambda (file) + (wrap-program file + `("PERL5LIB" ":" prefix (,path)))) + (find-files bin "\\.*$")) + ;; XXX: hooks/dpa2psyc,examples/{recvtest,sendte= st}, + ;; cgi/psycpager,contrib/{makenoise,keefchat + ;; contrib/MovableTypeBlog/plugins/psyc.pl + #t)))))) + (description + "Perl implementation of PSYC protocol plus psycion, remotor, psycmp= 3 etc.") + (synopsis + "Perl implementation of PSYC protocol plus psycion, remotor, psycmp= 3 etc.") + (home-page "http://perlpsyc.pages.de") + ;;dual licensed: gpl2+ Artistic + (license (list gpl2+ (package-license perl)))))) + (define-public perl-number-compare (package (name "perl-number-compare") -- 2.8.4 --x+6KMIRAuhnl3hBn Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-perl-net-psyc.patch" Content-Transfer-Encoding: quoted-printable =46rom 771d300cd6f195720e782464ce7a7328edcf566f Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Tue, 14 Jun 2016 14:52:52 +0000 Subject: [PATCH] gnu: Add perl-net-psyc. * gnu/packages/perl.scm (perl-net-psyc): New Variable. --- gnu/packages/perl.scm | 69 +++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index e7e7967..c16a913 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -7,6 +7,7 @@ ;;; Copyright =C2=A9 2016 Mark H Weaver ;;; Copyright =C2=A9 2016 Jochem Raat ;;; Copyright =C2=A9 2016 Efraim Flashner +;;; Copyright =C2=A9 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ #:use-module (gnu packages) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl)) =20 @@ -3865,6 +3867,73 @@ cycle. Functions called in the package itself will = still be bound by their name, but they won't show up as methods on your class or instances.") (license (package-license perl)))) =20 +;; highly optional dependencies: rxaudio (mp3 binary from 1996) +;; opt. perl: MP3::List (psycmp3), Curses (psycion), pwd.pl +;; (psyccmd), SGI::FAM module (psycfilemonitor); for full +;; functionality package all except MP3::List. +(define-public perl-net-psyc + (let ((commit "4176f5236e73e99391c0877152d5596ab0a9b154")) + (package + (name "perl-net-psyc") + (version (string-append "1.0" "-" + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "git://git.psyced.org/git/perlpsyc") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "19msvr1kriqa6n8cnk8z96xd5i0v5cy2y52jsj08vaj79b4m7sph"))= )) + (build-system perl-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace + 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/perl-net-psyc")) + (libpsyc (string-append out "/lib/psyc/ion")) + (libperl (string-append out "/lib/perl5/site_perl/" + ,(package-version perl))) + (bin (string-append out "/bin"))) + (copy-recursively "lib/perl5" libperl) + (copy-recursively "lib/psycion" libpsyc) + (copy-recursively "bin" bin) + (install-file "cgi/psycpager" (string-append doc "/cgi")) + (copy-recursively "contrib" (string-append doc "/contrib")) + (copy-recursively "hooks" (string-append doc "/hooks")) + (copy-recursively "sdj" (string-append doc "/sdj")) + (install-file "README.txt" doc) + (install-file "TODO.txt" doc) + #t))) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + ;; Make sure all executables in "bin" find the Per= l modules + ;; provided by this package at runtime. + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (path (string-append out "/lib/perl5/site_p= erl"))) + (for-each (lambda (file) + (wrap-program file + `("PERL5LIB" ":" prefix (,path)))) + (find-files bin "\\.*$")) + ;; XXX: hooks/dpa2psyc,examples/{recvtest,sendte= st}, + ;; cgi/psycpager,contrib/{makenoise,keefchat + ;; contrib/MovableTypeBlog/plugins/psyc.pl + #t)))))) + (description + "Perl implementation of PSYC protocol plus psycion, remotor, psycmp= 3 etc.") + (synopsis + "Perl implementation of PSYC protocol plus psycion, remotor, psycmp= 3 etc.") + (home-page "http://perlpsyc.pages.de") + ;;dual licensed: gpl2+ Artistic + (license (list gpl2+ (package-license perl)))))) + (define-public perl-number-compare (package (name "perl-number-compare") --=20 2.8.4 --x+6KMIRAuhnl3hBn-- --neYutvxvOLaeuPCA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iF4EARYKAAYFAldgGzYACgkQhhoAchyzrCC1qAEAlZXdqL/mgZgS6nGJSE5DbuIC 7UG8wK5tlbDbKjX/n/4A/Rz8aCI0I4neDUYGDwNpzPAxy+1GP/hGULvkwmWer4wK =+clL -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--