Ticket #24763: Portfile

File Portfile, 1.9 KB (added by ddkilzer@…, 14 years ago)
Line 
1# $Id$
2
3PortSystem    1.0
4
5name          git-bzr
6version       1.1
7revision      48
8set commitish 61d60075fb548f1d49d54b1a98b8b568e68ecc44
9set short_commitish [string range ${commitish} 0 6]
10categories    devel
11platforms     darwin
12maintainers   unknown
13
14# To update, open <http://github.com/kfish/git-bzr> in a web browser
15# then download a tar.gz for the most recent commit (or the commit
16# for a release).  The file name will be formatted like ${distname}
17# with a .tar.gz extension.  Use the version and revision from the
18# file name and the long commitish from the web page to update the
19# fields above, and use the downloaded file to update the checksums
20# below.
21
22description   A bidirectional Git - Bazaar gateway
23long_description  The git-bzr script allows you to add bazaar repositories \
24    as git branches in your git repository. After that, you \
25    may fetch the Bazaar repo, make some changes, and push \
26    it back into Bazaar.
27
28homepage      http://github.com/kfish/${name}
29master_sites  http://github.com/kfish/${name}/tarball
30distname      kfish-${name}-v${version}-${revision}-g${short_commitish}
31distfiles     ${commitish}
32
33checksums     ${commitish} md5     4a4a46f525b3ee9b04c9df48077df53f \
34              ${commitish} sha1    5ca7a05311f981db28b4c4f1b8e308288ea4f000 \
35              ${commitish} rmd160  5acf3b5620dbc062a712d15cf153be26f47d0869
36
37depends_run-append  port:bzr \
38                    port:bzr-fastimport \
39                    port:git-core
40
41use_configure       no
42# Fix the source root since it doesn't match ${distname} when unpacked.
43build               { system "cd ${workpath} && mv -f kfish-${name}-${short_commitish} ${distname}" }
44destroot.cmd        install
45destroot.target     git-bzr
46destroot.destdir    ${destroot}${prefix}/bin
47
48universal_variant   no
49
50livecheck.type      regex
51livecheck.url       http://github.com/kfish/${name}/downloads
52livecheck.regex     {v(\d+(?:\.\d+)*)}