-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27047 from tobil4sk/libpcre2
Support conf-libpcre2-8 on mingw
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
opam-version: "2.0" | ||
maintainer: "https://github.com/ocaml/opam-repository/issues" | ||
authors: [ | ||
"Philip Hazel" | ||
"Zoltan Herczeg" | ||
] | ||
homepage: "https://www.pcre.org/" | ||
dev-repo: "git+https://github.com/PCRE2Project/pcre2.git" | ||
license: "BSD-3-Clause" | ||
build: [ | ||
["pkgconf" {os = "win32" & os-distribution = "cygwin"} | ||
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed} | ||
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed} | ||
"pkg-config" {os != "win32" | os-distribution != "cygwin"} | ||
"--print-errors" "--exists" "libpcre2-8" | ||
]] | ||
depends: [ | ||
"conf-pkg-config" {build} | ||
("host-arch-x86_32" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-pcre2-i686" {os = "win32" & os-distribution = "cygwin"} | | ||
"host-arch-x86_64" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-pcre2-x86_64" {os = "win32" & os-distribution = "cygwin"}) | ||
] | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
depexts: [ | ||
["libpcre2-dev"] {os-family = "debian"} | ||
["libpcre2-dev"] {os-family = "ubuntu"} | ||
["libpcre2-devel"] {os-distribution = "mageia"} | ||
["pcre2-devel"] {os-distribution = "centos"} | ||
["pcre2-devel"] {os-distribution = "fedora"} | ||
["pcre2-devel"] {os-distribution = "rhel"} | ||
["pcre2-devel"] {os-distribution = "ol"} | ||
["pcre2-dev"] {os-distribution = "alpine"} | ||
["pcre2-devel"] {os-family = "suse" | os-family = "opensuse"} | ||
["pcre2"] {os-family = "arch"} | ||
["pcre2"] {os = "freebsd"} | ||
["pcre2"] {os = "macos" & os-distribution = "homebrew"} | ||
["pcre2"] {os = "macos" & os-distribution = "macports"} | ||
["pcre2"] {os = "win32" & os-distribution = "cygwinports"} | ||
] | ||
synopsis: "Virtual package relying on a libpcre2 system installation" | ||
description: | ||
"This package can only install if the libpcre2 is installed on the system." | ||
flags: conf |
22 changes: 22 additions & 0 deletions
22
packages/conf-mingw-w64-pcre2-i686/conf-mingw-w64-pcre2-i686.1/opam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
opam-version: "2.0" | ||
synopsis: "Libpcre2 for i686 mingw-w64 (32-bit x86)" | ||
description: "Ensures the i686 version of libpcre2 for the mingw-w64 project is available" | ||
maintainer: "tobil4sk" | ||
authors:[ | ||
"Philip Hazel" | ||
"Zoltan Herczeg" | ||
] | ||
license: "BSD-3-Clause" | ||
homepage: "https://www.pcre.org/" | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
flags: conf | ||
available: os = "win32" & os-distribution = "cygwin" | ||
build: ["pkgconf" "--personality=i686-w64-mingw32" "libpcre2-8"] | ||
depends: [ | ||
"conf-pkg-config" {build} | ||
"conf-mingw-w64-gcc-i686" {build} | ||
] | ||
depexts: [ | ||
["mingw64-i686-pcre2"] {os = "win32" & os-distribution = "cygwin"} | ||
["mingw-w64-i686-pcre2"] {os = "win32" & os-distribution = "msys2"} | ||
] |
22 changes: 22 additions & 0 deletions
22
packages/conf-mingw-w64-pcre2-x86_64/conf-mingw-w64-pcre2-x86_64.1/opam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
opam-version: "2.0" | ||
synopsis: "Libpcre2 for x86_64 mingw-w64 (64-bit x86_64)" | ||
description: "Ensures the x86_64 version of libpcre2 for the mingw-w64 project is available" | ||
maintainer: "tobil4sk" | ||
authors:[ | ||
"Philip Hazel" | ||
"Zoltan Herczeg" | ||
] | ||
license: "BSD-3-Clause" | ||
homepage: "https://www.pcre.org/" | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
flags: conf | ||
available: os = "win32" & os-distribution = "cygwin" | ||
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "libpcre2-8"] | ||
depends: [ | ||
"conf-pkg-config" {build} | ||
"conf-mingw-w64-gcc-x86_64" {build} | ||
] | ||
depexts: [ | ||
["mingw64-x86_64-pcre2"] {os = "win32" & os-distribution = "cygwin"} | ||
["mingw-w64-x86_64-pcre2"] {os = "win32" & os-distribution = "msys2"} | ||
] |