python3-publicsuffix2: use system public-suffix-list
This commit is contained in:
parent
1005689920
commit
40e2e5a6e8
2 changed files with 28 additions and 4 deletions
19
srcpkgs/python3-publicsuffix2/patches/system-psl.patch
Normal file
19
srcpkgs/python3-publicsuffix2/patches/system-psl.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/src/publicsuffix2/__init__.py
|
||||
+++ b/src/publicsuffix2/__init__.py
|
||||
@@ -55,7 +55,7 @@ except ImportError:
|
||||
PSL_URL = 'https://publicsuffix.org/list/public_suffix_list.dat'
|
||||
|
||||
BASE_DIR = path.dirname(__file__)
|
||||
-PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.dat')
|
||||
+PSL_FILE = '/usr/share/publicsuffix/public_suffix_list.dat'
|
||||
ABOUT_PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.ABOUT')
|
||||
|
||||
|
||||
--- a/src/publicsuffix2/public_suffix_list.ABOUT
|
||||
+++ b/src/publicsuffix2/public_suffix_list.ABOUT
|
||||
@@ -8,4 +8,4 @@ home_url: https://publicsuffix.org/
|
||||
owner: Mozilla
|
||||
copyright: Copyright (c) Mozilla and others
|
||||
license: mpl-2.0
|
||||
-license_text_file: mpl-2.0.LICENSE
|
||||
+license_text_file: /usr/share/licenses/MPL-2.0
|
|
@ -1,18 +1,23 @@
|
|||
# Template file for 'python3-publicsuffix2'
|
||||
pkgname=python3-publicsuffix2
|
||||
version=2019.12.21
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-requests python3-wheel"
|
||||
depends="python3"
|
||||
hostmakedepends="python3-setuptools python3-requests python3-wheel public-suffix"
|
||||
depends="python3 public-suffix"
|
||||
short_desc="Get a public suffix for a domain name using the Public Suffix List"
|
||||
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
|
||||
license="MIT, MPL-2.0"
|
||||
license="MIT"
|
||||
homepage="https://github.com/nexB/python-publicsuffix2"
|
||||
changelog="https://raw.githubusercontent.com/nexB/python-publicsuffix2/develop/CHANGELOG.rst"
|
||||
distfiles="https://github.com/nexB/python-publicsuffix2/archive/release-2.${version//./-}.tar.gz"
|
||||
checksum=b4ef022fccd7b4968151af208b0f890e55c00b24892a1a826b2b7a381215bafa
|
||||
|
||||
post_extract() {
|
||||
rm -f src/publicsuffix2/mpl-2.0.LICENSE
|
||||
rm -f src/publicsuffix2/public_suffix_list.dat
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense publicsuffix2.LICENSE
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue