mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Apply a patch fixing tests and some parsing logic
This let's us get rid of the pre-test target.
This commit is contained in:
parent
de2a412a6b
commit
004bb9c0f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550002
@ -4,9 +4,11 @@ PORTNAME= pup
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.4.0-10
|
||||
DISTVERSIONSUFFIX= -g681d7bb
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
PATCH_SITES= https://github.com/ericchiang/pup/pull/
|
||||
PATCHFILES= 142.patch:-p1
|
||||
PATCHFILES= 107.patch:-p1 \
|
||||
142.patch:-p1
|
||||
|
||||
MAINTAINER= 0mp@FreeBSD.org
|
||||
COMMENT= Command-line jq-like HTML parser using CSS selectors
|
||||
@ -38,12 +40,6 @@ post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
pre-test:
|
||||
@${REINPLACE_CMD} "/^json{}$$/d" ${WRKSRC}/tests/cmds.txt
|
||||
@${REINPLACE_CMD} "/ json{}$$/d" ${WRKSRC}/tests/expected_output.txt
|
||||
@${REINPLACE_CMD} "/^#toc li + a json{}$$/d" ${WRKSRC}/tests/cmds.txt
|
||||
@${REINPLACE_CMD} "/ #toc li + a json{}$$/d" ${WRKSRC}/tests/expected_output.txt
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} run.py > test_results.txt
|
||||
cd ${WRKSRC}/tests && ${DIFF} expected_output.txt test_results.txt
|
||||
|
@ -1,4 +1,4 @@
|
||||
TIMESTAMP = 1600967195
|
||||
TIMESTAMP = 1601022698
|
||||
SHA256 (ericchiang-pup-v0.4.0-10-g681d7bb_GH0.tar.gz) = 72a4c6fcf915ae33f9522a649b52cb44a1b83e9e3f18f8702177d0c722b1d2f9
|
||||
SIZE (ericchiang-pup-v0.4.0-10-g681d7bb_GH0.tar.gz) = 1514776
|
||||
SHA256 (fatih-color-v1.0.0_GH0.tar.gz) = 035f20ae3e9940416433ba4c3d9cb55511608a1ac3927e371be61fe5d6052590
|
||||
@ -13,5 +13,7 @@ SHA256 (mattn-go-colorable-v0.0.5_GH0.tar.gz) = 8cd5edba9e942ee564359af89c735743
|
||||
SIZE (mattn-go-colorable-v0.0.5_GH0.tar.gz) = 5856
|
||||
SHA256 (mattn-go-isatty-56b76bdf51f7_GH0.tar.gz) = 665e8446874f1e8bf32048c5dea7c70350ad2af3ddf9f38587dccb2a7a41330a
|
||||
SIZE (mattn-go-isatty-56b76bdf51f7_GH0.tar.gz) = 1958
|
||||
SHA256 (107.patch) = 403af0675b6d21d83bc97fa2298b49fab573b2dfb1506bfdf73dac89516b8066
|
||||
SIZE (107.patch) = 2653
|
||||
SHA256 (142.patch) = c84d18fd1160267371aa47d47f8346c1ceb9210bd28af74df11bd9527185e628
|
||||
SIZE (142.patch) = 612
|
||||
|
Loading…
Reference in New Issue
Block a user