Changeset View
Changeset View
Standalone View
Standalone View
portage/libs/qt5/qtwebkit/qtwebkit.py
Show All 39 Lines | |||||
40 | from Package.Qt5CorePackageBase import * | 40 | from Package.Qt5CorePackageBase import * | ||
41 | class QtPackage(Qt5CorePackageBase): | 41 | class QtPackage(Qt5CorePackageBase): | ||
42 | def __init__( self, **args ): | 42 | def __init__( self, **args ): | ||
43 | Qt5CorePackageBase.__init__( self ) | 43 | Qt5CorePackageBase.__init__( self ) | ||
44 | utils.putenv("SQLITE3SRCDIR",CraftStandardDirs.craftRoot()) | 44 | utils.putenv("SQLITE3SRCDIR",CraftStandardDirs.craftRoot()) | ||
45 | self.subinfo.options.configure.args = "" | 45 | self.subinfo.options.configure.args = "" | ||
46 | if OsUtils.isWin(): | 46 | if OsUtils.isWin(): | ||
47 | self.subinfo.options.configure.args += """ "QT_CONFIG+=no-pkg-config" """ | 47 | self.subinfo.options.configure.args += """ "QT_CONFIG+=no-pkg-config" """ | ||
48 | if compiler.isMinGW(): | 48 | if craftCompiler.isMinGW(): | ||
49 | self.subinfo.options.configure.args += """ "QMAKE_CXXFLAGS += -g0 -O3" """ | 49 | self.subinfo.options.configure.args += """ "QMAKE_CXXFLAGS += -g0 -O3" """ | ||
50 | 50 | | |||
51 | def configure( self, configureDefines="" ): | 51 | def configure( self, configureDefines="" ): | ||
52 | if not len(self.subinfo.buildTarget) == 3:#5.9 | 52 | if not len(self.subinfo.buildTarget) == 3:#5.9 | ||
53 | with open(os.path.join(self.sourceDir(), ".qmake.conf"), "rt+") as conf: | 53 | with open(os.path.join(self.sourceDir(), ".qmake.conf"), "rt+") as conf: | ||
54 | text = conf.read() | 54 | text = conf.read() | ||
55 | text = re.sub(re.compile(r"MODULE_VERSION = \d\.\d+\.\d+"), f"MODULE_VERSION = {self.subinfo.buildTarget}", text) | 55 | text = re.sub(re.compile(r"MODULE_VERSION = \d\.\d+\.\d+"), f"MODULE_VERSION = {self.subinfo.buildTarget}", text) | ||
56 | with open(os.path.join(self.sourceDir(), ".qmake.conf"), "wt+") as conf: | 56 | with open(os.path.join(self.sourceDir(), ".qmake.conf"), "wt+") as conf: | ||
Show All 9 Lines |