Index: py-pytidylib/Makefile =================================================================== --- py-pytidylib/Makefile (revision 446209) +++ py-pytidylib/Makefile (working copy) @@ -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 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libtidy.so:www/tidy-lib - -USES= python +USES?= python USE_PYTHON= distutils autoplist - NO_ARCH= yes +OPTIONS_DEFAULT=TIDYHTML5 +OPTIONS_SINGLE= LIBRARY +OPTIONS_SINGLE_LIBRARY= TIDYLIB TIDYHTML5 + +LIBRARY_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 Index: py-pytidylib/distinfo =================================================================== --- py-pytidylib/distinfo (revision 446209) +++ py-pytidylib/distinfo (working copy) @@ -1,2 +1,3 @@ -SHA256 (pytidylib-0.2.4.tar.gz) = 0af07bd8ebd256af70ca925ada9337faf16d85b3072624f975136a5134150ab6 -SIZE (pytidylib-0.2.4.tar.gz) = 86650 +TIMESTAMP = 1485774017 +SHA256 (pytidylib-0.3.2.tar.gz) = 22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3 +SIZE (pytidylib-0.3.2.tar.gz) = 87669 Index: py-pytidylib/files/patch-setup.py =================================================================== --- py-pytidylib/files/patch-setup.py (revision 446209) +++ py-pytidylib/files/patch-setup.py (nonexistent) @@ -1,9 +0,0 @@ ---- setup.py.orig 2016-02-26 12:55:44 UTC -+++ setup.py -@@ -84,5 +84,6 @@ setup( - 'Topic :: Text Processing :: Markup :: HTML', - 'Topic :: Text Processing :: Markup :: XML', - ], -+ test_suite='tests', - ) - Property changes on: py-pytidylib/files/patch-setup.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: py3-pytidylib/Makefile =================================================================== --- py3-pytidylib/Makefile (nonexistent) +++ py3-pytidylib/Makefile (working copy) @@ -0,0 +1,8 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +MASTERDIR= ${.CURDIR}/../py-pytidylib + +USES= python:3 + +.include "${MASTERDIR}/Makefile" Property changes on: py3-pytidylib/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: Makefile =================================================================== --- Makefile (revision 446224) +++ Makefile (working copy) @@ -1384,6 +1384,7 @@ SUBDIR += py3-pager SUBDIR += py3-pygments SUBDIR += py3-pystemmer + SUBDIR += py3-pytidylib SUBDIR += py3-snowballstemmer SUBDIR += py3-sphinx SUBDIR += py3-sphinx_rtd_theme