Skip to content

Commit

Permalink
www/py-adblock: Update version 0.5.0=>0.6.0
Browse files Browse the repository at this point in the history
Changelog: https://github.com/ArniDagur/python-adblock/releases/tag/0.6.0

PR:		275479
Approved by:	submitter is maintainer
  • Loading branch information
vendion authored and 5u623l20 committed Dec 8, 2023
1 parent 27a9c77 commit 9bc4543
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 226 deletions.
126 changes: 66 additions & 60 deletions www/py-adblock/Makefile
@@ -1,6 +1,5 @@
PORTNAME= adblock
DISTVERSION= 0.5.0
PORTREVISION= 51
DISTVERSION= 0.6.0
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand Down Expand Up @@ -31,71 +30,70 @@ GH_ACCOUNT= ArniDagur
GH_PROJECT= python-adblock
USE_PYTHON= autoplist concurrent cython distutils

CARGO_CRATES= adblock-0.3.13 \
CARGO_CRATES= adblock-0.5.6 \
addr-0.14.0 \
adler-1.0.2 \
aho-corasick-0.7.18 \
autocfg-1.0.1 \
autocfg-1.1.0 \
base64-0.13.0 \
bitflags-1.2.1 \
bitflags-1.3.2 \
byteorder-1.4.3 \
cfg-if-1.0.0 \
crc32fast-1.2.1 \
ctor-0.1.20 \
either-1.6.1 \
flate2-1.0.20 \
crc32fast-1.3.2 \
either-1.7.0 \
flate2-1.0.24 \
form_urlencoded-1.0.1 \
ghost-0.1.2 \
idna-0.2.2 \
indoc-0.3.6 \
indoc-impl-0.3.6 \
instant-0.1.9 \
inventory-0.1.10 \
inventory-impl-0.1.10 \
itertools-0.9.0 \
libc-0.2.93 \
lock_api-0.4.3 \
matches-0.1.8 \
memchr-2.4.0 \
miniz_oxide-0.4.4 \
num-traits-0.2.14 \
once_cell-1.7.2 \
parking_lot-0.11.1 \
parking_lot_core-0.8.3 \
paste-0.1.18 \
paste-impl-0.1.18 \
idna-0.2.3 \
indoc-1.0.6 \
itertools-0.10.3 \
libc-0.2.126 \
lock_api-0.4.7 \
matches-0.1.9 \
memchr-2.5.0 \
miniz_oxide-0.5.3 \
num-traits-0.2.15 \
once_cell-1.13.0 \
parking_lot-0.12.1 \
parking_lot_core-0.9.3 \
paste-1.0.7 \
percent-encoding-2.1.0 \
proc-macro-hack-0.5.19 \
proc-macro2-1.0.26 \
psl-2.0.18 \
psl-types-2.0.7 \
pyo3-0.13.2 \
pyo3-macros-0.13.2 \
pyo3-macros-backend-0.13.2 \
quote-1.0.9 \
redox_syscall-0.2.5 \
regex-1.5.4 \
regex-syntax-0.6.25 \
rmp-0.8.10 \
proc-macro2-1.0.40 \
psl-2.0.90 \
psl-types-2.0.10 \
pyo3-0.16.5 \
pyo3-build-config-0.16.5 \
pyo3-ffi-0.16.5 \
pyo3-macros-0.16.5 \
pyo3-macros-backend-0.16.5 \
quote-1.0.20 \
redox_syscall-0.2.13 \
regex-1.6.0 \
regex-syntax-0.6.27 \
rmp-0.8.11 \
rmp-serde-0.13.7 \
rmp-serde-0.15.5 \
scopeguard-1.1.0 \
seahash-3.0.7 \
serde-1.0.125 \
serde_derive-1.0.125 \
smallvec-1.6.1 \
syn-1.0.69 \
tinyvec-1.2.0 \
serde-1.0.139 \
serde_derive-1.0.139 \
smallvec-1.9.0 \
syn-1.0.98 \
target-lexicon-0.12.4 \
tinyvec-1.6.0 \
tinyvec_macros-0.1.0 \
twoway-0.2.1 \
twoway-0.2.2 \
unchecked-index-0.2.2 \
unicode-bidi-0.3.5 \
unicode-normalization-0.1.17 \
unicode-xid-0.2.1 \
unindent-0.1.7 \
url-2.2.1 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-x86_64-pc-windows-gnu-0.4.0
unicode-bidi-0.3.8 \
unicode-ident-1.0.2 \
unicode-normalization-0.1.21 \
unindent-0.1.9 \
url-2.2.2 \
windows-sys-0.36.1 \
windows_aarch64_msvc-0.36.1 \
windows_i686_gnu-0.36.1 \
windows_i686_msvc-0.36.1 \
windows_x86_64_gnu-0.36.1 \
windows_x86_64_msvc-0.36.1
CARGO_BUILD= no
CARGO_INSTALL= no
CARGO_TARGET_DIR= ${WRKSRC}/target
Expand All @@ -113,20 +111,22 @@ do-configure:
do-build:
@(cd ${BUILD_WRKSRC} ; \
PSL_PATH="${PREFIX}/share/public_suffix_list/public_suffix_list.dat" \
${SETENV} ${MAKE_ENV} maturin-${PYTHON_VER} build --release ${WITH_DEBUG:D:U--strip})
${SETENV} ${MAKE_ENV} maturin-${PYTHON_VER} build --release \
${WITH_DEBUG:D:U--strip})

# Due to upstream not supplying a setup.py file or other way to install
# using pip command for now...
do-install:
.if ${ARCH:Mpowerpc64*}
@(cd ${INSTALL_WRKSRC}; \
${FIND} . -name "*whl" -exec sh -c 'mv {} `echo {} | sed -E -e "s/powerpc.*/powerpc.whl/"`' \;)
${FIND} . -name "*whl" -exec ${SH} -c 'mv {} `echo {} | ${SED} -E -e "s/powerpc.*/powerpc.whl/"`' \
\;)
.endif
@(cd ${INSTALL_WRKSRC} ; \
${INSTALL_DATA} "target/release/libadblock.so" \
"${STAGEDIR}/${PREFIX}/lib" ; \
${SETENV} ${MAKE_ENV} pip-${PYTHON_VER} install --isolated --root=${STAGEDIR} \
--ignore-installed --no-deps target/wheels/*.whl)
${SETENV} ${MAKE_ENV} pip-${PYTHON_VER} install --isolated \
--root=${STAGEDIR} --ignore-installed --no-deps target/wheels/*.whl)

post-install:
(cd ${STAGEDIR}${PREFIX} && \
Expand All @@ -138,8 +138,14 @@ post-install:
# contains only the EGG files as a whole.
# SEE devel/py-maturin/Makefile
@${FIND} ${STAGEDIR} \
-type f -o -type l | \
${SORT} | ${SED} -e 's|${STAGEDIR}||' > \
-type \
f \
-o \
-type \
l | \
${SORT} | \
${SED} -e 's|${STAGEDIR}||' \
> \
${WRKDIR}/.PLIST.pymodtmp

.include <bsd.port.mk>

0 comments on commit 9bc4543

Please sign in to comment.