Changeset View
Changeset View
Standalone View
Standalone View
portage/binary/gpg4win-e5/gpg4win-e5.py
Show All 10 Lines | |||||
11 | # The intention is that they should keep up with the recent versions of gpg4win | 11 | # The intention is that they should keep up with the recent versions of gpg4win | ||
12 | # (www.gpg4win.de) which packages gnupg seperatly so KDE software can interact | 12 | # (www.gpg4win.de) which packages gnupg seperatly so KDE software can interact | ||
13 | # with gpg4win. | 13 | # with gpg4win. | ||
14 | 14 | | |||
15 | import glob | 15 | import glob | ||
16 | 16 | | |||
17 | from Package.CMakePackageBase import * | 17 | from Package.CMakePackageBase import * | ||
18 | import info | 18 | import info | ||
19 | import compiler | 19 | from compiler import craftCompiler | ||
20 | 20 | | |||
21 | 21 | | |||
22 | class subinfo(info.infoclass): | 22 | class subinfo(info.infoclass): | ||
23 | 23 | | |||
24 | def setTargets( self ): | 24 | def setTargets( self ): | ||
25 | version="20130507" | 25 | version="20130507" | ||
26 | self.targets[version] = \ | 26 | self.targets[version] = \ | ||
27 | "http://files.kolab.org/local/gpg4win/gpg4win-dev-"+version+".tar.bz2" | 27 | "http://files.kolab.org/local/gpg4win/gpg4win-dev-"+version+".tar.bz2" | ||
Show All 11 Lines | 34 | class Package(CMakePackageBase): | |||
39 | def compile( self ): | 39 | def compile( self ): | ||
40 | return True | 40 | return True | ||
41 | 41 | | |||
42 | def install( self ): | 42 | def install( self ): | ||
43 | if( not self.cleanImage()): | 43 | if( not self.cleanImage()): | ||
44 | return False | 44 | return False | ||
45 | # This package is built with MinGW gcc, since the msvc expects a different | 45 | # This package is built with MinGW gcc, since the msvc expects a different | ||
46 | # Name it shall get it. | 46 | # Name it shall get it. | ||
47 | if compiler.isMSVC(): | 47 | if craftCompiler.isMSVC(): | ||
48 | gcc_names = glob.glob( self.sourceDir() + '/lib/*.dll.a' ) | 48 | gcc_names = glob.glob( self.sourceDir() + '/lib/*.dll.a' ) | ||
49 | for gcc_name in gcc_names: | 49 | for gcc_name in gcc_names: | ||
50 | msvc_name = gcc_name.replace( ".dll.a", ".lib" ) | 50 | msvc_name = gcc_name.replace( ".dll.a", ".lib" ) | ||
51 | shutil.move(gcc_name, msvc_name) | 51 | shutil.move(gcc_name, msvc_name) | ||
52 | shutil.copytree( self.sourceDir() , self.installDir() ) | 52 | shutil.copytree( self.sourceDir() , self.installDir() ) | ||
53 | return True | 53 | return True | ||
54 | 54 | |