Сравнение xsb-3.8.0 с xsb-4.0.0

/usr/portage/dev-lang/xsb/xsb-4.0.0.ebuild 2023-10-09 14:52:29.484368350 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
PATCHSET_VER="5"
6
PATCHSET_VER="3"
7 7

  
8 8
inherit autotools java-pkg-opt-2
9 9

  
10 10
DESCRIPTION="XSB is a logic programming and deductive database system"
11 11
HOMEPAGE="http://xsb.sourceforge.net"
12
SRC_URI="http://xsb.sourceforge.net/downloads/XSB38.tar.gz
12
SRC_URI="mirror://sourceforge/xsb/XSB-$(ver_rs 1-3 -).tar.gz
13 13
	https://dev.gentoo.org/~keri/distfiles/xsb/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
14 14

  
15 15
LICENSE="GPL-2 LGPL-2"
16 16
SLOT="0"
17
KEYWORDS="amd64 x86"
18
IUSE="curl debug iodbc java mysql odbc pcre threads xml"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="curl debug iodbc java mariadb mysql odbc pcre threads xml"
19 19

  
20 20
RDEPEND="curl? ( net-misc/curl )
21 21
	iodbc? ( dev-db/libiodbc )
22 22
	java? ( >=virtual/jdk-1.8:* )
23
	mariadb? ( dev-db/mariadb-connector-c:= )
23 24
	mysql? ( dev-db/mysql-connector-c:0= )
24 25
	odbc? ( dev-db/unixODBC )
25 26
	pcre? ( dev-libs/libpcre )
......
35 36
	default
36 37
	cd "${S}"/build
37 38
	eautoconf
39

  
40
	if use mariadb ; then
41
		sed -i \
42
			-e "s:mysqlclient:mariadb:" \
43
			-e "s:mysql_config:mariadb_config:" \
44
			"${S}"/packages/dbdrivers/mysql/configure \
45
			"${S}"/packages/dbdrivers/mysql/mysql_driver_config.P
46
	fi
47

  
48
	find "${S}"/packages -name Installation_summary \
49
		| xargs rm -f || die
38 50
}
39 51

  
40 52
src_configure() {
......
55 67
		econf
56 68
	fi
57 69

  
58
	if use mysql ; then
70
	if use mysql || use mariadb ; then
71
		local impl=$(usex mariadb mariadb mysql)
59 72
		cd "${S}"/packages/dbdrivers/mysql
60
		econf
73
		econf \
74
			--with-mysql-incdir=/usr/include/${impl}
61 75
	fi
62 76

  
63 77
	if use odbc ; then
......
96 110
		fi
97 111
	fi
98 112

  
99
	if use mysql ; then
113
	if use mysql || use mariadb ; then
100 114
		emake -j1 mysql
101 115
	fi
102 116

  
......
166 180
		fi
167 181
	fi
168 182

  
169
	if use mysql || use odbc ; then
183
	if use mysql || use mariadb || use odbc ; then
170 184
		insinto ${PACKAGES}/dbdrivers
171 185
		doins dbdrivers/*.xwam
172 186
		doins dbdrivers/*.H
173 187
		insinto ${PACKAGES}/dbdrivers/cc
174 188
		doins dbdrivers/cc/*.H
175
		if use mysql ; then
189
		if use mysql || use mariadb ; then
176 190
			insinto ${PACKAGES}/dbdrivers/mysql
177 191
			doins dbdrivers/mysql/*.xwam
178 192
			insinto ${PACKAGES}/dbdrivers/mysql/cc
Спасибо!