Skip to content
Open
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
34 changes: 34 additions & 0 deletions packages/plcairo/plcairo.5.15.0.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
opam-version: "2.0"
maintainer: "Philippe Strauss <catseyechandra@proton.me>"
authors: [ "Hezekiah M. Carty <hez@0ok.org>" ]
license: "LGPL-3.0-or-later"
homepage: "https://codeberg.org/catseyechandra/ocaml-plcairo"
dev-repo: "git+https://codeberg.org/catseyechandra/ocaml-plcairo.git"
bug-reports: "https://codeberg.org/catseyechandra/ocaml-plcairo/issues"
doc: "https://hcarty.github.io/ocaml-plcairo/plcairo"
build: [ "dune" "build" "-p" name "-j" jobs ]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.0.0"}
"dune-configurator"
]
depexts: [
["libplplot-dev" "libshp-dev"] {os-family = "debian"}
["plplot"] {os = "macos" & os-distribution = "homebrew"}
["plpot"] {os-family = "arch"}
["plplot-devel"] {os-family = "rhel"}
["plplot-devel"] {os-family = "fedora"}
["plplot-devel"] {os-family = "suse"}
["plplot-devel" "epel-release"] {os-distribution = "centos"}
["plplot"] {os-distribution = "nixos"}
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution!

This is also failing CI across the board.
4.14
plcairo.5.15.0.1 (failed: Library "cairo2" not found.)

#=== ERROR while compiling plcairo.5.15.0.1 ===================================#
# context              2.5.2 | linux/x86_64 | ocaml-base-compiler.4.14.4 | pinned(https://codeberg.org/catseyechandra/ocaml-plcairo/archive/v5.15.0.1.tar.gz)
# path                 ~/.opam/4.14/.opam-switch/build/plcairo.5.15.0.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p plcairo -j 71
# exit-code            1
# env-file             ~/.opam/log/plcairo-7-0acab0.env
# output-file          ~/.opam/log/plcairo-7-0acab0.out
### output ###
# File "src/dune", line 13, characters 19-25:
# 13 |  (libraries plplot cairo2)
#                         ^^^^^^
# Error: Library "cairo2" not found.
# -> required by library "plcairo" in _build/default/src
# -> required by _build/default/META.plcairo
# -> required by _build/install/default/lib/plcairo/META
# -> required by _build/default/plcairo.install
# -> required by alias install
# File "src/dune", lines 5-8, characters 0-95:
# 5 | (rule
# 6 |  (targets c_flags.sexp c_library_flags.sexp)
# 7 |  (action
# 8 |   (run ../configure/discover.exe)))
# (cd _build/default/src && ../configure/discover.exe)
# which: pkgconf
# -> found: /usr/bin/pkgconf
# run: /usr/bin/pkgconf --personality x86_64-pc-linux-gnu --print-errors 'plplot cairo'
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | Package cairo was not found in the pkg-config search path.
#  | Perhaps you should add the directory containing `cairo.pc'
#  | to the PKG_CONFIG_PATH environment variable
#  | Package 'cairo', required by 'virtual:world', not found
# run: /usr/bin/pkgconf --personality x86_64-pc-linux-gnu --print-errors 'plplotd cairo'
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | Package plplotd was not found in the pkg-config search path.
#  | Perhaps you should add the directory containing `plplotd.pc'
#  | to the PKG_CONFIG_PATH environment variable
#  | Package 'plplotd', required by 'virtual:world', not found
#  | Package 'cairo', required by 'virtual:world', not found
# compiling c program:
#  | 
#  | #include <plplot.h>
#  | #include <cairo.h>
#  | 
#  | int main()
#  | {
#  |   printf("plplot and cairo include test\n");
#  |   return 0;
#  | }
# run: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -I /home/opam/.opam/4.14/lib/ocaml -o /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.exe /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.c -lm -lplplot -lcairo
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.c:2:10: fatal error: plplot.h: No such file or directory
#  |     2 | #include <plplot.h>
#  |       |          ^~~~~~~~~~
#  | compilation terminated.
# Fatal error: exception Failure("No valid installation of plplot and cairo found.")

Again, I suggest removing the above depexts and adding a regular depends on
"conf-cairo" and "conf-plplot".

synopsis: "Bindings for the PLplot Cairo support"
description: "Binding for the Cairo rendering layer of PLplot, a high quality scientific plotting library with long history"
url {
src:
"https://codeberg.org/catseyechandra/ocaml-plcairo/archive/v5.15.0.1.tar.gz"
checksum: [
"md5=db9cfcf2ca2200bce2950bc040dce3be"
"sha512=2b5cb76adf7ce1a27b73ee52a2668e2ae5d49c26f01ba64c9d1015111bc7a0bb47f0bd68e9cfa425466ab49c2cb51c21dda02d5ebaa329e2cf3298950b3a25d8"
]
}
Loading