summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2009-02-12 05:53:26 +0000
committerKeri Harris <keri@gentoo.org>2009-02-12 05:53:26 +0000
commitfa1c723bfd2e24cb50adccede4ab739d4fa855e5 (patch)
treec97f1f4b28e5dfa63d945dab12317381ce19b52e /dev-lang/gprolog
parentFix building w/ gcc-4.3 for bug #251449. Thanks to Gene Seto for the (diff)
downloadgentoo-2-fa1c723bfd2e24cb50adccede4ab739d4fa855e5.tar.gz
gentoo-2-fa1c723bfd2e24cb50adccede4ab739d4fa855e5.tar.bz2
gentoo-2-fa1c723bfd2e24cb50adccede4ab739d4fa855e5.zip
Version bump.
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 x86_64)
Diffstat (limited to 'dev-lang/gprolog')
-rw-r--r--dev-lang/gprolog/ChangeLog8
-rw-r--r--dev-lang/gprolog/files/gprolog-1.3.1-CFLAGS_MACHINE.patch40
-rw-r--r--dev-lang/gprolog/files/gprolog-1.3.1-TXT_FILES.patch10
-rw-r--r--dev-lang/gprolog/gprolog-1.3.1.ebuild55
4 files changed, 112 insertions, 1 deletions
diff --git a/dev-lang/gprolog/ChangeLog b/dev-lang/gprolog/ChangeLog
index e6c8b31e7859..da0484cecad2 100644
--- a/dev-lang/gprolog/ChangeLog
+++ b/dev-lang/gprolog/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/gprolog
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.36 2009/01/18 21:36:02 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.37 2009/02/12 05:53:26 keri Exp $
+
+*gprolog-1.3.1 (12 Feb 2009)
+
+ 12 Feb 2009; <keri@gentoo.org> +files/gprolog-1.3.1-CFLAGS_MACHINE.patch,
+ +files/gprolog-1.3.1-TXT_FILES.patch, +gprolog-1.3.1.ebuild:
+ Version bump.
18 Jan 2009; <keri@gentoo.org> -gprolog-1.3.0-r1.ebuild:
Remove old version
diff --git a/dev-lang/gprolog/files/gprolog-1.3.1-CFLAGS_MACHINE.patch b/dev-lang/gprolog/files/gprolog-1.3.1-CFLAGS_MACHINE.patch
new file mode 100644
index 000000000000..8cfc4008b34a
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.3.1-CFLAGS_MACHINE.patch
@@ -0,0 +1,40 @@
+--- gprolog-1.3.1.orig/src/configure 2009-02-11 04:16:50.000000000 +1300
++++ gprolog-1.3.1/src/configure 2009-02-12 18:33:38.000000000 +1300
+@@ -5510,7 +5510,7 @@
+ # * C compiler flags *
+ # ********************
+
+-CFLAGS_MACHINE=
++#CFLAGS_MACHINE=
+ CFLAGS_PREFIX_REG=
+
+ { echo "$as_me:$LINENO: checking for inline" >&5
+@@ -5612,17 +5612,17 @@
+ CFLAGS_PREFIX_REG='-ffixed-%s'
+ CFLAGS_UNSIGNED_CHAR='-funsigned-char'
+
+- CFLAGS_MACHINE=
+- case "$host" in
+- mips*irix*) CFLAGS_MACHINE='-march=4000';;
+- *sparc*sunos4.1.3) CFLAGS_MACHINE='-msupersparc';;
+- *sparc*solaris) CFLAGS_MACHINE='-msupersparc';;
+- i686*) CFLAGS_MACHINE='-march=pentiumpro';;
+- i586*) CFLAGS_MACHINE='-march=pentium';;
+- i*86*) CFLAGS_MACHINE='-march=i486';;
+- powerpc*darwin*) CFLAGS_MACHINE='-mpowerpc -no-cpp-precomp';;
+- x86_64*solaris*) CFLAGS_MACHINE='-m64';;
+- esac
++# CFLAGS_MACHINE=
++# case "$host" in
++# mips*irix*) CFLAGS_MACHINE='-march=4000';;
++# *sparc*sunos4.1.3) CFLAGS_MACHINE='-msupersparc';;
++# *sparc*solaris) CFLAGS_MACHINE='-msupersparc';;
++# i686*) CFLAGS_MACHINE='-march=pentiumpro';;
++# i586*) CFLAGS_MACHINE='-march=pentium';;
++# i*86*) CFLAGS_MACHINE='-march=i486';;
++# powerpc*darwin*) CFLAGS_MACHINE='-mpowerpc -no-cpp-precomp';;
++# x86_64*solaris*) CFLAGS_MACHINE='-m64';;
++# esac
+
+ case "$host" in
+ i*86*) if test "$USE_EBP" != no; then
diff --git a/dev-lang/gprolog/files/gprolog-1.3.1-TXT_FILES.patch b/dev-lang/gprolog/files/gprolog-1.3.1-TXT_FILES.patch
new file mode 100644
index 000000000000..93e6569fa570
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.3.1-TXT_FILES.patch
@@ -0,0 +1,10 @@
+--- gprolog-1.3.1.orig/src/Makefile.in 2009-01-24 00:15:03.000000000 +1300
++++ gprolog-1.3.1/src/Makefile.in 2009-02-12 18:38:31.000000000 +1300
+@@ -57,7 +57,6 @@
+ install-system:
+ ./mkinstalldirs $(INSTALL_DIR) $(INSTALL_DIR)/bin \
+ $(INSTALL_DIR)/include $(INSTALL_DIR)/lib
+- for i in $(TXT_FILES); do $(INSTALL_DATA) ../$$i $(INSTALL_DIR); done
+ for i in $(BIN_FILES); do $(INSTALL_PROGRAM) */$$i $(INSTALL_DIR)/bin; done
+ for i in $(OBJ_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
+ for i in $(LIB_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
diff --git a/dev-lang/gprolog/gprolog-1.3.1.ebuild b/dev-lang/gprolog/gprolog-1.3.1.ebuild
new file mode 100644
index 000000000000..e0ded5d6e770
--- /dev/null
+++ b/dev-lang/gprolog/gprolog-1.3.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.3.1.ebuild,v 1.1 2009/02/12 05:53:26 keri Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="GNU Prolog is a native Prolog compiler with constraint solving over finite domains (FD)"
+HOMEPAGE="http://www.gprolog.org/"
+SRC_URI="ftp://ftp.gnu.org/gnu/gprolog/${P}.tar.gz"
+S="${WORKDIR}"/${P}/src
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc examples"
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-CFLAGS_MACHINE.patch
+ epatch "${FILESDIR}"/${P}-TXT_FILES.patch
+}
+
+src_compile() {
+ CFLAGS_MACHINE="`get-flag -march` `get-flag -mcpu` `get-flag -mtune`"
+
+ use debug && append-flags -DDEBUG
+
+ econf \
+ CFLAGS_MACHINE="${CFLAGS_MACHINE}" \
+ --with-c-flags="${CFLAGS}" \
+ --with-install-dir="${D}"/usr \
+ --with-doc-dir="${D}"/usr/share/doc/${PF} \
+ --with-html-dir="${D}"/usr/share/doc/${PF}/html \
+ --with-examples-dir="${D}"/usr/share/doc/${PF}/examples \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install-system || die "make install-system failed"
+
+ if use doc; then
+ make install-html || die "make install-html failed"
+ fi
+ if use examples; then
+ make install-examples || die "make install-examples failed"
+ fi
+
+ cd "${S}"/..
+ dodoc ChangeLog NEWS PROBLEMS README VERSION
+}