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

PortSystem      1.0

name            pwman
version         0.4.5
revision        1
categories      security
maintainers     oaf.dk:mni
description     curses based password management program
license         GPL-2

long_description \
    PWman is a curses based password storage application.\
    It uses GnuPG to encrypt and decrypt the password file.\
    The interface was inspired by Jaako Heinonen's abook.

homepage        https://sourceforge.net/projects/pwman
master_sites    sourceforge

checksums       rmd160  5277b506f66a0f105e341cfb0f80981ed2018e39 \
                sha256  7e7cf582408711423b1577b24e65427352eec5586f0cab82bf08cecb242ca776 \
                size    135138

depends_lib     path:bin/gpg:gnupg2 \
                port:libxml2 \
                port:ncurses

configure.args  --mandir=${prefix}/share/man

patchfiles      clang.patch

livecheck.url   ${homepage}
livecheck.regex {/pwman-(.+?)/ChangeLog}

post-configure {
  reinplace "s|-lcurses|-lncurses|" ${worksrcpath}/src/Makefile
}
