dns/libpsl: Convert to meson

- Remove NLS option
- Bump PORTREVISION for package change

PR:		269314
This commit is contained in:
Po-Chuan Hsieh 2023-02-13 02:36:39 +08:00
parent f7d702d594
commit bccc46e0b2
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View file

@ -1,6 +1,6 @@
PORTNAME= libpsl PORTNAME= libpsl
PORTVERSION= 0.21.2 PORTVERSION= 0.21.2
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= dns CATEGORIES= dns
MASTER_SITES= https://github.com/rockdaboot/libpsl/releases/download/${PORTVERSION}/ MASTER_SITES= https://github.com/rockdaboot/libpsl/releases/download/${PORTVERSION}/
@ -13,24 +13,19 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= public_suffix_list>=0:dns/public_suffix_list BUILD_DEPENDS= public_suffix_list>=0:dns/public_suffix_list
USES= libtool localbase:ldflags pathfix pkgconfig python:build shebangfix tar:lz USES= localbase:ldflags meson pkgconfig python:build shebangfix tar:lz
CONFIGURE_ARGS= --disable-gtk-doc \ MESON_ARGS= -Dbuiltin=true \
--disable-gtk-doc-html \ -Ddefault_library=both \
--disable-gtk-doc-pdf \ -Ddocs=false \
--disable-man \ -Dpsl_file=${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat \
--enable-builtin \ -Dpsl_testfile=${LOCALBASE}/share/public_suffix_list/test_psl.txt
--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_LDCONFIG= yes
USE_LOCALE= en_US.UTF-8 USE_LOCALE= en_US.UTF-8
SHEBANG_FILES= src/psl-make-dafsa SHEBANG_FILES= src/psl-make-dafsa
TEST_TARGET= test TEST_TARGET= test
OPTIONS_DEFINE= NLS
OPTIONS_SINGLE= IDNA OPTIONS_SINGLE= IDNA
OPTIONS_SINGLE_IDNA= ICU IDN IDN2 OPTIONS_SINGLE_IDNA= ICU IDN IDN2
OPTIONS_DEFAULT=IDN2 OPTIONS_DEFAULT=IDN2
@ -38,21 +33,18 @@ ICU_DESC= Use devel/icu (IDNA2008 UTS\#46 library)
IDN_DESC= Use dns/libidn (IDNA2003 library) IDN_DESC= Use dns/libidn (IDNA2003 library)
IDN2_DESC= Use dns/libidn2 (IDNA2008 library) IDN2_DESC= Use dns/libidn2 (IDNA2008 library)
ICU_CONFIGURE_ON= --enable-runtime=libicu
ICU_LIB_DEPENDS= libicuuc.so:devel/icu ICU_LIB_DEPENDS= libicuuc.so:devel/icu
IDN_CONFIGURE_ON= --enable-runtime=libidn ICU_MESON_ON= -Druntime=libicu
IDN_LIB_DEPENDS= libidn.so:dns/libidn \ IDN_LIB_DEPENDS= libidn.so:dns/libidn \
libunistring.so:devel/libunistring libunistring.so:devel/libunistring
IDN_MESON_ON= -Druntime=libidn
IDN_USES= iconv IDN_USES= iconv
IDN2_CONFIGURE_ON= --enable-runtime=libidn2
IDN2_LIB_DEPENDS= libidn2.so:dns/libidn2 \ IDN2_LIB_DEPENDS= libidn2.so:dns/libidn2 \
libunistring.so:devel/libunistring libunistring.so:devel/libunistring
IDN2_MESON_ON= -Druntime=libidn2
IDN2_USES= iconv IDN2_USES= iconv
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
NLS_USES_OFF= gettext-tools
post-install: post-install:
${RM} ${STAGEDIR}${PREFIX}/man/man1/psl-make-dafsa.1 ${RM} ${STAGEDIR}${PREFIX}/bin/psl-make-dafsa ${STAGEDIR}${PREFIX}/man/man1/psl-make-dafsa.1
.include <bsd.port.mk> .include <bsd.port.mk>