public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-arch/unp/files: unp-1.0.15-7z-lzma-xz.diff
@ 2009-12-23 17:39 Hanno Boeck (hanno)
  0 siblings, 0 replies; only message in thread
From: Hanno Boeck (hanno) @ 2009-12-23 17:39 UTC (permalink / raw
  To: gentoo-commits

hanno       09/12/23 17:39:26

  Added:                unp-1.0.15-7z-lzma-xz.diff
  Log:
  unp: support .tar.xz
  (Portage version: 2.2_rc60/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-arch/unp/files/unp-1.0.15-7z-lzma-xz.diff

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/unp/files/unp-1.0.15-7z-lzma-xz.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/unp/files/unp-1.0.15-7z-lzma-xz.diff?rev=1.1&content-type=text/plain

Index: unp-1.0.15-7z-lzma-xz.diff
===================================================================
diff -Naur unp-1.0.15/unp unp-1.0.15-1/unp
--- unp-1.0.15/unp	2008-05-18 02:55:54.000000000 +0200
+++ unp-1.0.15-1/unp	2009-12-22 14:01:13.000000000 +0100
@@ -38,20 +38,23 @@
 }
 
 %pkgmap = (
-   cpio, "afio $or cpio",
-   afio, "afio $or cpio",
-   rpm2cpio, "rpm, afio $or cpio",
-   unshar, sharutils,
-   uudecode, sharutils,
-   PPMd, ppmd,
-   rar, "rar $or unrar $or unrar-free",
-   ar, binutils,
-   unarj, "unarj $or arj", 
-   hexbin, macutils,
+   "xz", "xz-utils",
+   "lzma", "lzma",
+   "7z", "p7zip $or p7zip-full",
+   "cpio", "afio $or cpio",
+   "afio", "afio $or cpio",
+   "rpm2cpio", "rpm, afio $or cpio",
+   "unshar", "sharutils",
+   "uudecode", "sharutils",
+   "PPMd", "ppmd",
+   "rar", "rar $or unrar $or unrar-free",
+   "ar", "binutils",
+   "unarj", "unarj $or arj",
+   "hexbin", "macutils",
    #macunpack, macunpack,
-   gunzip, gzip,
-   bunzip2, bzip2,
-   formail, "formail, mpack"
+   "gunzip", "gzip",
+   "bunzip2", "bzip2",
+   "formail", "formail, mpack"
 );
 
 &print_usage if ($#ARGV<0 || $ARGV[0] eq "-h");
@@ -153,6 +156,7 @@
    if ($UNP_FILEstr =~ /CAB file/i) { set_command 'cabextract $UNP_FILE'; }
    if ($UNP_FILEstr =~ /cpio/i) { set_command('afio -Z -v -i $UNP_FILE','cpio -i -d	--verbose  $UNP_ARGS < $UNP_FILE'); }
    if ($UNP_FILEstr =~ /Zip.*archive/i) { set_command 'unzip $UNP_ARGS $UNP_FILE'; }
+   if ($UNP_FILEstr =~ /7-zip.*archive/i) { set_command '7z x $UNP_ARGS $UNP_FILE'; }
    if ($UNP_FILEstr =~ /Zoo.*archive/i) { set_command 'unzoo -x $UNP_ARGS $UNP_FILE'; }
    if ($UNP_FILEstr =~ /shell.*archive/i) { set_command 'unshar $UNP_ARGS $UNP_FILE'; }
    if ($UNP_FILEstr =~ /Transport Neutral Encapsulation Format/i) { set_command 'tnef -v $UNP_ARGS $UNP_FILE'; }
@@ -214,12 +218,13 @@
 	
 	# check also for _tar, because of broken filenames
   if ($UNP_FILE =~ /(\.|_)tar$/i) { set_command 'tar -xvf $UNP_FILE $UNP_ARGS'; }
-	if ($UNP_FILE =~ /(\.|_)rpm$/i) { set_command 'rpm2cpio < $UNP_FILE | cpio -i -d	--verbose $UNP_ARGS';}
-	if ($UNP_FILE =~ /(\.|_)tar\.gz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
+  if ($UNP_FILE =~ /(\.|_)rpm$/i) { set_command 'rpm2cpio < $UNP_FILE | cpio -i -d	--verbose $UNP_ARGS';}
+  if ($UNP_FILE =~ /(\.|_)tar\.gz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
   if ($UNP_FILE =~ /(\.|_)tar\.bz2$/i) { set_command 'bunzip2 -c $UNP_FILE | tar -xvf - $UNP_ARGS'; }
-	
-	if ($UNP_FILE =~ /\.tgz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
-	if ($UNP_FILE =~ /\.(tzo|tar\.lzop)$/i) { set_command 'lzop -v -d $UNP_FILE | tar -xv $UNP_ARGS'; }
+  if ($UNP_FILE =~ /\.tgz$/i) { set_command 'tar -xvzf $UNP_FILE $UNP_ARGS'; }
+  if ($UNP_FILE =~ /\.(tzo|tar\.lzop)$/i) { set_command 'lzop -v -d $UNP_FILE | tar -xv $UNP_ARGS'; }
+  if ($UNP_FILE =~ /(\.|_)tar\.xz$/i) { set_command 'tar -xvJf $UNP_FILE $UNP_ARGS'; }
+  if ($UNP_FILE =~ /(\.|_)tar\.lzma$/i) { set_command 'lzma -cd $UNP_FILE | tar -xvf - $UNP_ARGS'; }
   if ($UNP_FILE =~ /\.rar$/i) { set_command('rar x $UNP_ARGS $UNP_FILE || rar x -av- $UNP_ARGS $UNP_FILE','unrar x $UNP_ARGS $UNP_FILE || unrar x -av- $UNP_ARGS $UNP_FILE'); }
   if ($UNP_FILE =~ /\.(ar|deb)$/i) { set_command 'ar -x -v $UNP_FILE $UNP_ARGS'; }
   if ($UNP_FILE =~ /\.l(ha|zh)$/i) { set_command 'lha x $UNP_ARGS $UNP_FILE'; }






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-23 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 17:39 [gentoo-commits] gentoo-x86 commit in app-arch/unp/files: unp-1.0.15-7z-lzma-xz.diff Hanno Boeck (hanno)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox