From f867d3c9b38973c98398ea8a8f2825ad776de1ef Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Sun, 3 Dec 2023 16:30:13 -0600 Subject: [PATCH] Added r-tidytext and dependencies Added r-tidytext, r-janeaustenr, r-snowballc, and r-tokenizers. --- Makefile | 12 +++++++++++ README.md | 11 ++++++++++ r-dplyr/Makefile | 1 + r-janeaustenr/.SRCINFO | 14 +++++++++++++ r-janeaustenr/Makefile | 9 ++++++++ r-janeaustenr/PKGBUILD | 23 +++++++++++++++++++++ r-purrr/Makefile | 1 + r-snowballc/.SRCINFO | 12 +++++++++++ r-snowballc/Makefile | 9 ++++++++ r-snowballc/PKGBUILD | 22 ++++++++++++++++++++ r-stringr/Makefile | 1 + r-tidytext/.SRCINFO | 47 ++++++++++++++++++++++++++++++++++++++++++ r-tidytext/Makefile | 32 ++++++++++++++++++++++++++++ r-tidytext/PKGBUILD | 27 ++++++++++++++++++++++++ r-tokenizers/.SRCINFO | 15 ++++++++++++++ r-tokenizers/Makefile | 12 +++++++++++ r-tokenizers/PKGBUILD | 25 ++++++++++++++++++++++ 17 files changed, 273 insertions(+) create mode 100644 r-janeaustenr/.SRCINFO create mode 100644 r-janeaustenr/Makefile create mode 100644 r-janeaustenr/PKGBUILD create mode 100644 r-snowballc/.SRCINFO create mode 100644 r-snowballc/Makefile create mode 100644 r-snowballc/PKGBUILD create mode 100644 r-tidytext/.SRCINFO create mode 100644 r-tidytext/Makefile create mode 100644 r-tidytext/PKGBUILD create mode 100644 r-tokenizers/.SRCINFO create mode 100644 r-tokenizers/Makefile create mode 100644 r-tokenizers/PKGBUILD diff --git a/Makefile b/Makefile index 459fa2b..d29a04a 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,9 @@ r-ids: r-isoband: cd $@ && make build +r-janeaustenr: + cd $@ && make build + r-jsonlite: cd $@ && make build @@ -262,6 +265,9 @@ r-scales: r-selectr: cd $@ && make build +r-snowballc: + cd $@ && make build + r-stringi: cd $@ && make build @@ -286,6 +292,9 @@ r-tidyr: r-tidyselect: cd $@ && make build +r-tidytext: + cd $@ && make build + r-tidyverse: cd $@ && make build @@ -295,6 +304,9 @@ r-timechange: r-tinytex: cd $@ && make build +r-tokenizers: + cd $@ && make build + r-tzdb: cd $@ && make build diff --git a/README.md b/README.md index c14cc73..3229382 100644 --- a/README.md +++ b/README.md @@ -298,4 +298,15 @@ flowchart TD r-rmarkdown --> r-fontawesome r-rmarkdown --> r-tinytex r-rmarkdown --> r-stringr + + r-tokenizers --> r-stringi + r-tokenizers --> r-rcpp + r-tokenizers --> r-snowballc + + r-tidytext --> r-stringr + r-tidytext --> r-dplyr + r-tidytext --> r-janeaustenr + r-tidytext --> r-matrix + r-tidytext --> r-purrr + r-tidytext --> r-tokenizers ``` diff --git a/r-dplyr/Makefile b/r-dplyr/Makefile index db4dabe..6a9ad15 100644 --- a/r-dplyr/Makefile +++ b/r-dplyr/Makefile @@ -22,4 +22,5 @@ build: .SRCINFO -I ~/pkg/local/pkgs/r-withr-2.5.2-2-any.pkg.tar.zst @echo "Please sign package and rebuild **r-dtplyr**!" @echo "Please sign package and rebuild **r-tidyr**!" + @echo "Please sign package and rebuild **r-tidytext**!" diff --git a/r-janeaustenr/.SRCINFO b/r-janeaustenr/.SRCINFO new file mode 100644 index 0000000..9486134 --- /dev/null +++ b/r-janeaustenr/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = r-janeaustenr + pkgdesc = Full texts for Jane Austen's 6 completed novels, ready for text analysis. + pkgver = 1.0.0 + pkgrel = 1 + url = https://cran.r-project.org/package=janeaustenr + arch = any + license = MIT + depends = r + optdepends = r-dplyr + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/janeaustenr_1.0.0.tar.gz + sha256sums = b4c32ee1395ee4a8efe714c535c0fe578b0dbf5f3bb85b41fa5cc87569b8e8aa + +pkgname = r-janeaustenr diff --git a/r-janeaustenr/Makefile b/r-janeaustenr/Makefile new file mode 100644 index 0000000..7362a1e --- /dev/null +++ b/r-janeaustenr/Makefile @@ -0,0 +1,9 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT + @echo "Please sign package and rebuild **r-tidytext**!" + diff --git a/r-janeaustenr/PKGBUILD b/r-janeaustenr/PKGBUILD new file mode 100644 index 0000000..7c74c46 --- /dev/null +++ b/r-janeaustenr/PKGBUILD @@ -0,0 +1,23 @@ +_cranname=janeaustenr +_cranver=1.0.0 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Full texts for Jane Austen's 6 completed novels, ready for text analysis." +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=(r) +optdepends=(r-dplyr r-testthat) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('b4c32ee1395ee4a8efe714c535c0fe578b0dbf5f3bb85b41fa5cc87569b8e8aa') + +build() { + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} diff --git a/r-purrr/Makefile b/r-purrr/Makefile index c4c4727..dd13d54 100644 --- a/r-purrr/Makefile +++ b/r-purrr/Makefile @@ -13,4 +13,5 @@ build: .SRCINFO -I ~/pkg/local/pkgs/r-vctrs-0.6.4-1-x86_64.pkg.tar.zst @echo "Please sign package and rebuild **r-googledrive**!" @echo "Please sign package and rebuild **r-tidyr**!" + @echo "Please sign package and rebuild **r-tidytext**!" diff --git a/r-snowballc/.SRCINFO b/r-snowballc/.SRCINFO new file mode 100644 index 0000000..26ed6c0 --- /dev/null +++ b/r-snowballc/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = r-snowballc + pkgdesc = An R interface to the C 'libstemmer' library. + pkgver = 0.7.1 + pkgrel = 1 + url = https://cran.r-project.org/package=SnowballC + arch = any + license = MIT + depends = r + source = https://cran.r-project.org/src/contrib/SnowballC_0.7.1.tar.gz + sha256sums = 753cf13f3206751662c03b1cf39bce9e680024f6d9f8503b836a83797181c034 + +pkgname = r-snowballc diff --git a/r-snowballc/Makefile b/r-snowballc/Makefile new file mode 100644 index 0000000..07fa7e0 --- /dev/null +++ b/r-snowballc/Makefile @@ -0,0 +1,9 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT + @echo "Please sign package and rebuild **r-tokenizer**!" + diff --git a/r-snowballc/PKGBUILD b/r-snowballc/PKGBUILD new file mode 100644 index 0000000..e51aee2 --- /dev/null +++ b/r-snowballc/PKGBUILD @@ -0,0 +1,22 @@ +_cranname=SnowballC +_cranver=0.7.1 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="An R interface to the C 'libstemmer' library." +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(BSD) +depends=(r) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('753cf13f3206751662c03b1cf39bce9e680024f6d9f8503b836a83797181c034') + +build() { + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} diff --git a/r-stringr/Makefile b/r-stringr/Makefile index 877a533..a45d965 100644 --- a/r-stringr/Makefile +++ b/r-stringr/Makefile @@ -15,4 +15,5 @@ build: .SRCINFO @echo "Please sign package and rebuild **r-rmarkdown**!" @echo "Please sign package and rebuild **r-selectr**!" @echo "Please sign package and rebuild **r-tidyr**!" + @echo "Please sign package and rebuild **r-tidytext**!" diff --git a/r-tidytext/.SRCINFO b/r-tidytext/.SRCINFO new file mode 100644 index 0000000..2627261 --- /dev/null +++ b/r-tidytext/.SRCINFO @@ -0,0 +1,47 @@ +pkgbase = r-tidytext + pkgdesc = Functions and supporting data sets to allow conversion of text to and from tidy formats, and to switch seamlessly between tidy tools and existing text mining packages. + pkgver = 0.4.1 + pkgrel = 1 + url = https://cran.r-project.org/package=tidytext + arch = any + license = MIT + depends = r>=2.10 + depends = r-cli + depends = r-dplyr + depends = r-generics + depends = r-janeaustenr + depends = r-lifecycle + depends = r-matrix + depends = r-methods + depends = r-purrr + depends = r-rlang>=0.4.10 + depends = r-stringr + depends = r-tibble + depends = r-tokenizers + depends = r-vctrs + optdepends = r-broom + optdepends = r-covr + optdepends = r-data.table + optdepends = r-ggplot2 + optdepends = r-hunspell + optdepends = r-knitr + optdepends = r-mallet + optdepends = r-nlp + optdepends = r-quanteda + optdepends = r-readr + optdepends = r-reshape2 + optdepends = r-rmarkdown + optdepends = r-scales + optdepends = r-stm + optdepends = r-stopwords + optdepends = r-testthat>=2.1.0 + optdepends = r-textdata + optdepends = r-tidyr + optdepends = r-tm + optdepends = r-topicmodels + optdepends = r-vdiffr + optdepends = r-wordcloud + source = https://cran.r-project.org/src/contrib/tidytext_0.4.1.tar.gz + sha256sums = 526750a2cc8ac7b65be1093f4c9186aa27f0a22f00023a6d6b3b878e1310c815 + +pkgname = r-tidytext diff --git a/r-tidytext/Makefile b/r-tidytext/Makefile new file mode 100644 index 0000000..5f7c047 --- /dev/null +++ b/r-tidytext/Makefile @@ -0,0 +1,32 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT \ + -I ~/pkg/local/pkgs/r-cli-3.6.1-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-dplyr-1.1.4-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-fansi-1.0.5-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-generics-0.1.3-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-glue-1.6.2-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-janeaustenr-1.0.0-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-lifecycle-1.0.4-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-magrittr-2.0.3-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-pillar-1.9.0-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-pkgconfig-2.0.3-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-purrr-1.0.2-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-r6-2.5.1-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-rcpp-1.0.11-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-rlang-1.1.2-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-snowballc-0.7.1-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-stringi-1.8.2-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-stringr-1.5.1-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-tibble-3.2.1-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-tidyselect-1.2.0-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-tokenizers-0.3.0-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-utf8-1.2.4-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-vctrs-0.6.4-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-withr-2.5.2-2-any.pkg.tar.zst + + diff --git a/r-tidytext/PKGBUILD b/r-tidytext/PKGBUILD new file mode 100644 index 0000000..491ce11 --- /dev/null +++ b/r-tidytext/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +# Contributor: Pranav K Anupam +# Contributor: Alex Branham + +_cranname=tidytext +_cranver=0.4.1 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Functions and supporting data sets to allow conversion of text to and from tidy formats, and to switch seamlessly between tidy tools and existing text mining packages." +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=('r>=2.10' r-cli r-dplyr r-generics r-janeaustenr r-lifecycle r-matrix r-methods r-purrr 'r-rlang>=0.4.10' r-stringr r-tibble r-tokenizers r-vctrs) +optdepends=(r-broom r-covr r-data.table r-ggplot2 r-hunspell r-knitr r-mallet r-nlp r-quanteda r-readr r-reshape2 r-rmarkdown r-scales r-stm r-stopwords 'r-testthat>=2.1.0' r-textdata r-tidyr r-tm r-topicmodels r-vdiffr r-wordcloud) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('526750a2cc8ac7b65be1093f4c9186aa27f0a22f00023a6d6b3b878e1310c815') + +build() { + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} diff --git a/r-tokenizers/.SRCINFO b/r-tokenizers/.SRCINFO new file mode 100644 index 0000000..053b15b --- /dev/null +++ b/r-tokenizers/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = r-tokenizers + pkgdesc = Convert natural language text into tokens. + pkgver = 0.3.0 + pkgrel = 1 + url = https://cran.r-project.org/package=tokenizers + arch = any + license = MIT + depends = r>=3.1.3 + depends = r-stringi>1.0.1 + depends = r-rcpp>=0.12.3 + depends = r-snowballc>=0.5.1 + source = https://cran.r-project.org/src/contrib/tokenizers_0.3.0.tar.gz + sha256sums = 24571e4642a1a2d9f4f4c7a363b514eece74788d59c09012a5190ee718a91c29 + +pkgname = r-tokenizers diff --git a/r-tokenizers/Makefile b/r-tokenizers/Makefile new file mode 100644 index 0000000..8b67cf3 --- /dev/null +++ b/r-tokenizers/Makefile @@ -0,0 +1,12 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT \ + -I ~/pkg/local/pkgs/r-rcpp-1.0.11-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-snowballc-0.7.1-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-stringi-1.8.2-2-x86_64.pkg.tar.zst + @echo "Please sign package and rebuild **r-tidytext**!" + diff --git a/r-tokenizers/PKGBUILD b/r-tokenizers/PKGBUILD new file mode 100644 index 0000000..0871fbd --- /dev/null +++ b/r-tokenizers/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +# Contributor: Grey Christoforo + +_cranname=tokenizers +_cranver=0.3.0 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Convert natural language text into tokens." +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=('r>=3.1.3' 'r-stringi>1.0.1' 'r-rcpp>=0.12.3' 'r-snowballc>=0.5.1') +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('24571e4642a1a2d9f4f4c7a363b514eece74788d59c09012a5190ee718a91c29') + +build() { + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} -- 2.45.2