summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-11-15 10:29:49 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-11-15 10:36:02 +0100
commit09762c0b7aef328edabb50aee2d01cd64d3bded7 (patch)
tree57a5c376ff4bdc60bb77dff0f0fc2b89638dd906 /sci-mathematics/coq
parentdev-ml/extlib: bump to 1.7.1 (diff)
downloadgentoo-09762c0b7aef328edabb50aee2d01cd64d3bded7.tar.gz
gentoo-09762c0b7aef328edabb50aee2d01cd64d3bded7.tar.bz2
gentoo-09762c0b7aef328edabb50aee2d01cd64d3bded7.zip
sci-mathematics/coq: bump to 8.5pl3
Package-Manager: portage-2.3.2
Diffstat (limited to 'sci-mathematics/coq')
-rw-r--r--sci-mathematics/coq/Manifest1
-rw-r--r--sci-mathematics/coq/coq-8.5_p3.ebuild96
2 files changed, 97 insertions, 0 deletions
diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest
index fabb5f1aa1e2..34d9f5eca974 100644
--- a/sci-mathematics/coq/Manifest
+++ b/sci-mathematics/coq/Manifest
@@ -1,3 +1,4 @@
DIST coq-8.5.tar.gz 5346653 SHA256 89a92fb8b91e7cb0797d41c87cd13e4b63bee76c32a6dcc3d7c8055ca6a9ae3d SHA512 28835a9dc4c926f97b14d23fe746e45e17942003e29807ec59f301eb0b697d704f05afc4cccd31b83bc27e9877d079d00e94a2101ba16ae32f4134e90ad011fb WHIRLPOOL 30925b92f71ba606e43f1b46368822e8d6f6e6c1ae500c8fe1fc912c4ef0608c6db3c070d37ffabbd0e054eac0ff7d1b1e46eae33b73149bf238101b20a0f6d2
DIST coq-8.5pl1.tar.gz 5364928 SHA256 97047fc5e628f22e308efd3e86f625ae0504507decb96f2541e8e67eeaac20e8 SHA512 d907398e293cfc708c9314b3bbd57abf0806883cc1891d2b428f24e338953147586c0754e880fe679dfa893278335376287f6667db6c83dc7cb44a9e8afaddd1 WHIRLPOOL 7c65fd6a6804691492968d8b38cbbd34ac3fb9773cdea368679c206f735400d378e6d3786ce1955b22ac5ec4811beefaf83a6b656fb46a855e75c00c00608f21
DIST coq-8.5pl2.tar.gz 5321862 SHA256 83239d1251bf6c54a9ca5045d738e469019b93ca601756bf982aab0654e4de73 SHA512 0a0c7678eb92bbf3328a9667c66ff3bf59bc7fa6dea790ac1e1b2f4a7ab3121fb1ff01d18c2fc1bed53455286d0c507fe73cfccc1680ed3a219e773ab299f3af WHIRLPOOL 89b632538fd10afd2257aaf2b0acb26f4d2d49a7492583c039f88df6876ac27fc804b5854ee353d98cda64c2da3bf5571d7b9fde1cb9ceb50a90769633de18c7
+DIST coq-8.5pl3.tar.gz 5335502 SHA256 305b92e05d406d4d0c64f43d4fadb6b89419120a1d4ae4115ed1c5eb8812d33b SHA512 3093c71769135479526a6ffea05929fe640046fd376e4369a0f8308915d0eeac3330a62d3309bd062a9dd46739bd2497d43e4885ed188a8e4d9b7ca016e89402 WHIRLPOOL 95798242e7b808776f97c3c7896c100f89bacba4978c7179b6275a02c1db9ab8f3c01a823ba5d9d276ca5defabea24db296e70dc2ac9525ec64aa88dead94281
diff --git a/sci-mathematics/coq/coq-8.5_p3.ebuild b/sci-mathematics/coq/coq-8.5_p3.ebuild
new file mode 100644
index 000000000000..5e04286444d7
--- /dev/null
+++ b/sci-mathematics/coq/coq-8.5_p3.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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}
+ doc? (
+ media-libs/netpbm[png,zlib]
+ virtual/latex-base
+ dev-tex/hevea
+ dev-tex/xcolor
+ dev-texlive/texlive-pictures
+ dev-texlive/texlive-mathextra
+ dev-texlive/texlive-latexextra
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-8.5-do-not-install-revision.patch"
+ epatch "${FILESDIR}/${PN}-8.4_p5-no-clean-before-test.patch"
+}
+
+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 CREDITS CHANGES
+
+ use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png"
+}