diff options
author | Keri Harris <keri@gentoo.org> | 2020-09-20 17:21:25 +0200 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2020-09-20 17:21:59 +0200 |
commit | 5af165a32265caf311d0a26037b6387d4f38b2e8 (patch) | |
tree | c4e5925d3aa049684746e8b4c6f3f2f18d8e65df /dev-lang/yap | |
parent | sys-devel/clang-runtime: Stabilize 10.0.1 arm64, #742974 (diff) | |
download | gentoo-5af165a32265caf311d0a26037b6387d4f38b2e8.tar.gz gentoo-5af165a32265caf311d0a26037b6387d4f38b2e8.tar.bz2 gentoo-5af165a32265caf311d0a26037b6387d4f38b2e8.zip |
dev-lang/yap: version bump
Package-Manager: Portage-3.0.4, Repoman-2.3.22
Signed-off-by: Keri Harris <keri@gentoo.org>
Diffstat (limited to 'dev-lang/yap')
-rw-r--r-- | dev-lang/yap/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/yap/metadata.xml | 1 | ||||
-rw-r--r-- | dev-lang/yap/yap-6.3.4.ebuild | 130 |
3 files changed, 133 insertions, 0 deletions
diff --git a/dev-lang/yap/Manifest b/dev-lang/yap/Manifest index 967dad55a612..247d4e3dacd2 100644 --- a/dev-lang/yap/Manifest +++ b/dev-lang/yap/Manifest @@ -1,2 +1,4 @@ +DIST YAP-6.3.4.tar.gz 11007893 BLAKE2B d8024fb68269bbb4f9a434e2be13b4a42aa250f7e6505ef8f6e4c76d50510e04e9a2985796ce66b1d426a877646eafeecb30774c353f5a820c32dc3cbdf20b1c SHA512 67884b98bbc564f23f88cbb1462127a47f3d0602ac347d1c8b0857e5d8ebd9d0ca28770229a6beb52493c6c3256b6cdf8dad25ed2963c64102093f70c4c20a3a DIST yap-6.3.3-gentoo-patchset-13.tar.gz 8677 BLAKE2B ebaea8e2851a5025482422161cfca8f5c65bea65e08ed0fd8032956a909bcf8e486558705b663004aa506a614dc4d638107e3ad5fc590fc3b74a0fd203fb33d3 SHA512 b1a2b202ce05c97aebf8c869d24276f7ca12c6f1027886902d8cd7267cd623ed73c5652f49e7e58386a93b37dcfbdfc83e3b0bd1aeddb95245a5f0e8adcc852b DIST yap-6.3.3.tar.gz 7879301 BLAKE2B 1b12a3113dd57634df64680726fd49575979b84126a7a9e1f4d1429be90e1b95599166151ffe62c9ef990ac3c32f57a1efae081b864fc22225c93d21807f412b SHA512 4ef45277ec84b6e072fa54afc7d6c18f11c3a0cdf477e35e35a0ce2181c9ff2e693f8735f63a1899373f6baf79ce0a972b37e1ae6ed8271bec60663f477bbe80 +DIST yap-6.3.4-gentoo-patchset-0.tar.gz 5165 BLAKE2B 1f6c9f91f2d2c0e9488f26e1a8079a40ed30c1c83c7171024dd0c0115874e336bbdfa449246e363d0030bd05dc0d86e9efa19cc2fdc4d04b96faeb33b9ade9d0 SHA512 a2a39869042cb647dc022b34a4dd0881a6a35ad0bf88527380d6d74e5307f9dd0ab5feea8e9e922524e3dce39132ab6c8cadd78f92735e2c368d7b277cbe6944 diff --git a/dev-lang/yap/metadata.xml b/dev-lang/yap/metadata.xml index 30ccd329d946..ee1b7050451c 100644 --- a/dev-lang/yap/metadata.xml +++ b/dev-lang/yap/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <use> <flag name="R">Enable support for connecting R to Prolog</flag> + <flag name="raptor">Enable support for Raptor RDF syntax libarary</flag> </use> </pkgmetadata> diff --git a/dev-lang/yap/yap-6.3.4.ebuild b/dev-lang/yap/yap-6.3.4.ebuild new file mode 100644 index 000000000000..99a1cbf6685d --- /dev/null +++ b/dev-lang/yap/yap-6.3.4.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P=YAP-${PV} + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit cmake-utils eutils flag-o-matic multilib python-r1 + +PATCHSET_VER="0" + +DESCRIPTION="YAP is a high-performance Prolog compiler" +HOMEPAGE="http://www.dcc.fc.up.pt/~vsc/Yap/" +SRC_URI="https://github.com/vscosta/yap-6.3/archive/YAP-${PV}.tar.gz + https://dev.gentoo.org/~keri/distfiles/yap/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz" + +LICENSE="Artistic LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="R debug doc examples gmp java mpi mysql odbc postgres python raptor readline sqlite ssl static threads xml" + +RDEPEND="dev-libs/libutf8proc + sys-libs/zlib + gmp? ( dev-libs/gmp:0 ) + java? ( >=virtual/jdk-1.7:= ) + mpi? ( virtual/mpi ) + mysql? ( dev-db/mysql-connector-c:0= ) + odbc? ( dev-db/unixODBC ) + postgres? ( dev-db/postgresql:= ) + R? ( dev-lang/R ) + python? ( ${PYTHON_DEPS} ) + raptor? ( media-libs/raptor ) + readline? ( sys-libs/readline:= sys-libs/ncurses:= ) + sqlite? ( dev-db/sqlite ) + ssl? ( dev-libs/openssl ) + xml? ( dev-libs/libxml2 )" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) + java? ( dev-lang/swig ) + python? ( dev-lang/swig )" + +S="${WORKDIR}"/yap-6.3-${MY_P} +BUILD_DIR="${S}"/build +CMAKE_USE_DIR="${S}" + +src_prepare() { + if [[ -d "${WORKDIR}"/${PV} ]] ; then + eapply "${WORKDIR}"/${PV} + fi + eapply_user + + sed -i \ + -e "s|\(set ( libdir \"\${exec_prefix}\)/lib\")|\1/$(get_libdir)\")|" \ + -e "s|\(set ( dlls \"\${exec_prefix}\)/lib/Yap\")|\1/$(get_libdir)/Yap\")|" \ + -e "s|\(set ( docdir \"\${exec_prefix}/share/doc\)/Yap\")|\1/${PF}\")|" \ + CMakeLists.txt || die + rm -rf "${S}"/yap || die "failed to remove yap xcode project" + + cmake-utils_src_prepare +} + +src_configure() { + append-flags -fno-strict-aliasing + + local mycmakeargs=( + -DWITH_YAP_STATIC=$(usex static) + -DWITH_Threads=$(usex threads) + -DWITH_GMP=$(usex gmp) + -DWITH_Readline=$(usex readline) + -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=$(usex !ssl) + -DWITH_MPI=$(usex mpi) + -DWITH_ODBC=$(usex odbc) + -DWITH_MySQL=$(usex mysql) + -DWITH_PostgreSQL=$(usex postgres) + -DWITH_Sqlite3=$(usex sqlite) + -DWITH_JNI=$(usex java) + -DCMAKE_DISABLE_FIND_PACKAGE_Java=$(usex !java) + -DWITH_PythonInterp=$(usex python) + -DWITH_PythonLibs=$(usex python) + -DWITH_SWIG=$(if use java || use python; then echo yes; else echo no; fi) + -DWITH_R=$(usex R) + -DWITH_RAPTOR=$(usex raptor) + -DWITH_LibXml2=$(usex xml) + -DWITH_DOCUMENTATION=$(usex doc) + -DWITH_CUDD=no + -DWITH_Gecode=no + -DWITH_Matlab=no + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use doc ; then + cmake-utils_src_compile doc + fi +} + +src_test() { + # libtai package contains check.c which confuses the default + # src_test() function + true +} + +src_install() { + cmake-utils_src_install + + dodoc changes*.html README || die + + if use examples ; then + insinto /usr/share/doc/${PF}/examples/chr + doins packages/chr/Examples/* || die + if use java ; then + insinto /usr/share/doc/${PF}/examples/jpl/prolog + doins packages/jpl/jpl/examples/prolog/* || die + insinto /usr/share/doc/${PF}/examples/jpl/java + doins packages/jpl/jpl/examples/java/README || die + doins -r packages/jpl/jpl/examples/java/*/*.{java,pl} || die + fi + if use mpi ; then + insinto /usr/share/doc/${PF}/examples/mpi + doins library/mpi/examples/*.pl || die + fi + fi +} |