1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 inherit autotools java-pkg-opt-2
12 DESCRIPTION="XSB is a logic programming and deductive database system"
13 HOMEPAGE="http://xsb.sourceforge.net"
14 SRC_URI="http://xsb.sourceforge.net/downloads/${MY_P}.tar.gz
15 mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
17 LICENSE="GPL-2 LGPL-2"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="curl debug iodbc java mysql odbc pcre threads xml"
22 RDEPEND="curl? ( net-misc/curl )
23 iodbc? ( dev-db/libiodbc )
24 java? ( >=virtual/jdk-1.4:= )
25 mysql? ( dev-db/mysql-connector-c:0= )
26 odbc? ( dev-db/unixODBC )
27 pcre? ( dev-libs/libpcre )
28 xml? ( dev-libs/libxml2 )"
34 PATCHES=( "${WORKDIR}/${PV}" )
46 --prefix=/usr/$(get_libdir) \
47 --disable-optimization \
51 $(use_enable threads mt) \
55 cd "${S}"/packages/curl
60 cd "${S}"/packages/dbdrivers/mysql
65 cd "${S}"/packages/dbdrivers/odbc
70 cd "${S}"/packages/pcre
75 cd "${S}"/packages/xpath
85 # All XSB Packages are compiled using a single Prolog engine.
86 # Consequently they must all be compiled using a single make job.
117 local XSB_INSTALL_DIR=/usr/$(get_libdir)/xsb-${PV}
118 dosym ${XSB_INSTALL_DIR}/bin/xsb /usr/bin/xsb
121 local PACKAGES=${XSB_INSTALL_DIR}/packages
125 insinto ${PACKAGES}/chr
128 insinto ${PACKAGES}/clpqr
131 insinto ${PACKAGES}/gap
134 insinto ${PACKAGES}/justify
138 insinto ${PACKAGES}/regmatch
139 doins regmatch/*.xwam
140 insinto ${PACKAGES}/regmatch/cc
141 doins regmatch/cc/*.H
143 insinto ${PACKAGES}/slx
146 insinto ${PACKAGES}/wildmatch
147 doins wildmatch/*.xwam
148 insinto ${PACKAGES}/wildmatch/cc
149 doins wildmatch/cc/*.H
152 insinto ${PACKAGES}/curl
154 insinto ${PACKAGES}/curl/cc
156 insinto ${PACKAGES}/sgml
158 insinto ${PACKAGES}/sgml/cc
160 insinto ${PACKAGES}/sgml/cc/dtd
163 insinto ${PACKAGES}/xpath
165 insinto ${PACKAGES}/xpath/cc
170 if use mysql || use odbc ; then
171 insinto ${PACKAGES}/dbdrivers
172 doins dbdrivers/*.xwam
174 insinto ${PACKAGES}/dbdrivers/cc
175 doins dbdrivers/cc/*.H
177 insinto ${PACKAGES}/dbdrivers/mysql
178 doins dbdrivers/mysql/*.xwam
179 insinto ${PACKAGES}/dbdrivers/mysql/cc
180 doins dbdrivers/mysql/cc/*.H
183 insinto ${PACKAGES}/dbdrivers/odbc
184 doins dbdrivers/odbc/*.xwam
185 insinto ${PACKAGES}/dbdrivers/odbc/cc
186 doins dbdrivers/odbc/cc/*.H
191 insinto ${PACKAGES}/pcre
193 insinto ${PACKAGES}/pcre/cc