Commit 621372d4 authored by POGODALLA Sylvain's avatar POGODALLA Sylvain

Put the url and the description in the opam file

parent ea50d084
......@@ -27,6 +27,7 @@ TAR_RELEASE = $(RELEASE)
ACGtk_DIR = $(shell basename `pwd`)
clean:
dune clean
find . -name "*~" -exec rm -f {} \;
......@@ -41,7 +42,7 @@ tar:
if test -d ../$(TAR_RELEASE) ; then rm ../$(TAR_RELEASE) ; fi
cd .. && ln -s $(ACGtk_DIR) $(TAR_RELEASE) && cd $(ACGtk_DIR)
echo Building $(TAR_RELEASE).tar.gz
tar --exclude="*/.git*" --exclude "*/_build" --exclude "$(TAR_RELEASE)/data" --exclude "$(TAR_RELEASE)/src/data" --exclude "$(TAR_RELEASE)/*.tar.*" --exclude "$(TAR_RELEASE)/TODO" --exclude "*~" --exclude "opam-package" -zcvf $(TAR_RELEASE).tar.gz -C .. -h $(TAR_RELEASE)
tar --exclude="*/.git*" --exclude "*/_build" --exclude "$(TAR_RELEASE)/data" --exclude "$(TAR_RELEASE)/src/data" --exclude "$(TAR_RELEASE)/*.tar.*" --exclude "$(TAR_RELEASE)/TODO" --exclude "*~" --exclude "Makefile" --exclude "acgtk.opam" -zcvf $(TAR_RELEASE).tar.gz -C .. -h $(TAR_RELEASE)
if test -d ../$(TAR_RELEASE) ; then rm ../$(TAR_RELEASE) ; fi
www:
......@@ -73,8 +74,9 @@ OPAM_GIT_REPO_DIR=~/work/dev/opam-contrib/opam-repository/packages
OPAM_ACG_REPO_DIR=~/www-acg/opam
OPAM_CALLIGRAMME_ACG_REPO_DIR=~/www-calligramme-acg/software/opam-acg
opam-package/url: tar
md5sum acg-$(VERSION).tar.gz | cut -d " " -f 1 | xargs -i printf "archive: \"http://acg.loria.fr/software/acg-$(VERSION).tar.gz\"\nchecksum: \"%s\"\n" {} > $@
acgtk.opam: tar acg-$(VERSION).tar.gz
md5sum acg-$(VERSION).tar.gz | cut -d " " -f 1 | xargs -I{} printf 's!^url .*\$$\!url { src: \\"http://acg.loria.fr/software/acg-$(VERSION).tar.gz\\" checksum: \\"%s\\" }!' {} | xargs -I{} sed -i -e {} $@
opam lint $@
test-www-acg: opam-admin
cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
......@@ -85,13 +87,9 @@ sync: opam-admin
opam-admin:
cd $(OPAM_ACG_REPO_DIR) && opam admin make
package-copying: tar
opam lint opam-package/opam
cp -rT opam-package $(OPAM_TESTING_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_GIT_REPO_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME)
opam-meta: package-copying opam-admin sync
package-copying: acgtk.opam
mkdir -p $(OPAM_TESTING_DIR)/acgtk/acgtk.$(VERSION_BASENAME) && cp $< $(OPAM_TESTING_DIR)/acgtk/acgtk.$(VERSION_BASENAME)/opam
mkdir -p $(OPAM_GIT_REPO_DIR)/acgtk/acgtk.$(VERSION_BASENAME) && cp $< $(OPAM_GIT_REPO_DIR)/acgtk/acgtk.$(VERSION_BASENAME)/opam
mkdir -p $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME) && cp $< $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME)/opam
opam:opam-package/url www version package-copying opam-admin sync
opam: version acgtk.opam www package-copying opam-admin sync
opam-package/opam
\ No newline at end of file
opam-version: "2.0"
maintainer: "sylvain.pogodalla@inria.fr"
build: [
["dune" "subst"] {pinned}
# remove the -p to also build the local libraries: conflict with the
# fact that some libraries are also part of the acgtkLib package
# ["dune" "build" "-p" name "-j" jobs]
["dune" "build" "-j" jobs]
]
install: ["dune" "install"]
depends: [
"ocaml" {version >= "4.03.0"}
"dune" {build}
"menhir"
"ANSITerminal"
"fmt"
"logs"
"mtime"
"cairo2"
"yojson"
"easy-format"
"ocf"
]
dev-repo: "git+https://gitlab.inria.fr/ACG/dev/ACGtk.git"
homepage: "http://acg.inria.fr/"
license: "CeCILL"
authors: ["Sylvain Pogodalla"]
bug-reports: "sylvain.pogodalla@inria.fr"
synopsis: "Abstract Categorial Grammar development toolkit"
description: "This toolkit provides a compiler and an interpreter for Abstract Categorial Grammars (ACGs). Grammars can be compiled and then used by the interpreter to parse (if the grammar is at most second-order) or to generate terms. See http://acg.loria.fr for more details and bibliographic references."
url { src: "http://acg.loria.fr/software/acg-1.5.0-20181019.tar.gz" checksum: "36b072ea9a50816d1b9a15aa6599f6ca" }
Abstract Categorial Grammar development toolkit
This toolkit provides a compiler and an interpreter for Abstract Categorial Grammars (ACGs). Grammars can be compiled and then used by the interpreter to parse (if the grammar is at most second-order) or to generate terms. See http://acg.loria.fr for more details and bibliographic references.
opam-version: "2.0"
maintainer: "sylvain.pogodalla@inria.fr"
build: [
["dune" "subst"] {pinned}
# remove the -p to also build the local libraries: conflict with the
# fact that some libraries are also part of the acgtkLib package
# ["dune" "build" "-p" name "-j" jobs]
["dune" "build" "-j" jobs]
]
install: ["dune" "install"]
depends: [
"ocaml" {version >= "4.03.0"}
"dune" {build}
"menhir"
"ANSITerminal"
"fmt"
"logs"
"mtime"
"cairo2"
"yojson"
"easy-format"
"ocf"
]
dev-repo: "git+https://gitlab.inria.fr/ACG/dev/ACGtk.git"
homepage: "http://acg.inria.fr/"
license: "CeCILL"
authors: ["Sylvain Pogodalla"]
bug-reports: "sylvain.pogodalla@inria.fr"
archive: "http://acg.loria.fr/software/acg-1.5.0-20181018.tar.gz"
checksum: "846ce34835d46a2a7bf1c3e0918de204"
......@@ -17,4 +17,4 @@
(* *)
(**************************************************************************)
let version = "1.5.0-20181016"
let version = "1.5.0-20181019"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment