dev-lang/swi-prolog: bump development version
authorKeri Harris <keri@gentoo.org>
Sun, 13 Oct 2019 11:59:37 +0000 (13:59 +0200)
committerKeri Harris <keri@gentoo.org>
Sun, 13 Oct 2019 12:00:14 +0000 (14:00 +0200)
Signed-off-by: Keri Harris <keri@gentoo.org>
Package-Manager: Portage-2.3.69, Repoman-2.3.11

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

index 16045a1613cc8d0756c2455f12d2e43b97369c2f..7479781bdf44bba89f8235603187a05f140a7ad1 100644 (file)
@@ -1,3 +1,4 @@
 DIST swipl-8.0.3.tar.gz 10418553 BLAKE2B d7d381a3070384164f9788060e1c431cc4658dd3e2144fc4c186c9f5395fb7356593766dcaff3ff424f19f917c8a4b56da31b019bd2206a7f794ece549043b76 SHA512 e3a0788befb5499be6f70524ef398dc3282a38891f20519dd23ec92f216fc1919a76656e4b648c3dc9d94e578dc2663439ff976eb52ca0dba5a6594f8d4d3037
 DIST swipl-8.1.12.tar.gz 10762243 BLAKE2B a495b471fc4bbe296e5a7821fb51eba960056bd155f5c33a4d1764556209d6be11229d358aa16e57c4604f0ea6d0a6a73c61d67b7f535c5ed2f5a654c7ea2a17 SHA512 daae1a015ea7089a1ad2ef4a6def8d65fcac84bb78bff06a4012b39cf797c2109f2ce64ff847fbc9bde833bbf3f88ebb0d43884c3989630ca1d921ed4e3c19a2
 DIST swipl-8.1.13.tar.gz 10760459 BLAKE2B 74259267351ced6943cb380464cd0370da66e47919a99cd900c98e76964792eb8d2a0d36b93d2f93c3d65af97fc2bf461aba20d8dc4e1173b5f52fd2d34950d2 SHA512 849d5168c3c722126e60497fd7b086f37541a3d0d2af92edb997c038d6fb5da44502c5a89af473cae89f313a92efcec737774adc462a0dca66833273b3c1c29f
+DIST swipl-8.1.14.tar.gz 10772544 BLAKE2B d272b6cd5a096d6422a2afc7fe27354c3c0e45462580e05c85916b604b28566d6f454fff1cf72c4194194fdea2577c0c73c9c9e556322eee4d904e079e5a5bd7 SHA512 360c18af7e53c85f33bfa1afbe19f99c6afbe72e8f86436dfc034485f92dd60d1fa1320826438532bd84f842ccba730826efefecdc4fdbae0d2f71bc590c4ae5
diff --git a/dev-lang/swi-prolog/swi-prolog-8.1.14.ebuild b/dev-lang/swi-prolog/swi-prolog-8.1.14.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
+}