diff options
author | Keri Harris <keri@gentoo.org> | 2017-06-29 09:36:01 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2017-06-29 09:36:01 +0200 |
commit | 3d44f026f35f2e0c6d2cdbff2ac1d12f61bbb0af (patch) | |
tree | f052d0f248efe36815432a61841b21a584bbe996 /dev-lang/swi-prolog | |
parent | dev-lang/swi-prolog: remove old development versions (diff) | |
download | gentoo-3d44f026f35f2e0c6d2cdbff2ac1d12f61bbb0af.tar.gz gentoo-3d44f026f35f2e0c6d2cdbff2ac1d12f61bbb0af.tar.bz2 gentoo-3d44f026f35f2e0c6d2cdbff2ac1d12f61bbb0af.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/swi-prolog')
-rw-r--r-- | dev-lang/swi-prolog/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/swi-prolog/swi-prolog-7.5.1.ebuild | 144 |
2 files changed, 145 insertions, 0 deletions
diff --git a/dev-lang/swi-prolog/Manifest b/dev-lang/swi-prolog/Manifest index 86cfe91887cb..c72e8b8ef67b 100644 --- a/dev-lang/swi-prolog/Manifest +++ b/dev-lang/swi-prolog/Manifest @@ -4,3 +4,4 @@ DIST swi-prolog-7.2.3-gentoo-patchset-1.tar.gz 1875 SHA256 c11e48122dc468f21e08d DIST swipl-7.2.3.tar.gz 16192142 SHA256 43657d51b7c5887bc2d2bced50a9822b86a08a6841399b8e76ee877f51d646b5 SHA512 da27a6b171d3b471401f1a91e86a4dbe98973d8a1db8c72aa27e452311d08b893b01a1de8f9f4dafcdac460774b4ea980050256d37284546941e1bdf84f8cd7b WHIRLPOOL de695c8e0317921dcc13898f7a3c88d1012e3f87f633cd25766ca5cb6637b29ca81b9245d015614089291a7d9abd0d8c7109ccae1df9297d78301d241cb258b3 DIST swipl-7.3.35.tar.gz 16664828 SHA256 d1a9f7ef77b6dddb08477055b6355a0f2f3a5018e1a027a2dc917a8e57b0cf70 SHA512 f7271b00a308f8a1ee21cff2ae1a0458860c2226d8f567396373538001d306edcf4e74f65c75cfc0fb6b93c06ef2e7a451abb3a9b58b8fd5def0b532047b81c3 WHIRLPOOL b197f59b0609d50aa5ca3d92b76acd7829f17df2402382cc292be0b27f64121a0df837a8cd2895da4e6c7d8d1c55042497a4b2bd5050a4a904092f82d95b7a3c DIST swipl-7.5.0.tar.gz 16493773 SHA256 67f0a6d05dd5c6604c256734aac095a122a39791970c2bc802d2e7950cfedef9 SHA512 ffa6d20a50fda7791912df6959d6c80e104a97283ec09b702b89854ab4d433c86162a4b7c0f8ad34605349714f7e866c506b349bdc43c562e2d2261d95a4237f WHIRLPOOL 29979ac06859b159219d88975ab228576920e08f560267cdb648d6ceb5698765c1a0b27f9fb4e7b69ea1ac5a95d265fd0120110f602dee1a9af03bd14102ad98 +DIST swipl-7.5.1.tar.gz 16505671 SHA256 70ba305c6c8eef171738b331e33318c7d996683745600f6737de14e839c6e0c4 SHA512 aa7103f7bf77dff3d54befa40d3988080fdefd883e9457695f7f7e98af84180815a644e2396a8dfcadd5428b90525487ff6aaeb71e066534f411b334ce5d2c58 WHIRLPOOL 33ba38f34384c407ad871cfd54822ed93d06981a7be1eef9fc8f95ad3c381768b331111a8e15c6add77853162966f1aea3b2a523cb6c3a085bab33ece9a4821a diff --git a/dev-lang/swi-prolog/swi-prolog-7.5.1.ebuild b/dev-lang/swi-prolog/swi-prolog-7.5.1.ebuild new file mode 100644 index 000000000000..ece2fd907ab4 --- /dev/null +++ b/dev-lang/swi-prolog/swi-prolog-7.5.1.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 +} |