/
Portfile
57 lines (45 loc) · 1.95 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- 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
PortGroup python 1.0
PortGroup github 1.0
github.setup kurtmckee feedparser 6.0.11
github.tarball_from archive
revision 0
name py-${name}
license BSD
supported_archs noarch
platforms {darwin any}
maintainers {khindenburg @kurthindenburg} openmaintainer
description RSS and Atom parser
long_description Universal Feed Parser is a Python module for downloading \
and parsing syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91, \
Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom, \
and CDF feeds.
checksums rmd160 b3df488d869882a31f2c1b71511339682aa1ea27 \
sha256 7474d23c879a4a7a2367801b417e2797c4abf25449e516d1b9139a3873af7ade \
size 253205
python.versions 27 38 39 310 311 312
# Skip beta versions
github.livecheck.regex {([0-9.]+)}
if {${name} ne ${subport}} {
if {${python.version} eq 27} {
github.setup kurtmckee feedparser 5.2.1
revision 0
checksums rmd160 22f74a36800fc02a57a69a16f3b793c23b863375 \
sha256 53a133aed63977066b772b44e8b4d7e2d9c3e1ab80a6a549a8f587db4bc8956f \
size 249223
depends_build-append \
port:py${python.version}-setuptools
} else {
depends_lib-append port:py${python.version}-sgmllib3k
depends_test-append port:py${python.version}-chardet
test.run yes
python.test_framework
test.cmd ${python.bin} tests/runtests.py
}
post-destroot {
xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
${destroot}${prefix}/share/doc/${subport}
}
livecheck.type none
}