Skip to content
Permalink
Browse files

py-clikit: add support for pastel 0.2.0

  • Loading branch information
dgilman authored and reneeotten committed Feb 12, 2020
1 parent da353a0 commit dcb282bf8f7332d22b8ac4d21b65ae6f25cb35ac
Showing with 21 additions and 1 deletion.
  1. +6 −1 python/py-clikit/Portfile
  2. +15 −0 python/py-clikit/files/patch-pastel2.diff
@@ -5,7 +5,7 @@ PortGroup python 1.0

name py-clikit
version 0.4.1
revision 0
revision 1
categories-append devel
platforms darwin
license MIT
@@ -25,8 +25,13 @@ homepage https://github.com/sdispater/clikit
checksums rmd160 7c3448b961cf7ae0e6b1e3e49dfca53cb019dc07 \
sha256 8ae4766b974d7b1983e39d501da9a0aadf118a907a0c9b50714d027c8b59ea81 \
size 51892
patchfiles patch-pastel2.diff

if {${name} ne ${subport}} {
post-extract {
reinplace "s|pastel>=0.1.0,<0.2.0|pastel>=0.1.0|" ${worksrcpath}/setup.py
}

depends_build-append \
port:py${python.version}-setuptools

@@ -0,0 +1,15 @@
https://github.com/sdispater/clikit/pull/10

diff --git a/src/clikit/adapter/style_converter.py b/src/clikit/adapter/style_converter.py
index a81d620..a2062e5 100644
--- src/clikit/adapter/style_converter.py
+++ src/clikit/adapter/style_converter.py
@@ -16,7 +16,7 @@ def convert(cls, style): # type: (Style) -> PastelStyle
options.append("bold")

if style.is_underlined():
- options.append("underscore")
+ options.append("underline")

if style.is_blinking():
options.append("blink")

0 comments on commit dcb282b

Please sign in to comment.
You can’t perform that action at this time.