From 2438bc74b34317cc256bac097da1acbd168c38a9 Mon Sep 17 00:00:00 2001 From: pepijn-devries Date: Tue, 29 Oct 2024 22:19:13 +0100 Subject: [PATCH] Add openmpt rules (#193) * Create rules for openmpt port openmpt is currently a private repository containing R bindings for libopenmpt. These rules are required to set up a CHECK workflow for the R package. * Fix for https://github.com/rstudio/r-system-requirements/pull/191/files/0b5780a5e810f6aad6c15c56c6f1714d5b1f930c#r1819909228 * Update rules/openmpt.json * Update rules/openmpt.json --------- Co-authored-by: Greg Lin --- rules/openmpt.json | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 rules/openmpt.json diff --git a/rules/openmpt.json b/rules/openmpt.json new file mode 100644 index 0000000..e1f41e2 --- /dev/null +++ b/rules/openmpt.json @@ -0,0 +1,61 @@ +{ + "patterns": ["\\bopenmpt\\b"], + "dependencies": [ + { + "packages": ["libopenmpt-dev", "portaudio19-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "ubuntu" + }, + { + "os": "linux", + "distribution": "debian" + } + ] + }, + { + "packages": ["libopenmpt-devel", "portaudio-devel"], + "constraints": [ + { + "os": "linux", + "distribution": "opensuse" + }, + { + "os": "linux", + "distribution": "fedora" + } + ] + }, + { + "packages": ["libopenmpt-devel", "portaudio-devel"], + "pre_install": [ + { "command": "yum install -y epel-release" } + ], + "constraints": [ + { + "os": "linux", + "distribution": "centos" + }, + { + "os": "linux", + "distribution": "rockylinux" + }, + { + "os": "linux", + "distribution": "redhat" + } + ] + }, + { + "packages": ["libopenmpt-dev", "portaudio-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "alpine", + "versions": [ "3.18", "3.19", "3.20", "edge" ] + } + ] + } + ] +}