forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding easyconfigs: p7zip-17.04-GCCcore-10.2.0.eb, p7zip-17.04-GCCcor…
…e-12.2.0.eb
- Loading branch information
1 parent
b5f070e
commit 3352d4b
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
easybuild/easyconfigs/p/p7zip/p7zip-17.04-GCCcore-10.2.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
easyblock = 'MakeCp' | ||
|
||
name = 'p7zip' | ||
version = '17.04' | ||
|
||
homepage = 'https://github.com/p7zip-project/p7zip/' | ||
description = """p7zip is a quick port of 7z.exe and 7za.exe (CLI version of | ||
7zip) for Unix. 7-Zip is a file archiver with highest compression ratio.""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '10.2.0'} | ||
|
||
github_account = 'p7zip-project' | ||
source_urls = [GITHUB_LOWER_SOURCE] | ||
sources = ['v%(version)s.tar.gz'] | ||
checksums = ['ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef'] | ||
|
||
builddependencies = [ | ||
('binutils', '2.35'), | ||
] | ||
|
||
prebuildopts = "cp makefile.linux_amd64 makefile.linux &&" | ||
buildopts = 'all3 CC="$CC" CXX="$CXX" OPTFLAGS="$CFLAGS"' | ||
|
||
files_to_copy = [ | ||
(['bin/7za', 'bin/7zr', 'bin/7zCon.sfx'], 'bin'), # stand-alone binaries | ||
(['bin/7z', 'bin/7z.%s' % SHLIB_EXT, 'bin/Codecs'], 'libexec'), # 7z requires 7z.so plugin in same directory | ||
] | ||
|
||
# put script in place for 7z, since it *must* be called full path, to ensure that 7z.so is found in the same directory | ||
# see also http://sourceforge.net/p/p7zip/discussion/383044/thread/5e4085ab/ | ||
postinstallcmds = [ | ||
"echo '#!/bin/sh\n%(installdir)s/libexec/7z $@' > %(installdir)s/bin/7z", | ||
"chmod +x %(installdir)s/bin/7z", # set execution bits according to current umask | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/7z', 'bin/7za', 'bin/7zCon.sfx', 'bin/7zr', 'libexec/7z', 'libexec/7z.%s' % SHLIB_EXT], | ||
'dirs': ['libexec/Codecs'], | ||
} | ||
|
||
sanity_check_commands = [ | ||
'7z --help', | ||
'7z x || test $? -gt 0', | ||
"! 7z i | grep -q \"Can't load\" ", | ||
] | ||
|
||
moduleclass = 'tools' |
47 changes: 47 additions & 0 deletions
47
easybuild/easyconfigs/p/p7zip/p7zip-17.04-GCCcore-12.2.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
easyblock = 'MakeCp' | ||
|
||
name = 'p7zip' | ||
version = '17.04' | ||
|
||
homepage = 'https://github.com/p7zip-project/p7zip/' | ||
description = """p7zip is a quick port of 7z.exe and 7za.exe (CLI version of | ||
7zip) for Unix. 7-Zip is a file archiver with highest compression ratio.""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '12.2.0'} | ||
|
||
github_account = 'p7zip-project' | ||
source_urls = [GITHUB_LOWER_SOURCE] | ||
sources = ['v%(version)s.tar.gz'] | ||
checksums = ['ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef'] | ||
|
||
builddependencies = [ | ||
('binutils', '2.39'), | ||
] | ||
|
||
prebuildopts = "cp makefile.linux_amd64 makefile.linux &&" | ||
buildopts = 'all3 CC="$CC" CXX="$CXX" OPTFLAGS="$CFLAGS"' | ||
|
||
files_to_copy = [ | ||
(['bin/7za', 'bin/7zr', 'bin/7zCon.sfx'], 'bin'), # stand-alone binaries | ||
(['bin/7z', 'bin/7z.%s' % SHLIB_EXT, 'bin/Codecs'], 'libexec'), # 7z requires 7z.so plugin in same directory | ||
] | ||
|
||
# put script in place for 7z, since it *must* be called full path, to ensure that 7z.so is found in the same directory | ||
# see also http://sourceforge.net/p/p7zip/discussion/383044/thread/5e4085ab/ | ||
postinstallcmds = [ | ||
"echo '#!/bin/sh\n%(installdir)s/libexec/7z $@' > %(installdir)s/bin/7z", | ||
"chmod +x %(installdir)s/bin/7z", # set execution bits according to current umask | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/7z', 'bin/7za', 'bin/7zCon.sfx', 'bin/7zr', 'libexec/7z', 'libexec/7z.%s' % SHLIB_EXT], | ||
'dirs': ['libexec/Codecs'], | ||
} | ||
|
||
sanity_check_commands = [ | ||
'7z --help', | ||
'7z x || test $? -gt 0', | ||
"! 7z i | grep -q \"Can't load\" ", | ||
] | ||
|
||
moduleclass = 'tools' |