Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2020 17:58:34 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r525222 - in head/dns: . py-publicsuffix2 py-publicsuffix2/files
Message-ID:  <202002041758.014HwYNb097267@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Feb  4 17:58:34 2020
New Revision: 525222
URL: https://svnweb.freebsd.org/changeset/ports/525222

Log:
  Add py-publicsuffix2 2.20191221
  
  This module allows you to get the public suffix of a domain name using the
  Public Suffix List from http://publicsuffix.org
  
  A public suffix is one under which Internet users can directly register names.
  Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us. Accurately
  knowing the public suffix of a domain is useful when handling web browser
  cookies, highlighting the most important part of a domain name in a user
  interface or sorting URLs by web site
  
  WWW: https://github.com/nexb/python-publicsuffix2
  
  - While I'm here, patch setup.py to avoid unnecessary py-requests dependency and network connection during build
  
  PR:		243846
  Submitted by:	<ml@netfence.it>

Added:
  head/dns/py-publicsuffix2/
  head/dns/py-publicsuffix2/Makefile   (contents, props changed)
  head/dns/py-publicsuffix2/distinfo   (contents, props changed)
  head/dns/py-publicsuffix2/files/
  head/dns/py-publicsuffix2/files/patch-setup.py   (contents, props changed)
  head/dns/py-publicsuffix2/pkg-descr   (contents, props changed)
Modified:
  head/dns/Makefile

Modified: head/dns/Makefile
==============================================================================
--- head/dns/Makefile	Tue Feb  4 17:56:46 2020	(r525221)
+++ head/dns/Makefile	Tue Feb  4 17:58:34 2020	(r525222)
@@ -195,6 +195,7 @@
     SUBDIR += py-namebench
     SUBDIR += py-ns1-python
     SUBDIR += py-publicsuffix
+    SUBDIR += py-publicsuffix2
     SUBDIR += py-publicsuffixlist
     SUBDIR += py-py3dns
     SUBDIR += py-pybonjour

Added: head/dns/py-publicsuffix2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/py-publicsuffix2/Makefile	Tue Feb  4 17:58:34 2020	(r525222)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	publicsuffix2
+PORTVERSION=	2.20191221
+CATEGORIES=	dns python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ml@netfence.it
+COMMENT=	Get public suffix of domain name from Public Suffix List (Fork)
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/publicsuffix2.LICENSE
+
+PATCH_DEPENDS=	public_suffix_list>=0:dns/public_suffix_list
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+post-patch:
+	@${CP} ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat ${WRKSRC}/src/publicsuffix2/public_suffix_list.dat
+
+.include <bsd.port.mk>

Added: head/dns/py-publicsuffix2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/py-publicsuffix2/distinfo	Tue Feb  4 17:58:34 2020	(r525222)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1580756622
+SHA256 (publicsuffix2-2.20191221.tar.gz) = 00f8cc31aa8d0d5592a5ced19cccba7de428ebca985db26ac852d920ddd6fe7b
+SIZE (publicsuffix2-2.20191221.tar.gz) = 99592

Added: head/dns/py-publicsuffix2/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/py-publicsuffix2/files/patch-setup.py	Tue Feb  4 17:58:34 2020	(r525222)
@@ -0,0 +1,18 @@
+--- setup.py.orig	2019-12-21 11:28:25 UTC
++++ setup.py
+@@ -96,9 +96,6 @@ setup(
+     py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
+     include_package_data=True,
+     zip_safe=False,
+-    setup_requires = [
+-        'requests >= 2.7.0',
+-    ],
+     classifiers=[
+         'Intended Audience :: Developers',
+         'License :: OSI Approved :: MIT License',
+@@ -113,5 +110,4 @@ setup(
+     keywords=[
+         'domain', 'public suffix', 'suffix', 'dns', 'tld', 'sld', 'psl', 'idna',
+     ],
+-    cmdclass={'update_psl': UpdatePslCommand},
+ )

Added: head/dns/py-publicsuffix2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/py-publicsuffix2/pkg-descr	Tue Feb  4 17:58:34 2020	(r525222)
@@ -0,0 +1,10 @@
+This module allows you to get the public suffix of a domain name using the
+Public Suffix List from http://publicsuffix.org
+
+A public suffix is one under which Internet users can directly register names.
+Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us. Accurately
+knowing the public suffix of a domain is useful when handling web browser
+cookies, highlighting the most important part of a domain name in a user
+interface or sorting URLs by web site
+
+WWW: https://github.com/nexb/python-publicsuffix2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002041758.014HwYNb097267>