1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name sitescooper |
---|
4 | version 3.1.3 |
---|
5 | categories www perl |
---|
6 | |
---|
7 | description Retrieve news from websites and convert for reading \ |
---|
8 | on PDA. |
---|
9 | |
---|
10 | long_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 | |
---|
19 | homepage http://sitescooper.sourceforge.net/ |
---|
20 | master_sites http://sitescooper.sourceforge.net/devel/ |
---|
21 | distfiles ${name}.tar.gz |
---|
22 | |
---|
23 | checksums sha1 ab38d61423171857ca659b41d4c730043077f52d |
---|
24 | use_bzip2 no |
---|
25 | # tar doesn't seem to like this file on my machine, so skip it: |
---|
26 | extract.post_args | tar -xf - --exclude \ |
---|
27 | ${name}-${version}/site_samples/regional_denmark/ingen*site |
---|
28 | use_configure no |
---|
29 | |
---|
30 | depends_lib port:p5-libwww-perl \ |
---|
31 | port:p5-html-parser \ |
---|
32 | port:p5-uri \ |
---|
33 | port:p5-mime-base64 |
---|
34 | |
---|
35 | destroot { 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 | |
---|
41 | post-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} } |
---|