cabalg-0.2.5: cabalg.cabal
name: cabalg
version: 0.2.5
synopsis: alias for cabal install from given git repo
license: MIT
license-file: LICENSE
author: Dmitry Malikov
maintainer: malikov.d.y@gmail.com
build-type: Simple
cabal-version: >=1.10
description:
Short alias for installing cabal package from git source repository.
.
I.e.
.
@$> cabalg https:\/\/github.com\/biegunka\/biegunka
@
.
is just a shorthand for
.
@$> mktemp
$> git clone --single-branch --depth=1 --quiet https:\/\/github.com\/biegunka\/biegunka \<tempdirname\>
$> cabal install <tempdirname>/<cabalfilename>
@
.
It also supports arbitrary git revisions mentioning like
.
@$> cabalg https:\/\/github.com\/biegunka\/biegunka\@beefboa
@
.
Necessary arguments could be passed to 'cabal install' with '--' delimiter like
.
@$> cabalg \<repo1\> ... \<repoN\> [\-\- \<cabal-install args\>]
@
.
Please notice, that '--single-branch' flag comes with git-1.7.10 (<https://lkml.org/lkml/2012/3/28/418>) and later, so you probably want to have it.
.
It's supposed to be Windows-compatible (not sure about the tests)
executable cabalg
main-is: Main.hs
hs-source-dirs: src
other-modules: Git System.Directory.NonExistent
ghc-options: -Wall
default-language: Haskell2010
build-depends:
base >= 4 && < 5
, process
, directory
, filepath
library
hs-source-dirs: src
exposed-modules: System.Directory.NonExistent
other-modules: Git
ghc-options: -Wall
default-language: Haskell2010
build-depends:
base >= 4 && < 5
, process
, directory
, filepath
source-repository head
type: git
location: https://github.com/dmalikov/cabalg
test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Test.hs
default-language: Haskell2010
build-depends:
base >= 4 && < 5
, cabalg
, directory
, process