# -*- 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                    xsel
version                 1.2.0
revision                2
categories              x11
platforms               darwin
maintainers             ryandesign

homepage                http://www.kfish.org/software/xsel/
master_sites            ${homepage}download/

description             command-line program for getting and setting the \
                        contents of the X selection

long_description        XSel is a ${description}. Normally this is only \
                        accessible by manually highlighting information and \
                        pasting it with the middle mouse button.

checksums               md5     75983f143ce83dc259796c6eaf85c8f5 \
                        sha1    e48df89d7ce7e1256b0c7464393533a0c296eca1 \
                        rmd160  53fc7fe06e4e4ebe3c47a3a97408876cd0c5faed

depends_lib             port:xorg-libX11

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        README \
        ${docdir}
}

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
