gregorycollins / cabal2macpkg
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
527934a
Gregory Collins (author)
Fri Jul 24 17:42:49 -0700 2009
commit 527934abadc2951707356a2e149526e5af672318
tree 6a55a47da7bc2f7deb5a6fbbf842f9e017f26223
parent 5cc4579ef6f30f8fbd38c22bc9a1fb93e3fe6b9a
tree 6a55a47da7bc2f7deb5a6fbbf842f9e017f26223
parent 5cc4579ef6f30f8fbd38c22bc9a1fb93e3fe6b9a
cabal2macpkg / README.markdown
cabal2macpkg
This is (will be) a tool to turn cabal libraries into Macintosh packages.
Status
Cabal2macpkg currently will build a .pkg file from a .cabal library. The next step (not started yet) will be to provide a mode that will read a .cabal file, recursively make .pkg files out of all of its dependencies, and package them all up into a .mpkg file.
Rough outline of the .pkg process
- find a .cabal file in the current working directory
- run "cabal build; cabal haddock" into a staging area
- run "cabal register --gen-script" to generate a registration script that will be run by the OS X installer
- turn the staging area into a mac package file using the OS X developer tools
A consequence of this quick n' dirty approach is that in order to build the installer for a cabal package, you need to have already installed all of its dependencies on the build machine.
