# $Id: Portfile 92250 2012-04-22 22:01:50Z jeremyhu@macports.org $

PortSystem          1.0

name                xtrap
version             1.0.2
revision            2
categories          x11
maintainers         jeremyhu openmaintainer
description         XTrap sample clients
long_description \
   XTrap sample clients xtrapchar, xtrapin, xtrapinfo, xtrapout, xtrapproto, \
   xtrapreset, and xtrapstats.

platforms           darwin

homepage            http://www.x.org/
master_sites        xorg:individual/app/
use_bzip2           yes

checksums           md5     97a62a011a11f03b46d72851aa298fa8 \
                    sha1    228735dcf4e059865900cee7f9656fc1a6b0a746 \
                    rmd160  2eee6e6da2d6ce22c1d0148b546eea85b073ec22

depends_build \
	port:pkgconfig \
	port:xorg-util-macros

depends_lib         port:xorg-libXTrap

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

use_autoreconf yes
autoreconf.args -fvi

livecheck.type      regex
livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
livecheck.url       http://xorg.freedesktop.org/archive/individual/app/?C=M&O=D
