add support for .lzma / .tar.lzma to unpack
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Oct 2007 18:00:56 +0000 (18:00 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 7 Oct 2007 18:00:56 +0000 (18:00 -0000)
svn path=/main/trunk/; revision=7991

bin/ebuild.sh

index f5e625ed6b490c136749182a3f1f0a2ae4ecf614..b298724e2a15ff168c8c8fdf438c994637570913 100755 (executable)
@@ -386,6 +386,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."
                                ;;