diff options
Diffstat (limited to 'dev-lang/yap')
-rw-r--r-- | dev-lang/yap/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/yap/metadata.xml | 11 | ||||
-rw-r--r-- | dev-lang/yap/yap-6.3.3.ebuild | 118 |
3 files changed, 133 insertions, 0 deletions
diff --git a/dev-lang/yap/Manifest b/dev-lang/yap/Manifest new file mode 100644 index 000000000000..20eddccef343 --- /dev/null +++ b/dev-lang/yap/Manifest @@ -0,0 +1,4 @@ +DIST yap-6.3.3-gentoo-patchset-10.tar.gz 5786 BLAKE2B cccfb8d3cf46bf6e8b99ada7b995d22d3deab62ab4c0833589d84afa3a2a451d4c295f366efe01db2f7245cc550cc8992498d1e2fa926545dfee2b6dc12e5354 SHA512 d7d172491fb5bc30df04b16ed9d82aa44860b18b0218ad636e2ad1199cbf180f9daf8964b17833df6ca55700fa7c3e00edcb01c6dd85a12a7ee8b08a69d71dad +DIST yap-6.3.3.tar.gz 7879301 BLAKE2B 1b12a3113dd57634df64680726fd49575979b84126a7a9e1f4d1429be90e1b95599166151ffe62c9ef990ac3c32f57a1efae081b864fc22225c93d21807f412b SHA512 4ef45277ec84b6e072fa54afc7d6c18f11c3a0cdf477e35e35a0ce2181c9ff2e693f8735f63a1899373f6baf79ce0a972b37e1ae6ed8271bec60663f477bbe80 +EBUILD yap-6.3.3.ebuild 2873 BLAKE2B 7b4f207643efb00b3f16318239e17fde659c9f500199b4d028fa10c17a882c63cd9a0666762979f5b365993e5e1ff28167d1c417d05d90457b43feb1712686ad SHA512 9cab901c1ff2a6f0ae277c7cfb17db019c25409e574d8f1dd4388e8f5a7e449c75040d84aba65db0f6a9f3c0dcbdfb54da5d1c106e8309a3c1f97d934f9d7801 +MISC metadata.xml 314 BLAKE2B af1c9bedbf26431e7a624c520a4c93ca9eff16f2539741b01ccf5da16c710c82d3820e3ad647a36a4629dc7b316a18c1b1306314200843e1d4d6b95c8c829442 SHA512 c5bd279aec3b80e6c08dfaa85cf091cbfcbf9380f1e5a8a0fcd6f27297368b92906340ae9dfd5176f37d36e4fb61ca772448c0248121d8e302c181bf670e57bc diff --git a/dev-lang/yap/metadata.xml b/dev-lang/yap/metadata.xml new file mode 100644 index 000000000000..30ccd329d946 --- /dev/null +++ b/dev-lang/yap/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>prolog@gentoo.org</email> + <name>Prolog</name> +</maintainer> +<use> + <flag name="R">Enable support for connecting R to Prolog</flag> +</use> +</pkgmetadata> diff --git a/dev-lang/yap/yap-6.3.3.ebuild b/dev-lang/yap/yap-6.3.3.ebuild new file mode 100644 index 000000000000..dd21303298e8 --- /dev/null +++ b/dev-lang/yap/yap-6.3.3.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2018 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="10" + +DESCRIPTION="YAP is a high-performance Prolog compiler" +HOMEPAGE="http://www.dcc.fc.up.pt/~vsc/Yap/" +SRC_URI="http://www.dcc.fc.up.pt/~vsc/Yap/${P}.tar.gz + mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz" + +LICENSE="Artistic LGPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="R debug doc examples gmp java mpi mysql odbc readline static threads" + +RDEPEND="sys-libs/zlib + gmp? ( dev-libs/gmp:0 ) + java? ( >=virtual/jdk-1.4:= ) + mpi? ( virtual/mpi ) + mysql? ( virtual/mysql ) + odbc? ( dev-db/unixODBC ) + readline? ( sys-libs/readline:= sys-libs/ncurses:= ) + R? ( dev-lang/R )" + +DEPEND="${RDEPEND} + doc? ( app-text/texi2html )" + +src_prepare() { + cd "${WORKDIR}" + EPATCH_FORCE=yes + EPATCH_SUFFIX=patch + epatch "${WORKDIR}"/${PV} + rm -rf "${S}"/yap || die "failed to remove yap xcode project" +} + +src_configure() { + append-flags -fno-strict-aliasing + + local myddas_conf + if use mysql || use odbc; then + myddas_conf="--enable-myddas" + else + myddas_conf="--disable-myddas" + fi + if use mysql; then + myddas_conf="$myddas_conf yap_with_mysql=yes" + fi + if use odbc; then + myddas_conf="$myddas_conf yap_with_odbc=yes" + fi + + econf \ + --libdir=/usr/$(get_libdir) \ + --disable-prism \ + --disable-gecode \ + $(use_enable !static dynamic-loading) \ + $(use_enable threads) \ + $(use_enable threads pthread-locking) \ + $(use_enable debug debug-yap) \ + $(use_enable debug low-level-tracer) \ + $(use_with gmp) \ + $(use_with readline) \ + $(use_with mpi) \ + $(use_with mpi mpe) \ + $(use_with java) \ + $(use_with R) \ + ${myddas_conf} +} + +src_compile() { + emake || die "emake failed" + + if use doc ; then + emake html || die "emake html failed" + fi +} + +src_test() { + # libtai package contains check.c which confuses the default + # src_test() function + true +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed." + + dodoc changes*.html README || die + + if use doc ; then + dodoc yap.html || die + fi + + if use examples ; then + insinto /usr/share/doc/${PF}/examples/chr + doins packages/chr/Examples/* || die + insinto /usr/share/doc/${PF}/examples/clib + doins packages/clib/demo/* || die + insinto /usr/share/doc/${PF}/examples/http + doins -r packages/http/examples/* || die + insinto /usr/share/doc/${PF}/examples/plunit + doins packages/plunit/examples/* || die + if use java ; then + insinto /usr/share/doc/${PF}/examples/jpl/prolog + doins packages/jpl/examples/prolog/* || die + insinto /usr/share/doc/${PF}/examples/jpl/java + doins packages/jpl/examples/java/README || die + doins -r packages/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 +} |