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: fc3520d937cce3c5d8ee2765bb08f590658ea6b0 (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
class FsharpPackage(GitHubTarballPackage):
    def __init__(self):
        GitHubTarballPackage.__init__(self,
            'fsharp', 'fsharp',
            '4.1.34',
            '662492595a63dffff8fac84939614743fd6d34f9',
            configure='./configure --prefix="%{package_prefix}"',
            override_properties={ 'make': 'make' })

        self.extra_stage_files = ['lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/Microsoft.FSharp.Targets']
        self.sources.extend(['patches/fsharp-portable-pdb.patch',
                             'patches/fsharp-string-switchName.patch',
                             'patches/fsharp-path-overloads.patch',
                             'patches/fsharp-debug-pinvoke-fix.patch',
                             'patches/fsharp-IsPathRooted-type-inference.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):
        self.sh('autoreconf') 
        Package.configure(self)
        Package.make(self)

FsharpPackage()