summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2010-03-20 21:40:29 +0000
committerKeri Harris <keri@gentoo.org>2010-03-20 21:40:29 +0000
commitae51d5f8a3a3a5215be06d0a1e403eb85c625fe8 (patch)
tree5fecd724f5f2a8c5c0379a0c99196bbbabf4df16 /dev-lang/yap
parentFix tiff check #308955 by Samuli Suominen and automagic SDL depends #297326 b... (diff)
downloadgentoo-2-ae51d5f8a3a3a5215be06d0a1e403eb85c625fe8.tar.gz
gentoo-2-ae51d5f8a3a3a5215be06d0a1e403eb85c625fe8.tar.bz2
gentoo-2-ae51d5f8a3a3a5215be06d0a1e403eb85c625fe8.zip
Version bump
(Portage version: 2.1.7.17/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/yap')
-rw-r--r--dev-lang/yap/ChangeLog8
-rw-r--r--dev-lang/yap/files/yap-6.0.3-yapsharedir.patch14
-rw-r--r--dev-lang/yap/yap-6.0.3.ebuild97
3 files changed, 118 insertions, 1 deletions
diff --git a/dev-lang/yap/ChangeLog b/dev-lang/yap/ChangeLog
index cdbca2f970a5..f33845846bf2 100644
--- a/dev-lang/yap/ChangeLog
+++ b/dev-lang/yap/ChangeLog
@@ -1,6 +1,12 @@
# 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.33 2010/03/05 08:58:04 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/ChangeLog,v 1.34 2010/03/20 21:40:28 keri Exp $
+
+*yap-6.0.3 (20 Mar 2010)
+
+ 20 Mar 2010; <keri@gentoo.org> +yap-6.0.3.ebuild,
+ +files/yap-6.0.3-yapsharedir.patch:
+ Version bump
*yap-6.0.2 (05 Mar 2010)
diff --git a/dev-lang/yap/files/yap-6.0.3-yapsharedir.patch b/dev-lang/yap/files/yap-6.0.3-yapsharedir.patch
new file mode 100644
index 000000000000..d4fec59472d7
--- /dev/null
+++ b/dev-lang/yap/files/yap-6.0.3-yapsharedir.patch
@@ -0,0 +1,14 @@
+--- yap-6.0.3.orig/pl/consult.yap 2010-03-16 03:45:21.000000000 +1300
++++ yap-6.0.3/pl/consult.yap 2010-03-21 10:26:22.000000000 +1300
+@@ -877,9 +877,9 @@
+ atom_concat([Path,File],PFile).
+
+ '$system_library_directories'(Dir) :-
+- getenv('YAPSHAREDIR', Dir).
++ getenv('YAPSHAREDIR', Dir), !.
+ '$system_library_directories'(Dir) :-
+- getenv('YAPCOMMONSDIR', Dir).
++ getenv('YAPCOMMONSDIR', Dir), !.
+ '$system_library_directories'(Dir) :-
+ get_value(system_library_directory,Dir).
+ '$system_library_directories'(Dir) :-
diff --git a/dev-lang/yap/yap-6.0.3.ebuild b/dev-lang/yap/yap-6.0.3.ebuild
new file mode 100644
index 000000000000..ae6c97ed77a4
--- /dev/null
+++ b/dev-lang/yap/yap-6.0.3.ebuild
@@ -0,0 +1,97 @@
+# 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.0.3.ebuild,v 1.1 2010/03/20 21:40:28 keri Exp $
+
+inherit eutils 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/yap-6.0.3.tar.gz"
+
+LICENSE="Artistic LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc examples gmp java mpi mysql odbc readline static tk threads"
+
+DEPEND="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 )"
+
+RDEPEND="${DEPEND}
+ tk? ( dev-lang/tk )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-yapsharedir.patch
+}
+
+src_compile() {
+ 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) \
+ --enable-cut-c \
+ $(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 jpl) \
+ ${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."
+
+ if use tk ; then
+ exeinto /usr/bin
+ doexe misc/tkyap
+ fi
+
+ 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
+}