add support for .lzma / .tar.lzma to unpack
authorZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 05:56:36 +0000 (05:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 05:56:36 +0000 (05:56 -0000)
(trunk r7991)

svn path=/main/branches/2.1.2/; revision=8061

bin/ebuild.sh

index 3f5352b2915bae80a8bd3847e26936776ae121af..4e98b6474a203815b808b5c26dfab30cedd16c09 100755 (executable)
@@ -496,6 +496,14 @@ unpack() {
                        a|deb)
                                ar x "${srcdir}/${x}" || die "$myfail"
                                ;;
+                       lzma)
+                               if [ "${y}" == "tar" ]; then
+                                       lzma -dc "${srcdir}${x}" | tar xof - ${tar_opts}
+                                       assert "$myfail"
+                               else
+                                       lzma -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+                               fi
+                               ;;
                        *)
                                vecho "unpack ${x}: file format not recognized. Ignoring."
                                ;;