Mercurial > gub
changeset 6311:8840fa46b69b
Add tools::p7zip for supporting .7z files
Installation of p7zip became unnecessary to the system.
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Tue, 06 Jan 2015 23:54:21 +0900 |
parents | 60666ad9d5b9 |
children | 1f3e327a8956 b16a1636fe99 |
files | gub/repository.py gub/specs/mingw-w64-runtime.py gub/specs/p7zip.py |
diffstat | 3 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/repository.py Mon Jan 05 22:26:07 2015 +0900 +++ b/gub/repository.py Tue Jan 06 23:54:21 2015 +0900 @@ -565,7 +565,7 @@ #if self.oslog: #urg, will be fixed when .source is mandatory # _v = self.oslog.verbose_flag () _v = '' # self.oslog.verbose_flag () - self.system ('7z x %(_v)s %(tarball)s -o%(destdir)s' % locals ()) + self.system ('7za x %(_v)s %(tarball)s -o%(destdir)s' % locals ()) RepositoryProxy.register (SevenZFile)
--- a/gub/specs/mingw-w64-runtime.py Mon Jan 05 22:26:07 2015 +0900 +++ b/gub/specs/mingw-w64-runtime.py Tue Jan 06 23:54:21 2015 +0900 @@ -2,7 +2,7 @@ class Mingw_w64_runtime (build.BinaryBuild, build.SdkBuild): source = 'http://sourceforge.net/projects/mingw-w64/files/Toolchains%%20targetting%%20Win32/Personal%%20Builds/mingw-builds/4.8.2/threads-posix/sjlj/i686-4.8.2-release-posix-sjlj-rt_v3-rev4.7z' - dependencies = [ 'system::7z' ] + dependencies = [ 'tools::p7zip' ] subpackage_names = ['winpthread-dll', ''] def get_subpackage_definitions (self): d = build.BinaryBuild.get_subpackage_definitions (self)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gub/specs/p7zip.py Tue Jan 06 23:54:21 2015 +0900 @@ -0,0 +1,11 @@ +from gub import tools + +class P7zip__tools (tools.MakeBuild): + source = 'http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2' + dependencies = [ 'bzip2' ] + install_flags = ' DEST_HOME=%(install_prefix)s install' + def patch (self): + tools.MakeBuild.patch (self) + self.system(''' +sed -i -e 's/chmod 555/chmod 755/' -e 's/chmod 444/chmod 644/' %(srcdir)s/install.sh +''')