1 |
commit: 7641f2357ce2db3613b13f93ad882ca0eb125ee6 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 3 03:15:56 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue May 3 03:32:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7641f235 |
7 |
|
8 |
dev-R/fs: new package, add 1.5.2 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-R/fs/Manifest | 1 + |
13 |
dev-R/fs/files/fs-1.5.2-system-libuv.patch | 40 ++++++++++++++++++++++++++++ |
14 |
dev-R/fs/fs-1.5.2.ebuild | 42 ++++++++++++++++++++++++++++++ |
15 |
dev-R/fs/metadata.xml | 17 ++++++++++++ |
16 |
4 files changed, 100 insertions(+) |
17 |
|
18 |
diff --git a/dev-R/fs/Manifest b/dev-R/fs/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..4668bc280 |
21 |
--- /dev/null |
22 |
+++ b/dev-R/fs/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST fs_1.5.2.tar.gz 793627 BLAKE2B 46fc6ed71f4f6b79f47be09f9a64742cf4d561762d80612a42ecabd0ba24dcc0dc0b963ff25af2f6bee1c5b65e2d957be805a22a2fc4bae148dc2f1710c664ad SHA512 0d114613946ef03a9fa4a1a07cd30f04f0a677646692f17e9adaa55f8e65eb26575822875dc9054c19817fffae9dc11662c89115d4ea123846bea9bdfb06b305 |
25 |
|
26 |
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 |
27 |
new file mode 100644 |
28 |
index 000000000..053027475 |
29 |
--- /dev/null |
30 |
+++ b/dev-R/fs/files/fs-1.5.2-system-libuv.patch |
31 |
@@ -0,0 +1,40 @@ |
32 |
+--- /var/tmp/portage/dev-R/fs-1.5.2/work/fs-1.5.2/src/Makevars |
33 |
++++ fs-1.5.2/src/Makevars |
34 |
+@@ -1,8 +1,6 @@ |
35 |
+ UNAME := $(shell uname) |
36 |
+ |
37 |
+-LIBUV := libuv-1.38.1 |
38 |
+- |
39 |
+-PKG_LIBS = ./$(LIBUV)/.libs/libuv.a -pthread |
40 |
++PKG_LIBS = -pthread -luv |
41 |
+ |
42 |
+ SOURCES = $(wildcard *.cc unix/*.cc) |
43 |
+ OBJECTS = $(SOURCES:.cc=.o) |
44 |
+@@ -21,24 +19,13 @@ |
45 |
+ OBJECTS += bsd/setmode.o bsd/strmode.o bsd/reallocarray.o |
46 |
+ endif |
47 |
+ |
48 |
+-PKG_CPPFLAGS = -I./$(LIBUV)/include -I. -pthread |
49 |
+- |
50 |
+-all: $(SHLIB) |
51 |
+- |
52 |
+-$(SHLIB): $(LIBUV)/.libs/libuv.a |
53 |
+- |
54 |
+-$(LIBUV)/Makefile: |
55 |
+- (cd $(LIBUV) \ |
56 |
+- && CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS) $(CPICFLAGS) $(C_VISIBILITY)" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure --quiet) |
57 |
++PKG_CPPFLAGS = -I./usr/include/uv -I. -pthread |
58 |
+ |
59 |
+-$(LIBUV)/.libs/libuv.a: $(LIBUV)/Makefile |
60 |
+- $(MAKE) --directory=$(LIBUV) \ |
61 |
+- HAVE_DTRACE=0 |
62 |
++all: |
63 |
+ |
64 |
+-.PHONY: shlib-clean clean |
65 |
++.PHONY: clean |
66 |
+ |
67 |
+ # shlib-clean: clean |
68 |
+ |
69 |
+ clean: |
70 |
+- $(MAKE) --directory=$(LIBUV) distclean |
71 |
+ rm -f $(OBJECTS) |
72 |
|
73 |
diff --git a/dev-R/fs/fs-1.5.2.ebuild b/dev-R/fs/fs-1.5.2.ebuild |
74 |
new file mode 100644 |
75 |
index 000000000..3b6911c4b |
76 |
--- /dev/null |
77 |
+++ b/dev-R/fs/fs-1.5.2.ebuild |
78 |
@@ -0,0 +1,42 @@ |
79 |
+# Copyright 1999-2022 Gentoo Foundation |
80 |
+# Distributed under the terms of the GNU General Public License v2 |
81 |
+ |
82 |
+EAPI=7 |
83 |
+ |
84 |
+inherit R-packages |
85 |
+ |
86 |
+DESCRIPTION='Cross-Platform File System Operations Based on libuv' |
87 |
+HOMEPAGE=" |
88 |
+ https://cran.r-project.org/package=fs |
89 |
+ https://fs.r-lib.org/ |
90 |
+ https://github.com/r-lib/fs |
91 |
+" |
92 |
+ |
93 |
+KEYWORDS="~amd64" |
94 |
+LICENSE='MIT' |
95 |
+ |
96 |
+DEPEND=" |
97 |
+ >=dev-lang/R-3.1 |
98 |
+ dev-libs/libuv |
99 |
+" |
100 |
+RDEPEND="${DEPEND}" |
101 |
+ |
102 |
+PATCHES=( "${FILESDIR}/${P}-system-libuv.patch" ) |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ rm -r src/libuv-* || die |
106 |
+ R-packages_src_prepare |
107 |
+} |
108 |
+ |
109 |
+R_SUGGESTS=" |
110 |
+ dev-R/covr |
111 |
+ dev-R/crayon |
112 |
+ dev-R/knitr |
113 |
+ >=dev-R/pillar-1.0.0 |
114 |
+ dev-R/rmarkdown |
115 |
+ dev-R/spelling |
116 |
+ dev-R/testthat |
117 |
+ >=dev-R/tibble-1.1.0 |
118 |
+ >=dev-R/vctrs-0.3.0 |
119 |
+ dev-R/withr |
120 |
+" |
121 |
|
122 |
diff --git a/dev-R/fs/metadata.xml b/dev-R/fs/metadata.xml |
123 |
new file mode 100644 |
124 |
index 000000000..5dddee52f |
125 |
--- /dev/null |
126 |
+++ b/dev-R/fs/metadata.xml |
127 |
@@ -0,0 +1,17 @@ |
128 |
+<?xml version="1.0" encoding="UTF-8"?> |
129 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
130 |
+<pkgmetadata> |
131 |
+ <maintainer type="person"> |
132 |
+ <description>co-maintainers welcome</description> |
133 |
+ <name>Alessandro Barbieri</name> |
134 |
+ <email>lssndrbarbieri@×××××.com</email> |
135 |
+ </maintainer> |
136 |
+ <upstream> |
137 |
+ <maintainer> |
138 |
+ <name>Gábor Csárdi</name> |
139 |
+ <email>csardi.gabor@×××××.com</email> |
140 |
+ </maintainer> |
141 |
+ <bugs-to>https://github.com/r-lib/fs/issues</bugs-to> |
142 |
+ <remote-id type="github">r-lib/fs</remote-id> |
143 |
+ </upstream> |
144 |
+</pkgmetadata> |