# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
# $Id: Portfile 119444 2014-04-25 18:50:18Z ciserlohn@macports.org $

PortSystem          1.0

name                pass
version             1.6.1
maintainers         macports.swinbank.org:john openmaintainer
categories          security
description         ${name} is the standard unix password manager
long_description    ${description}
platforms           darwin
supported_archs     noarch
homepage            http://zx2c4.com/projects/password-store/
license             GPL-2+

depends_run			port:git-core \
                    port:gnupg2 \
                    port:pwgen \
                    port:getopt \
                    port:tree

master_sites        http://git.zx2c4.com/password-store/snapshot/
distname            password-store-${version}
use_xz              yes

checksums           rmd160 a5bb1d7d8aecb8900a5b5b0b6ba68963d2bca778 \
                    sha256 3c154d556c53c76b1a0ccacdc108c34f1fdb4a36fab28a6d2f42f02184290881

patchfiles          patch-Makefile.diff \
                    patch-getopt-path.diff

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/platform/darwin.sh
}

use_configure       no
build {}

destroot.env-append PREFIX=${prefix} \
                    SYSCONFDIR=${prefix}/etc
