[proaudio] [2635] remove old and unused unpacker eclass

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 2635
Author:   lilrc
Date:     2013-03-31 23:55:40 +0200 (Sun, 31 Mar 2013)
Log Message:
-----------
remove old and unused unpacker eclass

Removed Paths:
-------------
    trunk/overlays/proaudio/eclass/unpacker-old.eclass

Deleted: trunk/overlays/proaudio/eclass/unpacker-old.eclass
===================================================================
--- trunk/overlays/proaudio/eclass/unpacker-old.eclass	2013-03-31 21:42:46 UTC (rev 2634)
+++ trunk/overlays/proaudio/eclass/unpacker-old.eclass	2013-03-31 21:55:40 UTC (rev 2635)
@@ -1,116 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-#
-# Original Author: evermind
-# Purpose: unpack everything no matter where it comes from
-# Obsolete: 20120630  -- some cross compiler problems
-
-
-# adjusted unpack() version from ebuild.sh 4048 2006-07-29 18:20:13Z zmedico
-
-
-# syntax:
-# unpacker_old "archive_1" "archive_2" archive_n"
-# to set the location to where the unpack action should take place
-# specify UNPACK_DESTDIR in your ebuild (missing dirs will be created)
-unpacker_old() {
-	local x
-	local y
-	local myfail
-	local tarvars
-
-	if [ "$USERLAND" == "BSD" ]; then
-		tarvars=""
-	else
-		tarvars="--no-same-owner"
-	fi
-
-	[ -z "$*" ] && die "Nothing passed to the 'unpack' command"
-
-	for x in "$@"; do
-		# default unpack path to ${WORKDIR}
-		[ -z "${UNPACK_DESTDIR}" ] && UNPACK_DESTDIR="${WORKDIR}"
-		vecho ">>> Unpacking ${x} to ${UNPACK_DESTDIR}"
-		y=${x%.*}
-		y=${y##*.}
-
-		myfail="${x} does not exist"
-		if [ "${x:0:2}" = "./" ] ; then
-			srcdir=""
-		else
-			srcdir="${DISTDIR}/"
-		fi
-		
-		z="${x##*/}"
-		
-		[ "${x}" == "${z}" ] && local cur_path="`pwd`/"
-		[ ! -s "${srcdir}${z}" ] && ln -s ${cur_path}${x} "${srcdir}${z}"
-		#eerror "ln -s ${lol}${x} "${srcdir}${z}""
-		[[ ${x} == ${DISTDIR}* ]] && \
-			die "Arguments to unpack() should not begin with \${DISTDIR}."
-		[ ! -s "${srcdir}${z}" ] && die "$myfail"
-
-
-		[ ! -e "${UNPACK_DESTDIR}" ] && [ ! -z "${UNPACK_DESTDIR}" ] && \
-			mkdir -p "${UNPACK_DESTDIR}" 
-		[ -e "${UNPACK_DESTDIR}" ] && [ ! -z "${UNPACK_DESTDIR}" ] && \
-			cd "${UNPACK_DESTDIR}"
-		
-		myfail="failure unpacking ${x}"
-		case "${x##*.}" in
-			tar|h2drumkit)
-				tar xf "${srcdir}${z}" ${tarvars} || die "$myfail"
-				;;
-			tgz)
-				tar xzf "${srcdir}${z}" ${tarvars} || die "$myfail"
-				;;
-			tbz|tbz2)
-				bzip2 -dc "${srcdir}${z}" | tar xf - ${tarvars}
-				assert "$myfail"
-				;;
-			ZIP|zip|jar)
-				unzip -qo "${srcdir}${z}" || die "$myfail"
-				;;
-			gz|Z|z)
-				if [ "${y}" == "tar" ]; then
-					tar zxf "${srcdir}${z}" ${tarvars} || die "$myfail"
-				else
-					gzip -dc "${srcdir}${z}" > ${x%.*} || die "$myfail"
-				fi
-				;;
-			bz2|bz)
-				if [ "${y}" == "tar" ]; then
-					bzip2 -dc "${srcdir}${z}" | tar xf - ${tarvars}
-					assert "$myfail"
-				else
-					bzip2 -dc "${srcdir}${z}" > ${x%.*} || die "$myfail"
-				fi
-				;;
-			7Z|7z)
-				local my_output
-				my_output="$(7z x -y "${srcdir}/${z}")"
-				if [ $? -ne 0 ]; then
-					echo "${my_output}" >&2
-					die "$myfail"
-				fi
-				;;
-			RAR|rar)
-				unrar x -idq "${srcdir}/${z}" || die "$myfail"
-				;;
-			LHa|LHA|lha|lzh)
-				lha xqf "${srcdir}/${z}" || die "$myfail"
-				;;
-			a|deb)
-				ar x "${srcdir}/${z}" || die "$myfail"
-				;;
-			*)
-				vecho "unpack ${x}: file format not recognized. Ignoring."
-				;;
-		esac
-		chmod -Rf a+rX,u+w,g-w,o-w .
-		cd - &>/dev/null
-	done
-
-}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/