Skip to content

Commit

Permalink
Update sysreqs download script
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 29, 2024
1 parent ad55fbc commit 81bf308
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup-r-sysreqs/R/download.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ bundle <- function(path, arch) {
system2("tar", c("cJf", outfile, opts, path))
}

add_system_pc <- function(path) {
pc <- dir("pc", full.names = TRUE)
pcdir <- file.path(path, "lib/pkgconfig")
# do not overwrite existing ones that come from CRAN
file.copy(pc, pcdir)
}

create_bundle <- function(os = "darwin20", arch = c("arm64", "x86_64")) {
os <- match.arg(os)
arch <- match.arg(arch)
Expand All @@ -80,6 +87,7 @@ create_bundle <- function(os = "darwin20", arch = c("arm64", "x86_64")) {
}

strip(out)
add_system_pc(out)
bundle(out, arch)
}

Expand Down
40 changes: 40 additions & 0 deletions setup-r-sysreqs/pc/libcurl.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 2001 - 2018, Daniel Stenberg, <[email protected]>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://curl.haxx.se/docs/copyright.html.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
###########################################################################

# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP"
supported_features="AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO MultiSSL NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy"

Name: libcurl
URL: https://curl.haxx.se/
Description: Library to transfer files with ftp, http, etc.
Version: 7.64.1
Libs: -L${libdir} -lcurl
Libs.private: -lldap -lz
Cflags:
12 changes: 12 additions & 0 deletions setup-r-sysreqs/pc/libedit.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libedit
Description: command line editor library provides generic line editing, history, and tokenization functions.
Version: 3.0
Requires:
Libs: -L${libdir} -ledit
Cflags: -I${includedir}/editline
13 changes: 13 additions & 0 deletions setup-r-sysreqs/pc/libexslt.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include


Name: libexslt
Version: 0.8.17
Description: EXSLT Extension library
Requires: libxml-2.0
Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm
Cflags:
14 changes: 14 additions & 0 deletions setup-r-sysreqs/pc/libxml-2.0.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
modules=1

Name: libXML
Version: 2.9.4
Description: libXML library version2.
Requires:
Libs: -L${libdir} -lxml2
Libs.private: -lz -lpthread -licucore -lm
Cflags:
13 changes: 13 additions & 0 deletions setup-r-sysreqs/pc/libxslt.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include


Name: libxslt
Version: 1.1.29
Description: XSLT library version 2.
Requires: libxml-2.0
Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm
Cflags:
14 changes: 14 additions & 0 deletions setup-r-sysreqs/pc/ncurses.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.7.20081102

Name: ncurses
Description: ncurses 5.7 library
Version: ${version}
Requires:
Libs: -L${libdir} -lncurses
Cflags:
14 changes: 14 additions & 0 deletions setup-r-sysreqs/pc/ncursesw.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.7.20081102

Name: ncursesw
Description: ncurses 5.7 library
Version: ${version}
Requires:
Libs: -L${libdir} -lncurses
Cflags:
14 changes: 14 additions & 0 deletions setup-r-sysreqs/pc/uuid.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
sharedlibdir=${libdir}
includedir=${prefix}/include/uuid

Name: uuid
Description: Universally unique id library
Version: 1.0

Requires:
Libs:
Cflags: -I${includedir}

0 comments on commit 81bf308

Please sign in to comment.