diff --git a/dev-utils/yasm/yasm.py b/dev-utils/yasm/yasm.py index 78d92737..f318e58f 100644 --- a/dev-utils/yasm/yasm.py +++ b/dev-utils/yasm/yasm.py @@ -1,62 +1,62 @@ # -*- coding: utf-8 -*- # Copyright 2018 Łukasz Wojniłowicz # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. import info class subinfo(info.infoclass): def setTargets(self): self.targets['1.3.0'] = "https://github.com/yasm/yasm/archive/v1.3.0.tar.gz" self.archiveNames["1.3.0"] = "yasm-1.3.0.tar.gz" self.targetDigests['1.3.0'] = (['f708be0b7b8c59bc1dbe7134153cd2f31faeebaa8eec48676c10f972a1f13df3'], CraftHash.HashAlgorithm.SHA256) self.targetInstSrc['1.3.0'] = "yasm-1.3.0" self.targetInstallPath["1.3.0"] = "dev-utils" self.patchToApply["1.3.0"] = [("yasm-1.3.0-20190723.diff", 1)] - self.patchLevel["1.3.0"] = 1 + self.patchLevel["1.3.0"] = 2 self.description = "The Yasm Modular Assembler Project" self.defaultTarget = '1.3.0' def setDependencies(self): if CraftCore.compiler.isUnix: self.buildDependencies["libs/gettext"] = None self.buildDependencies["libs/iconv"] = None self.buildDependencies["dev-utils/intltool"] = None self.buildDependencies["dev-utils/cmake"] = None self.runtimeDependencies["virtual/bin-base"] = None from Package.AutoToolsPackageBase import * from Package.CMakePackageBase import * -if CraftCore.compiler.isUnix: +if CraftCore.compiler.isGCCLike(): class Package(AutoToolsPackageBase): def __init__(self, **args): AutoToolsPackageBase.__init__(self) else: class Package(CMakePackageBase): def __init__(self, **args): CMakePackageBase.__init__(self) self.subinfo.options.configure.args += " -DBUILD_SHARED_LIBS=OFF"