From nobody Fri Nov 26 18:37:22 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 26A9118A7B19; Fri, 26 Nov 2021 18:37:23 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J13Pt41yRz3r4J; Fri, 26 Nov 2021 18:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5BDAF5929; Fri, 26 Nov 2021 18:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AQIbMoT035807; Fri, 26 Nov 2021 18:37:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AQIbM2q035806; Fri, 26 Nov 2021 18:37:22 GMT (envelope-from git) Date: Fri, 26 Nov 2021 18:37:22 GMT Message-Id: <202111261837.1AQIbM2q035806@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 06b23f86f362 - main - textproc/write-good: Add a new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 06b23f86f362f0fcbaf7c4b23fb91e5d7e84ea36 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637951842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T0KcGmeMEZIglURn6ttaG+hlwQOyDuEEvO4/rDEdrlk=; b=FrnkmFF6k5mkWT2mDOOcbMyDHHi4ioP4Mhg24TLpvrUxR1//81JI3Nf4lccD7oWUpTyCvs xjhKT0UOYSmFmm0CSGPwhJYfAOPu3I5nkvkpIw53Ivlw5Jp3YCCLl8aSYBQyFJ+U0ZHXsR F9Fo4xVMvpel7H6DDHdlcvzt6FUkeoW7+2PKz8s0Qr6iYGzRGiefYyEjaoKo6Tq6pzsuWV BZQULykVHvL1sEmUYjClFCL/B80HPDIlxw2OcwHpsqAurbluzOdQkN6uEgTvRxitDEHi68 0wUw+/pe70Bk0Jgna5AnEZTuRG6pmvxtz4kwbv8aNgr9jNJK8bgxNOj3dHeCNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637951842; a=rsa-sha256; cv=none; b=kb5aetXatgN09vz95/pyz4rcqGOJZpO+vwuGii0Xo6Rw6cqFAbvY8SbFU3MdggfUkwI6oX 9VXYL+onzpUsWOjOXBS2+vlkb9UV++EUqvwvs/ANchIMVRz0C675GlYw/5mLkseHQ/2nMO EqFqORVU/Bz3D0er7ikMjdtxEK7VuKtPSYYddvgwJZz0o8pkKD+V4ZsDLlMMaqxdng+mRQ aMHJ2UfdiDDi+mGiHrw/WCU0tdPAVyeHgVDjc2L0jYBNKFhDOTjzAd4ngd1i04DhWxFx+h a8thr2Arowy7s5fzfEkU/6KdLu80OV8iFYdxfdhreHh06OAPWrmCNcLO3iRujw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=06b23f86f362f0fcbaf7c4b23fb91e5d7e84ea36 commit 06b23f86f362f0fcbaf7c4b23fb91e5d7e84ea36 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-11-26 18:33:58 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-11-26 18:36:48 +0000 textproc/write-good: Add a new port write-good is a naive linter for English prose. For example, it is able to check for the following issues in text: - passive voice - lexical illusions – cases where a word is repeated - "so" at the beginning of the sentence - "there is" or "there are" at the beginning of the sentence - weasel words - adverbs that can weaken meaning: really, very, extremely, etc. - wordy phrases and unnecessary words - common cliches WWW: https://github.com/btford/write-good Requested by: bcr (via https://wiki.freebsd.org/WantedPorts) --- textproc/Makefile | 1 + textproc/write-good/Makefile | 75 +++++++++++++++++++++++++++++++++++++++++++ textproc/write-good/distinfo | 7 ++++ textproc/write-good/pkg-descr | 13 ++++++++ textproc/write-good/pkg-plist | 10 ++++++ 5 files changed, 106 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index fd6af9076a1b..b956937a92fe 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1952,6 +1952,7 @@ SUBDIR += word2x SUBDIR += wordnet SUBDIR += words + SUBDIR += write-good SUBDIR += wv SUBDIR += wv2 SUBDIR += xalan-c diff --git a/textproc/write-good/Makefile b/textproc/write-good/Makefile new file mode 100644 index 000000000000..57af776ddc7f --- /dev/null +++ b/textproc/write-good/Makefile @@ -0,0 +1,75 @@ +PORTNAME= write-good +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.8 +CATEGORIES= textproc +MASTER_SITES= LOCAL/0mp/:npm +DISTFILES= ${_NPM_DISTFILES} + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Naive linter for English prose + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= npm:www/npm + +USES= nodejs:run +USE_GITHUB= yes +GH_ACCOUNT= btford + +NO_ARCH= yes +NO_BUILD= yes + +OPTIONS_DEFINE= DOCS +PORTDOCS= README.md + +.if !defined(MAINTAINER_MODE) +_NPM_DISTFILES= ${_NPM_DISTFILE_cache}:npm \ + ${_NPM_DISTFILE_modules}:npm +.endif +_NPM_DISTFILE_cache= ${PORTNAME}-${DISTVERSION}.cache${EXTRACT_SUFX} +_NPM_DISTFILE_modules= ${PORTNAME}-${DISTVERSION}.modules${EXTRACT_SUFX} + +_UNNECESSARY_FILES= test .dockerignore \ + .eslintrc .gitignore .npmignore .pre-commit-hooks.yaml \ + .travis.yml Dockerfile LICENSE README.md +_LIBEXEC_REL= libexec/${PORTNAME} +_LIBEXEC= ${STAGEDIR}${PREFIX}/${_LIBEXEC_REL} + +do-install: + @${MKDIR} ${_LIBEXEC} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${_LIBEXEC}) + + ${RLN} ${_LIBEXEC}/bin/${PORTNAME}.js ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${RLN} ${_LIBEXEC}/bin/${PORTNAME}.js ${STAGEDIR}${PREFIX}/bin/writegood + ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/writegood + + (cd ${_LIBEXEC} && ${RM} -r ${_UNNECESSARY_FILES}) + +post-install: +# Build plist automatically to avoid listing all the node_modules files. + (cd ${STAGEDIR}${PREFIX} && \ + ${FIND} ${_LIBEXEC_REL}/node_modules -not -type d >> ${TMPPLIST}) + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +# - Requires npm (e.g., from www/npm). +# - Remember to set MAINTAINER_MODE, +# e.g., "make -DMAINTAINER_MODE _npm-regenerate". +_npm-regenerate: + ${MAKE} clean patch + (cd ${WRKSRC} && ${SETENV} ${_NPM_ENV} npm install --ignore-scripts) + ${FIND} ${WRKDIR}/.npm ${WRKSRC}/node_modules -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; + (cd ${WRKDIR} && \ + ${FIND} .npm/_cacache -print0 | LC_ALL=C ${SORT} -z | \ + ${TAR} czf ${WRKDIR}/${_NPM_DISTFILE_cache} --format=bsdtar --uid 0 --gid 0 --options gzip:!timestamp --no-recursion --null -T -) + (cd ${WRKDIR} && \ + ${FIND} ${WRKSRC:T}/node_modules -print0 | LC_ALL=C ${SORT} -z | \ + ${TAR} czf ${WRKDIR}/${_NPM_DISTFILE_modules} --format=bsdtar --uid 0 --gid 0 --options gzip:!timestamp --no-recursion --null -T -) + scp ${WRKDIR}/${_NPM_DISTFILE_cache} ${WRKDIR}/${_NPM_DISTFILE_modules} 0mp@freefall.freebsd.org:public_distfiles/ + cp ${WRKDIR}/${_NPM_DISTFILE_cache} ${WRKDIR}/${_NPM_DISTFILE_modules} ${DISTDIR}/ + +.include diff --git a/textproc/write-good/distinfo b/textproc/write-good/distinfo new file mode 100644 index 000000000000..6e89d89febe1 --- /dev/null +++ b/textproc/write-good/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1637945430 +SHA256 (write-good-1.0.8.cache.tar.gz) = 925706581f374d4c687d6a0937ef5585a505b97fe54bcf037a5aab42a0dee0b6 +SIZE (write-good-1.0.8.cache.tar.gz) = 8879158 +SHA256 (write-good-1.0.8.modules.tar.gz) = beab42c24078ed500568d94cc6d8c897f83f428328024f577d5b2c9e6a8af365 +SIZE (write-good-1.0.8.modules.tar.gz) = 9226324 +SHA256 (btford-write-good-v1.0.8_GH0.tar.gz) = d4706a6c55f5b4a30453d867d0cc924d59be95b4ded16da0f409d9ec1feee08f +SIZE (btford-write-good-v1.0.8_GH0.tar.gz) = 47480 diff --git a/textproc/write-good/pkg-descr b/textproc/write-good/pkg-descr new file mode 100644 index 000000000000..032d6e34ad4a --- /dev/null +++ b/textproc/write-good/pkg-descr @@ -0,0 +1,13 @@ +write-good is a naive linter for English prose. For example, +it is able to check for the following issues in text: + +- passive voice +- lexical illusions – cases where a word is repeated +- "so" at the beginning of the sentence +- "there is" or "there are" at the beginning of the sentence +- weasel words +- adverbs that can weaken meaning: really, very, extremely, etc. +- wordy phrases and unnecessary words +- common cliches + +WWW: https://github.com/btford/write-good diff --git a/textproc/write-good/pkg-plist b/textproc/write-good/pkg-plist new file mode 100644 index 000000000000..76e12ec7209a --- /dev/null +++ b/textproc/write-good/pkg-plist @@ -0,0 +1,10 @@ +bin/write-good +bin/writegood +libexec/write-good/bin/write-good.js +libexec/write-good/lib/annotate.js +libexec/write-good/lib/lexical-illusions.js +libexec/write-good/lib/starts-with-so.js +libexec/write-good/lib/there-is.js +libexec/write-good/package-lock.json +libexec/write-good/package.json +libexec/write-good/write-good.js