From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/4] gnu: Add libpsyc. Date: Thu, 29 Sep 2016 10:38:08 +0000 Message-ID: <20160929103810.10273-2-ngillmann@runbox.com> References: <20160929103810.10273-1-ngillmann@runbox.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpYjn-0000il-5q for guix-devel@gnu.org; Thu, 29 Sep 2016 06:38:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpYjj-0008Uc-TG for guix-devel@gnu.org; Thu, 29 Sep 2016 06:38:47 -0400 Received: from aibo.runbox.com ([91.220.196.211]:39176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpYjj-0008Tq-MD for guix-devel@gnu.org; Thu, 29 Sep 2016 06:38:43 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bpYjg-0005FY-SD for guix-devel@gnu.org; Thu, 29 Sep 2016 12:38:40 +0200 In-Reply-To: <20160929103810.10273-1-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 * gnu/packages/psyc.scm (libpsyc): New variable. --- gnu/packages/psyc.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/psyc.scm b/gnu/packages/psyc.scm index 4d53dfd..253fa64 100644 --- a/gnu/packages/psyc.scm +++ b/gnu/packages/psyc.scm @@ -21,7 +21,10 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix build-system perl) + #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages admin) + #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages web)) @@ -103,3 +106,41 @@ for @uref{https://torproject.org,tor} router) and many more.") license:public-domain ;; bin/psycplay states AGPL with no version: license:agpl3+)))) + +(define-public libpsyc + (package + (name "libpsyc") + (version "20160913") + (source (origin + (method url-fetch) + (uri (string-append "http://www.psyced.org/files/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "14q89fxap05ajkfn20rnhc6b1h4i3i2adyr7y6hs5zqwb2lcmc1p")))) + (build-system gnu-build-system) + (native-inputs + `(("perl" ,perl) + ("netcat" ,netcat) + ("procps" ,procps))) + (arguments + `(#:make-flags + (list "CC=gcc" + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + ;; The rust bindings are the only ones in use, the lpc bindings + ;; are in psyclpc. The other bindings are not used by anything, + ;; the chances are high that the bindings do not even work, + ;; therefore we do not include them. + ;; TODO: Get a cargo build system in Guix. + (delete 'configure)))) ; no configure script + (home-page "http://about.psyc.eu/libpsyc") + (description + "@code{libpsyc} is a PSYC library in C which implements +core aspects of PSYC, useful for all kinds of clients and servers +including psyced.") + (synopsis "PSYC library in C") + (license (list license:agpl3+ + ;; test/test.c is based on a public-domain test + license:public-domain)))) -- 2.10.0