diff options
author | Keri Harris <keri@gentoo.org> | 2017-08-01 12:41:12 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2017-08-01 12:41:12 +0200 |
commit | 5a41995e5dfe13828fb48e80bf9bca22475cd7c5 (patch) | |
tree | 71b56e9b12df58611092340514ddeda43d9a0b74 /dev-lang | |
parent | x11-misc/xiccd: bump to 0.2.4 (diff) | |
download | gentoo-5a41995e5dfe13828fb48e80bf9bca22475cd7c5.tar.gz gentoo-5a41995e5dfe13828fb48e80bf9bca22475cd7c5.tar.bz2 gentoo-5a41995e5dfe13828fb48e80bf9bca22475cd7c5.zip |
dev-lang/swi-prolog: bump 7.5 development version
Package-Manager: Portage-2.3.0, Repoman-2.3.1
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/swi-prolog/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/swi-prolog/swi-prolog-7.5.8.ebuild | 144 |
2 files changed, 145 insertions, 0 deletions
diff --git a/dev-lang/swi-prolog/Manifest b/dev-lang/swi-prolog/Manifest index d3a90d1d43c3..159fb22c51ea 100644 --- a/dev-lang/swi-prolog/Manifest +++ b/dev-lang/swi-prolog/Manifest @@ -10,3 +10,4 @@ DIST swipl-7.5.4.tar.gz 16670599 SHA256 b8cbaf40a65003fb3c1177097323430bbdebf33a DIST swipl-7.5.5.tar.gz 16670102 SHA256 285f8531908d7e6964e115c844e930a8c4797029e667b5f3209bab497800ec68 SHA512 2c07d8d2a69129e8932ccd90c1ac959cd405cbe1124e99c5ebbdff09fbf0914fdbfa58849ed1b4aa8193d93e5571c4a07d6f7013d50701602387784ae6880043 WHIRLPOOL 0ead9fcc93ff3a10c8a60e47f06e6d65e7c330c17509c374b42c1a43373e3d5eff6338162558c64b97f850a2c27dcfcba5dd958115d6d9d6809f968d6fdaf81d DIST swipl-7.5.6.tar.gz 16672920 SHA256 47c31d4d3140e96706295555b01916dd7bde6c4151c80515a48e7aabfc747288 SHA512 5809878d3381ca8646e8526382e9edad0c378e1e7b6d57e1f88df7500a6a78ddf2d80f5e6e0bff2efa77781e3e1e77d6097205bd1433572f6e9cfe7d04a217c1 WHIRLPOOL 05527e99580ce3b536bfda47ee6ae4709765b2edc8a13c4de86994effbb6eb39ca8c58d84618fc07a609a7025767f5df121e0ae8749114e3ae9adfa5fe83fa39 DIST swipl-7.5.7.tar.gz 16683795 SHA256 648d15a534a3503ef281cc7c2ead7ee913866c3d7cb1d1344508ee24b96b4512 SHA512 2e5247358d6db04c9a3535d9be0b8cfef19908fc0274a879a3b7ca02cfd8663689aab2ed3faa4faafd5e9e3ce29e31c07337f83cd39679a64be3409576ffe962 WHIRLPOOL a41b0130af1ab02494ba201786229d53535efa1499bce1b119b3abd10cf9c0ce8b38ddd96b8d39ae231193b73e6a98d8b9f2c23562ebf0309458fdd9c347a72f +DIST swipl-7.5.8.tar.gz 16689471 SHA256 a02c42506fb5d071c51ddf139fc2ca1d66e9067e24cde5179824381a27c66ccd SHA512 5e494ac0e0389e43c57daf266f1dd0d04c0c7201f3030640b7876fe2f2fb01d6b22a3688213adb45919efd6c05e4c9f67ed9a626ae57bd2ca889c27a3cec3a38 WHIRLPOOL 57ea21a2300f1ad56b6cad5097214c4bc5eb8cafa1c32c29047bd71874b955d30e25b4d2bcd51ddcae2ce3e27bef643b3ee249089dd7d15f9f56afddc9d43f98 diff --git a/dev-lang/swi-prolog/swi-prolog-7.5.8.ebuild b/dev-lang/swi-prolog/swi-prolog-7.5.8.ebuild new file mode 100644 index 000000000000..ece2fd907ab4 --- /dev/null +++ b/dev-lang/swi-prolog/swi-prolog-7.5.8.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="archive berkdb debug doc +gmp hardened java +libedit 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:= ) + libedit? ( dev-libs/libedit ) + 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 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 libedit) \ + $(use_with odbc) \ + $(use_with readline) \ + $(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.md VERSION +} |