Skip to content

Commit 16e6606

Browse files
authored
Merge pull request #123 from proux01/rocq
Compat with Rocq (without coq shim)
2 parents 021c7c6 + 618c006 commit 16e6606

4 files changed

Lines changed: 43 additions & 28 deletions

File tree

.github/workflows/docker-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: coq-community/docker-coq-action@v1
3434
with:
35-
opam_file: 'coq-mathcomp-multinomials.opam'
35+
opam_file: 'rocq-mathcomp-multinomials.opam'
3636
custom_image: ${{ matrix.image }}
3737

3838

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ KNOWNTARGETS := Makefile.coq
66
# on them always get rebuilt
77
KNOWNFILES := Makefile _CoqProject
88

9+
COQMAKEFILE?=$(shell command -v coq_makefile || echo "$(COQBIN)rocq makefile")
10+
911
.DEFAULT_GOAL := invoke-coqmakefile
1012

1113
Makefile.coq: Makefile _CoqProject
12-
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq
14+
$(COQMAKEFILE) -f _CoqProject -o Makefile.coq
1315

1416
invoke-coqmakefile: Makefile.coq
1517
$(MAKE) --no-print-directory -f Makefile.coq $(filter-out $(KNOWNTARGETS),$(MAKECMDGOALS))

coq-mathcomp-multinomials.opam

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@ dev-repo: "git+https://github.com/math-comp/multinomials.git"
1010
bug-reports: "https://github.com/math-comp/multinomials/issues"
1111
license: "CECILL-B"
1212

13-
synopsis: "A Multivariate polynomial Library for the Mathematical Components Library"
14-
description: """
15-
This library provides a library for monomial algebra, for multivariate
16-
polynomials over ring structures and an extended theory for polynomials whose
17-
coefficients range over commutative rings and integral domains."""
13+
depends: [ "rocq-mathcomp-multinomials" { = version } ]
1814

19-
build: [make "-j%{jobs}%"]
20-
install: [make "install"]
21-
depends: [
22-
("coq" {>= "8.20" & < "8.21~"}
23-
| "rocq-core" {>= "9.0"})
24-
"coq-mathcomp-ssreflect" {>= "2.4"}
25-
"coq-mathcomp-algebra"
26-
"coq-mathcomp-bigenough"
27-
"coq-mathcomp-finmap"
28-
]
29-
30-
tags: [
31-
"category:Mathematics/Algebra/Multinomials"
32-
"category:Mathematics/Algebra/Monoid algebra"
33-
"keyword:multinomials"
34-
"keyword:monoid algebra"
35-
"logpath:mathcomp.multinomials"
36-
]
37-
authors: [
38-
"Pierre-Yves Strub"
39-
]
15+
synopsis: "Compatibility package for rocq-mathcomp-multinomials"

rocq-mathcomp-multinomials.opam

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
opam-version: "2.0"
2+
maintainer: "pierre-yves@strub.nu"
3+
version: "dev"
4+
5+
homepage: "https://github.com/math-comp/multinomials"
6+
dev-repo: "git+https://github.com/math-comp/multinomials.git"
7+
bug-reports: "https://github.com/math-comp/multinomials/issues"
8+
license: "CECILL-B"
9+
10+
synopsis: "A Multivariate polynomial Library for the Mathematical Components Library"
11+
description: """
12+
This library provides a library for monomial algebra, for multivariate
13+
polynomials over ring structures and an extended theory for polynomials whose
14+
coefficients range over commutative rings and integral domains."""
15+
16+
build: [make "-j%{jobs}%"]
17+
install: [make "install"]
18+
depends: [
19+
("coq" {>= "8.20" & < "8.21~"}
20+
| "rocq-core" {>= "9.0"})
21+
"coq-mathcomp-ssreflect" {>= "2.4"}
22+
"coq-mathcomp-algebra"
23+
"coq-mathcomp-bigenough"
24+
"coq-mathcomp-finmap"
25+
]
26+
conflicts: [ "coq-mathcomp-multinomials" {<= "2.4.0"} ]
27+
28+
tags: [
29+
"category:Mathematics/Algebra/Multinomials"
30+
"category:Mathematics/Algebra/Monoid algebra"
31+
"keyword:multinomials"
32+
"keyword:monoid algebra"
33+
"logpath:mathcomp.multinomials"
34+
]
35+
authors: [
36+
"Pierre-Yves Strub"
37+
]

0 commit comments

Comments
 (0)