dev-lang/swi-prolog: bump development version
authorKeri Harris <keri@gentoo.org>
Fri, 5 Jul 2019 19:39:58 +0000 (21:39 +0200)
committerKeri Harris <keri@gentoo.org>
Fri, 5 Jul 2019 19:40:13 +0000 (21:40 +0200)
Signed-off-by: Keri Harris <keri@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

dev-lang/swi-prolog/Manifest
dev-lang/swi-prolog/swi-prolog-8.1.9.ebuild [new file with mode: 0644]

index bef93c92ab642aa01096c8f3f1059f6740a20b3b..74bee86f6c51b46c81dd59457bc7121915039b47 100644 (file)
@@ -13,3 +13,4 @@ DIST swipl-8.1.5.tar.gz 10547299 BLAKE2B 2fd158ed21da8ca20cbd6a593f384e4ba362b49
 DIST swipl-8.1.6.tar.gz 10638490 BLAKE2B bf64c8968971720ebba0eacf73a14b1f4ae3c84550ac2ef001f609e4a0793e1fb1bb9fbe2b5f9c6d7e54bf8f815eb81508fd42e6745a04c736d76ba03d6c6fac SHA512 809526860aa7d93403637856b8705806a0604e3feb96774c712549ad3b385e708c87de6e11fce1456fb278fe5815fbbca12247fe8725ba167c9151e236ec3485
 DIST swipl-8.1.7.tar.gz 10650684 BLAKE2B 2a8c008997801bb9a7b074975c8d12ad86c3061373acf2c586db9b32a3feb3add945981ac24612e5076adc1e1f29eb3a1b1dca2299ac326552c61de364847520 SHA512 670d38b88ca8366186cc7be64170b6da6ed64ef41e7865bb1a4acc631fb8676f3a15dc04da2ca9521b4742d6693fa450539e0576c5db5f76a03a1bdd4eec45a6
 DIST swipl-8.1.8.tar.gz 10657374 BLAKE2B bfa858e88dae100f7415cb4eb307c51b62080fa34a9a3999672ae5f529e4b0a4aa6d2ceb665e451262ba3418722892baa95c6f9dd86946be49f12bd2f2cda113 SHA512 99443657235900327e4e2839da26c4a8c65c5905118766bcea6402516d520aae206b5ba381c99357ae5b18b983490099d820e083f47139b7cc2d2600908ae2d2
+DIST swipl-8.1.9.tar.gz 10720170 BLAKE2B dbfd314870916f79d3d9ab53d40c290558c08ccad7a293d0939c324c67cec13e1589c577205ee1b51d76b9010015fa7118e3b18ded819dd886c1cd28661e82ba SHA512 9fc49d11d7c113971f05ec6d2d2d1feb07cbbd4cf117d4eed2f6e752798729e5d92b8299cc2888771acfc998dc825d490e7985594ba4b4a8f305b65ced5f371f
diff --git a/dev-lang/swi-prolog/swi-prolog-8.1.9.ebuild b/dev-lang/swi-prolog/swi-prolog-8.1.9.ebuild
new file mode 100644 (file)
index 0000000..b986aa5
--- /dev/null
@@ -0,0 +1,99 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils flag-o-matic multilib
+
+PATCHSET_VER="0"
+
+DESCRIPTION="versatile implementation of the Prolog programming language"
+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 java +libedit libressl minimal odbc pcre qt5 readline ssl test uuid X yaml"
+
+RDEPEND="sys-libs/ncurses:=
+       sys-libs/zlib
+       archive? ( app-arch/libarchive )
+       berkdb? ( >=sys-libs/db-4:= )
+       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 )
+       qt5? (
+               dev-qt/qtwidgets:5
+               dev-qt/qtgui:5
+       )
+       X? (
+               virtual/jpeg:0
+               x11-libs/libX11
+               x11-libs/libXft
+               x11-libs/libXinerama
+               x11-libs/libXpm
+               x11-libs/libXt
+               x11-libs/libICE
+               x11-libs/libSM )
+       yaml? ( dev-libs/libyaml )"
+
+DEPEND="${RDEPEND}
+       X? ( x11-base/xorg-proto )
+       java? ( test? ( =dev-java/junit-3.8* ) )"
+
+S="${WORKDIR}/swipl-${PV}"
+BUILD_DIR="${S}/build"
+CMAKE_USE_DIR="${S}"
+
+src_prepare() {
+       EPATCH_FORCE=yes
+       EPATCH_SUFFIX=patch
+       if [[ -d "${WORKDIR}"/${PV} ]] ; then
+               epatch "${WORKDIR}"/${PV}
+       fi
+
+       sed -i -e "s|\(SWIPL_INSTALL_PREFIX\)   lib/.*)|\1   $(get_libdir)/swipl)|" CMakeLists.txt || die
+
+       eapply_user
+
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       append-flags -fno-strict-aliasing
+       use debug && append-flags -DO_DEBUG
+
+       mycmakeargs=(
+               -DSWIPL_INSTALL_PREFIX=$(get_libdir)/swipl
+               -DUSE_GMP=$(usex gmp)
+               -DINSTALL_DOCUMENTATION=$(use doc && usex archive)
+               -DSWIPL_PACKAGES_BASIC=$(usex !minimal)
+               -DSWIPL_PACKAGES_ARCHIVE=$(usex archive)
+               -DSWIPL_PACKAGES_ODBC=$(usex odbc)
+               -DSWIPL_PACKAGES_BDB=$(usex berkdb)
+               -DSWIPL_PACKAGES_PCRE=$(usex pcre)
+               -DSWIPL_PACKAGES_YAML=$(usex yaml)
+               -DSWIPL_PACKAGES_SSL=$(usex ssl)
+               -DSWIPL_PACKAGES_JAVA=$(usex java)
+               -DSWIPL_PACKAGES_QT=$(usex qt5)
+               -DSWIPL_PACKAGES_X=$(usex X)
+               -DSWIPL_PACKAGES_TERM=$(if use libedit || use readline; then echo yes; else echo no; fi)
+               )
+
+       cmake-utils_src_configure
+}
+
+src_test() {
+       USE_PUBLIC_NETWORK_TESTS=false \
+       USE_ODBC_TESTS=false \
+               cmake-utils_src_test -V
+}