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.
53 lines
1.2 KiB
53 lines
1.2 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
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}"
|
||
13 years ago
|
S="${WORKDIR}/${PN}"
|
||
|
|
||
10 years ago
|
DOCS=( AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS
|
||
|
TODO UPGRADING ChangeLog
|
||
|
)
|
||
6 years ago
|
PATCHES=( "${FILESDIR}"/${P}-no-automagic-debug.diff )
|
||
10 years ago
|
|
||
13 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
13 years ago
|
eautoconf
|
||
|
}
|
||
|
|
||
|
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
|
|
||
|
find "${D}" -name '*.la' -delete
|
||
|
|
||
|
newdoc sample/README README.sample
|
||
|
|
||
|
for subdir in sample/{linux,freebsd,complex,minimal} ; do
|
||
|
docinto "${subdir}"
|
||
|
dodoc "${subdir}/"{*.sql,*.cfg}
|
||
|
done
|
||
|
}
|