From fbae4c65cc5ca1982dbec06b0a140f9dd10b878d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Sat, 4 Jan 2025 12:49:57 +0100 Subject: [PATCH] Add libbz2 and liblzma For https://github.com/Bioconductor/Rhtslib/blob/9373c6f253fd4c2b15789e40bec7bebbc77dcc60/DESCRIPTION#L29 https://github.com/r-lib/pak/issues/730 --- rules/libbz2.json | 61 ++++++++++++++++++++++++++++++++++++++++++++++ rules/liblzma.json | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 rules/libbz2.json create mode 100644 rules/liblzma.json diff --git a/rules/libbz2.json b/rules/libbz2.json new file mode 100644 index 0000000..cd74d8c --- /dev/null +++ b/rules/libbz2.json @@ -0,0 +1,61 @@ +{ + "patterns": ["\\blibbz2\\b"], + "dependencies": [ + { + "packages": ["libbz2-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "ubuntu" + }, + { + "os": "linux", + "distribution": "debian" + } + ] + }, + { + "packages": ["bzip2-devel"], + "constraints": [ + { + "os": "linux", + "distribution": "centos" + }, + { + "os": "linux", + "distribution": "rockylinux" + }, + { + "os": "linux", + "distribution": "redhat" + }, + { + "os": "linux", + "distribution": "fedora" + } + ] + }, + { + "packages": ["libbz2-devel"], + "constraints": [ + { + "os": "linux", + "distribution": "opensuse" + }, + { + "os": "linux", + "distribution": "sle" + } + ] + }, + { + "packages": ["bzip2-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "alpine" + } + ] + } + ] + } diff --git a/rules/liblzma.json b/rules/liblzma.json new file mode 100644 index 0000000..d44f025 --- /dev/null +++ b/rules/liblzma.json @@ -0,0 +1,61 @@ +{ + "patterns": ["\\bliblzma\\b"], + "dependencies": [ + { + "packages": ["liblzma-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "ubuntu" + }, + { + "os": "linux", + "distribution": "debian" + } + ] + }, + { + "packages": ["xz-devel"], + "constraints": [ + { + "os": "linux", + "distribution": "centos" + }, + { + "os": "linux", + "distribution": "rockylinux" + }, + { + "os": "linux", + "distribution": "redhat" + }, + { + "os": "linux", + "distribution": "fedora" + } + ] + }, + { + "packages": ["xz-devel"], + "constraints": [ + { + "os": "linux", + "distribution": "opensuse" + }, + { + "os": "linux", + "distribution": "sle" + } + ] + }, + { + "packages": ["xz-dev"], + "constraints": [ + { + "os": "linux", + "distribution": "alpine" + } + ] + } + ] + }