diff options
Diffstat (limited to 'sci-mathematics/coq')
-rw-r--r-- | sci-mathematics/coq/Manifest | 7 | ||||
-rw-r--r-- | sci-mathematics/coq/coq-8.6.1.ebuild | 91 | ||||
-rw-r--r-- | sci-mathematics/coq/coq-8.6.ebuild | 91 | ||||
-rw-r--r-- | sci-mathematics/coq/metadata.xml | 28 |
4 files changed, 217 insertions, 0 deletions
diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest new file mode 100644 index 000000000000..3e8ded2d230d --- /dev/null +++ b/sci-mathematics/coq/Manifest @@ -0,0 +1,7 @@ +DIST coq-8.6.1.tar.gz 5588811 SHA256 32f8aa92853483dec18030def9f0857a708fee56cf4287e39c9a260f08138f9d SHA512 814ab76a06ca15f927081428da74add4bc67290199fa011853b9c68a00cdefaf813b10fbac18a434f4504fce8f2173eb544080bf6f50d62caa41bb8724b13083 WHIRLPOOL e0d918909b9902acd4ab0f8b4b5ce425ed8a26e80f5e2714b7e0c38ed737b9c83eab3a7fc8ba1407298bdf24adbcd435771d5cd92f3e4296e04b5503aea44c2d +DIST coq-8.6.tar.gz 5538848 SHA256 6e3c3cf5c8e2b0b760dc52738e2e849f3a8c630869659ecc0cf41413fcee81df SHA512 9f5f4913fda8cf83683fec9398b42d4567207c3d4b52b4638d5e09a24ed25a43905fb57a9fac1bb9f9d681bd47f3560e1da74e79348b3a3fd93e2e8c686cebae WHIRLPOOL 714226c0f9138ea7dc9828db6dbc59e9b6e0c18ae305fc1a67c5c1c7a950ec1deabd37f462e20d1d1ddbd148a8bc3845a72f88f5ef6cbd4f93abfd02539dbcbc +EBUILD coq-8.6.1.ebuild 2028 SHA256 02827340a119cf3aa0d92ecc4a3980f172ed348b0c9bda435d1f944ec628ccd6 SHA512 efe0e46aba141542802906c411de43257c8bd4b154f8828888b4b01651d5c7fb38d28e40f12cafc2df2cfefdefba94fe733dfe6490761a11813800fa03c4f320 WHIRLPOOL f5274e936235506e94faac5c4450f26e3e6403bd30b3bf5822731e36ea5e367556d9e51422e8f4fdbb14968ab77c9524b1470ded1012fa60435145821504083e +EBUILD coq-8.6.ebuild 2025 SHA256 d13623720648406f7f58b4e8ccb65f056247e84b79b86d6e3be88b20af1c3351 SHA512 c3dcd0da423c16ffd723ef88178387c98e10444a766a5534b175bb945c8931151a0e13f2c0398bd248b6581480d3b9d46a29e55789ff492c179eca1ab28841ca WHIRLPOOL 6d0c8ead2898b74404d41f498fb9c57623bc9f745e31bee5d9a3e777dd07c4ba36f829898c73e8ef12ee66f65ef6c029ef45d732476c66d7e2ab3f7af3bc1aa9 +MISC ChangeLog 6481 SHA256 6959b4954d8c792af17a3ba3f4146bbefd6c815f70b960493c8d78848efa7949 SHA512 7e6b99d739d20cd9a8c7feb3293af390cd46f11e28dd65d9589573322eb586b51aeb55ff5b63a11257afea6a60f6812e7fdc255b63ad9bbeb7cf30f464c7bce1 WHIRLPOOL 5c30f15e3e745abad186f2397932cbac296f88a55bf4babf8b8db8700e038efc84e8dac186f9eff842503c2122435ca8d5b1e00bf803bed6b852060a64b0e40d +MISC ChangeLog-2015 14610 SHA256 29ea672165f7b1d0c386175e219d9685d07fa53ed4a8a8d02278fd8390fa1190 SHA512 5530975ef086bc4ad2fc579f07b1718d451df04ff13b350f080630972f4b9da6560d61f5f6c9dd61881a79beca58f71aa356dbf84cdc47022037f638516a6b27 WHIRLPOOL 2fa629c380ee9ec61e0ccf8aa26d3025545d5a702eb89bd5c944170f0f1fe13af8d1cf065a368927bdc5c88cae63a251ea7daff72aa8cf38c30a10e3e2d4ebad +MISC metadata.xml 1113 SHA256 1720d2147ae5051682d692c927e93f4ce8ccba8b6593a27720a6bc173fca562e SHA512 10bf7af26739a58d7e2165ab8d02b6412540c2abd1e28b800976fd8fc9df78275b5dafbdb2e660eae7fb4946769b41812ee5d2bba931317870d993869d7412b8 WHIRLPOOL f09aa337d190b08f69438479bcf51f0821c30158ca8c44c07a8eb8a4b5ced2a8af47d10d1867a5d6603e55dfbb90bc701de381a3ab1799b9dc2057b793329782 diff --git a/sci-mathematics/coq/coq-8.6.1.ebuild b/sci-mathematics/coq/coq-8.6.1.ebuild new file mode 100644 index 000000000000..9b09cfd79ddd --- /dev/null +++ b/sci-mathematics/coq/coq-8.6.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils multilib + +MY_PV=${PV/_p/pl} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Proof assistant written in O'Caml" +HOMEPAGE="http://coq.inria.fr/" +SRC_URI="http://${PN}.inria.fr/distrib/V${MY_PV}/files/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="gtk debug +ocamlopt doc camlp5" + +RDEPEND=" + >=dev-lang/ocaml-3.11.2:=[ocamlopt?] + camlp5? ( >=dev-ml/camlp5-6.02.3:=[ocamlopt?] ) + !camlp5? ( dev-ml/camlp4:= ) + gtk? ( >=dev-ml/lablgtk-2.10.1:=[sourceview,ocamlopt?] )" +DEPEND="${RDEPEND} + dev-ml/findlib + doc? ( + media-libs/netpbm[png,zlib] + virtual/latex-base + dev-tex/hevea + dev-tex/xcolor + dev-texlive/texlive-pictures + || ( dev-texlive/texlive-mathscience dev-texlive/texlive-mathextra ) + dev-texlive/texlive-latexextra + )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + ocaml_lib=$(ocamlc -where) + local myconf=( + -prefix /usr + -bindir /usr/bin + -libdir /usr/$(get_libdir)/coq + -mandir /usr/share/man + -emacslib /usr/share/emacs/site-lisp + -coqdocdir /usr/$(get_libdir)/coq/coqdoc + -docdir /usr/share/doc/${PF} + -configdir /etc/xdg/${PN} + -lablgtkdir ${ocaml_lib}/lablgtk2 + ) + + use debug && myconf+=( -debug ) + use doc || myconf+=( -with-doc no ) + + if use gtk; then + if use ocamlopt; then + myconf+=( -coqide opt ) + else + myconf+=( -coqide byte ) + fi + else + myconf+=( -coqide no ) + fi + + use ocamlopt || myconf+=( -byte-only ) + + if use camlp5; then + myconf+=( -usecamlp5 -camlp5dir ${ocaml_lib}/camlp5 ) + else + myconf+=( -usecamlp4 ) + fi + + export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" + ./configure ${myconf[@]} || die "configure failed" +} + +src_compile() { + emake STRIP="true" -j1 world VERBOSE=1 +} + +src_test() { + emake STRIP="true" check VERBOSE=1 +} + +src_install() { + emake STRIP="true" COQINSTALLPREFIX="${D}" install VERBOSE=1 + dodoc README.md CREDITS CHANGES + + use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" +} diff --git a/sci-mathematics/coq/coq-8.6.ebuild b/sci-mathematics/coq/coq-8.6.ebuild new file mode 100644 index 000000000000..f2f38a063820 --- /dev/null +++ b/sci-mathematics/coq/coq-8.6.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils multilib + +MY_PV=${PV/_p/pl} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Proof assistant written in O'Caml" +HOMEPAGE="http://coq.inria.fr/" +SRC_URI="http://${PN}.inria.fr/distrib/V${MY_PV}/files/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gtk debug +ocamlopt doc camlp5" + +RDEPEND=" + >=dev-lang/ocaml-3.11.2:=[ocamlopt?] + camlp5? ( >=dev-ml/camlp5-6.02.3:=[ocamlopt?] ) + !camlp5? ( dev-ml/camlp4:= ) + gtk? ( >=dev-ml/lablgtk-2.10.1:=[sourceview,ocamlopt?] )" +DEPEND="${RDEPEND} + dev-ml/findlib + doc? ( + media-libs/netpbm[png,zlib] + virtual/latex-base + dev-tex/hevea + dev-tex/xcolor + dev-texlive/texlive-pictures + || ( dev-texlive/texlive-mathscience dev-texlive/texlive-mathextra ) + dev-texlive/texlive-latexextra + )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + ocaml_lib=$(ocamlc -where) + local myconf=( + -prefix /usr + -bindir /usr/bin + -libdir /usr/$(get_libdir)/coq + -mandir /usr/share/man + -emacslib /usr/share/emacs/site-lisp + -coqdocdir /usr/$(get_libdir)/coq/coqdoc + -docdir /usr/share/doc/${PF} + -configdir /etc/xdg/${PN} + -lablgtkdir ${ocaml_lib}/lablgtk2 + ) + + use debug && myconf+=( -debug ) + use doc || myconf+=( -with-doc no ) + + if use gtk; then + if use ocamlopt; then + myconf+=( -coqide opt ) + else + myconf+=( -coqide byte ) + fi + else + myconf+=( -coqide no ) + fi + + use ocamlopt || myconf+=( -byte-only ) + + if use camlp5; then + myconf+=( -usecamlp5 -camlp5dir ${ocaml_lib}/camlp5 ) + else + myconf+=( -usecamlp4 ) + fi + + export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" + ./configure ${myconf[@]} || die "configure failed" +} + +src_compile() { + emake STRIP="true" -j1 world VERBOSE=1 +} + +src_test() { + emake STRIP="true" check VERBOSE=1 +} + +src_install() { + emake STRIP="true" COQINSTALLPREFIX="${D}" install VERBOSE=1 + dodoc README.md CREDITS CHANGES + + use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" +} diff --git a/sci-mathematics/coq/metadata.xml b/sci-mathematics/coq/metadata.xml new file mode 100644 index 000000000000..1bf44c44c547 --- /dev/null +++ b/sci-mathematics/coq/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ml@gentoo.org</email> + <name>Gentoo ML Project</name> + </maintainer> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription lang="en"> + Developed in the LogiCal project, the Coq tool is a formal proof + management system: a proof done with Coq is mechanically checked + by the machine. + In particular, Coq allows: + * the definition of functions or predicates, + * to state mathematical theorems and software specifications, + * to develop interactively formal proofs of these theorems, + * to check these proofs by a small certification "kernel". + Coq is based on a logical framework called "Calculus of Inductive + Constructions" extended by a modular development system for + theories. +</longdescription> + <use> + <flag name="camlp5">Build using camlp5. This is required for some plugins like Ssreflect.</flag> + </use> +</pkgmetadata> |