diff options
Diffstat (limited to 'dev-lang/yap')
-rw-r--r-- | dev-lang/yap/Manifest | 5 | ||||
-rw-r--r-- | dev-lang/yap/metadata.xml | 1 | ||||
-rw-r--r-- | dev-lang/yap/yap-6.3.4.ebuild | 132 |
3 files changed, 137 insertions, 1 deletions
diff --git a/dev-lang/yap/Manifest b/dev-lang/yap/Manifest index 3f1efc0f13e8..bec22acaf0c9 100644 --- a/dev-lang/yap/Manifest +++ b/dev-lang/yap/Manifest @@ -1,4 +1,7 @@ +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 EBUILD yap-6.3.3-r1.ebuild 2900 BLAKE2B c910366dce14626845c9d8e5d3b571a45dfad735228cc0b9852c0e967fb264620280d2fee5ec5ad496c0ca507e0eab499368ea545188a6e05413410365dc9234 SHA512 b2c3eee06745115093a5c63429f0838b09d43b5e273ab7a6e5edc746bdcf9b892ec0bc2c9ef830438defe1efc0ba74fea5cca9d84e2b34fb851bb0eb2145ff35 -MISC metadata.xml 314 BLAKE2B af1c9bedbf26431e7a624c520a4c93ca9eff16f2539741b01ccf5da16c710c82d3820e3ad647a36a4629dc7b316a18c1b1306314200843e1d4d6b95c8c829442 SHA512 c5bd279aec3b80e6c08dfaa85cf091cbfcbf9380f1e5a8a0fcd6f27297368b92906340ae9dfd5176f37d36e4fb61ca772448c0248121d8e302c181bf670e57bc +EBUILD yap-6.3.4.ebuild 3400 BLAKE2B 4ddfea7517d2404196cb8d18e7d4c5f02b65993b5c3feee6409ada100cf421c5518ebabce78c9971ac2c584ecd32a2ea064b45dc9814805c496fdae9272c435c SHA512 af1059b71c9a0b72d796c2782b591b5a6e3d124375df5a4f42f9018b620349d253ff8faa5785352a1325d9d6ef0054d98caabe27b8cdfcb11c372606ea4be4d8 +MISC metadata.xml 388 BLAKE2B 6664a3afcf7d766c6167c87d139aeb008ebf1525528dbb8b6b0b9e051279a60083a3858149aaaf579563c8ddc12b3c02b9712b37d52244b659eb7d953ba946ad SHA512 cdd5e0418ac4fd525d5cbde6982591d542d9accbb48e4d7726c21257dfb114ca2c7438c2c9c914368fb407ab32ac1edd02d918689ba8a1cba4035e20135c64dd 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..00f7da3a5e4e --- /dev/null +++ b/dev-lang/yap/yap-6.3.4.ebuild @@ -0,0 +1,132 @@ +# 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" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +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 + + if use examples ; then + docinto /usr/share/doc/${PF}/examples/chr + dodoc packages/chr/Examples/* + if use java ; then + docinto /usr/share/doc/${PF}/examples/jpl/prolog + dodoc packages/jpl/jpl/examples/prolog/* + docinto /usr/share/doc/${PF}/examples/jpl/java + dodoc packages/jpl/jpl/examples/java/README + dodoc -r packages/jpl/jpl/examples/java/*/*.{java,pl} + fi + if use mpi ; then + docinto /usr/share/doc/${PF}/examples/mpi + dodoc library/mpi/examples/*.pl + fi + fi +} |