Ticket #11228: Portfile

File Portfile, 1.3 KB (added by gui-dos (Guido Soranzio), 18 years ago)
Line 
1# $Id: $
2
3PortSystem 1.0
4
5name            xpn
6version         0.7.0
7categories      news
8description     Graphical newsreader written in PyGtk.
9long_description        \
10                XPN (X Python Newsreader) is a news client written in \
11                Python and based on the GTK+ library. It offers a good \
12                MIME support, scoring system, filtered views, random \
13                tag-lines, external editor support, one-key navigation, \
14                ROT13, Face and X-Face headers decoding, spoiler char \
15                and many more.
16maintainers     guido.soranzio@gmail.com
17homepage        http://xpn.altervista.org/
18master_sites    ${homepage}codice
19checksums       md5 3df054fc7c25f2e579407c1f148b9a27
20depends_lib     port:py-gtk2
21configure       {}
22build           {}
23destroot        {
24        file copy ${worksrcpath} ${destroot}${prefix}/share
25        system "chmod +x ${destroot}${prefix}/share/xpn-${version}"
26        system "chmod -R og+rw ${destroot}${prefix}/share/xpn-${version}"
27        system "echo \\#! ${prefix}/bin/python ${prefix}/share/xpn-${version}/xpn.py --home_dir\
28        > ${destroot}${prefix}/bin/xpn"
29        system "chmod +x ${destroot}${prefix}/bin/xpn"
30}
31
32post-activate   {
33        ui_msg "------------------------------------------------------"
34        ui_msg "XPN has been installed in ${prefix}/share/xpn-${version}"
35        ui_msg "and can be launched by calling the script 'xpn'"
36        ui_msg "that has been created in ${prefix}/bin"
37        ui_msg "------------------------------------------------------"
38}