Changeset View
Changeset View
Standalone View
Standalone View
dev-utils/yasm/yasm.py
Show All 21 Lines | |||||
22 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 22 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
23 | # SUCH DAMAGE. | 23 | # SUCH DAMAGE. | ||
24 | 24 | | |||
25 | import info | 25 | import info | ||
26 | 26 | | |||
27 | 27 | | |||
28 | class subinfo(info.infoclass): | 28 | class subinfo(info.infoclass): | ||
29 | def setTargets(self): | 29 | def setTargets(self): | ||
30 | if CraftCore.compiler.isMacOS: | 30 | if CraftCore.compiler.isUnix: | ||
31 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz" | 31 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz" | ||
32 | self.targetDigests['1.3.0'] = (['3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f'], CraftHash.HashAlgorithm.SHA256) | 32 | self.targetDigests['1.3.0'] = (['3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f'], CraftHash.HashAlgorithm.SHA256) | ||
33 | self.targetInstSrc['1.3.0'] = "yasm-1.3.0" | 33 | self.targetInstSrc['1.3.0'] = "yasm-1.3.0" | ||
34 | elif CraftCore.compiler.isX64(): | 34 | elif CraftCore.compiler.isX64(): | ||
35 | if CraftCore.compiler.isMinGW(): | 35 | if CraftCore.compiler.isMinGW(): | ||
36 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe" | 36 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe" | ||
37 | if CraftCore.compiler.isMSVC(): | 37 | if CraftCore.compiler.isMSVC(): | ||
38 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win64.zip" | 38 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win64.zip" | ||
39 | else: | 39 | else: | ||
40 | if CraftCore.compiler.isMinGW(): | 40 | if CraftCore.compiler.isMinGW(): | ||
41 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win32.exe" | 41 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win32.exe" | ||
42 | if CraftCore.compiler.isMSVC(): | 42 | if CraftCore.compiler.isMSVC(): | ||
43 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win32.zip" | 43 | self.targets['1.3.0'] = "http://www.tortall.net/projects/yasm/releases/vsyasm-1.3.0-win32.zip" | ||
44 | 44 | | |||
45 | if CraftCore.compiler.isMacOS: | 45 | if CraftCore.compiler.isUnix: | ||
46 | self.targetInstallPath["1.3.0"] = "dev-utils" | 46 | self.targetInstallPath["1.3.0"] = "dev-utils" | ||
47 | else: | 47 | else: | ||
48 | self.targetInstallPath["1.3.0"] = os.path.join("dev-utils", "bin") | 48 | self.targetInstallPath["1.3.0"] = os.path.join("dev-utils", "bin") | ||
49 | 49 | | |||
50 | self.description = "The Yasm Modular Assembler Project" | 50 | self.description = "The Yasm Modular Assembler Project" | ||
51 | self.defaultTarget = '1.3.0' | 51 | self.defaultTarget = '1.3.0' | ||
52 | 52 | | |||
53 | def setDependencies(self): | 53 | def setDependencies(self): | ||
54 | if CraftCore.compiler.isMacOS: | 54 | if CraftCore.compiler.isUnix: | ||
55 | self.buildDependencies["libs/gettext"] = None | 55 | self.buildDependencies["libs/gettext"] = None | ||
56 | self.buildDependencies["libs/iconv"] = None | 56 | self.buildDependencies["libs/iconv"] = None | ||
57 | self.buildDependencies["dev-utils/intltool"] = None | 57 | self.buildDependencies["dev-utils/intltool"] = None | ||
58 | 58 | | |||
59 | self.runtimeDependencies["virtual/bin-base"] = None | 59 | self.runtimeDependencies["virtual/bin-base"] = None | ||
60 | 60 | | |||
61 | 61 | | |||
62 | from Package.AutoToolsPackageBase import * | 62 | from Package.AutoToolsPackageBase import * | ||
Show All 15 Lines | 77 | shutil.move(os.path.join(self.installDir(), "yasm-1.3.0-win32.exe"), | |||
78 | os.path.join(self.installDir(), "yasm.exe")) | 78 | os.path.join(self.installDir(), "yasm.exe")) | ||
79 | if CraftCore.compiler.isMinGW_W64(): | 79 | if CraftCore.compiler.isMinGW_W64(): | ||
80 | shutil.move(os.path.join(self.installDir(), "yasm-1.3.0-win64.exe"), | 80 | shutil.move(os.path.join(self.installDir(), "yasm-1.3.0-win64.exe"), | ||
81 | os.path.join(self.installDir(), "yasm.exe")) | 81 | os.path.join(self.installDir(), "yasm.exe")) | ||
82 | 82 | | |||
83 | return True | 83 | return True | ||
84 | 84 | | |||
85 | 85 | | |||
86 | if CraftCore.compiler.isMacOS: | 86 | if CraftCore.compiler.isUnix: | ||
87 | class Package(PackageAutotools): | 87 | class Package(PackageAutotools): | ||
88 | def __init__(self): | 88 | def __init__(self): | ||
89 | PackageAutotools.__init__(self) | 89 | PackageAutotools.__init__(self) | ||
90 | else: | 90 | else: | ||
91 | class Package(BinaryPackage): | 91 | class Package(BinaryPackage): | ||
92 | def __init__(self): | 92 | def __init__(self): | ||
93 | BinaryPackage.__init__(self) | 93 | BinaryPackage.__init__(self) | ||
94 | ## @todo remove the readme.txt file | 94 | ## @todo remove the readme.txt file |