mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
44d7b87512
The error message using C locale is as follows: ./psl-make-dafsa --output-format=cxx+ "/usr/local/share/public_suffix_list/public_suffix_list.dat" suffixes_dafsa.c Traceback (most recent call last): File "./psl-make-dafsa", line 695, in <module> sys.exit(main()) File "./psl-make-dafsa", line 689, in main outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs)) File "./psl-make-dafsa", line 559, in parse_psl for line in infile: File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7619: ordinal not in range(128)
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libpsl
|
|
PORTVERSION= 0.17.0
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
|
CATEGORIES= dns
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= C library to handle the Public Suffix List
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= public_suffix_list>=0:dns/public_suffix_list \
|
|
xsltproc:textproc/libxslt
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
OPTIONS_SINGLE= IDNA
|
|
OPTIONS_SINGLE_IDNA= ICU IDN IDN2
|
|
OPTIONS_DEFAULT=ICU
|
|
ICU_DESC= Use devel/icu (IDNA2008 UTS\#46 library)
|
|
IDN_DESC= Use dns/libidn (IDNA2003 library)
|
|
IDN2_DESC= Use dns/libidn2 (IDNA2008 library)
|
|
|
|
CONFIGURE_ARGS= --enable-man \
|
|
--with-psl-file=${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat \
|
|
--with-psl-testfile=${LOCALBASE}/share/public_suffix_list/test_psl.txt
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
USE_LOCALE= en_US.UTF-8
|
|
USES= autoreconf libtool localbase:ldflags pathfix pkgconfig python:build shebangfix
|
|
|
|
GH_ACCOUNT= rockdaboot
|
|
USE_GITHUB= yes
|
|
|
|
SHEBANG_FILES= src/psl-make-dafsa
|
|
|
|
ICU_CONFIGURE_ON= --enable-builtin=libicu --enable-runtime=libicu
|
|
ICU_LIB_DEPENDS= libicuuc.so:devel/icu
|
|
IDN_CONFIGURE_ON= --enable-builtin=libidn --enable-runtime=libidn
|
|
IDN_LIB_DEPENDS= libidn.so:dns/libidn \
|
|
libunistring.so:devel/libunistring
|
|
IDN_USES= iconv
|
|
IDN2_CONFIGURE_ON= --enable-builtin=libidn2 --enable-runtime=libidn2
|
|
IDN2_LIB_DEPENDS= libidn2.so:dns/libidn2 \
|
|
libunistring.so:devel/libunistring
|
|
IDN2_USES= iconv
|
|
NLS_CPPFLAGS= -DENABLE_NLS=1
|
|
NLS_USES= gettext
|
|
NLS_USES_OFF= gettext-tools
|
|
|
|
.include <bsd.port.mk>
|