Skip to content

Commit 9fc632e

Browse files
authored
Merge pull request #128 from hoheinzollern/rocq_build
Rocq build
2 parents 3195116 + 4274df8 commit 9fc632e

File tree

5 files changed

+53
-29
lines changed

5 files changed

+53
-29
lines changed

.github/workflows/docker-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: coq-community/docker-coq-action@v1
2828
with:
29-
opam_file: 'coq-mathcomp-finmap.opam'
29+
opam_file: 'rocq-mathcomp-finmap.opam'
3030
custom_image: ${{ matrix.image }}
3131

3232

Makefile.common

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
# pre-makefile::, this-clean:: and __always__:: may be extended #
77
# Additionally, the following variables may be customized: #
88
SUBDIRS?=
9-
COQBIN?=$(dir $(shell which coqtop))
10-
COQMAKEFILE?=$(COQBIN)coq_makefile
11-
COQDEP?=$(COQBIN)coqdep
9+
10+
COQBIN?=$(dir $(shell command -v coqtop || command -v rocq))
11+
COQMAKEFILE?=$(shell command -v coq_makefile || echo "$(COQBIN)rocq makefile")
12+
COQDEP?=$(shell command -v coqdep || echo "$(COQBIN)rocq dep")
1213
COQPROJECT?=_CoqProject
1314
COQMAKEOPTIONS?=
1415
COQMAKEFILEOPTIONS?=

coq-mathcomp-finmap.opam

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
1-
# This file was generated from `meta.yml`, please do not edit manually.
2-
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3-
41
opam-version: "2.0"
5-
maintainer: "Cyril Cohen <cyril.cohen@inria.fr>"
62
version: "dev"
3+
maintainer: "Cyril Cohen <cyril.cohen@inria.fr>"
74

8-
homepage: "https://github.com/math-comp/finmap"
9-
dev-repo: "git+https://github.com/math-comp/finmap.git"
5+
homepage: "https://math-comp.github.io/"
106
bug-reports: "https://github.com/math-comp/finmap/issues"
7+
dev-repo: "git+https://github.com/math-comp/finmap.git"
118
license: "CECILL-B"
129

13-
synopsis: "Finite sets, finite maps, finitely supported functions"
14-
description: """
15-
This library is an extension of mathematical component in order to
16-
support finite sets and finite maps on choicetypes (rather that finite
17-
types). This includes support for functions with finite support and
18-
multisets. The library also contains a generic order and set libary,
19-
which will be used to subsume notations for finite sets, eventually."""
20-
21-
build: [make "-j%{jobs}%"]
22-
install: [make "install"]
23-
depends: [
24-
("coq" {>= "8.20" & < "8.21~"}
25-
| "rocq-core" {>= "9.0" | = "dev"})
26-
"coq-mathcomp-ssreflect" { (>= "2.0" & < "2.5~") | = "dev" }
27-
]
28-
10+
depends: [ "rocq-mathcomp-finmap" { = version } ]
2911
tags: [
3012
"keyword:finmap"
3113
"keyword:finset"
@@ -36,3 +18,5 @@ authors: [
3618
"Cyril Cohen"
3719
"Kazuhiko Sakaguchi"
3820
]
21+
22+
synopsis: "Compatibility package for rocq-mathcomp-finmap"

meta.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fullname: Finite maps
22
shortname: finmap
33
organization: math-comp
4-
opam_name: coq-mathcomp-finmap
4+
opam_name: rocq-mathcomp-finmap
55
community: false
66
action: true
77
coqdoc: false
@@ -46,8 +46,8 @@ tested_coq_opam_versions:
4646

4747
dependencies:
4848
- opam:
49-
name: coq-mathcomp-ssreflect
50-
version: '{ (>= "2.0" & < "2.4~") | (= "dev") }'
49+
name: rocq-mathcomp-ssreflect
50+
version: '{ (>= "2.0" & < "2.5~") | (= "dev") }'
5151
description: |-
5252
[MathComp ssreflect 2.0 to 2.3](https://math-comp.github.io)
5353

rocq-mathcomp-finmap.opam

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This file was generated from `meta.yml`, please do not edit manually.
2+
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3+
4+
opam-version: "2.0"
5+
maintainer: "Cyril Cohen <cyril.cohen@inria.fr>"
6+
version: "dev"
7+
8+
homepage: "https://github.com/math-comp/finmap"
9+
dev-repo: "git+https://github.com/math-comp/finmap.git"
10+
bug-reports: "https://github.com/math-comp/finmap/issues"
11+
license: "CECILL-B"
12+
13+
synopsis: "Finite sets, finite maps, finitely supported functions"
14+
description: """
15+
This library is an extension of mathematical component in order to
16+
support finite sets and finite maps on choicetypes (rather that finite
17+
types). This includes support for functions with finite support and
18+
multisets. The library also contains a generic order and set libary,
19+
which will be used to subsume notations for finite sets, eventually."""
20+
21+
build: [make "-j%{jobs}%"]
22+
install: [make "install"]
23+
depends: [
24+
("coq" {>= "8.20" & < "8.21~"}
25+
| "rocq-core" {>= "9.0" | = "dev"})
26+
("coq-mathcomp-ssreflect" { >= "2.0" & < "2.4~" }
27+
|"rocq-mathcomp-ssreflect" { (>= "2.4" & < "2.5~") | = "dev" })
28+
]
29+
30+
tags: [
31+
"keyword:finmap"
32+
"keyword:finset"
33+
"keyword:multiset"
34+
"logpath:mathcomp.finmap"
35+
]
36+
authors: [
37+
"Cyril Cohen"
38+
"Kazuhiko Sakaguchi"
39+
]

0 commit comments

Comments
 (0)