From owner-svn-ports-all@freebsd.org Thu Feb 28 09:32:53 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FEE8152454D; Thu, 28 Feb 2019 09:32:53 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F2C1789629; Thu, 28 Feb 2019 09:32:52 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E60562E80; Thu, 28 Feb 2019 09:32:52 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1S9Wqa1027140; Thu, 28 Feb 2019 09:32:52 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1S9WqR6027136; Thu, 28 Feb 2019 09:32:52 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201902280932.x1S9WqR6027136@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Thu, 28 Feb 2019 09:32:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r494139 - in head/textproc: . pup X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/textproc: . pup X-SVN-Commit-Revision: 494139 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F2C1789629 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2019 09:32:53 -0000 Author: 0mp Date: Thu Feb 28 09:32:51 2019 New Revision: 494139 URL: https://svnweb.freebsd.org/changeset/ports/494139 Log: New port: textproc/pup: Command-line jq-like HTML parser using CSS selectors pup is a command line tool for processing HTML. It reads from stdin, prints to stdout, and allows the user to filter parts of the page using CSS selectors. Inspired by jq, pup aims to be a fast and flexible way of exploring HTML from the terminal. WWW: https://github.com/ericchiang/pup Reviewed by: krion Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D19378 Added: head/textproc/pup/ head/textproc/pup/Makefile (contents, props changed) head/textproc/pup/distinfo (contents, props changed) head/textproc/pup/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Thu Feb 28 09:30:27 2019 (r494138) +++ head/textproc/Makefile Thu Feb 28 09:32:51 2019 (r494139) @@ -1261,6 +1261,7 @@ SUBDIR += ppower4 SUBDIR += print-n-times SUBDIR += pugixml + SUBDIR += pup SUBDIR += pure-csv SUBDIR += pure-xml SUBDIR += py-Chameleon Added: head/textproc/pup/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pup/Makefile Thu Feb 28 09:32:51 2019 (r494139) @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= pup +DISTVERSIONPREFIX= v +DISTVERSION= 0.4.0-9 +DISTVERSIONSUFFIX= -g1c3cffd +CATEGORIES= textproc + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Command-line jq-like HTML parser using CSS selectors + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go python:2.7,test shebangfix +USE_GITHUB= yes +GH_ACCOUNT= ericchiang +SHEBANG_FILES= tests/run.py + +PLIST_FILES= bin/pup +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +pre-test: + @${REINPLACE_CMD} 's|^python |${PYTHON_VERSION} |' ${WRKSRC}/tests/test + @${REINPLACE_CMD} "s|pup |${STAGEDIR}/bin/pup |" ${WRKSRC}/tests/run.py + + # Disable broken tests. + @${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 && ${SH} ./test + cd ${GO_WRKSRC} && ${SETENV} ${GO_ENV} ${GO_CMD} test + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include Added: head/textproc/pup/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pup/distinfo Thu Feb 28 09:32:51 2019 (r494139) @@ -0,0 +1,3 @@ +TIMESTAMP = 1551261841 +SHA256 (ericchiang-pup-v0.4.0-9-g1c3cffd_GH0.tar.gz) = 7268df5ed3d87f7c64740918d0f55b8c1b46c50773498f6ddad8728e009e10e6 +SIZE (ericchiang-pup-v0.4.0-9-g1c3cffd_GH0.tar.gz) = 2762078 Added: head/textproc/pup/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pup/pkg-descr Thu Feb 28 09:32:51 2019 (r494139) @@ -0,0 +1,7 @@ +pup is a command line tool for processing HTML. It reads from stdin, prints to +stdout, and allows the user to filter parts of the page using CSS selectors. + +Inspired by jq, pup aims to be a fast and flexible way of exploring HTML from +the terminal. + +WWW: https://github.com/ericchiang/pup