f2e7a9bcdb6fc2e4362f257c8ae9ae5ed4470ad6
[mono.git] / packaging / MacSDK / fsharp.py
1 class FsharpPackage(GitHubTarballPackage):
2     def __init__(self):
3         GitHubTarballPackage.__init__(self,
4             'fsharp', 'fsharp',
5             '4.1.25',
6             '9687f27c3e6be7b9e1646bb9ee1ae0b02080daae',
7             configure='./configure --prefix="%{package_prefix}"',
8             override_properties={ 'make': 'make' })
9
10         self.extra_stage_files = ['lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/Microsoft.FSharp.Targets']
11         self.sources.extend(['patches/fsharp-portable-pdb.patch', 'patches/fsharp-metadata-table-size-fix.patch'])
12
13     def prep(self):
14         Package.prep(self)
15
16         for p in range(1, len(self.sources)):
17             self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
18
19     def build(self):
20         self.sh('autoreconf')
21         Package.configure(self)
22         Package.make(self)
23
24 FsharpPackage()