Skip to content

Commit

Permalink
dev-lang/swi-prolog: bump 7.3 development version
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
keriharris committed Feb 14, 2016
1 parent 097779c commit 2bf9df0
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-lang/swi-prolog/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ DIST swipl-7.2.3.tar.gz 16192142 SHA256 43657d51b7c5887bc2d2bced50a9822b86a08a68
DIST swipl-7.3.14.tar.gz 16190376 SHA256 2f201f79a01c65a9c2296b622d207749442c3ae1c62d3d9866a4a03f71d5e64f SHA512 3a88329d2c244b8614dfd55cbd0978bb1b59c975b6767ff18255d7c5dcfe713f04e252dc180b70d2daac4790c940d31ab060cec0371d0b36b13fd4e4b482e1c8 WHIRLPOOL 74e023c56f074c279249759f40e009c70698e282094201ae0f9ab0a88d42b29080b7db5c3337303b5b1f42615d7ff8afe1d96a2b2887e933440252778daa03b6
DIST swipl-7.3.15.tar.gz 16216228 SHA256 4ff611d8db31ff097edba66f8ee45cdffb229be75f66974d3d1beb114ab85d47 SHA512 2a2d61413e7c98366cb4dd472044b381b296b60b68867e61a2a38f52f3be538603c60710770f766e6f4fa53383bd40043f053352fd96d5054766225e91b4f8d9 WHIRLPOOL 76224d6db53090ffd4d44573acb463c8c79b2d08699625d98ee9e23da7a8211a84ba3aaea054d81d18228f1ce84be32811f5d4d61fadb12431e0ab29f47ffd05
DIST swipl-7.3.16.tar.gz 16214414 SHA256 584dce14e7eea75189c9133bb4eda05d639d6a4562b8cfca738ece25f0c2479e SHA512 5df2bd845087bb3f26e65d06b7db341b14500c7fc69b5c62b3ddd20d146c4280ffc79d5490d18239c0e70dab85e4424d81423deead148d7d1af768ae6800b3b8 WHIRLPOOL d7f45266ac2d1c36d7cd27e0e98f3856697d397060802790b5984c221092a69553a7bbbb761aa482aaba4892542f12c7786965b3db5fa1860f9864a404f0810b
DIST swipl-7.3.17.tar.gz 16231043 SHA256 ec1cdbeee833c0aff59a3e7aa182581d3b44562064cbd0983176aaf0b265652a SHA512 dc32f5bed52f985b81b967b43d132f5a2f79cf15ee04aaf189eae2c5713a24f41a5bcb0ff75710218ddc3d4d125bcd50a8a1255fead6933a5f4ffff0cf538aa9 WHIRLPOOL 2eb10cc73ab911e58bb6b61a4933cee31bdaba4b6172744a2566f46a39559da6d5ac91a0269d70c4850aeec8b39c3e66c738708bace24d080dc4881ec52e9077
143 changes: 143 additions & 0 deletions dev-lang/swi-prolog/swi-prolog-7.3.17.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils flag-o-matic java-pkg-opt-2 multilib

PATCHSET_VER="0"

DESCRIPTION="free, small, and standard compliant Prolog compiler"
HOMEPAGE="http://www.swi-prolog.org/"
SRC_URI="http://www.swi-prolog.org/download/devel/src/swipl-${PV}.tar.gz"

LICENSE="BSD-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="archive berkdb debug doc +gmp hardened java libressl minimal odbc +readline ssl static-libs test uuid zlib X"

RDEPEND="sys-libs/ncurses:=
archive? ( app-arch/libarchive )
berkdb? ( >=sys-libs/db-4:= )
zlib? ( sys-libs/zlib )
odbc? ( dev-db/unixODBC )
readline? ( sys-libs/readline:= )
gmp? ( dev-libs/gmp:0 )
ssl? (
!libressl? ( dev-libs/openssl:0 )
libressl? ( dev-libs/libressl )
)
java? ( >=virtual/jdk-1.5:= )
uuid? ( dev-libs/ossp-uuid )
X? (
virtual/jpeg:0
x11-libs/libX11
x11-libs/libXft
x11-libs/libXpm
x11-libs/libXt
x11-libs/libICE
x11-libs/libSM )"

DEPEND="${RDEPEND}
X? ( x11-proto/xproto )
java? ( test? ( =dev-java/junit-3.8* ) )"

S="${WORKDIR}/swipl-${PV}"

src_prepare() {
EPATCH_FORCE=yes
EPATCH_SUFFIX=patch
if [[ -d "${WORKDIR}"/${PV} ]] ; then
epatch "${WORKDIR}"/${PV}
fi

if ! use uuid; then
mv packages/clib/uuid.pl packages/clib/uuid.pl.unused || die
fi

# 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() {
append-flags -fno-strict-aliasing
use ppc && append-flags -mno-altivec
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}

export CC_FOR_BUILD=$(tc-getBUILD_CC)

cd "${S}"/src || die
econf \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
$(use_enable gmp) \
$(use_enable readline) \
$(use_enable static-libs static) \
--enable-shared \
--enable-custom-flags COFLAGS="${CFLAGS}"

if ! use minimal ; then
local jpltestconf
if use java && use test ; then
jpltestconf="--with-junit=$(java-config --classpath junit)"
fi

cd "${S}/packages" || die
econf \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
$(use_with archive) \
$(use_with berkdb bdb ) \
$(use_with java jpl) \
${jpltestconf} \
$(use_with odbc) \
$(use_with ssl) \
$(use_with X xpce) \
$(use_with zlib) \
COFLAGS='"${CFLAGS}"'
fi
}

src_compile() {
cd "${S}"/src || die
emake

if ! use minimal ; then
cd "${S}/packages" || die
emake
./report-failed || die "Cannot report failed packages"
fi
}

src_test() {
cd "${S}/src" || die
emake check

if ! use minimal ; then
unset DISPLAY
cd "${S}/packages" || die
emake \
USE_PUBLIC_NETWORK_TESTS=false \
USE_ODBC_TESTS=false \
check
./report-failed || die
fi
}

src_install() {
emake -C src DESTDIR="${D}" install

if ! use minimal ; then
emake -C packages DESTDIR="${D}" install
if use doc ; then
emake -C packages DESTDIR="${D}" html-install
fi
./packages/report-failed || die "Cannot report failed packages"
fi

dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION
}

0 comments on commit 2bf9df0

Please sign in to comment.