diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-09-19 13:25:03 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-09-19 13:25:03 +0000 |
commit | 7b4b47a7ac8bfb7731aed741173dcd2ca15a964a (patch) | |
tree | 4cdf755281abf17ac5fbfed1c33014a4099c1db3 /sci-mathematics/coq | |
parent | amd64/x86 stable, bug #285500 (diff) | |
download | gentoo-2-7b4b47a7ac8bfb7731aed741173dcd2ca15a964a.tar.gz gentoo-2-7b4b47a7ac8bfb7731aed741173dcd2ca15a964a.tar.bz2 gentoo-2-7b4b47a7ac8bfb7731aed741173dcd2ca15a964a.zip |
dont prestrip files, bug #274321
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/coq')
-rw-r--r-- | sci-mathematics/coq/ChangeLog | 7 | ||||
-rw-r--r-- | sci-mathematics/coq/coq-8.2_p1-r1.ebuild | 68 |
2 files changed, 74 insertions, 1 deletions
diff --git a/sci-mathematics/coq/ChangeLog b/sci-mathematics/coq/ChangeLog index 4e084b7399a5..7aa4f30c4ac5 100644 --- a/sci-mathematics/coq/ChangeLog +++ b/sci-mathematics/coq/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/coq # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.43 2009/09/18 16:29:58 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.44 2009/09/19 13:25:03 aballier Exp $ + +*coq-8.2_p1-r1 (19 Sep 2009) + + 19 Sep 2009; Alexis Ballier <aballier@gentoo.org> +coq-8.2_p1-r1.ebuild: + dont prestrip files, bug #274321 18 Sep 2009; Torsten Veller <tove@gentoo.org> coq-8.2.ebuild, coq-8.2_p1.ebuild: diff --git a/sci-mathematics/coq/coq-8.2_p1-r1.ebuild b/sci-mathematics/coq/coq-8.2_p1-r1.ebuild new file mode 100644 index 000000000000..06f7793da2a1 --- /dev/null +++ b/sci-mathematics/coq/coq-8.2_p1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/coq-8.2_p1-r1.ebuild,v 1.1 2009/09/19 13:25:03 aballier Exp $ + +EAPI="2" + +inherit eutils multilib + +MY_PV="${PV/_p/pl}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Coq is a proof assistant written in O'Caml" +HOMEPAGE="http://coq.inria.fr/" +SRC_URI="http://coq.inria.fr/distrib/V${MY_PV}/files/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="norealanalysis gtk debug +ocamlopt doc" + +RDEPEND=">=dev-lang/ocaml-3.10[ocamlopt?] + >=dev-ml/camlp5-5.09[ocamlopt?] + gtk? ( >=dev-ml/lablgtk-2.10.1[ocamlopt?] )" +DEPEND="${RDEPEND} + doc? ( dev-tex/hevea virtual/latex-base )" + +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} + --camlp5dir ${ocaml_lib}/camlp5 + --lablgtkdir ${ocaml_lib}/lablgtk2" + + use debug && myconf="--debug $myconf" + use norealanalysis && myconf="$myconf --reals no" + use norealanalysis || myconf="$myconf --reals all" + use doc || myconf="$myconf --with-doc no" + + if use gtk; then + use ocamlopt && myconf="$myconf --coqide opt" + use ocamlopt || myconf="$myconf --coqide byte" + else + myconf="$myconf --coqide no" + fi + use ocamlopt || myconf="$myconf -byte-only" + use ocamlopt && myconf="$myconf --opt" + + export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" + ./configure $myconf || die "configure failed" +} + +src_compile() { + emake STRIP="true" -j1 || die "make failed" +} + +src_install() { + emake STRIP="true" COQINSTALLPREFIX="${D}" install || die + dodoc README CREDITS CHANGES + + use gtk && domenu "${FILESDIR}/coqide.desktop" +} |