From nobody Tue Aug 13 05:44:12 2024 X-Original-To: dev-commits-ports-main@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 4WjgLP0qjxz5SQN4; Tue, 13 Aug 2024 05:44:13 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WjgLP0ClVz48nn; Tue, 13 Aug 2024 05:44:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723527853; 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=lTEd/mEgR6pZHXDnkL9zkhrOS4HYC8lKu0jDxfbOV74=; b=aEs2yAce4GVYLPdguXrafIcfW+P18KA92qKjZqVcQlYzOZYifEeTPSeBcNWJCoKAZ4xaGb 8VG+YGJlGpPszQZUB9xurECNPxVOm2qoQmeuzaustOdC4AJghuWQgSIx6gHrFe3OFRhsAu puhlIUWd88tvt3uAVL77wt8im22C04P4GAZiciAOpRc7LeBTD6L8cJEvZaj0E/R7r+JJzs EnS96Ga8k98ujs1fOn54549oH4zw6TsNaizUjJ5OWZ6blQ2iskkUDjvnZyyrz+iBQBWezK ETTFFKcjxfAQNJtyWaG8W26Ez3GoU1w+kVTUUZbAh26oAI0ZGvV+OsZ28DuOwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723527853; a=rsa-sha256; cv=none; b=QsJYFvF1sUofXnObgNoroP6tnE78sN4oSxCo9ZPq8dkCwh/sbo8/1vdAhj2twbFveFaaua GI9C49glO3BngsNoAp7/+f086mbNv5wJ+0tvGXVwq1IAvtVrjLT7D0nWzWQ+O9DP3LyR/x /esyQq3OadwVklmbiFPF78LNILIOAvXQ0Kkwy3yVtTn5s7xCAviXORquRzarL/42+vBMY9 OnOUfcIrCY99VTy7W5gCbirrA6mw4YcihmMKcj3EZvLka/oM5p47zA76l0u5Frn7aXHjyv Qd+tarQGXqcZwAskpSkz1BddQ4iaHCS+NEF3GE+1IT1Y46TPON/0IKr/imXCnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723527853; 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=lTEd/mEgR6pZHXDnkL9zkhrOS4HYC8lKu0jDxfbOV74=; b=xOOren6n64xcWKF9DLW1EkJDNxPGHbnyz0gCyvRWQcAdJ/tBtHkheAJAx9+RStTrruyRLC HoU50FRv2XL+5qWRBcV8d5PejKGG8c5namujy3je6mKUaMULsGor+K6x4jPNeO8VM65uX6 4828i0fN/omJctsLtCQoDHKnnQONzoeCjxxHnxgFz+JkTww/1U0fXS20ax0SExScZeLjOh DmNJOXMgtfjWWqR0eoGTzPUKSnGphrgCC9EOWxJ02KO2hjvdB6Z+N5FbftRaAYj8bhq/nd /GltmA5IgRqPYvO1NCI0o+gu9Ik49adHAeJqiZdv728rWPEteSQdUMBdY3YLqQ== 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 4WjgLN6wp8zySP; Tue, 13 Aug 2024 05:44:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47D5iCja048399; Tue, 13 Aug 2024 05:44:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47D5iChK048396; Tue, 13 Aug 2024 05:44:12 GMT (envelope-from git) Date: Tue, 13 Aug 2024 05:44:12 GMT Message-Id: <202408130544.47D5iChK048396@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Zsolt Udvari Subject: git: ad83ddc0b407 - main - textproc/R-cran-downlit: new port, Syntax Highlighting and Automatic Linking List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: uzsolt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad83ddc0b4075fae1b7bae680de0bef1d97c88bc Auto-Submitted: auto-generated The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad83ddc0b4075fae1b7bae680de0bef1d97c88bc commit ad83ddc0b4075fae1b7bae680de0bef1d97c88bc Author: Zsolt Udvari AuthorDate: 2024-08-13 05:37:50 +0000 Commit: Zsolt Udvari CommitDate: 2024-08-13 05:42:15 +0000 textproc/R-cran-downlit: new port, Syntax Highlighting and Automatic Linking Syntax highlighting of R code, specifically designed for the needs of 'RMarkdown' packages like 'pkgdown', 'hugodown', and 'bookdown'. It includes linking of function calls to their documentation on the web, and automatic translation of ANSI escapes in output to the equivalent HTML. The math/R doesn't ship grid library's vignette so should remove one test. This port is needed to update of devel/R-cran-devtools. --- textproc/Makefile | 1 + textproc/R-cran-downlit/Makefile | 36 ++++++++++++++++++++++ textproc/R-cran-downlit/distinfo | 3 ++ .../files/patch-tests_testthat_test-link.R | 13 ++++++++ textproc/R-cran-downlit/pkg-descr | 4 +++ 5 files changed, 57 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 15b67f597bd7..62b14f964178 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -9,6 +9,7 @@ SUBDIR += R-cran-brew SUBDIR += R-cran-cellranger SUBDIR += R-cran-commonmark + SUBDIR += R-cran-downlit SUBDIR += R-cran-formatR SUBDIR += R-cran-highr SUBDIR += R-cran-htmlTable diff --git a/textproc/R-cran-downlit/Makefile b/textproc/R-cran-downlit/Makefile new file mode 100644 index 000000000000..eada95198c9e --- /dev/null +++ b/textproc/R-cran-downlit/Makefile @@ -0,0 +1,36 @@ +PORTNAME= downlit +DISTVERSION= 0.4.4 +CATEGORIES= textproc +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= uzsolt@FreeBSD.org +COMMENT= Syntax Highlighting and Automatic Linking +WWW= https://cran.r-project.org/web/packages/downlit/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +CRAN_DEPENDS= R-cran-brio>0:devel/R-cran-brio \ + R-cran-desc>0:devel/R-cran-desc \ + R-cran-digest>0:security/R-cran-digest \ + R-cran-evaluate>0:devel/R-cran-evaluate \ + R-cran-fansi>0:devel/R-cran-fansi \ + R-cran-memoise>0:devel/R-cran-memoise \ + R-cran-rlang>0:devel/R-cran-rlang \ + R-cran-vctrs>0:devel/R-cran-vctrs \ + R-cran-withr>0:devel/R-cran-withr \ + R-cran-yaml>0:textproc/R-cran-yaml +BUILD_DEPENDS= ${CRAN_DEPENDS} +RUN_DEPENDS= ${CRAN_DEPENDS} +TEST_DEPENDS= R-cran-covr>0:devel/R-cran-covr \ + R-cran-htmltools>0:textproc/R-cran-htmltools \ + R-cran-jsonlite>0:converters/R-cran-jsonlite \ + R-cran-pkgload>0:devel/R-cran-pkgload \ + R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \ + R-cran-testthat>0:devel/R-cran-testthat \ + R-cran-tidyverse>0:devel/R-cran-tidyverse \ + R-cran-xml2>0:textproc/R-cran-xml2 + +USES= cran:auto-plist + +.include diff --git a/textproc/R-cran-downlit/distinfo b/textproc/R-cran-downlit/distinfo new file mode 100644 index 000000000000..2c9361bcc3cf --- /dev/null +++ b/textproc/R-cran-downlit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1723491653 +SHA256 (downlit_0.4.4.tar.gz) = 55c377dcee4adc48c1060e14079f3d1832453d066a2cf070530caa210c48f828 +SIZE (downlit_0.4.4.tar.gz) = 37162 diff --git a/textproc/R-cran-downlit/files/patch-tests_testthat_test-link.R b/textproc/R-cran-downlit/files/patch-tests_testthat_test-link.R new file mode 100644 index 000000000000..d76be78b37e7 --- /dev/null +++ b/textproc/R-cran-downlit/files/patch-tests_testthat_test-link.R @@ -0,0 +1,13 @@ +--- tests/testthat/test-link.R.orig 2024-08-13 05:33:03 UTC ++++ tests/testthat/test-link.R +@@ -217,10 +217,6 @@ test_that("looks in attached packages", { + href_expr_(vignette("sha1")), + "https://cran.rstudio.com/web/packages/digest/vignettes/sha1.html" + ) +- expect_equal( +- href_expr_(vignette("moveline")), +- "https://cran.rstudio.com/web/packages/grid/vignettes/moveline.pdf" +- ) + }) + + test_that("fail gracefully with non-working calls", { diff --git a/textproc/R-cran-downlit/pkg-descr b/textproc/R-cran-downlit/pkg-descr new file mode 100644 index 000000000000..0af9982a9ee4 --- /dev/null +++ b/textproc/R-cran-downlit/pkg-descr @@ -0,0 +1,4 @@ +Syntax highlighting of R code, specifically designed for the needs of +'RMarkdown' packages like 'pkgdown', 'hugodown', and 'bookdown'. It includes +linking of function calls to their documentation on the web, and automatic +translation of ANSI escapes in output to the equivalent HTML.