From patchwork Thu Jul 11 20:26:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 14574 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 DED6F17203; Thu, 11 Jul 2019 21:27:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 103E417200 for ; Thu, 11 Jul 2019 21:27:13 +0100 (BST) Received: from localhost ([::1]:45066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlfeq-00053S-I1 for patchwork@mira.cbaines.net; Thu, 11 Jul 2019 16:27:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60738) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlfem-0004uK-6Z for guix-patches@gnu.org; Thu, 11 Jul 2019 16:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlfek-00056T-Sl for guix-patches@gnu.org; Thu, 11 Jul 2019 16:27:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlfek-00056I-PE for guix-patches@gnu.org; Thu, 11 Jul 2019 16:27:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlfek-0006s7-Je for guix-patches@gnu.org; Thu, 11 Jul 2019 16:27:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36605] [PATCH] gnu: Add dtrx. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jul 2019 20:27:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36605 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36605@debbugs.gnu.org Received: via spool by 36605-submit@debbugs.gnu.org id=B36605.156287682126338 (code B ref 36605); Thu, 11 Jul 2019 20:27:06 +0000 Received: (at 36605) by debbugs.gnu.org; 11 Jul 2019 20:27:01 +0000 Received: from localhost ([127.0.0.1]:38672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlfea-0006qR-RM for submit@debbugs.gnu.org; Thu, 11 Jul 2019 16:27:00 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlfeW-0006pp-53 for 36605@debbugs.gnu.org; Thu, 11 Jul 2019 16:26:52 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45l6zH50tSz1rYX3 for <36605@debbugs.gnu.org>; Thu, 11 Jul 2019 22:26:51 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45l6zH4spyz1qqkC for <36605@debbugs.gnu.org>; Thu, 11 Jul 2019 22:26:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id lMTQAiglmwxh for <36605@debbugs.gnu.org>; Thu, 11 Jul 2019 22:26:50 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-60-166.dynamic.mnet-online.de [188.174.60.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <36605@debbugs.gnu.org>; Thu, 11 Jul 2019 22:26:50 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id F13426040A for <36605@debbugs.gnu.org>; Thu, 11 Jul 2019 22:26:48 +0200 (CEST) From: Hartmut Goebel Date: Thu, 11 Jul 2019 22:26:12 +0200 Message-Id: <20190711202644.32014-4-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190711202644.32014-1-h.goebel@crazy-compilers.com> References: <58494E16.9010909@crazy-compilers.com> <20190711202644.32014-1-h.goebel@crazy-compilers.com> MIME-Version: 1.0 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 * gnu/packages/compression.scm (dtrx): New variable. --- gnu/packages/compression.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index ae6710b25..0d9a6bfcf 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2017 Stefan Reichör ;;; Copyright © 2017 Petter ;;; Copyright © 2017 Julien Lepiller +;;; Copyright © 2018 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -53,10 +54,12 @@ #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages check) + #:use-module (gnu packages cpio) #:use-module (gnu packages curl) #:use-module (gnu packages file) #:use-module (gnu packages java) #:use-module (gnu packages maths) + #:use-module (gnu packages package-management) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) @@ -2051,3 +2054,50 @@ faster by plzip, unless the @code{-b} option was used: lzip usually produces single-member files which can't be decompressed in parallel.") (license (list license:bsd-2 ; arg_parser.{cc,h} license:gpl2+)))) ; everything else + + +(define-public dtrx + (package + (name "dtrx") + (version "7.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://brettcsmith.org/2007/" + "dtrx/dtrx-" version ".tar.gz")) + (sha256 + (base32 "15yf4n27zbhvv0byfv3i89wl5zn6jc2wbc69lk5a3m6rx54gx6hw")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2)) + (inputs + `(("binutils" ,binutils) ; ar + ("bzip2" ,bzip2) ; bzcat + ("cabextract" ,cabextract) + ("cpio" ,cpio) ; cpio + ("gzip" ,gzip) ; zcat + ;; ("lha" ,lha) missing in guix + ("p7zip" ,p7zip) ; 7z + ("rpm" ,rpm) ; rpm2cpio + ("tar" ,tar) + ;; ("unrar" ,unrar) ; abandoned upstream + ("unshield" ,unshield) + ("unzip" ,unzip) + ("xz" ,xz))) ; lzcat, xzcat + (home-page "http://www.brettcsmith.org/2007/dtrx/") + (synopsis "Intelligently extract multiple archive types") + (description "@command{dtrx} extracts archives in a number of different +formats, so you don't have to remember the flags for each archive command. +Just use the same command for all your archive files, and they'll never +frustrate you again. + +In addition to providing one command to handle many different archive types, +@command{dtrx} also aids the user by extracting contents consistently. By +default, everything will be written to a dedicated directory that’s named +after the archive. dtrx will also change the permissions to ensure that the +owner can read and write all those files. + +It currently supports tar, zip (including self-extracting .exe files), cpio, +rpm, deb, gem, 7z, cab, rar, and InstallShield files. It can also decompress +files compressed with gzip, bzip2, lzma, xz, or compress.") + (license license:gpl3+)))