summaryrefslogtreecommitdiff
blob: 39c9d60a33a91d1e7d61c0a5da3ebaf67ec508cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="TCL MySQL Interface"
HOMEPAGE="http://www.xdobry.de/mysqltcl/"
SRC_URI="http://www.xdobry.de/mysqltcl/${P}.tar.gz"

LICENSE="HPND"
SLOT="0"
KEYWORDS="amd64 ~ppc ~sparc x86"
IUSE=""

DEPEND="
	dev-lang/tcl:0=
	dev-db/mysql-connector-c:0="
RDEPEND="${DEPEND}"
PATCHES=(
	"${FILESDIR}"/${PN}-3.05-ldflags.patch
	"${FILESDIR}"/${PN}-3.05-API.patch
)
HTML_DOCS=( doc/mysqltcl.html )

src_prepare() {
	default_src_prepare
	sed -i 's/-pipe//g;s/-O2//g;s/-fomit-frame-pointer//g' configure || die
}

src_configure() {
	econf --with-mysql-lib=$(mysql_config --variable=pkglibdir)
}