From f82a0ccd1ec627e46d64547495ec328895456dc5 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Fri, 27 Jan 2023 12:26:26 +0100 Subject: sci-mathematics/coq-serapi: remove ppx_sexp_conv restriction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- .../coq-serapi/coq-serapi-0.16.2-r1.ebuild | 67 ++++++++++++++++++++++ .../coq-serapi/coq-serapi-0.16.2.ebuild | 66 --------------------- 2 files changed, 67 insertions(+), 66 deletions(-) create mode 100644 sci-mathematics/coq-serapi/coq-serapi-0.16.2-r1.ebuild delete mode 100644 sci-mathematics/coq-serapi/coq-serapi-0.16.2.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/coq-serapi/coq-serapi-0.16.2-r1.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.16.2-r1.ebuild new file mode 100644 index 000000000000..44a2d0a9b186 --- /dev/null +++ b/sci-mathematics/coq-serapi/coq-serapi-0.16.2-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +COQV=8.16.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 + +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/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 ) +" + +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 ${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/coq-serapi-0.16.2.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.16.2.ebuild deleted file mode 100644 index 3c68fbf69d0d..000000000000 --- a/sci-mathematics/coq-serapi/coq-serapi-0.16.2.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -COQV=8.16.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 + -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/ppx_sexp_conv-0.13.0:=