summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-10-04 15:39:42 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-10-04 15:39:42 +0000
commit13d87ed87ac803955ccfd2f4a370670fb673d541 (patch)
tree3d25cf8a2fcc821b2102b293736ad52976b60f58
parentadded prefix support (bug #433848) (diff)
downloadgentoo-2-13d87ed87ac803955ccfd2f4a370670fb673d541.tar.gz
gentoo-2-13d87ed87ac803955ccfd2f4a370670fb673d541.tar.bz2
gentoo-2-13d87ed87ac803955ccfd2f4a370670fb673d541.zip
added prefix support (bug #433852)
(Portage version: 2.2.0_alpha135/cvs/Linux i686)
-rw-r--r--dev-lang/swi-prolog/ChangeLog5
-rw-r--r--dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild44
2 files changed, 31 insertions, 18 deletions
diff --git a/dev-lang/swi-prolog/ChangeLog b/dev-lang/swi-prolog/ChangeLog
index 8c5eb5071b53..1e312cfce578 100644
--- a/dev-lang/swi-prolog/ChangeLog
+++ b/dev-lang/swi-prolog/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/swi-prolog
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/ChangeLog,v 1.350 2012/10/04 10:29:24 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/ChangeLog,v 1.351 2012/10/04 15:39:42 ottxor Exp $
+
+ 04 Oct 2012; Christoph Junghans <ottxor@gentoo.org> swi-prolog-6.3.1.ebuild:
+ added prefix support (bug #433852)
04 Oct 2012; Agostino Sarubbo <ago@gentoo.org> swi-prolog-6.2.0.ebuild:
Stable for amd64, wrt bug #437094
diff --git a/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild b/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild
index 54a2653976af..0b9610085e90 100644
--- a/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild
+++ b/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild,v 1.2 2012/09/30 16:29:03 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-6.3.1.ebuild,v 1.3 2012/10/04 15:39:42 ottxor Exp $
-EAPI=2
+EAPI=4
inherit eutils flag-o-matic java-pkg-opt-2 multilib
@@ -15,7 +15,7 @@ SRC_URI="http://www.swi-prolog.org/download/devel/src/pl-${PV}.tar.gz
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="archive debug doc gmp hardened java minimal odbc readline ssl static-libs test zlib X"
RDEPEND="sys-libs/ncurses
@@ -45,6 +45,9 @@ src_prepare() {
EPATCH_FORCE=yes
EPATCH_SUFFIX=patch
epatch "${WORKDIR}"/${PV}
+
+ # OSX/Intel ld doesn't like an archive without table of contents
+ sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
}
src_configure() {
@@ -53,19 +56,18 @@ src_configure() {
use hardened && append-flags -fno-unit-at-a-time
use debug && append-flags -DO_DEBUG
+ # ARCH is used in the configure script to figure out host and target
+ # specific stuff
+ export ARCH=${CHOST}
+
cd "${S}"/src
econf \
- --libdir=/usr/$(get_libdir) \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
$(use_enable gmp) \
$(use_enable readline) \
$(use_enable static-libs static) \
--enable-shared \
--enable-custom-flags COFLAGS="${CFLAGS}"
-}
-
-src_compile() {
- cd "${S}"/src
- emake || die "emake failed"
if ! use minimal ; then
local jpltestconf
@@ -75,7 +77,7 @@ src_compile() {
cd "${S}/packages"
econf \
- --libdir=/usr/$(get_libdir) \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
$(use_with archive) \
--with-chr \
--with-clib \
@@ -101,30 +103,38 @@ src_compile() {
$(use_with X xpce) \
$(use_with zlib) \
COFLAGS='"${CFLAGS}"'
+ fi
+}
+
+src_compile() {
+ cd "${S}"/src
+ emake
- emake || die "packages emake failed"
+ if ! use minimal ; then
+ cd "${S}/packages"
+ emake
fi
}
src_test() {
cd "${S}/src"
- emake check || die "make check failed. See above for details."
+ emake check
if ! use minimal ; then
cd "${S}/packages"
- emake check || die "make check failed. See above for details."
+ emake check
fi
}
src_install() {
- emake -C src DESTDIR="${D}" install || die "install src failed"
+ emake -C src DESTDIR="${D}" install
if ! use minimal ; then
- emake -C packages DESTDIR="${D}" install || die "install packages failed"
+ emake -C packages DESTDIR="${D}" install
if use doc ; then
- emake -C packages DESTDIR="${D}" html-install || die "html-install failed"
+ emake -C packages DESTDIR="${D}" html-install
fi
fi
- dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION || die
+ dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION
}