You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
6 years ago
|
inherit autotools
|
||
13 years ago
|
|
||
7 years ago
|
KEYWORDS="amd64 ppc ~sparc x86"
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="NSS MySQL Library"
|
||
13 years ago
|
HOMEPAGE="http://libnss-mysql.sourceforge.net/"
|
||
|
SRC_URI="http://libnss-mysql.sourceforge.net/snapshot/${PN}-${PV/1.5_p/}.tgz"
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
IUSE="debug"
|
||
|
|
||
6 years ago
|
DEPEND="dev-db/mysql-connector-c:="
|
||
10 years ago
|
RDEPEND="${DEPEND}"
|
||
5 years ago
|
|
||
13 years ago
|
S="${WORKDIR}/${PN}"
|
||
|
|
||
10 years ago
|
DOCS=( AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS
|
||
|
TODO UPGRADING ChangeLog
|
||
|
)
|
||
5 years ago
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-no-automagic-debug.diff
|
||
|
"${FILESDIR}"/${PN}-1.5_p20060915-multiarch.patch
|
||
|
"${FILESDIR}"/${PN}-1.5_p20060915-mariadb10.2.patch
|
||
|
)
|
||
10 years ago
|
|
||
13 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
5 years ago
|
|
||
|
mv configure.{in,ac} || die
|
||
|
|
||
|
eautoreconf
|
||
13 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
10 years ago
|
# Usually, authentication libraries don't belong into usr.
|
||
|
# But here, it's required that the lib is in the same dir
|
||
|
# as libmysql, because else failures may occur on boot if
|
||
|
# udev tries to access a user / group that doesn't exist
|
||
|
# on the system before /usr is mounted.
|
||
|
econf --libdir="/usr/$(get_libdir)" \
|
||
13 years ago
|
$(use_enable debug)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
10 years ago
|
default
|
||
13 years ago
|
|
||
5 years ago
|
find "${ED}" -name '*.la' -delete || die
|
||
13 years ago
|
|
||
|
newdoc sample/README README.sample
|
||
|
|
||
5 years ago
|
local subdir
|
||
13 years ago
|
for subdir in sample/{linux,freebsd,complex,minimal} ; do
|
||
|
docinto "${subdir}"
|
||
|
dodoc "${subdir}/"{*.sql,*.cfg}
|
||
|
done
|
||
|
}
|