- allow gonzui to index (.tar).xz archives too
This commit is contained in:
parent
c1ea93f1b6
commit
7f0044aece
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.20 2011/04/08 06:22:51 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.21 2011/04/08 08:14:16 jasper Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -7,7 +7,7 @@ NOT_FOR_ARCHS= mips64 mips64el
|
||||
|
||||
COMMENT= source code search engine
|
||||
DISTNAME= gonzui-1.2
|
||||
REVISION= 15
|
||||
REVISION= 16
|
||||
CATEGORIES= textproc www
|
||||
|
||||
HOMEPAGE= http://gonzui.sourceforge.net/
|
||||
@ -30,6 +30,7 @@ BUILD_DEPENDS= databases/db/v4 \
|
||||
${MODRUBY_ICONV_DEPENDS}
|
||||
RUN_DEPENDS= archivers/bzip2 \
|
||||
archivers/unzip \
|
||||
archivers/xz \
|
||||
databases/db/v4 \
|
||||
databases/ruby-bdb \
|
||||
${MODRUBY_ICONV_DEPENDS} \
|
||||
|
31
textproc/gonzui/patches/patch-gonzui_extractor_rb
Normal file
31
textproc/gonzui/patches/patch-gonzui_extractor_rb
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-gonzui_extractor_rb,v 1.1 2011/04/08 08:14:16 jasper Exp $
|
||||
|
||||
Add support for dealing with (.tar).xz
|
||||
|
||||
--- gonzui/extractor.rb.orig Fri Apr 8 09:59:36 2011
|
||||
+++ gonzui/extractor.rb Fri Apr 8 10:05:58 2011
|
||||
@@ -251,6 +251,24 @@ module Gonzui
|
||||
Extractor.register(self)
|
||||
end
|
||||
|
||||
+ class XZExtractor < AbstractExtractor
|
||||
+ def self.commands
|
||||
+ ["tar", "xz"]
|
||||
+ end
|
||||
+
|
||||
+ def self.extnames
|
||||
+ [".tar.xz", ".xz"]
|
||||
+ end
|
||||
+
|
||||
+ def do_extract
|
||||
+ command_line = sprintf("xz --decompress --stdout %s | tar xf -",
|
||||
+ shell_escape(File.expand_path(@file_name)))
|
||||
+ run_extract_command(command_line, @file_name)
|
||||
+ end
|
||||
+
|
||||
+ Extractor.register(self)
|
||||
+ end
|
||||
+
|
||||
class SRPMExtractor < AbstractExtractor
|
||||
def self.commands
|
||||
["rpm", "rpmbuild"]
|
Loading…
Reference in New Issue
Block a user