svn commit: r523647 - in head/www: . py-httptools py-httptools/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Jan 20 20:08:47 UTC 2020
Author: sunpoet
Date: Mon Jan 20 20:08:45 2020
New Revision: 523647
URL: https://svnweb.freebsd.org/changeset/ports/523647
Log:
Add py-httptools 0.0.13
httptools is a Python binding for nodejs HTTP parser. It's still in a very early
development stage, expect APIs to break.
WWW: https://github.com/MagicStack/httptools
Added:
head/www/py-httptools/
head/www/py-httptools/Makefile (contents, props changed)
head/www/py-httptools/distinfo (contents, props changed)
head/www/py-httptools/files/
head/www/py-httptools/files/patch-httptools-parser-parser.c (contents, props changed)
head/www/py-httptools/files/patch-setup.py (contents, props changed)
head/www/py-httptools/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Mon Jan 20 20:08:39 2020 (r523646)
+++ head/www/Makefile Mon Jan 20 20:08:45 2020 (r523647)
@@ -1691,6 +1691,7 @@
SUBDIR += py-http-parser
SUBDIR += py-httpie
SUBDIR += py-httplib2
+ SUBDIR += py-httptools
SUBDIR += py-hyper
SUBDIR += py-hyperframe
SUBDIR += py-hyperlink
Added: head/www/py-httptools/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-httptools/Makefile Mon Jan 20 20:08:45 2020 (r523647)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= httptools
+PORTVERSION= 0.0.13
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Collection of framework independent HTTP protocol utils
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libhttp_parser.so:www/http-parser
+
+USES= localbase python:3.5+
+USE_PYTHON= autoplist distutils
+
+post-patch:
+ @${RM} -r ${WRKSRC}/vendor/
+
+.include <bsd.port.mk>
Added: head/www/py-httptools/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-httptools/distinfo Mon Jan 20 20:08:45 2020 (r523647)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1579531332
+SHA256 (httptools-0.0.13.tar.gz) = e00cbd7ba01ff748e494248183abc6e153f49181169d8a3d41bb49132ca01dfc
+SIZE (httptools-0.0.13.tar.gz) = 104152
Added: head/www/py-httptools/files/patch-httptools-parser-parser.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-httptools/files/patch-httptools-parser-parser.c Mon Jan 20 20:08:45 2020 (r523647)
@@ -0,0 +1,11 @@
+--- httptools/parser/parser.c.orig 2019-02-25 19:54:42 UTC
++++ httptools/parser/parser.c
+@@ -609,7 +609,7 @@ static CYTHON_INLINE float __PYX_NAN() {
+ #include <stdio.h>
+ #include "pythread.h"
+ #include <stdint.h>
+-#include "../../vendor/http-parser/http_parser.h"
++#include "http_parser.h"
+ #ifdef _OPENMP
+ #include <omp.h>
+ #endif /* _OPENMP */
Added: head/www/py-httptools/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-httptools/files/patch-setup.py Mon Jan 20 20:08:45 2020 (r523647)
@@ -0,0 +1,12 @@
+--- setup.py.orig 2019-02-25 19:55:33 UTC
++++ setup.py
+@@ -26,8 +26,7 @@ setup(
+ packages=['httptools', 'httptools.parser'],
+ ext_modules=[
+ Extension("httptools.parser.parser",
+- ["httptools/parser/parser.c",
+- "vendor/http-parser/http_parser.c"],
++ ["httptools/parser/parser.c"],
+ extra_compile_args=['-O2'])
+ ],
+ provides=['httptools'],
Added: head/www/py-httptools/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-httptools/pkg-descr Mon Jan 20 20:08:45 2020 (r523647)
@@ -0,0 +1,4 @@
+httptools is a Python binding for nodejs HTTP parser. It's still in a very early
+development stage, expect APIs to break.
+
+WWW: https://github.com/MagicStack/httptools
More information about the svn-ports-head
mailing list