diff --git a/autotools/bison/bison.py b/autotools/bison/bison.py index 47f9b4e4..6a452eb7 100644 --- a/autotools/bison/bison.py +++ b/autotools/bison/bison.py @@ -1,28 +1,29 @@ # -*- coding: utf-8 -*- import info from Package.AutoToolsPackageBase import * class subinfo(info.infoclass): def setDependencies(self): self.buildDependencies["dev-util/msys"] = "default" self.runtimeDependencies["virtual/base"] = "default" def setTargets(self): self.description = "Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables" self.svnTargets['master'] = 'git://git.savannah.gnu.org/bison.git' for ver in ["3.0.4"]: self.targets[ver] = f"http://ftp.gnu.org/gnu/bison/bison-{ver}.tar.xz" self.targetInstSrc[ver] = f"bison-{ver}" self.defaultTarget = '3.0.4' self.patchToApply["3.0.4"] = [("vasnprintf-macos.diff", 1)] class Package(AutoToolsPackageBase): - def __init__( self, **args ): - AutoToolsPackageBase.__init__( self ) + def __init__(self, **args): + AutoToolsPackageBase.__init__(self) + self.subinfo.options.configure.args += " --disable-static --enable-shared" - def install( self ): + def install(self): if not AutoToolsPackageBase.install(self): return False return self.copyToMsvcImportLib() diff --git a/autotools/flex/flex.py b/autotools/flex/flex.py index 2fe12fad..eb226a6d 100644 --- a/autotools/flex/flex.py +++ b/autotools/flex/flex.py @@ -1,27 +1,28 @@ # -*- coding: utf-8 -*- import info from Package.AutoToolsPackageBase import * class subinfo(info.infoclass): def setDependencies(self): self.buildDependencies["dev-util/msys"] = "default" self.runtimeDependencies["virtual/base"] = "default" def setTargets(self): self.description = "Flex is a tool for generating scanners: programs which recognize lexical patterns in text." self.svnTargets['master'] = 'https://github.com/westes/flex.git' for ver in ["2.6.4"]: self.targets[ver] = f"https://github.com/westes/flex/releases/download/v{ver}/flex-{ver}.tar.gz" self.targetInstSrc[ver] = f"flex-{ver}" self.defaultTarget = '2.6.4' class Package(AutoToolsPackageBase): - def __init__( self, **args ): - AutoToolsPackageBase.__init__( self ) + def __init__(self, **args): + AutoToolsPackageBase.__init__(self) + self.subinfo.options.configure.args += " --disable-static --enable-shared" - def install( self ): + def install(self): if not AutoToolsPackageBase.install(self): return False return self.copyToMsvcImportLib()