-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
32 lines (32 loc) · 1.35 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
opam-version: "2.0"
authors: "https://github.com/rdkit/rdkit/graphs/contributors"
homepage: "http://www.rdkit.org/"
maintainer: "unixjunkie@sdf.org"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "BSD-3-Clause"
build: [
["sh" "-c" "c++ test.cpp -o test -I/usr/local/include/rdkit -L/usr/local/lib -lRDKitRDGeneral -DSWIG"] {os = "macos"}
["sh" "-c" "c++ test.cpp -o test -I/usr/include/rdkit -lRDKitRDGeneral -DSWIG || c++ test.cpp -o test -I/usr/include/rdkit -lRDGeneral -DSWIG"] {os = "linux"}
["./test"]
]
depexts: [
["librdkit-dev" "python-rdkit"] {os-family = "debian"}
["rdkit-devel" "python2-rdkit"] {os-distribution = "centos"}
]
post-messages:
"This package requires rdkit to be installed. If you are using homebrew, you might want to try:
'brew tap rdkit/rdkit; pip3 install numpy; brew install --HEAD rdkit --with-python3 --with-inchi'"
{failure & os = "macos"}
synopsis: "Virtual package relying on rdkit library installation"
description: """
This package can only install if the rdkit devel library is installed
on the system."""
flags: conf
extra-source "test.cpp" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-rdkit/test.cpp"
checksum: [
"sha256=c4f43a4a0d5898ee6226aa928a840b53c3148edb6243e444bbeb6945d2736c92"
"md5=8079a0c593690540fbcb2f848f5b43d5"
]
}