From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehxtN-0004vR-MW for guix-patches@gnu.org; Sat, 03 Feb 2018 08:30:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehxtK-0008DR-GY for guix-patches@gnu.org; Sat, 03 Feb 2018 08:30:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehxtK-0008DC-CX for guix-patches@gnu.org; Sat, 03 Feb 2018 08:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehxtK-0001gc-4j for guix-patches@gnu.org; Sat, 03 Feb 2018 08:30:02 -0500 Subject: [bug#30334] [PATCH] gnu: Add dtrx. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehxsf-0004RP-ST for guix-patches@gnu.org; Sat, 03 Feb 2018 08:29:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehxsc-0007Ya-Nm for guix-patches@gnu.org; Sat, 03 Feb 2018 08:29:21 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:43118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehxsc-0007Tg-EJ for guix-patches@gnu.org; Sat, 03 Feb 2018 08:29:18 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zYZSr4Fhjz1qsVf for ; Sat, 3 Feb 2018 14:29:16 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zYZSr48gnz1r3Tx for ; Sat, 3 Feb 2018 14:29:16 +0100 (CET) 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 DOxhvLKqZn4Y for ; Sat, 3 Feb 2018 14:29:15 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-168-48.dynamic.mnet-online.de [93.104.168.48]) (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 ; Sat, 3 Feb 2018 14:29:15 +0100 (CET) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id D5CBB60821 for ; Sat, 3 Feb 2018 14:29:14 +0100 (CET) From: Hartmut Goebel Date: Sat, 3 Feb 2018 14:29:14 +0100 Message-Id: <20180203132914.6649-1-h.goebel@crazy-compilers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30334@debbugs.gnu.org * 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 =C2=A9 2017 Stefan Reich=C3=B6r ;;; Copyright =C2=A9 2017 Petter ;;; Copyright =C2=A9 2017 Julien Lepiller +;;; Copyright =C2=A9 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 u= sed: 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 differ= ent +formats, so you don't have to remember the flags for each archive comman= d. +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 ty= pes, +@command{dtrx} also aids the user by extracting contents consistently. = By +default, everything will be written to a dedicated directory that=E2=80=99= 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), c= pio, +rpm, deb, gem, 7z, cab, rar, and InstallShield files. It can also decom= press +files compressed with gzip, bzip2, lzma, xz, or compress.") + (license license:gpl3+))) --=20 2.13.6