Changeset View
Changeset View
Standalone View
Standalone View
portage/dev-util/perl/perl.py
1 | import info | 1 | import info | ||
---|---|---|---|---|---|
2 | from Package.MaybeVirtualPackageBase import * | 2 | from Package.MaybeVirtualPackageBase import * | ||
3 | 3 | | |||
4 | 4 | | |||
5 | class subinfo(info.infoclass): | 5 | class subinfo(info.infoclass): | ||
6 | def setTargets( self ): | 6 | def setTargets( self ): | ||
7 | "http://downloads.activestate.com/ActivePerl/releases/5.24.1.2402/ActivePerl-5.24.1.2402-MSWin32-x64-401627.exe" | 7 | "http://downloads.activestate.com/ActivePerl/releases/5.24.1.2402/ActivePerl-5.24.1.2402-MSWin32-x64-401627.exe" | ||
8 | ver = "5.24.1.2402" | 8 | ver = "5.24.1.2402" | ||
9 | build = "401627" | 9 | build = "401627" | ||
10 | arch = "x86-64int" | 10 | arch = "x86-64int" | ||
11 | if compiler.isX64(): | 11 | if craftCompiler.isX64(): | ||
12 | arch = "x64" | 12 | arch = "x64" | ||
13 | self.targets[ver] = "http://downloads.activestate.com/ActivePerl/releases/{ver}/ActivePerl-{ver}-MSWin32-{arch}-{build}.exe".format( | 13 | self.targets[ver] = "http://downloads.activestate.com/ActivePerl/releases/{ver}/ActivePerl-{ver}-MSWin32-{arch}-{build}.exe".format( | ||
14 | ver=ver, arch=arch, build=build) | 14 | ver=ver, arch=arch, build=build) | ||
15 | self.targetInstallPath[ver] = "dev-utils" | 15 | self.targetInstallPath[ver] = "dev-utils" | ||
16 | self.targetDigestUrls[ver] = (["http://downloads.activestate.com/ActivePerl/releases/{0}/SHA256SUM".format(ver)], CraftHash.HashAlgorithm.SHA256) | 16 | self.targetDigestUrls[ver] = (["http://downloads.activestate.com/ActivePerl/releases/{0}/SHA256SUM".format(ver)], CraftHash.HashAlgorithm.SHA256) | ||
17 | self.defaultTarget = ver | 17 | self.defaultTarget = ver | ||
18 | 18 | | |||
19 | def setDependencies( self ): | 19 | def setDependencies( self ): | ||
Show All 20 Lines | 32 | def unpack(self): | |||
40 | utils.deleteFile(os.path.join(self.sourceDir(), "{0}.msi".format(name))) | 40 | utils.deleteFile(os.path.join(self.sourceDir(), "{0}.msi".format(name))) | ||
41 | return True | 41 | return True | ||
42 | 42 | | |||
43 | 43 | | |||
44 | 44 | | |||
45 | 45 | | |||
46 | class Package(VirtualIfSufficientVersion): | 46 | class Package(VirtualIfSufficientVersion): | ||
47 | def __init__(self): | 47 | def __init__(self): | ||
48 | VirtualIfSufficientVersion.__init__(self, app="perl", version="5.20.0", classA=PerlPackage) | 48 | VirtualIfSufficientVersion.__init__(self, app="perl", version="5.20.0", classA=PerlPackage) | ||
49 | No newline at end of file | |