diff options
author | Keri Harris <keri@gentoo.org> | 2010-10-23 21:39:25 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2010-10-23 21:39:25 +0000 |
commit | 433ec73f9299b0ed762d33f5dbf4482a029eaba1 (patch) | |
tree | d20de5881bb72b3baf5f11e451bc6b2fa42973f7 | |
parent | Initial commit of live ebuild. Moved from my overlay (diff) | |
download | gentoo-2-433ec73f9299b0ed762d33f5dbf4482a029eaba1.tar.gz gentoo-2-433ec73f9299b0ed762d33f5dbf4482a029eaba1.tar.bz2 gentoo-2-433ec73f9299b0ed762d33f5dbf4482a029eaba1.zip |
Yap client mode is unsupported; accordingly, drop tkyap client
(Portage version: 2.1.8.3/cvs/Linux x86_64)
-rw-r--r-- | dev-lang/yap/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/yap/yap-6.2.0-r1.ebuild | 96 |
2 files changed, 102 insertions, 1 deletions
diff --git a/dev-lang/yap/ChangeLog b/dev-lang/yap/ChangeLog index ca3c50ed62ed..786c4dc84995 100644 --- a/dev-lang/yap/ChangeLog +++ b/dev-lang/yap/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/yap # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/ChangeLog,v 1.42 2010/10/23 20:55:08 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/ChangeLog,v 1.43 2010/10/23 21:39:25 keri Exp $ + +*yap-6.2.0-r1 (23 Oct 2010) + + 23 Oct 2010; <keri@gentoo.org> +yap-6.2.0-r1.ebuild: + Yap client mode is unsupported; accordingly, drop tkyap client 23 Oct 2010; <keri@gentoo.org> yap-6.2.0.ebuild, +files/yap-6.2.0-have-config.patch: diff --git a/dev-lang/yap/yap-6.2.0-r1.ebuild b/dev-lang/yap/yap-6.2.0-r1.ebuild new file mode 100644 index 000000000000..df9dff15db7e --- /dev/null +++ b/dev-lang/yap/yap-6.2.0-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/yap-6.2.0-r1.ebuild,v 1.1 2010/10/23 21:39:25 keri Exp $ + +inherit eutils flag-o-matic java-pkg-opt-2 + +DESCRIPTION="YAP is a high-performance Prolog compiler." +HOMEPAGE="http://www.ncc.up.pt/~vsc/Yap/" +SRC_URI="http://www.ncc.up.pt/~vsc/Yap/${P}.tar.gz" + +LICENSE="Artistic LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug doc examples gmp java mpi mysql odbc readline static threads" + +DEPEND="sys-libs/zlib + gmp? ( dev-libs/gmp ) + java? ( >=virtual/jdk-1.4 ) + mpi? ( virtual/mpi ) + mysql? ( virtual/mysql ) + odbc? ( dev-db/unixODBC ) + readline? ( sys-libs/readline ) + doc? ( app-text/texi2html )" + +S="${WORKDIR}"/${PN}-6 + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-yapsharedir.patch + epatch "${FILESDIR}"/${P}-ldflags.patch + epatch "${FILESDIR}"/${P}-have-config.patch + epatch "${FILESDIR}"/${P}-chr-sublist.patch +} + +src_compile() { + append-flags -fno-strict-aliasing + + local myddas_conf + if use mysql || use odbc; then + myddas_conf="--enable-myddas \ + --enable-myddas-stats \ + --enable-myddas-top-level" + else + myddas_conf="--disable-myddas" + fi + + econf \ + --libdir=/usr/$(get_libdir) \ + $(use_enable !static dynamic-loading) \ + $(use_enable threads) \ + $(use_enable threads pthread-locking) \ + $(use_enable debug debug-yap) \ + $(use_enable debug low-level-tracer) \ + $(use_with gmp) \ + $(use_with readline) \ + $(use_with mpi) \ + $(use_with mpi mpe) \ + $(use_with java) \ + ${myddas_conf} \ + || die "econf failed" + + emake || die "emake failed" + + if use doc ; then + emake html || die "emake html failed" + fi +} + +src_install() { + emake DESTDIR="${D}" -j1 install || die "make install failed." + + dodoc changes*.html README + + if use doc ; then + dodoc yap.html + fi + + if use examples ; then + docinto examples/chr + dodoc packages/chr/Examples/*.{chr,pl} + docinto examples/plunit + dodoc packages/plunit/examples/*.pl + if use java ; then + docinto examples/jpl/prolog + dodoc packages/jpl/examples/prolog/*.pl + docinto examples/jpl/java + dodoc packages/jpl/examples/java/*/*.java + fi + if use mpi ; then + docinto examples/mpi + dodoc library/mpi/examples/*.pl + fi + fi +} |