Ticket #4970: Portfile

File Portfile, 1.9 KB (added by z3022016@…, 19 years ago)

the updated Portfile

Line 
1# $Id: Portfile,v 1.1 2005/08/14 12:17:36 olegb Exp $
2PortSystem        1.0
3name              bazaar
4version           1.4.2
5revision          1
6distname          bazaar_${version}
7categories        devel
8maintainers       josh_root@users.sourceforge.net
9description       an improved GNU Arch client
10long_description \
11        Bazaar is intended to be an implementation of the GNU Arch \
12        protocol that open source developers both want to use, and \
13        love using. It is a drop-in replacement for tla. \
14        GNU arch is a revision control system, similar in purpose to \
15        tools such as CVS, SCCS, and Subversion. It is used to keep \
16        track of the changes made to a source tree and to help \
17        programmers combine and otherwise manipulate changes made by \
18        multiple people or at different times.
19homepage          http://bazaar.canonical.com/
20
21master_sites      http://bazaar.canonical.com/releases/src/
22checksums         md5 6e61d7aeec990a801977ee6cdc3958d5
23
24configure.env    CFLAGS="-I'${prefix}/include' -L'${prefix}/lib'"
25configure.dir    ${workpath}/thelove@canonical.com---dists--bazaar--1.4/build
26build.dir        ${configure.dir}
27
28pre-configure {
29        file mkdir ${configure.dir}
30}
31configure.cmd    ../src/configure
32
33build.env CFLAGS="-g -O2 -Wall -fno-strict-aliasing \
34-I'${prefix}/include' -L'${prefix}/lib' \
35-lintl -lneon -lgpgme -lpth"
36
37destroot.env CFLAGS="-I'${prefix}/include' -L'${prefix}/lib' -lintl -lneon -lgpgme" \
38LDFLAGS="-L'${prefix}/lib'"
39destroot.destdir prefix=${destroot}${prefix}
40post-destroot   {
41        file rename ${destroot}${prefix}/bin/annotate ${destroot}${prefix}/bin/annotate-baz
42}
43
44variant darwin {
45        if {${os.version} < 8} {
46                depends_lib           bin:gdiff:diffutils
47                depends_lib           bin:gpatch:gpatch
48                depends_lib           bin:gnutar:gnutar
49                configure.args-append --with-gnu-diff=${prefix}/bin/gdiff \
50                                      --with-gnu-diff3=${prefix}/bin/gdiff3
51        }
52        depends_lib           lib:libneon:neon
53        depends_lib           lib:libgpgme:gpgme
54}