* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/coq-serapi/, sci-mathematics/coq-serapi/files/
@ 2022-03-05 4:44 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2022-03-05 4:44 UTC (permalink / raw
To: gentoo-commits
commit: f6f7c1b270ceb94292a91628505bdfe5b6cebcb4
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 5 02:38:53 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Mar 5 04:40:57 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f7c1b2
sci-mathematics/coq-serapi: new package; add 0.15.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
sci-mathematics/coq-serapi/Manifest | 1 +
.../coq-serapi/coq-serapi-0.15.0.ebuild | 64 ++++++++++++++++++++++
.../coq-serapi/files/50sertop-gentoo.el | 2 +
.../files/coq-serapi-sertop.el-path.patch | 12 ++++
sci-mathematics/coq-serapi/metadata.xml | 21 +++++++
5 files changed, 100 insertions(+)
diff --git a/sci-mathematics/coq-serapi/Manifest b/sci-mathematics/coq-serapi/Manifest
new file mode 100644
index 000000000000..512540a49757
--- /dev/null
+++ b/sci-mathematics/coq-serapi/Manifest
@@ -0,0 +1 @@
+DIST coq-serapi-0.15.0.tar.gz 268083 BLAKE2B aeea2cb8ed0f648f307715c464f2da90585718aa8afedf69b4e1c282265a12a3937044397787404e43286cebaaf1f48efde93d845cd71c1c97cc1b2e9a2a8835 SHA512 3ba1b63002d36a4c0e64f86170d31c4131dc02e8cb8573b39f03ed44d1e5f29c064c472bebad367b875b02e36ced6bfe8c5fb2023bd798b3b79f74a5a2f54189
diff --git a/sci-mathematics/coq-serapi/coq-serapi-0.15.0.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.15.0.ebuild
new file mode 100644
index 000000000000..2733c490f747
--- /dev/null
+++ b/sci-mathematics/coq-serapi/coq-serapi-0.15.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COQV=8.15.0
+
+inherit elisp-common dune
+
+DESCRIPTION="Serialization library and protocol for interaction with the Coq proof assistant"
+HOMEPAGE="https://github.com/ejgallego/coq-serapi/"
+# The tarball in SRC_URI is comprised of <supported coq>+<package version>
+SRC_URI="https://github.com/ejgallego/${PN}/archive/${COQV}+${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${COQV}-${PV}
+
+LICENSE="GPL-3+"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="emacs +ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=sci-mathematics/coq-${COQV}:=
+ dev-ml/cmdliner:=
+ dev-ml/ppx_deriving:=
+ dev-ml/ppx_deriving_yojson:=
+ dev-ml/ppx_import:=
+ dev-ml/ppx_sexp_conv:=
+ dev-ml/sexplib:=
+ dev-ml/yojson:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ emacs? ( >=app-editors/emacs-23.1:* )
+ test? ( sci-mathematics/coq-mathcomp )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-sertop.el-path.patch )
+SITEFILE="50sertop-gentoo.el"
+
+src_compile() {
+ dune_src_compile
+
+ use emacs && elisp-compile sertop.el
+}
+
+src_install() {
+ dune_src_install
+
+ rm -r "${D}"/usr/share/emacs || die
+ if use emacs ; then
+ elisp-install sertop sertop.el{,c}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/coq-serapi/files/50sertop-gentoo.el b/sci-mathematics/coq-serapi/files/50sertop-gentoo.el
new file mode 100644
index 000000000000..b630f718aa19
--- /dev/null
+++ b/sci-mathematics/coq-serapi/files/50sertop-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'sertop "sertop" "Launch sertop." t)
diff --git a/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch b/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch
new file mode 100644
index 000000000000..628ed22a64ff
--- /dev/null
+++ b/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch
@@ -0,0 +1,12 @@
+index 300a22f..63f7dcc 100644
+--- a/sertop.el
++++ b/sertop.el
+@@ -37,7 +37,7 @@
+ (buffer-file-name))))
+
+ (defvar sertop-executable-path
+- (or (expand-file-name "sertop.native" sertop--root)
++ (or (executable-find "sertop.native")
+ (executable-find "sertop"))
+ "Path to sertop.")
+
diff --git a/sci-mathematics/coq-serapi/metadata.xml b/sci-mathematics/coq-serapi/metadata.xml
new file mode 100644
index 000000000000..fd440ed6e397
--- /dev/null
+++ b/sci-mathematics/coq-serapi/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription>
+ SerAPI is a library for machine-to-machine interaction with the Coq proof
+ assistant, with particular emphasis on applications in IDEs, code analysis
+ tools, and machine learning. SerAPI provides automatic serialization of
+ Coq's internal OCaml datatypes from/to JSON or S-expressions (sexps).
+ SerAPI is a proof-of-concept and should be considered alpha-quality.
+ </longdescription>
+ <upstream>
+ <changelog>https://github.com/ejgallego/coq-serapi/releases/</changelog>
+ <bugs-to>https://github.com/ejgallego/coq-serapi/issues/</bugs-to>
+ <remote-id type="github">ejgallego/coq-serapi</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/coq-serapi/, sci-mathematics/coq-serapi/files/
@ 2024-03-04 21:58 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2024-03-04 21:58 UTC (permalink / raw
To: gentoo-commits
commit: 01872ba01f3aaefe3e951ebaedeaa3364db42ae0
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 4 18:54:26 2024 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Mar 4 21:56:45 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01872ba0
sci-mathematics/coq-serapi: drop old 0.18.1
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
sci-mathematics/coq-serapi/Manifest | 1 -
.../coq-serapi/coq-serapi-0.18.1.ebuild | 72 ----------------------
.../files/coq-serapi-sertop.el-path.patch | 12 ----
3 files changed, 85 deletions(-)
diff --git a/sci-mathematics/coq-serapi/Manifest b/sci-mathematics/coq-serapi/Manifest
index 9329b3bb17ba..11247d765a45 100644
--- a/sci-mathematics/coq-serapi/Manifest
+++ b/sci-mathematics/coq-serapi/Manifest
@@ -1,2 +1 @@
-DIST coq-serapi-0.18.1.tar.gz 275040 BLAKE2B 9224505da004ff54c3d21c394e6049b5e15b91c3531cd0d80aae89ee6ce9e92bb626a43fdef8fad58fea4d017b3ed3f13d5d1735e7cfc1ae3bcebed2c70ce332 SHA512 a8eca10734a5b1aa5c6a890998f18d673050ca1e975b5e88643176bfd627b4c0d05cf0be1b75ccfd155b9e74f357ee61bf8225fd144b6a624a3bdd359396428c
DIST coq-serapi-0.19.0.tar.gz 180779 BLAKE2B 27083a851139e983158b4cb251d37971d0eec61dd91303a0d09512e690c56a75624dab8c5120eebaed1e7bb168d0b2b889d538854812506c4d0a804f7bee7423 SHA512 e01706beb957315011682f2f74448e66c7a8a077418eeaf7d3fa21414bdf88950b75adbfe2392656e4d6036ce6585d4d53b1dadfd8379249b2943ea389c9c83e
diff --git a/sci-mathematics/coq-serapi/coq-serapi-0.18.1.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.18.1.ebuild
deleted file mode 100644
index c98dfba0d296..000000000000
--- a/sci-mathematics/coq-serapi/coq-serapi-0.18.1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-COQ_MIN_V=8.18.0
-COQ_MAX_V=8.19.0
-
-inherit elisp-common dune
-
-DESCRIPTION="Serialization library and protocol for interaction with the Coq proof assistant"
-HOMEPAGE="https://github.com/ejgallego/coq-serapi/"
-
-# The tarball in SRC_URI is comprised of <supported coq>+<package version>
-SRC_URI="https://github.com/ejgallego/${PN}/archive/${COQ_MIN_V}+${PV}.tar.gz
- -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${COQ_MIN_V}-${PV}"
-
-LICENSE="GPL-3+"
-SLOT="0/${PV}"
-KEYWORDS="~amd64"
-IUSE="emacs +ocamlopt test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=sci-mathematics/coq-${COQ_MIN_V}:= <sci-mathematics/coq-${COQ_MAX_V}:=
- >=dev-ml/ppx_sexp_conv-0.13.0:=
- dev-ml/cmdliner:=
- dev-ml/ppx_compare:=
- dev-ml/ppx_deriving:=
- dev-ml/ppx_deriving_yojson:=
- dev-ml/ppx_hash:=
- dev-ml/ppx_import:=
- dev-ml/sexplib:=
- dev-ml/yojson:=
-"
-DEPEND="
- ${RDEPEND}
-"
-BDEPEND="
- emacs? ( >=app-editors/emacs-23.1:* )
- test? ( sci-mathematics/coq-mathcomp )
-"
-
-SITEFILE="50sertop-gentoo.el"
-
-PATCHES=( "${FILESDIR}/${PN}-sertop.el-path.patch" )
-
-src_compile() {
- dune_src_compile
-
- use emacs && elisp-compile sertop.el
-}
-
-src_install() {
- dune_src_install
-
- rm -r "${ED}/usr/share/emacs" || die
-
- if use emacs ; then
- elisp-install "${PN}" sertop.el{,c}
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch b/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch
deleted file mode 100644
index 628ed22a64ff..000000000000
--- a/sci-mathematics/coq-serapi/files/coq-serapi-sertop.el-path.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-index 300a22f..63f7dcc 100644
---- a/sertop.el
-+++ b/sertop.el
-@@ -37,7 +37,7 @@
- (buffer-file-name))))
-
- (defvar sertop-executable-path
-- (or (expand-file-name "sertop.native" sertop--root)
-+ (or (executable-find "sertop.native")
- (executable-find "sertop"))
- "Path to sertop.")
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-04 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-05 4:44 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/coq-serapi/, sci-mathematics/coq-serapi/files/ Maciej Barć
-- strict thread matches above, loose matches on Subject: below --
2024-03-04 21:58 Maciej Barć
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox