Skip to content

Commit

Permalink
Migrate to opam 2.0.
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
  • Loading branch information
omasanori committed Sep 18, 2018
1 parent 285ff60 commit cf829d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
14 changes: 0 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,6 @@ install: $(TARGET)
#preliminary:
# [ -d .git ] && git submodule update -i || echo "Skip git submodule update -i"

lib:
# -- downloads fonts --
mkdir -p temp/
if [ -x "$$(command -v curl)" ]; then \
curl -R -o temp/lm2.004otf.zip http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip; \
curl -R -o temp/latinmodern-math-1959.zip http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip; \
else \
wget -N http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip -P temp/; \
wget -N http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip -P temp/; \
fi
unzip -o temp/lm2.004otf.zip -d lib-satysfi/dist/fonts/
unzip -o temp/latinmodern-math-1959.zip -d temp/
cp temp/latinmodern-math-1959/otf/latinmodern-math.otf lib-satysfi/dist/fonts/

uninstall:
rm -rf $(BINDIR)/$(TARGET)
rm -rf $(LIBDIR)
Expand Down
26 changes: 21 additions & 5 deletions satysfi.opam
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
opam-version: "1.2"
opam-version: "2.0"
name: "satysfi"
version: "0.0.2"
maintainer: "gfngfn"
authors: [
"gfngfn"
]
homepage: "https://github.com/gfngfn/SATySFi"
dev-repo: "https://github.com/gfngfn/SATySFi.git"
dev-repo: "git+https://github.com/gfngfn/SATySFi.git"
bug-reports: "https://github.com/gfngfn/SATySFi/issues"
extra-source "lm2.004otf.zip" {
archive: "http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip"
checksum: [
"sha256=5b0236051d3728be6616f1b274e3b910473875b5a3ef9382f0ef00384ddb161b"
"sha512=c63068c86590e768498ef5f68a17a737aa40981432d8f6366c29760ea032a603ddd3d748d348ab259beba77966c292f9382b1fe9eb7a78af0926c6abc71f6f81"
]
}
extra-source "latinmodern-math-1959.zip" {
archive: "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip"
checksum: [
"sha256=aaaa060b4ffc091461e875efb9498b9abfa7c7a48f38eb33882868839903a4f8"
"sha512=b4fb4b575107b56eee0fed7971b09d334d4b162842675cf5f5ff7cb12e08099fb00755c81ddc1f04138f87b216592299028906165e2cec43521c6ca61b466d4c"
]
}
build: [
["echo" "\"begin to build SATySFi\""]
["mkdir" "-p" "temp"]
["unzip" "lm2.004otf.zip" "*.otf" "-d" "lib-satysfi/dist/fonts/"]
["unzip" "latinmodern-math-1959.zip" "*.otf" "-d" "temp/"]
["cp" "temp/latinmodern-math-1959/otf/latinmodern-math.otf" "lib-satysfi/dist/fonts/"]
[make "-f" "Makefile" "PREFIX=%{prefix}%"]
[make "-f" "Makefile" "lib" "PREFIX=%{prefix}%"]
]
install: [
[make "-f" "Makefile" "install" "PREFIX=%{prefix}%"]
Expand All @@ -21,6 +37,7 @@ remove: [
]
# Packages whose version suffix is "+satysfi" are distributed on satysfi-external-repo.
depends: [
"ocaml" {>= "4.06.0"}
"batteries"
"camlimages" {>= "5.0.1"}
"camlpdf" {= "2.2.1+satysfi"}
Expand All @@ -35,4 +52,3 @@ depends: [
"uutf"
"yojson"
]
available: [ ocaml-version >= "4.06.0" ]

0 comments on commit cf829d8

Please sign in to comment.