public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-R/fs/files/, dev-R/fs/
@ 2022-05-03  3:32 Alessandro Barbieri
  0 siblings, 0 replies; only message in thread
From: Alessandro Barbieri @ 2022-05-03  3:32 UTC (permalink / raw
  To: gentoo-commits

commit:     7641f2357ce2db3613b13f93ad882ca0eb125ee6
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May  3 03:15:56 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue May  3 03:32:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7641f235

dev-R/fs: new package, add 1.5.2

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-R/fs/Manifest                          |  1 +
 dev-R/fs/files/fs-1.5.2-system-libuv.patch | 40 ++++++++++++++++++++++++++++
 dev-R/fs/fs-1.5.2.ebuild                   | 42 ++++++++++++++++++++++++++++++
 dev-R/fs/metadata.xml                      | 17 ++++++++++++
 4 files changed, 100 insertions(+)

diff --git a/dev-R/fs/Manifest b/dev-R/fs/Manifest
new file mode 100644
index 000000000..4668bc280
--- /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 000000000..053027475
--- /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 000000000..3b6911c4b
--- /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 000000000..5dddee52f
--- /dev/null
+++ b/dev-R/fs/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<description>co-maintainers welcome</description>
+		<name>Alessandro Barbieri</name>
+		<email>lssndrbarbieri@gmail.com</email>
+	</maintainer>
+	<upstream>
+		<maintainer>
+			<name>Gábor Csárdi</name>
+			<email>csardi.gabor@gmail.com</email>
+		</maintainer>
+		<bugs-to>https://github.com/r-lib/fs/issues</bugs-to>
+		<remote-id type="github">r-lib/fs</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-03  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-03  3:32 [gentoo-commits] repo/proj/guru:dev commit in: dev-R/fs/files/, dev-R/fs/ Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox