fsharp.py 1.1 KB

1234567891011121314151617181920212223242526272829
  1. class FsharpPackage(GitHubTarballPackage):
  2. def __init__(self):
  3. GitHubTarballPackage.__init__(self,
  4. 'fsharp', 'fsharp',
  5. '4.5.0',
  6. '3de387432de8d11a89f99d1af87aa9ce194fe21b',
  7. configure='',
  8. override_properties={ 'make': 'make all install PREFIX="%{package_prefix}" DESTDIR=%{stage_root}' })
  9. self.extra_stage_files = ['lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/Microsoft.FSharp.Targets']
  10. self.sources.extend(['patches/fsharp-IsPathRooted-type-inference.patch',
  11. 'patches/fsharp-portable-pdb.patch',
  12. 'patches/fsharp-noinstall.patch',
  13. 'patches/fsharp-custom-prefix.patch',
  14. 'patches/fsharp-msbuild-16-0.patch'])
  15. def prep(self):
  16. Package.prep(self)
  17. for p in range(1, len(self.sources)):
  18. self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
  19. def build(self):
  20. Package.make(self)
  21. def install(self):
  22. pass
  23. FsharpPackage()