source: trunk/dports/python/py-html2text/Portfile

Last change on this file was 149488, checked in by sean@…, 17 months ago

py-html2text: update to 2016.5.29

  • 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 149488 2016-06-22 22:57:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8
9set realname        html2text
10name                py-${realname}
11version             2016.5.29
12
13categories-append   textproc
14platforms           darwin
15license             GPL-3+
16supported_archs     noarch
17maintainers         nomaintainer
18
19description         html2text is a Python script that converts a page of HTML into text
20long_description    html2text is a Python script that converts a page of HTML into clean, \
21                    easy-to-read plain ASCII text. Better yet, that ASCII also happens to \
22                    be valid Markdown (a text-to-HTML format).
23
24homepage            http://pypi.python.org/pypi/${realname}
25master_sites        pypi:[string index ${realname} 0]/${realname}/
26distname            ${realname}-${version}
27
28checksums           rmd160  81019a1566f56ef75cea78009938b32cfc35a6df \
29                    sha256  98aa9e93724afb5ecd9445df9800d0690a3f910726b0c577009277024aa840c6
30
31python.versions     27 34 35
32
33if {${name} eq ${subport}} {
34    livecheck.type  regex
35    livecheck.regex [format "%s-%s" ${realname} {(\d+(\.\d+)*)}]
36    livecheck.url   http://pypi.python.org/pypi/${realname}/
37
38} else {
39    depends_lib-append  port:py${python.version}-setuptools
40
41    depends_run-append  port:py-html2text_select
42
43    select.group        py-html2text
44    select.file         ${filespath}/py${python.version}-html2text
45
46    livecheck.type  none
47
48    notes "
49To make the Python ${python.branch} version of py-html2text the one that is run\
50when you execute the commands without a version suffix, e.g. 'html2text', run:
51
52port select --set ${select.group} [file tail ${select.file}]
53"
54}
Note: See TracBrowser for help on using the repository browser.