Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fsharp.py « MacSDK « packaging - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2916fe63831ce2bdd8bf1d3b8023c9fbf4dd0fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class FsharpPackage(GitHubTarballPackage):
    def __init__(self):
        GitHubTarballPackage.__init__(self,
            'fsharp', 'fsharp',
            '4.5.0',
            '3de387432de8d11a89f99d1af87aa9ce194fe21b',
            configure='',
            override_properties={ 'make': 'make all install PREFIX="%{package_prefix}" DESTDIR=%{stage_root}' })

        self.extra_stage_files = ['lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/Microsoft.FSharp.Targets']
        self.sources.extend(['patches/fsharp-IsPathRooted-type-inference.patch',
                             'patches/fsharp-portable-pdb.patch',
                             'patches/fsharp-noinstall.patch',
                             'patches/fsharp-GetFileNameWithoutExtension-type-inference.patch',
                             'patches/fsharp-msbuild-16-0.patch',
                             'patches/fsharp-custom-prefix.patch'])

    def prep(self):
        Package.prep(self)

        for p in range(1, len(self.sources)):
            self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')

    def build(self):
        Package.make(self)

    def install(self):
        pass

FsharpPackage()