Skip to content

Commit 020a0fd

Browse files
committed
add recipe for r-getip, using cran_r_skeleton_helper
1 parent f9d20a6 commit 020a0fd

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

recipes/r-getip/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%R%" CMD INSTALL --build . %R_ARGS%
2+
IF %ERRORLEVEL% NEQ 0 exit /B 1

recipes/r-getip/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
export DISABLE_AUTOBREW=1
3+
${R} CMD INSTALL --build . ${R_ARGS}

recipes/r-getip/meta.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{% set version = '0.1-3' %}
2+
{% set posix = 'm2-' if win else '' %}
3+
{% set native = 'm2w64-' if win else '' %}
4+
5+
package:
6+
name: r-getip
7+
version: {{ version|replace("-", "_") }}
8+
9+
source:
10+
url:
11+
- {{ cran_mirror }}/src/contrib/getip_{{ version }}.tar.gz
12+
- {{ cran_mirror }}/src/contrib/Archive/getip/getip_{{ version }}.tar.gz
13+
sha256: 0ec1677309dc3f2d861d61e7b3de0e74d1fc94aefd03bc5a6c27059e30f3cc24
14+
15+
build:
16+
merge_build_host: True # [win]
17+
number: 0
18+
rpaths:
19+
- lib/R/lib/
20+
- lib/
21+
22+
requirements:
23+
build:
24+
- {{ compiler('c') }} # [not win]
25+
- {{ compiler('m2w64_c') }} # [win]
26+
- {{ posix }}filesystem # [win]
27+
- {{ posix }}sed # [win]
28+
- {{ posix }}grep # [win]
29+
- {{ posix }}autoconf
30+
- {{ posix }}automake # [not win]
31+
- {{ posix }}automake-wrapper # [win]
32+
- {{ posix }}pkg-config
33+
- {{ posix }}make
34+
- {{ posix }}coreutils # [win]
35+
- {{ posix }}zip # [win]
36+
- cross-r-base {{ r_base }} # [build_platform != target_platform]
37+
host:
38+
- r-base
39+
run:
40+
- r-base
41+
- {{ native }}gcc-libs # [win]
42+
43+
test:
44+
commands:
45+
- $R -e "library('getip')" # [not win]
46+
- "\"%R%\" -e \"library('getip')\"" # [win]
47+
48+
about:
49+
home: https://CRAN.R-project.org/package=getip
50+
license: BSD-2-Clause
51+
summary: A micro-package for getting your 'IP' address, either the local/internal or the public/external
52+
one. Currently only 'IPv4' addresses are supported.
53+
license_family: BSD
54+
license_file:
55+
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/BSD_2_clause'
56+
- LICENSE
57+
58+
extra:
59+
recipe-maintainers:
60+
- conda-forge/r
61+
- brendanf
62+
63+
# Package: getip
64+
# Type: Package
65+
# Title: 'IP' Address 'Lookup'
66+
# Version: 0.1-3
67+
# Description: A micro-package for getting your 'IP' address, either the local/internal or the public/external one. Currently only 'IPv4' addresses are supported.
68+
# License: BSD 2-clause License + file LICENSE
69+
# Depends: R (>= 3.0.0)
70+
# ByteCompile: yes
71+
# Authors@R: c(person("Drew", "Schmidt", role=c("aut", "cre"), email="[email protected]"), person("Wei-Chen", "Chen", role="aut"))
72+
# Maintainer: Drew Schmidt <[email protected]>
73+
# RoxygenNote: 7.1.2
74+
# NeedsCompilation: yes
75+
# Packaged: 2023-01-23 17:13:11 UTC; mschmid3
76+
# Author: Drew Schmidt [aut, cre], Wei-Chen Chen [aut]
77+
# Repository: CRAN
78+
# Date/Publication: 2023-01-25 16:50:02 UTC

0 commit comments

Comments
 (0)