diff --git a/dev-R/fs/Manifest b/dev-R/fs/Manifest new file mode 100644 index 0000000000..4668bc2800 --- /dev/null +++ b/dev-R/fs/Manifest @@ -0,0 +1 @@ +DIST fs_1.5.2.tar.gz 793627 BLAKE2B 46fc6ed71f4f6b79f47be09f9a64742cf4d561762d80612a42ecabd0ba24dcc0dc0b963ff25af2f6bee1c5b65e2d957be805a22a2fc4bae148dc2f1710c664ad SHA512 0d114613946ef03a9fa4a1a07cd30f04f0a677646692f17e9adaa55f8e65eb26575822875dc9054c19817fffae9dc11662c89115d4ea123846bea9bdfb06b305 diff --git a/dev-R/fs/files/fs-1.5.2-system-libuv.patch b/dev-R/fs/files/fs-1.5.2-system-libuv.patch new file mode 100644 index 0000000000..0530274757 --- /dev/null +++ b/dev-R/fs/files/fs-1.5.2-system-libuv.patch @@ -0,0 +1,40 @@ +--- /var/tmp/portage/dev-R/fs-1.5.2/work/fs-1.5.2/src/Makevars ++++ fs-1.5.2/src/Makevars +@@ -1,8 +1,6 @@ + UNAME := $(shell uname) + +-LIBUV := libuv-1.38.1 +- +-PKG_LIBS = ./$(LIBUV)/.libs/libuv.a -pthread ++PKG_LIBS = -pthread -luv + + SOURCES = $(wildcard *.cc unix/*.cc) + OBJECTS = $(SOURCES:.cc=.o) +@@ -21,24 +19,13 @@ + OBJECTS += bsd/setmode.o bsd/strmode.o bsd/reallocarray.o + endif + +-PKG_CPPFLAGS = -I./$(LIBUV)/include -I. -pthread +- +-all: $(SHLIB) +- +-$(SHLIB): $(LIBUV)/.libs/libuv.a +- +-$(LIBUV)/Makefile: +- (cd $(LIBUV) \ +- && CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS) $(CPICFLAGS) $(C_VISIBILITY)" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure --quiet) ++PKG_CPPFLAGS = -I./usr/include/uv -I. -pthread + +-$(LIBUV)/.libs/libuv.a: $(LIBUV)/Makefile +- $(MAKE) --directory=$(LIBUV) \ +- HAVE_DTRACE=0 ++all: + +-.PHONY: shlib-clean clean ++.PHONY: clean + + # shlib-clean: clean + + clean: +- $(MAKE) --directory=$(LIBUV) distclean + rm -f $(OBJECTS) diff --git a/dev-R/fs/fs-1.5.2.ebuild b/dev-R/fs/fs-1.5.2.ebuild new file mode 100644 index 0000000000..3b6911c4b2 --- /dev/null +++ b/dev-R/fs/fs-1.5.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit R-packages + +DESCRIPTION='Cross-Platform File System Operations Based on libuv' +HOMEPAGE=" + https://cran.r-project.org/package=fs + https://fs.r-lib.org/ + https://github.com/r-lib/fs +" + +KEYWORDS="~amd64" +LICENSE='MIT' + +DEPEND=" + >=dev-lang/R-3.1 + dev-libs/libuv +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-system-libuv.patch" ) + +src_prepare() { + rm -r src/libuv-* || die + R-packages_src_prepare +} + +R_SUGGESTS=" + dev-R/covr + dev-R/crayon + dev-R/knitr + >=dev-R/pillar-1.0.0 + dev-R/rmarkdown + dev-R/spelling + dev-R/testthat + >=dev-R/tibble-1.1.0 + >=dev-R/vctrs-0.3.0 + dev-R/withr +" diff --git a/dev-R/fs/metadata.xml b/dev-R/fs/metadata.xml new file mode 100644 index 0000000000..5dddee52fc --- /dev/null +++ b/dev-R/fs/metadata.xml @@ -0,0 +1,17 @@ + + + + + co-maintainers welcome + Alessandro Barbieri + lssndrbarbieri@gmail.com + + + + Gábor Csárdi + csardi.gabor@gmail.com + + https://github.com/r-lib/fs/issues + r-lib/fs + +