PortSystem 1.0

name            xpn
version         1.2.6
revision        3
categories      news
license         GPL-2
description     Graphical newsreader written in PyGtk.
long_description XPN (X Python Newsreader) is a news client written in \
                Python and based on the GTK+ library. It offers a good \
                MIME support, scoring system, filtered views, random \
                tag-lines, external editor support, one-key navigation, \
                ROT13, Face and X-Face headers decoding, spoiler char \
                and many more.
maintainers     nomaintainer
platforms       any
supported_archs noarch
homepage        http://xpn.altervista.org/
master_sites    ${homepage}codice
checksums       md5     6b77345290a27406e411ea0ffa54780f \
                sha1    929a8e809121f3e286d5f36a76a0db5e2fa2875e \
                rmd160  672bb8cd22d8e4d03b98cf34701451225f35a9b7
depends_lib     port:py27-pygtk
use_configure   no
build           {}
destroot {
    file copy ${worksrcpath} ${destroot}${prefix}/share
    file copy ${filespath}/xpn.sh ${destroot}${prefix}/bin/xpn
    system "chmod +x ${destroot}${prefix}/share/xpn-${version}"
    system "chmod -R og+rw ${destroot}${prefix}/share/xpn-${version}"
    system "chmod +x ${destroot}${prefix}/bin/xpn"
}

post-destroot {
    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/xpn
    reinplace "s|__VERSION__|${version}|g" ${destroot}${prefix}/bin/xpn
}

notes "XPN has been installed in ${prefix}/share/xpn-${version}\
       and can be launched by calling the script 'xpn'\
       that has been created in ${prefix}/bin"
