Changeset View
Changeset View
Standalone View
Standalone View
portage/win32libs/shared-mime-info/shared-mime-info.py
1 | import os | 1 | import os | ||
---|---|---|---|---|---|
2 | import re | 2 | import re | ||
3 | import shutil | 3 | import shutil | ||
4 | 4 | | |||
5 | import utils | 5 | import utils | ||
6 | import info | 6 | import info | ||
7 | import info | 7 | import info | ||
8 | import compiler | 8 | from compiler import craftCompiler | ||
9 | from Package.CMakePackageBase import * | 9 | from Package.CMakePackageBase import * | ||
10 | 10 | | |||
11 | # do not forget to update CMakeLists.txt! | 11 | # do not forget to update CMakeLists.txt! | ||
12 | 12 | | |||
13 | 13 | | |||
14 | class subinfo(info.infoclass): | 14 | class subinfo(info.infoclass): | ||
15 | def setTargets( self ): | 15 | def setTargets( self ): | ||
16 | self.targets[ "1.1" ] = ["http://people.freedesktop.org/~hadess/shared-mime-info-1.1.tar.xz", | 16 | self.targets[ "1.1" ] = ["http://people.freedesktop.org/~hadess/shared-mime-info-1.1.tar.xz", | ||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 54 | def unpack( self ): | |||
107 | 107 | | |||
108 | utils.applyPatch( self.glibDir , os.path.join( self.packageDir(), "glib-x64.diff" ), 0 ) | 108 | utils.applyPatch( self.glibDir , os.path.join( self.packageDir(), "glib-x64.diff" ), 0 ) | ||
109 | 109 | | |||
110 | return True | 110 | return True | ||
111 | 111 | | |||
112 | def install( self ): | 112 | def install( self ): | ||
113 | if not CMakePackageBase.install( self ): | 113 | if not CMakePackageBase.install( self ): | ||
114 | return False | 114 | return False | ||
115 | if compiler.isMinGW(): | 115 | if craftCompiler.isMinGW(): | ||
116 | manifest = os.path.join( self.packageDir(), "update-mime-database.exe.manifest" ) | 116 | manifest = os.path.join( self.packageDir(), "update-mime-database.exe.manifest" ) | ||
117 | executable = os.path.join( self.installDir(), "bin", "update-mime-database.exe" ) | 117 | executable = os.path.join( self.installDir(), "bin", "update-mime-database.exe" ) | ||
118 | utils.embedManifest( executable, manifest ) | 118 | utils.embedManifest( executable, manifest ) | ||
119 | return True | 119 | return True | ||
120 | 120 | | |||
121 | 121 | |