diff options
author | Keri Harris <keri@gentoo.org> | 2017-12-04 11:51:24 +0100 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2017-12-04 11:51:24 +0100 |
commit | 9b1c2d52bcd704f74520b055708fcc2fa6849aec (patch) | |
tree | efdb4d3b93534c067f39264d66acf0c3fc50f00b /dev-lang/swi-prolog | |
parent | app-accessibility/brltty: [QA] Fix multiple issues (diff) | |
download | gentoo-9b1c2d52bcd704f74520b055708fcc2fa6849aec.tar.gz gentoo-9b1c2d52bcd704f74520b055708fcc2fa6849aec.tar.bz2 gentoo-9b1c2d52bcd704f74520b055708fcc2fa6849aec.zip |
dev-lang/swi-prolog: bump 7.7 development version
Package-Manager: Portage-2.3.13, Repoman-2.3.3
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.7.3.ebuild | 146 |
2 files changed, 147 insertions, 0 deletions
diff --git a/dev-lang/swi-prolog/Manifest b/dev-lang/swi-prolog/Manifest index b61d4ae663a9..56cb0af08c84 100644 --- a/dev-lang/swi-prolog/Manifest +++ b/dev-lang/swi-prolog/Manifest @@ -15,3 +15,4 @@ DIST swipl-7.6.1.tar.gz 16764536 BLAKE2B a493b103d9d6206db5a6c895ec1ff6237a122dd DIST swipl-7.7.0.tar.gz 16761831 BLAKE2B 8143280e339c91508cda9d08a82e0519dfc16b1b5fad6e0251dcce55d3ee623ea7ab247adba121a562e09acd6f051a734e11b2d563812efab448fce6a781c0c9 SHA512 196e0c17cfaa9368a0032372cfc64e4b96f55048a4457c9ca28b1180b9277fba7811c2a72f410502f12544ca21751013b73002bf7c84cfb79ed0f909a871a24e DIST swipl-7.7.1.tar.gz 16762129 BLAKE2B f23ec41779a06865a3beccf108d07833adf54e9b02cb11262d7c3a3e01d7272c44a309418e612465c9d19157bf14e538c35fbfcc49549b04d173bf6042534f07 SHA512 d95cc460c5eecf3d122c5e558266fd9203a0e8fe389ea1c83f08783e819bae04fe5e55f727ac6fffe89242dae7dc059fdabe09f1093915ba0e5675ee0e278de5 DIST swipl-7.7.2.tar.gz 16775518 BLAKE2B e29ffedfe0ca8c7f4e467fb506d8c17deadaecf867f3ab01dbce777d6b79186ab03ab81e416f0000d0ae423be6d29a3f8dc2492f82e59e9d2f8ad94617a152a8 SHA512 4db5fa3d44061e21fa6811d9b84b42cdc99d9fca4000c6d66fd37017be3bb138f2278a4685feb6698c8ecab643b865b5a015699889eb04aeabf233c5dfa106d7 +DIST swipl-7.7.3.tar.gz 16779027 BLAKE2B f533eec9d75dd46b5cbe68b185d503d49aff96effa397648e61cf813bf0caa7bf50549d72301ec20b14fc42d25abd2cb566fe1b2b8b51a7e1c8e957db15fa084 SHA512 231bbbd12c7df4c0fd130ccda370cb8144b2e605895787aa83ff127f3ffa0c9bf016cca0c146ff8c3a42d9f0b32e4d7619f2f0eebbe37ec9e980c45c8ccffdc4 diff --git a/dev-lang/swi-prolog/swi-prolog-7.7.3.ebuild b/dev-lang/swi-prolog/swi-prolog-7.7.3.ebuild new file mode 100644 index 000000000000..7aba5bdec8ae --- /dev/null +++ b/dev-lang/swi-prolog/swi-prolog-7.7.3.ebuild @@ -0,0 +1,146 @@ +# 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 pcre 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 ) + pcre? ( dev-libs/libpcre ) + 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.7:= ) + 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 pcre) \ + $(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 +} |