Ticket #11050: Portfile

File Portfile, 1.9 KB (added by tristan@…, 17 years ago)

sitescooper Portfile

Line 
1PortSystem        1.0
2
3name              sitescooper
4version           3.1.3
5categories        www perl
6
7description       Retrieve news from websites and convert for reading \
8                  on PDA.
9
10long_description  Sitescooper automatically retrieves the stories from \
11                  several news websites, trims off extraneous HTML, \
12                  and converts them into formats you can read on your \
13                  Palm computing device for later reading on-the-move. \
14                  It maintains a cache, and will avoid stories you've \
15                  already read. It can handle 1-page sites, 1-page \
16                  with diffing, 2-level and 3-level sites, and it's \
17                  very easy to add a new site to its list.
18
19homepage          http://sitescooper.sourceforge.net/
20master_sites      http://sitescooper.sourceforge.net/devel/
21distfiles         ${name}.tar.gz
22
23checksums         sha1 ab38d61423171857ca659b41d4c730043077f52d
24use_bzip2         no
25# tar doesn't seem to like this file on my machine, so skip it:
26extract.post_args   | tar -xf - --exclude \
27                      ${name}-${version}/site_samples/regional_denmark/ingen*site
28use_configure     no
29
30depends_lib       port:p5-libwww-perl \
31                  port:p5-html-parser \
32                  port:p5-uri \
33                  port:p5-mime-base64
34
35destroot          { cd ${worksrcpath}
36                    system "make \
37                    PREFIX=${destroot}${prefix} RAW_PREFIX=${prefix} \
38                    ETC=${destroot}${prefix}/etc MANDIR=${destroot}${prefix}/share/man \
39                    install" }
40
41post-destroot     { reinplace "s|.*CUSTOMISE.*lib_dir.*|use lib \
42                    \"${prefix}/share/${name}/lib\";|" ${destroot}${prefix}/bin/${name} 
43                    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${destroot}${prefix}/bin/${name}
44                    reinplace "s|/opt/etc|${prefix}/etc|g" ${destroot}${prefix}/bin/${name} }