public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Azamat H. Hackimov" <winterheart@gentoo.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: eclass/
Date: Sun, 23 Sep 2012 19:03:32 +0000 (UTC)	[thread overview]
Message-ID: <1348426639.f6ae2721ecfe9ebc9dd206f71012884802d59374.winterheart@gentoo> (raw)

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
+}


             reply	other threads:[~2012-09-23 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-23 19:03 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-03-09 18:11 [gentoo-commits] proj/gamerlay:master commit in: eclass/ Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348426639.f6ae2721ecfe9ebc9dd206f71012884802d59374.winterheart@gentoo \
    --to=winterheart@gentoo.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox