diff options
author | Keri Harris <keri@gentoo.org> | 2017-07-20 11:41:01 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2017-07-20 11:41:01 +0200 |
commit | 142d55e962224da659d085cb6fae64edae4a2854 (patch) | |
tree | bb1ded47ff7c26a1b86516cd873a1e847100594c /dev-lang | |
parent | media-libs/faad2: Bump to version 2.8.1 (diff) | |
download | gentoo-142d55e962224da659d085cb6fae64edae4a2854.tar.gz gentoo-142d55e962224da659d085cb6fae64edae4a2854.tar.bz2 gentoo-142d55e962224da659d085cb6fae64edae4a2854.zip |
dev-lang/swi-prolog: add 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.4.ebuild | 144 |
2 files changed, 145 insertions, 0 deletions
diff --git a/dev-lang/swi-prolog/Manifest b/dev-lang/swi-prolog/Manifest index 8d62e8a8698e..893e58439ba4 100644 --- a/dev-lang/swi-prolog/Manifest +++ b/dev-lang/swi-prolog/Manifest @@ -7,3 +7,4 @@ DIST swipl-7.4.1.tar.gz 16498678 SHA256 891e314e8f5d856ef71d8bbce5d255a18b0c8f22 DIST swipl-7.4.2.tar.gz 16496738 SHA256 7f17257da334bc1e7a35e9cf5cb8fca01d82f1ea406c7ace76e9062af8f0df8b SHA512 5b526d4f079e7a36184f871bb7341330bcadaeee2a69af981fbcad71ae76c77331b1f157174ac2b31d96e069dc530afa86c024de6709edd9dc8baee3b4ebffb3 WHIRLPOOL 2dad1a5e7ae3670b3a3965010d60420a27cb9623b35cdee83360f6f3a4fadc3dbf2a91fd3e7178b59c9b81723dfe6036fb968953218e7611179b52117a16cb19 DIST swipl-7.5.2.tar.gz 16507767 SHA256 e16a5e74af16b1830d6a6f9950e56e2039b73e9dc70313603557a85d5490dafe SHA512 d6ba360b60246ee4998ee80f538961d33ac1cb37ba4798657b95e2b793fb3eb043b8df77698ecba1490c11d0cd6842a9a59f90301d8418bd711fc5223b6502c5 WHIRLPOOL cad68ed474d2104461b0344d48c64d6bd6d3370936d51744c07f2fe4b5cdeda62b65de115ae9ac72f7fa9d7daa6d784718db55ba0d6f2b98c9a196469afc582e DIST swipl-7.5.3.tar.gz 16511917 SHA256 252779a25c964c0ee5efb698f2f9bb55ef5b27a1b7ada43b62a51633d1ddf3b2 SHA512 11c0effb791f0ef8da03a659127b94ff34c0dd9b122fe48c7c6cef88fcf31fbfc72b0d40bd14daeb425aa4928622e91367dec56f7e7ca1a997c4bb72a31752e9 WHIRLPOOL a0f5435e5a5535148df2591ed8fda7a61418da68d6f9edea5265be08958237b7db6362634e96fc4f132992b7edcc44018ea91cc150d985f70b48602b5707b3e1 +DIST swipl-7.5.4.tar.gz 16670599 SHA256 b8cbaf40a65003fb3c1177097323430bbdebf33a93c867cb17eca12d16e00167 SHA512 a6475d2545ada4d5d25761433b4055fe2c09ad240439985f7ed9b640de968390e50324c8575448f1b531bd2a5e9a300f70b7e47e5217390e2c12751374279c6c WHIRLPOOL b63851cd51656e8d292b8dd59b3c21a5adef21c035ee01c94cbc820c57fe42efa23c7d3139abd8e2c696515f96b5967a0c4adac93ef419b099cf0f8f64f44fe0 diff --git a/dev-lang/swi-prolog/swi-prolog-7.5.4.ebuild b/dev-lang/swi-prolog/swi-prolog-7.5.4.ebuild new file mode 100644 index 000000000000..ece2fd907ab4 --- /dev/null +++ b/dev-lang/swi-prolog/swi-prolog-7.5.4.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 +} |