From patchwork Thu Mar 12 11:01:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amar M. Singh" X-Patchwork-Id: 20647 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BD9DB27BBEA; Thu, 12 Mar 2020 11:03:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 750E327BBE4 for ; Thu, 12 Mar 2020 11:03:10 +0000 (GMT) Received: from localhost ([::1]:39348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCLcM-0007ff-0Y for patchwork@mira.cbaines.net; Thu, 12 Mar 2020 07:03:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45247) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCLcF-0007dN-Jo for guix-patches@gnu.org; Thu, 12 Mar 2020 07:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCLcE-0008Cg-HE for guix-patches@gnu.org; Thu, 12 Mar 2020 07:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCLcE-0008CY-DW for guix-patches@gnu.org; Thu, 12 Mar 2020 07:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCLcE-0004n0-93 for guix-patches@gnu.org; Thu, 12 Mar 2020 07:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40038] [PATCH] gnu: Add guile-torrent. Resent-From: nly@disroot.org (Amar M. Singh) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Mar 2020 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40038 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40038@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158401095718374 (code B ref -1); Thu, 12 Mar 2020 11:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2020 11:02:37 +0000 Received: from localhost ([127.0.0.1]:56029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCLbo-0004mI-KC for submit@debbugs.gnu.org; Thu, 12 Mar 2020 07:02:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:44048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCLbm-0004mA-Vr for submit@debbugs.gnu.org; Thu, 12 Mar 2020 07:02:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCLbl-00079j-5c for guix-patches@gnu.org; Thu, 12 Mar 2020 07:02:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCLbj-0007mg-Hz for guix-patches@gnu.org; Thu, 12 Mar 2020 07:02:33 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50142) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCLbi-0007jS-TP for guix-patches@gnu.org; Thu, 12 Mar 2020 07:02:31 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EECDB232B2 for ; Thu, 12 Mar 2020 12:02:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id o4i2xCT_TelM for ; Thu, 12 Mar 2020 12:02:26 +0100 (CET) From: nly@disroot.org (Amar M. Singh) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1584010931; bh=fzocYRD2s7C71O3UCDZ4aT8z1i6jgKuiXdO6JaUrzKo=; h=From:To:Subject:Date; b=d16UKqtVUfj8pI06HLW4ZWEPBSJGGoMd0yeyTGQhL65WAz+KFcogAqDuAAffdXWWL G9C1+wzZGhmydNYRm/LVK2qbzyCuth46rqp9UH0Ij3U0px1s2DABY7aU1zpzHW1Pf0 8BehO5nuV5sD6u+MV81hqo+T3Z9A7dxjRHbjXARQBQIPzY1m0sa6XTzAGOXkc1iDzI hC0ruLxJOGXv3XHpdlMYsJ1+AmXE3M8taT590/22ON8eSZ/nJf8eV0wl7ithpitog3 0qB1434yLCWhHU1LO+vuM4xjNaZEDCpgz/UE9qM3xAlbFrvCSbHfFq7wWk2wUf7E4K tG24bcEgo+ilg== Date: Thu, 12 Mar 2020 16:31:59 +0530 Message-ID: <85eetxdefs.fsf@disroot.org> Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This is an alpha package provides facilities for working with `.torrent' or metainfo files. Implements a bencode reader and writer according to Bitorrent BEP003, also provides a s-expression syntax for writing metainfo. Note: I am aware that there might be a naming-conflict with another module "Guile-Torrent" that roptat is working on. Thanks, Amar From 67516dd69842b483f7c05dd6048561053bcce37c Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 12 Mar 2020 16:25:33 +0530 Subject: [PATCH] gnu: Add guile-torrent. * gnu/packages/guile-xyz.scm (guile-torrent): New variable. --- gnu/packages/guile-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 37a5198e4e..7880e29b20 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -3109,3 +3109,32 @@ currently a re-implementation of the lentes library for Clojure. Lenses provide composable procedures, which can be used to focus, apply functions over, or update a value in arbitrary data structures.") (license license:gpl3+)))) + +(define-public guile-torrent + (package (name "guile-torrent") + (version "0.1-preview") + (source (origin (method git-fetch) + (uri (git-reference + (url + "https://github.com/o-nly/torrent.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rim8gr0cpnm1lixihsjpzg5z3i44vhqgj0dv6z7xj6jiwrmi9pw")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("guile" ,guile-2.2) + ("texinfo" ,texinfo) + ("perl" ,perl) + ("pkg-config" ,pkg-config))) + (inputs + `(("guile-gcrypt" ,guile-gcrypt))) + (home-page "https://github.com/o-nly/torrent") + (synopsis "Torrent library for GNU Guile") + (description + "This package provides facilities for working with `.torrent' or metainfo +files. Implements a bencode reader and writer according to Bitorrent BEP003.") + (license license:gpl3+))) -- 2.25.1