diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-31 09:05:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-31 09:05:04 +0000 |
commit | 9420f5130776d92998a2ea8466fb15f589a20fda (patch) | |
tree | 9f6ee9df88a571094ed4d0df14462aef70ceee7f /sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild | |
parent | 7785404bd292918a4afd4780ccfc36d6626a49ca (diff) |
gentoo auto-resync : 31:10:2022 - 09:05:04
Diffstat (limited to 'sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild')
-rw-r--r-- | sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild new file mode 100644 index 000000000000..fed96a12b2dc --- /dev/null +++ b/sci-mathematics/coq-serapi/coq-serapi-0.16.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 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 <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}:= <sci-mathematics/coq-8.17:= + >=dev-ml/ppx_sexp_conv-0.13.0:= <dev-ml/ppx_sexp_conv-0.15.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 +} |