diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-01-10 17:29:23 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-01-10 17:29:23 +0000 |
commit | b87e5ceebdb0d7fdb166b48c168d32d99c0f8a00 (patch) | |
tree | 557824eb0c50de5b8a1a5d4cabd2fc2c700fcdc1 /textproc/py-pytidylib/Makefile | |
parent | www/rubygem-scrapi: Mark deprecated (diff) |
- Update to 0.3.2
- Support both tidy and tidy-html5 libraries as a backend.
The former is practically useless nowadays as it doesn't handle
any HTML5 tags, so the latter is the default.
PR: 220861
Approved by: matainainer timeout (koobs, 3 weeks)
Notes
Notes:
svn path=/head/; revision=458663
Diffstat (limited to 'textproc/py-pytidylib/Makefile')
-rw-r--r-- | textproc/py-pytidylib/Makefile | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/textproc/py-pytidylib/Makefile b/textproc/py-pytidylib/Makefile index 628c78e859ea..99fc8d0e73a6 100644 --- a/textproc/py-pytidylib/Makefile +++ b/textproc/py-pytidylib/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pytidylib -PORTVERSION= 0.2.4 +PORTVERSION= 0.3.2 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,13 +13,25 @@ COMMENT= Python wrapper for HTML Tidy (tidylib) LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libtidy.so:www/tidy-lib - USES= python USE_PYTHON= distutils autoplist - NO_ARCH= yes +OPTIONS_DEFAULT=TIDYHTML5 +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= TIDYLIB TIDYHTML5 + +BACKEND_DESC= Backend library selection +TIDYLIB_DESC= Use tidylib +TIDYHTML5_DESC= Use tidy-html5 + +TIDYLIB_LIB_DEPENDS= libtidy.so:www/tidy-lib +TIDYHTML5_LIB_DEPENDS= libtidy5.so:www/tidy-html5 + +post-patch-TIDYHTML5-on: + @${REINPLACE_CMD} -e '/LIB_NAMES/ s|\[.*\]|["libtidy5.so"]|' \ + ${WRKSRC}/tidylib/tidy.py + do-test: @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |