def unpack( self ): if not QMakePackageBase.unpack(self): return False utils.applyPatch( self.sourceDir(), os.path.join(self.packageDir(),"qconf.patch"), 1) default_mkspec = os.path.join( self.installDir(), "mkspecs" ) if not os.path.exists( default_mkspec ): utils.copySrcDirToDestDir( os.path.join( self.sourceDir(), "mkspecs" ), default_mkspec ) return True
def unpack( self ): if(not CMakePackageBase.unpack( self ) ): return False; # rename config.h and glibconfig.h.win32 in glib to # avoid config.h confusion p = re.compile('.*\.[ch]$') sedcmd = r"""-e "s/config.h/config.h.win32/" """ directory = os.path.join( self.glibDir, "glib" ) if ( os.path.exists( directory ) ): for root, dirs, files in os.walk( directory, topdown=False ): print root for name in files: if( p.match( name ) ): utils.sedFile( root, name, sedcmd ) # we have an own cmake script - copy it to the right place src = os.path.join( self.packageDir() , "CMakeLists.txt" ) dst = os.path.join( self.sourceDir() , "CMakeLists.txt" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "FindLibintl.cmake" ) dst = os.path.join( self.sourceDir(), "FindLibintl.cmake" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "FindKDEWin.cmake" ) dst = os.path.join( self.sourceDir(), "FindKDEWin.cmake" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "CheckMingwVersion.cmake" ) dst = os.path.join( self.sourceDir(), "CheckMingwVersion.cmake" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "config.h.cmake" ) dst = os.path.join( self.sourceDir(), "config.h.cmake" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "dirent.c" ) dst = os.path.join( self.sourceDir(), "dirent.c" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "unistd.c" ) dst = os.path.join( self.sourceDir(), "unistd.c" ) shutil.copy( src, dst ) if not os.path.exists( os.path.join( self.sourceDir(), "headers" ) ): os.makedirs( os.path.join( self.sourceDir(), "headers" ) ) src = os.path.join( self.packageDir(), "dirent.h" ) dst = os.path.join( self.sourceDir(), "headers", "dirent.h" ) shutil.copy( src, dst ) src = os.path.join( self.packageDir() , "unistd.h" ) dst = os.path.join( self.sourceDir(), "headers", "unistd.h" ) shutil.copy( src, dst ) utils.applyPatch( self.glibDir , os.path.join( self.packageDir(), "glib-x64.diff" ), 0 ) return True
def install(self): shutil.move( os.path.join( self.installDir() , "mingw32" ) , os.path.join( self.installDir(), "mingw" ) ) shutil.copy( os.path.join( self.installDir() , "mingw" , "bin" , "gmake.exe") , os.path.join( self.installDir() , "mingw" , "bin" , "mingw32-make.exe") ) utils.applyPatch( self.imageDir(), os.path.join( self.packageDir(), "gcc_Exit.diff"), 0 ) # FIXME: this is a hack for tzSpecificTimeToSystemLocalTime # Remove this when you update the mingw version if self.buildTarget == "20101003": shutil.copy( os.path.join( self.packageDir(), "libkernel32.a" ), os.path.join( self.installDir(), "mingw", "i686-w64-mingw32", "lib" ) ) return True
def install(self): shutil.move( os.path.join( self.installDir() , "mingw32" ) , os.path.join( self.installDir(), "mingw" ) ) shutil.copy( os.path.join( self.installDir() , "mingw" , "bin" , "gmake.exe") , os.path.join( self.installDir() , "mingw" , "bin" , "mingw32-make.exe") ) utils.applyPatch( self.imageDir(), os.path.join( self.packageDir(), "gcc_Exit.diff"), 0 ) # FIXME: this is a hack for tzSpecificTimeToSystemLocalTime # Remove this when you update the mingw version # the lib is generated out of the def file from the 2.0 release #dlltool -d kernel32.def -l libkernel32.a -k shutil.copy( os.path.join( self.packageDir(), "libkernel32.a" ), os.path.join( self.installDir(), "mingw", "i686-w64-mingw32", "lib" ) ) return True
def kdeSvnUnpack( self, svnpath=None, packagedir=None ): if self.kde.kdeSvnPath(): return self.kde.kdeSvnUnpack( svnpath, packagedir ) else: if not utils.unpackFiles( self.downloaddir, self._filenames, self.workdir ): return False if len( self.subinfo.targets ) and self.subinfo.buildTarget in self.subinfo.patchToApply.keys(): ( fileName, patchdepth ) = self.subinfo.patchToApply[ self.subinfo.buildTarget ] utils.debug( "patchesToApply: %s" % fileName, 0 ) patchfile = os.path.join ( self.packagedir, fileName ) srcdir = os.path.join ( self.workdir, self.instsrcdir ) return utils.applyPatch( srcdir, patchfile, patchdepth ) return True
def install(self): utils.applyPatch( self.imageDir(), os.path.join( self.packageDir(), "gcc_Exit.diff"), 1 ) shutil.copy(os.path.join( self.installDir() , "mingw64" , "bin" , "gmake.exe") , os.path.join( self.installDir() , "mingw64" , "bin" , "mingw32-make.exe") ) return True
def unpack( self ): if( not MultiSource.unpack( self ) ): return False utils.applyPatch( self.sourceDir(), os.path.join( self.packageDir(), "aspell-0.60.6.diff" ), 0 ) utils.applyPatch( self.sourceDir(), os.path.join( self.packageDir(), "aspell-kde-dirs.diff"),0 ) return True