# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name              bazaar
version           1.4.2
revision          4
distname          bazaar_${version}
categories        devel
license           GPL-2
installs_libs     no
maintainers       {jmr @jmroot} openmaintainer
description       baz (Bazaar 1), a GNU Arch client
long_description \
    NOTE: this is baz, aka Bazaar 1. If you want Bazaar 2, use the bzr port. \
    Bazaar is intended to be an implementation of the GNU Arch \
    protocol that open source developers both want to use, and \
    love using. It is a drop-in replacement for tla. \
    GNU arch is a revision control system, similar in purpose to \
    tools such as CVS, SCCS, and Subversion. It is used to keep \
    track of the changes made to a source tree and to help \
    programmers combine and otherwise manipulate changes made by \
    multiple people or at different times.
homepage          http://bazaar-vcs.org/Baz1x

master_sites      http://bazaar-vcs.org/releases/src/obsolete
checksums         md5 6e61d7aeec990a801977ee6cdc3958d5 \
                  sha1 030fcf1d2de6392c6ab3c23d7af1fddbbeb65a73 \
                  rmd160 8a9d8159ead224b24ab84d0fd6cbc23ac004eb51

worksrcdir  thelove@canonical.com---dists--bazaar--1.4
patchfiles  patch-pfs.c.diff patch-pfs-sftp.c.diff patch-unit-sftp.c.diff

configure.cflags-append -L${prefix}/lib
configure.dir    ${workpath}/thelove@canonical.com---dists--bazaar--1.4/build
build.dir        ${configure.dir}

pre-configure {
    file mkdir ${configure.dir}
}
configure.cmd    ../src/configure
configure.args   --with-cc=${configure.cc}

depends_build-append  bin:gnutar:gnutar
configure.args-append --with-gnu-tar=gnutar

use_parallel_build no
build.env "CFLAGS=-g -O2 -Wall -fno-strict-aliasing \
-I${prefix}/include -L${prefix}/lib \
-lintl -lneon -lgpgme -lpth"

destroot.env "CFLAGS=-I${prefix}/include -L${prefix}/lib -lintl -lneon -lgpgme" \
            LDFLAGS=-L${prefix}/lib
destroot.destdir prefix=${destroot}${prefix}
post-destroot   {
    file rename ${destroot}${prefix}/bin/annotate ${destroot}${prefix}/bin/annotate-baz
}

depends_lib    port:neon  port:gpgme

livecheck.type  none
