* [gentoo-commits] proj/gamerlay:master commit in: eclass/
@ 2014-03-09 18:11 Sergey Popov
0 siblings, 0 replies; 2+ messages in thread
From: Sergey Popov @ 2014-03-09 18:11 UTC (permalink / raw
To: gentoo-commits
commit: 12e077100985efcebcf278a8025c7df53d953a8c
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 9 18:08:40 2014 +0000
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Sun Mar 9 18:08:40 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=12e07710
unpacker-nixstaller.eclass: fix handling of LZMA tarballs with new sys-apps/file
---
eclass/unpacker-nixstaller.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/unpacker-nixstaller.eclass b/eclass/unpacker-nixstaller.eclass
index 74ed2ba..717fc33 100644
--- a/eclass/unpacker-nixstaller.eclass
+++ b/eclass/unpacker-nixstaller.eclass
@@ -38,7 +38,7 @@ nixstaller_unpack() {
[[ -f "./$i" ]] && (
local type=$(file -b ${i})
case ${type} in
- data)
+ data|LZMA*)
tar -xJf "./$i"
;;
gzip*)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: eclass/
@ 2012-09-23 19:03 Azamat H. Hackimov
0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2012-09-23 19:03 UTC (permalink / raw
To: gentoo-commits
commit: f6ae2721ecfe9ebc9dd206f71012884802d59374
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sun Sep 23 18:57:19 2012 +0000
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sun Sep 23 18:57:19 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=f6ae2721
Eclass for nixstaller packages (for HIB games)
---
eclass/unpacker-nixstaller.eclass | 40 +++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/eclass/unpacker-nixstaller.eclass b/eclass/unpacker-nixstaller.eclass
new file mode 100644
index 0000000..c2c8090
--- /dev/null
+++ b/eclass/unpacker-nixstaller.eclass
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: Azamat H. Hackimov <azamat.hackimov@gmail.com>
+# Purpose: Unpack Nixstaller archives (http://nixstaller.sourceforge.net/)
+#
+# @ECLASS: unpacker-nixstaller.eclass
+# @MAINTAINER:
+# azamat.hackimov@gmail.com
+# @BLURB: helper for unpacking Nixstaller archives
+# @DESCRIPTION:
+# Some packages comes only in Nixstaller archives (mostly, games), so there
+# we come to help unpack them.
+
+inherit unpacker
+
+# @FUNCTION: unpack_nixstaller
+# @USAGE: <files to unpack>
+# @DESCRIPTION:
+# Unpack nixstaller generated files
+# They're shell scripts with the blob package tagged onto
+# the end of the archive. In the blob placed tarballs with
+# actual content.
+#
+# Please note, if you need additional dependecies make sure to unpack subarch
+# archive as first argument.
+#
+nixstaller_unpack() {
+ unpack_makeself
+
+ local unpack_files="$@"
+
+ for i in $unpack_files ; do
+ unpack_banner "$i"
+ # Make sure that file exists
+ [[ -f "./$i" ]] && tar Jxf "./$i" || die "Failed to unpack $i"
+ done
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-09 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-09 18:11 [gentoo-commits] proj/gamerlay:master commit in: eclass/ Sergey Popov
-- strict thread matches above, loose matches on Subject: below --
2012-09-23 19:03 Azamat H. Hackimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox