diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-07-13 14:55:30 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-07-13 14:55:38 +0200 |
commit | 392e3abc1b00db32c5bad6f3a829c643bf8e4d6f (patch) | |
tree | f5f72df8d916ec83f9a2bf47bcd35561e59b3343 /sci-mathematics/coq | |
parent | dev-libs/ossp-uuid: Revbump to increase support to php 5.6 (diff) | |
download | gentoo-392e3abc1b00db32c5bad6f3a829c643bf8e4d6f.tar.gz gentoo-392e3abc1b00db32c5bad6f3a829c643bf8e4d6f.tar.bz2 gentoo-392e3abc1b00db32c5bad6f3a829c643bf8e4d6f.zip |
sci-mathematics/coq: bump to 8.5pl2
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-mathematics/coq')
-rw-r--r-- | sci-mathematics/coq/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/coq/coq-8.5_p2.ebuild | 97 |
2 files changed, 98 insertions, 0 deletions
diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest index c098bdbcb18f..fabb5f1aa1e2 100644 --- a/sci-mathematics/coq/Manifest +++ b/sci-mathematics/coq/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/sci-mathematics/coq/coq-8.5_p2.ebuild b/sci-mathematics/coq/coq-8.5_p2.ebuild new file mode 100644 index 000000000000..451f2d336f34 --- /dev/null +++ b/sci-mathematics/coq/coq-8.5_p2.ebuild @@ -0,0 +1,97 @@ +# 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" + has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.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" +} |