Changeset View
Changeset View
Standalone View
Standalone View
portage/win32libs/dbus/dbus.py
Show All 10 Lines | 6 | def setTargets( self ): | |||
---|---|---|---|---|---|
11 | 11 | | |||
12 | self.svnTargets['master'] = 'git://anongit.freedesktop.org/git/dbus/dbus' | 12 | self.svnTargets['master'] = 'git://anongit.freedesktop.org/git/dbus/dbus' | ||
13 | self.targetSrcSuffix['master'] = 'git' | 13 | self.targetSrcSuffix['master'] = 'git' | ||
14 | self.targetConfigurePath['master'] = 'cmake' | 14 | self.targetConfigurePath['master'] = 'cmake' | ||
15 | 15 | | |||
16 | self.patchToApply['1.8.4'] = [('dont_include_afxres.diff', 1)] | 16 | self.patchToApply['1.8.4'] = [('dont_include_afxres.diff', 1)] | ||
17 | self.patchToApply['1.10.4'] = [('dont_include_afxres.diff', 1)] | 17 | self.patchToApply['1.10.4'] = [('dont_include_afxres.diff', 1)] | ||
18 | self.patchToApply['1.11.4'] = [('dbus-1.11.4-20160903.diff', 1)] | 18 | self.patchToApply['1.11.4'] = [('dbus-1.11.4-20160903.diff', 1)] | ||
19 | 19 | | |||
20 | self.targetDigests['1.10.4'] = 'ec1921a09199c81ea20b20448237146a414d51ae' | 20 | self.targetDigests['1.10.4'] = 'ec1921a09199c81ea20b20448237146a414d51ae' | ||
21 | self.targetDigests['1.11.4'] = (['474de2afde8087adbd26b3fc5cbf6ec45559763c75b21981169a9a1fbac256c9'], CraftHash.HashAlgorithm.SHA256) | 21 | self.targetDigests['1.11.4'] = (['474de2afde8087adbd26b3fc5cbf6ec45559763c75b21981169a9a1fbac256c9'], CraftHash.HashAlgorithm.SHA256) | ||
22 | 22 | | |||
23 | self.shortDescription = "Freedesktop message bus system (daemon and clients)" | 23 | self.shortDescription = "Freedesktop message bus system (daemon and clients)" | ||
24 | self.homepage = "http://www.freedesktop.org/wiki/Software/dbus/" | 24 | self.homepage = "http://www.freedesktop.org/wiki/Software/dbus/" | ||
25 | self.defaultTarget = '1.11.4' | 25 | self.defaultTarget = '1.11.4' | ||
26 | 26 | | |||
27 | def setDependencies( self ): | 27 | def setDependencies( self ): | ||
Show All 24 Lines | 51 | self.subinfo.options.configure.args += ( | |||
52 | "-DDBUS_USE_OUTPUT_DEBUG_STRING=ON ") | 52 | "-DDBUS_USE_OUTPUT_DEBUG_STRING=ON ") | ||
53 | 53 | | |||
54 | def install( self ): | 54 | def install( self ): | ||
55 | if not CMakePackageBase.install( self ): return False | 55 | if not CMakePackageBase.install( self ): return False | ||
56 | 56 | | |||
57 | # TODO: fix | 57 | # TODO: fix | ||
58 | if self.buildType() == "Debug": | 58 | if self.buildType() == "Debug": | ||
59 | imagedir = os.path.join( self.installDir(), "lib" ) | 59 | imagedir = os.path.join( self.installDir(), "lib" ) | ||
60 | if compiler.isMSVC(): | 60 | if craftCompiler.isMSVC(): | ||
61 | if os.path.exists(os.path.join(imagedir, "dbus-1d.lib")): | 61 | if os.path.exists(os.path.join(imagedir, "dbus-1d.lib")): | ||
62 | utils.copyFile(os.path.join(imagedir, "dbus-1d.lib"), os.path.join(imagedir, "dbus-1.lib")) | 62 | utils.copyFile(os.path.join(imagedir, "dbus-1d.lib"), os.path.join(imagedir, "dbus-1.lib")) | ||
63 | if not os.path.exists(os.path.join(imagedir, "dbus-1d.lib")): | 63 | if not os.path.exists(os.path.join(imagedir, "dbus-1d.lib")): | ||
64 | utils.copyFile(os.path.join(imagedir, "dbus-1.lib"), os.path.join(imagedir, "dbus-1d.lib")) | 64 | utils.copyFile(os.path.join(imagedir, "dbus-1.lib"), os.path.join(imagedir, "dbus-1d.lib")) | ||
65 | if compiler.isMinGW(): | 65 | if craftCompiler.isMinGW(): | ||
66 | if os.path.exists(os.path.join(imagedir, "libdbus-1.dll.a")): | 66 | if os.path.exists(os.path.join(imagedir, "libdbus-1.dll.a")): | ||
67 | utils.copyFile( os.path.join(imagedir, "libdbus-1.dll.a"), os.path.join(imagedir, "libdbus-1d.dll.a") ) | 67 | utils.copyFile( os.path.join(imagedir, "libdbus-1.dll.a"), os.path.join(imagedir, "libdbus-1d.dll.a") ) | ||
68 | 68 | | |||
69 | return True | 69 | return True | ||
70 | 70 | | |||
71 | 71 | |