source: trunk/dports/python/py-beautifulsoup4/Portfile @ 96126

Last change on this file since 96126 was 96126, checked in by lightnin@…, 8 years ago

Added unified py-beautifulsoup4 version 4.1.1 port.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 96126 2012-08-01 16:35:20Z lightnin@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-beautifulsoup4
8license             BSD
9version             4.1.1
10categories          python textproc
11platforms           darwin
12maintainers         lightnin openmaintainer
13supported_archs     noarch
14
15description         Python HTML/XML parser
16long_description    Beautiful Soup is a Python HTML/XML parser designed for \
17                    quick turnaround projects like screen-scraping.
18
19homepage            http://www.crummy.com/software/BeautifulSoup/bs4/
20master_sites        http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/
21distname            beautifulsoup4-${version}
22checksums           md5 fccee58b4d914fb489385d672fe89f43 \
23                    sha1 6ff4662fdb78cfcec6b848a328750111d83e3346 \
24                    rmd160 92b5521ff5e8717fef4ab9a1890d2e4a7c0f015d
25
26python.versions     25 26 27 31 32
27python.default_version 27
28
29livecheck.type      regex
30livecheck.regex     beautifulsoup4-(\[0-9.\]+)${extract.suffix}
31
32if {${subport} != ${name}} {
33    variant html5lib description {Build with HTML5 support} {
34        depends_lib-append  port:py${python.version}-html5lib
35    }
36
37    variant lxml description {Build with lxml support} {
38        depends_lib-append  port:py${python.version}-lxml
39    }
40
41    post-destroot   {
42        set docdir ${prefix}/share/doc/${subport}
43        xinstall -d ${destroot}${docdir}
44        xinstall -m 644 -W ${worksrcpath} \
45            AUTHORS.txt \
46            COPYING.txt \
47            NEWS.txt \
48            PKG-INFO \
49            README.txt \
50            ${destroot}${docdir}
51    }
52}
53
54default_variants    +html5lib +lxml
Note: See TracBrowser for help on using the repository browser.