Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion packages/conf-libevent/conf-libevent.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,24 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
authors: "Libevent dev team"
license: "BSD-3-clause"
build: [
["pkg-config" "--exists" "libevent"]
"pkgconf" {os = "win32" & os-distribution != "cygwinports"}
"--personality=i686-w64-mingw32"
{os = "win32" & os-distribution != "cygwinports" &
host-arch-x86_32:installed}
"--personality=x86_64-w64-mingw32"
{os = "win32" & os-distribution != "cygwinports" &
host-arch-x86_64:installed}
"pkg-config" {os != "Win32" | os-distribution != "cygwin"}
"libevent"
Comment on lines -8 to +16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dropped (on the non-win32 or cygwin) the --exists flag between pkg-config and libevent -- was this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the man page, --exists is implied when no other option is specified.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtelvers Thanks for your comment. Since there are at least three pkg-config implementations, I'm not sure which one you're talking about. I find it very brittle to rely on the documented default of one of the pkg-config implementations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had a quick check, and it seems to be the default in all of these implementations. There are multiple occurrences in opam-repository both with and without --exists and a variety of other parameters. :-)

]
depends: [
"conf-pkg-config" {build}
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} &
"conf-mingw-w64-libevent-i686"
{os = "win32" & os-distribution != "cygwinports"} |
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} &
"conf-mingw-w64-libevent-x86_64"
{os = "win32" & os-distribution != "cygwinports"})
]
depexts: [
["libevent-dev"] {os-family = "debian"}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
opam-version: "2.0"
homepage: "https://libevent.org"
authors: ["Libevent dev team"]
license: "BSD-3-clause"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
flags: conf
available: os = "win32"
build: ["pkgconf" "--personality=i686-w64-mingw32" "libevent"]
depends: [
"conf-pkg-config" {build}
"conf-mingw-w64-gcc-i686" {build}
]
synopsis: "Libevent for i686 mingw-w64"
description:
"Ensure the i686 version of libevent for the mingw-w64 project is available"
maintainer: "David Allsopp <david@tarides.com>"
depexts: [
["mingw64-i686-libevent"] {os = "win32" & os-distribution = "cygwin"}
["mingw-w64-i686-libevent"] {os = "win32" & os-distribution = "msys2"}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
opam-version: "2.0"
homepage: "https://libevent.org"
authors: ["Libevent dev team"]
license: "BSD-3-clause"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
flags: conf
available: os = "win32"
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "libevent"]
depends: [
"conf-pkg-config" {build}
"conf-mingw-w64-gcc-x86_64" {build}
]
synopsis: "Libevent for x86_64 mingw-w64"
description:
"Ensure the x86_64 version of libevent for the mingw-w64 project is available"
maintainer: "David Allsopp <david@tarides.com>"
depexts: [
["mingw64-x86_64-libevent"] {os = "win32" & os-distribution = "cygwin"}
["mingw-w64-x86_64-libevent"] {os = "win32" & os-distribution = "msys2"}
]