Ticket #15820: Portfile

File Portfile, 1.1 KB (added by ocroquette (Olivier Croquette), 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                qgit
6version             2.1
7categories          devel
8maintainers         ocroquette@free.fr
9description         A graphical interface to git repositories
10long_description    A QT graphical interface to git repositories
11
12homepage            http://sourceforge.net/projects/qgit/
13platforms           darwin
14distname            qgit-${version}
15
16use_bzip2           yes
17worksrcdir          qgit
18
19master_sites        sourceforge
20checksums           md5 f22787c814fbe832d6da7c6a2436c3c0
21
22depends_lib         port:qt4-mac port:git-core
23
24configure {
25    # ui_msg ${worksrcpath}
26    system "cd ${worksrcpath} && qmake"
27}
28
29destroot {
30    # Install to the application directory
31    xinstall -m 755 -d ${destroot}/Applications/MacPorts
32    file copy ${worksrcpath}/bin/qgit.app \
33              ${destroot}/Applications/MacPorts
34
35    # Also copy to /bin for easier access from the command line
36    # Especially useful since qgit is supposed to be started from
37    # the GIT repository location.
38    xinstall ${worksrcpath}/bin/qgit.app/Contents/MacOS/qgit ${destroot}${prefix}/bin
39}
40