FreeBSD Bugzilla – Attachment 188956 Details for
Bug 220861
textproc/py-pytidylib: Update to 0.3.2, Add tidy-html5 support, Add py3 counterpart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
py-pytidylib.patch (text/plain), 3.05 KB, created by
Dmitry Marakasov
on 2017-12-19 11:53:25 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2017-12-19 11:53:25 UTC
Size:
3.05 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 456634) >+++ 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 > 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 > >Index: distinfo >=================================================================== >--- distinfo (revision 456634) >+++ 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: files/patch-setup.py >=================================================================== >--- files/patch-setup.py (revision 456714) >+++ files/patch-setup.py (working copy) >@@ -1,9 +1,8 @@ >---- setup.py.orig 2016-02-26 12:55:44 UTC >+--- setup.py.orig 2016-11-16 01:52:32 UTC > +++ setup.py >-@@ -84,5 +84,6 @@ setup( >- 'Topic :: Text Processing :: Markup :: HTML', >- 'Topic :: Text Processing :: Markup :: XML', >- ], >+@@ -94,4 +94,5 @@ setup( >+ 'Topic :: Text Processing :: Markup :: HTML', >+ 'Topic :: Text Processing :: Markup :: XML', >+ ], > + test_suite='tests', >- ) >- >+ ) >Index: files/patch-tidylib_tidy.py >=================================================================== >--- files/patch-tidylib_tidy.py (nonexistent) >+++ files/patch-tidylib_tidy.py (working copy) >@@ -0,0 +1,21 @@ >+--- tidylib/tidy.py.orig 2016-11-16 01:49:58 UTC >++++ tidylib/tidy.py >+@@ -29,8 +29,7 @@ from .sink import create_sink, destroy_s >+ __all__ = ['Tidy', 'PersistentTidy'] >+ >+ # Default search order for library names if nothing is passed in >+-LIB_NAMES = ['libtidy', 'libtidy.so', 'libtidy-0.99.so.0', 'cygtidy-0-99-0', >+- 'tidylib', 'libtidy.dylib', 'tidy'] >++LIB_NAMES = ['libtidy-0.99.so.0'] >+ >+ # Error code from library >+ ENOMEM = -12 >+@@ -84,7 +83,7 @@ class Tidy(object): >+ def __init__(self, lib_names=None): >+ self._tidy = None >+ if lib_names is None: >+- lib_names = ctypes.util.find_library('tidy') or LIB_NAMES >++ lib_names = LIB_NAMES >+ if isinstance(lib_names, str): >+ lib_names = [lib_names] >+ for name in lib_names:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220861
:
184511
| 188956