summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2011-07-01 09:28:51 +0000
committerKeri Harris <keri@gentoo.org>2011-07-01 09:28:51 +0000
commitb2ab881546a580c55a13c449db403c93df30eb41 (patch)
treed45ce88d837bf39d774aa2156baca68aec3eb1e4 /dev-lang/gprolog
parentStable on amd64 wrt bug #373503 (diff)
downloadgentoo-2-b2ab881546a580c55a13c449db403c93df30eb41.tar.gz
gentoo-2-b2ab881546a580c55a13c449db403c93df30eb41.tar.bz2
gentoo-2-b2ab881546a580c55a13c449db403c93df30eb41.zip
Version bump
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/gprolog')
-rw-r--r--dev-lang/gprolog/ChangeLog10
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.0-ldflags.patch40
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.0-txt-file.patch10
-rw-r--r--dev-lang/gprolog/gprolog-1.4.0.ebuild60
4 files changed, 118 insertions, 2 deletions
diff --git a/dev-lang/gprolog/ChangeLog b/dev-lang/gprolog/ChangeLog
index 07db2d31a0fa..b580d9b58094 100644
--- a/dev-lang/gprolog/ChangeLog
+++ b/dev-lang/gprolog/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/gprolog
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.44 2010/11/08 07:30:59 keri Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.45 2011/07/01 09:28:50 keri Exp $
+
+*gprolog-1.4.0 (01 Jul 2011)
+
+ 01 Jul 2011; <keri@gentoo.org> +gprolog-1.4.0.ebuild,
+ +files/gprolog-1.4.0-ldflags.patch, +files/gprolog-1.4.0-txt-file.patch:
+ Version bump
08 Nov 2010; <keri@gentoo.org> gprolog-1.3.1-r1.ebuild:
QA - add die to dodoc function calls; remove die from econf call
diff --git a/dev-lang/gprolog/files/gprolog-1.4.0-ldflags.patch b/dev-lang/gprolog/files/gprolog-1.4.0-ldflags.patch
new file mode 100644
index 000000000000..e4b0fa99aeee
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.0-ldflags.patch
@@ -0,0 +1,40 @@
+diff -ur gprolog-1.4.0.orig/src/Ma2Asm/Makefile.in gprolog-1.4.0/src/Ma2Asm/Makefile.in
+--- gprolog-1.4.0.orig/src/Ma2Asm/Makefile.in 2011-04-07 04:14:10.000000000 +1200
++++ gprolog-1.4.0/src/Ma2Asm/Makefile.in 2011-07-01 21:07:33.000000000 +1200
+@@ -19,7 +19,7 @@
+
+ ma2asm@EXE_SUFFIX@: ma2asm@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@ \
+ ma2asm_inst@OBJ_SUFFIX@ ma2asm_inst.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@ma2asm@EXE_SUFFIX@ ma2asm@OBJ_SUFFIX@ ma2asm_inst@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@
++ $(CC) $(LDFLAGS) @CC_EXE_NAME_OPT@ma2asm@EXE_SUFFIX@ ma2asm@OBJ_SUFFIX@ ma2asm_inst@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@
+
+
+ clean:
+diff -ur gprolog-1.4.0.orig/src/TopComp/Makefile.in gprolog-1.4.0/src/TopComp/Makefile.in
+--- gprolog-1.4.0.orig/src/TopComp/Makefile.in 2011-04-08 20:41:40.000000000 +1200
++++ gprolog-1.4.0/src/TopComp/Makefile.in 2011-07-01 21:09:31.000000000 +1200
+@@ -15,10 +15,10 @@
+
+ $(GPLC)@EXE_SUFFIX@: top_comp.c copying.c ../EnginePl/wam_regs.h \
+ ../EnginePl/gp_config.h ../EnginePl/machine1.c decode_hexa.c copying.c prolog_path.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@$(GPLC)@EXE_SUFFIX@ top_comp.c $(LDLIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) @CC_EXE_NAME_OPT@$(GPLC)@EXE_SUFFIX@ top_comp.c $(LDLIBS)
+
+ $(HEXGPLC)@EXE_SUFFIX@: hexfilter.c decode_hexa.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@$(HEXGPLC)@EXE_SUFFIX@ hexfilter.c
++ $(CC) $(LDFLAGS) $(CFLAGS) @CC_EXE_NAME_OPT@$(HEXGPLC)@EXE_SUFFIX@ hexfilter.c
+
+
+
+diff -ur gprolog-1.4.0.orig/src/Wam2Ma/Makefile.in gprolog-1.4.0/src/Wam2Ma/Makefile.in
+--- gprolog-1.4.0.orig/src/Wam2Ma/Makefile.in 2011-03-29 02:21:35.000000000 +1300
++++ gprolog-1.4.0/src/Wam2Ma/Makefile.in 2011-07-01 21:06:22.000000000 +1200
+@@ -12,7 +12,7 @@
+ $(CC) $(CFLAGS) -c wam2ma.c
+
+ wam2ma@EXE_SUFFIX@: wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@wam2ma@EXE_SUFFIX@ wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
++ $(CC) $(LDFLAGS) @CC_EXE_NAME_OPT@wam2ma@EXE_SUFFIX@ wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
+
+
+ clean:
diff --git a/dev-lang/gprolog/files/gprolog-1.4.0-txt-file.patch b/dev-lang/gprolog/files/gprolog-1.4.0-txt-file.patch
new file mode 100644
index 000000000000..40ca61f5b476
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.0-txt-file.patch
@@ -0,0 +1,10 @@
+--- gprolog-1.4.0.orig/src/Makefile.in 2011-04-09 04:35:22.000000000 +1200
++++ gprolog-1.4.0/src/Makefile.in 2011-07-01 20:40:24.000000000 +1200
+@@ -60,7 +60,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.4.0.ebuild b/dev-lang/gprolog/gprolog-1.4.0.ebuild
new file mode 100644
index 000000000000..670a29ea6eb7
--- /dev/null
+++ b/dev-lang/gprolog/gprolog-1.4.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.4.0.ebuild,v 1.1 2011/07/01 09:28:50 keri Exp $
+
+EAPI=2
+
+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="mirror://gnu/gprolog/${P}.tar.gz"
+S="${WORKDIR}"/${P}
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc examples"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ epatch "${FILESDIR}"/${P}-txt-file.patch
+}
+
+src_configure() {
+ CFLAGS_MACHINE="`get-flag -march` `get-flag -mcpu` `get-flag -mtune`"
+
+ append-flags -fno-strict-aliasing
+ use debug && append-flags -DDEBUG
+
+ cd "${S}"/src
+ econf \
+ CFLAGS_MACHINE="${CFLAGS_MACHINE}" \
+ --with-c-flags="${CFLAGS}" \
+ --with-install-dir=/usr/$(get_libdir)/${P} \
+ --with-links-dir=/usr/bin \
+ $(use_with doc doc-dir /usr/share/doc/${PF}) \
+ $(use_with doc html-dir /usr/share/doc/${PF}/html) \
+ $(use_with examples examples-dir /usr/share/doc/${PF}/examples)
+}
+
+src_compile() {
+ cd "${S}"/src
+ emake || die "emake failed"
+}
+
+src_test() {
+ cd "${S}"/src
+ emake check || die "make check failed. See above for details."
+}
+
+src_install() {
+ cd "${S}"/src
+ make DESTDIR="${D}" install || die "make install failed"
+
+ cd "${S}"
+ dodoc ChangeLog NEWS PROBLEMS README VERSION || die "dodoc failed"
+}