mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Improve OCaml installation
This commit is contained in:
parent
701690e415
commit
8b8d85c428
@ -6,4 +6,7 @@ lib/trexio.ml: ../../trex.json read_json.py src/trexio.ml src/trexio.mli src/tre
|
|||||||
|
|
||||||
sources: lib/trexio.ml
|
sources: lib/trexio.ml
|
||||||
|
|
||||||
|
clean:
|
||||||
|
dune clean
|
||||||
|
|
||||||
.PHONY: sources default
|
.PHONY: sources default
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
TASK=$2
|
||||||
PKGCONFIG_COMMAND="pkg-config --libs --cflags trexio"
|
PKGCONFIG_COMMAND="pkg-config --libs --cflags trexio"
|
||||||
|
|
||||||
INSTALLED="no"
|
INSTALLED="no"
|
||||||
@ -16,10 +17,15 @@ if eval $PKGCONFIG_COMMAND >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Compile C library
|
# Compile C library
|
||||||
cd vendor
|
set -e
|
||||||
tar -zxf trexio-*.tar.gz
|
if test "$TASK" = "build" ; then
|
||||||
cd trexio-*
|
tar -zxf trexio-*.tar.gz
|
||||||
./configure --prefix=${PREFIX}
|
cd trexio-*
|
||||||
$(MAKE) install && \
|
./configure --prefix=${PREFIX}
|
||||||
rm -rf trexio-*/
|
make -j 4
|
||||||
|
cd ../
|
||||||
|
elif test "$TASK" = "install" ; then
|
||||||
|
cd trexio-*
|
||||||
|
make install
|
||||||
|
rm -rf trexio-*/
|
||||||
|
fi
|
||||||
|
BIN
ocaml/trexio/trexio-2.3.2.tar.gz
Normal file
BIN
ocaml/trexio/trexio-2.3.2.tar.gz
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "2.3.0"
|
version: "2.3.2"
|
||||||
synopsis: "Binding for the TREXIO Input/Output library"
|
synopsis: "Binding for the TREXIO Input/Output library"
|
||||||
description:
|
description:
|
||||||
"TREXIO is a file format and library for storing wave functions and integrals for quantum chemistry."
|
"TREXIO is a file format and library for storing wave functions and integrals for quantum chemistry."
|
||||||
@ -20,9 +20,15 @@ depends: [
|
|||||||
"conf-pkg-config" {build}
|
"conf-pkg-config" {build}
|
||||||
"odoc" {with-doc}
|
"odoc" {with-doc}
|
||||||
]
|
]
|
||||||
|
depexts: [
|
||||||
|
["hdf5"] {os-distribution = "alpine"}
|
||||||
|
["epel-release" "hdf5-devel"] {os-distribution = "centos"}
|
||||||
|
["libhdf5-dev"] {os-distribution = "debian"}
|
||||||
|
["hdf5"] {os-distribution = "homebrew"}
|
||||||
|
["libhdf5-dev"] {os-distribution = "ubuntu"}
|
||||||
|
]
|
||||||
build: [
|
build: [
|
||||||
["dune" "subst"] {dev}
|
["dune" "subst"] {dev}
|
||||||
["./compile-lib.sh" "%{prefix}%" "build"]
|
|
||||||
[
|
[
|
||||||
"dune"
|
"dune"
|
||||||
"build"
|
"build"
|
||||||
@ -35,8 +41,4 @@ build: [
|
|||||||
"@doc" {with-doc}
|
"@doc" {with-doc}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
install: [
|
|
||||||
["./compile-lib.sh" "%{prefix}%" "install"]
|
|
||||||
["dune" "install"]
|
|
||||||
]
|
|
||||||
dev-repo: "git+https://github.com/trex-coe/trexio_ocaml.git"
|
dev-repo: "git+https://github.com/trex-coe/trexio_ocaml.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user