Add .tar.lzma extraction support; upgrade sed to version 4.2.1.
authorStefan Westerfeld <stefan@space.twc.de>
Wed, 20 Jan 2010 09:48:00 +0000 (10:48 +0100)
committerStefan Westerfeld <stefan@space.twc.de>
Wed, 20 Jan 2010 09:48:00 +0000 (10:48 +0100)
beastbuild.py
packages/mingw/liblzma.py [new file with mode: 0644]
packages/mingw/sed.py [new file with mode: 0644]
packages/mingw/xz.py [new file with mode: 0644]

index d626391..bc4da4b 100644 (file)
@@ -93,7 +93,7 @@ def import_all (path):
 if platform_is_win32():
   essential_pkgs = [ 'binutils', 'gcccore', 'gccgxx', 'mingwrtdev', 'mingwrtdll', 'w32apidev',
                     'msyscore', 'msyscrypt', 'cvs', 'vim', 'ssh', 'wget', 'slashx', 'ccache',
-                    'nsis', 'nsis_untgz' ]
+                    'nsis', 'nsis_untgz', 'liblzma', 'xz', 'sed' ]
 else:
   essential_pkgs = [ 'slashx' ]
 
diff --git a/packages/mingw/liblzma.py b/packages/mingw/liblzma.py
new file mode 100644 (file)
index 0000000..888323b
--- /dev/null
@@ -0,0 +1,33 @@
+from package import Package
+import utils
+from buildutils import download_and_check, configure, make, apply_patch
+from Path import Path
+
+class LibLZMA(Package):
+  def full_name (self):
+    return "liblzma-20091209"
+
+  def download (self):
+    download_and_check ("http://downloads.sourceforge.net/project/mingw/MSYS%20xz/xz-4.999.9beta_20091209-1/liblzma-4.999.9beta_20091209-1-msys-1.0.12-dll-1.tar.gz",
+                        "a45ec77813a6a6f2cf6dc90cc2df91bc")
+
+  def extract (self):
+    pass
+
+  def patch (self):
+    pass
+
+  def configure (self):
+    pass
+
+  def compile (self):
+    pass
+
+  def dist_image (self):
+    self.dist_image_with_tarball ("liblzma-4.999.9beta_20091209-1-msys-1.0.12-dll-1.tar.gz", "msys")
+
+  def install (self):
+    self.install_with_dist_image()
+
+def package():
+  return LibLZMA()
diff --git a/packages/mingw/sed.py b/packages/mingw/sed.py
new file mode 100644 (file)
index 0000000..c513813
--- /dev/null
@@ -0,0 +1,33 @@
+from package import Package
+import utils
+from buildutils import download_and_check, configure, make, apply_patch
+from Path import Path
+
+class Sed(Package):
+  def full_name (self):
+    return "sed-4.2.1"
+
+  def download (self):
+    download_and_check ("http://downloads.sourceforge.net/project/mingw/MSYS%20sed/sed-4.2.1-1/sed-4.2.1-1-msys-1.0.11-bin.tar.lzma",
+                        "ce06c0e1da23b094ca35026941fa413f")
+
+  def extract (self):
+    pass
+
+  def patch (self):
+    pass
+
+  def configure (self):
+    pass
+
+  def compile (self):
+    pass
+
+  def dist_image (self):
+    self.dist_image_with_tarball ("sed-4.2.1-1-msys-1.0.11-bin.tar.lzma", "msys")
+
+  def install (self):
+    self.install_with_dist_image()
+
+def package():
+  return Sed()
diff --git a/packages/mingw/xz.py b/packages/mingw/xz.py
new file mode 100644 (file)
index 0000000..52972e6
--- /dev/null
@@ -0,0 +1,33 @@
+from package import Package
+import utils
+from buildutils import download_and_check, configure, make, apply_patch
+from Path import Path
+
+class XZ(Package):
+  def full_name (self):
+    return "xz-20091209"
+
+  def download (self):
+    download_and_check ("http://downloads.sourceforge.net/project/mingw/MSYS%20xz/xz-4.999.9beta_20091209-1/xz-4.999.9beta_20091209-1-msys-1.0.12-bin.tar.gz",
+                        "83cd94294b17bc2b98bada44a6ec581c")
+
+  def extract (self):
+    pass
+
+  def patch (self):
+    pass
+
+  def configure (self):
+    pass
+
+  def compile (self):
+    pass
+
+  def dist_image (self):
+    self.dist_image_with_tarball ("xz-4.999.9beta_20091209-1-msys-1.0.12-bin.tar.gz", "msys")
+
+  def install (self):
+    self.install_with_dist_image()
+
+def package():
+  return XZ()