1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib autotools
8 KEYWORDS="amd64 ppc ~sparc x86"
10 DESCRIPTION="NSS MySQL Library"
11 HOMEPAGE="http://libnss-mysql.sourceforge.net/"
12 SRC_URI="http://libnss-mysql.sourceforge.net/snapshot/${PN}-${PV/1.5_p/}.tgz"
17 DEPEND="virtual/mysql"
22 epatch "${FILESDIR}"/${P}-no-automagic-debug.diff
27 # Usually, authentication libraries don't belong into usr.
28 # But here, it's required that the lib is in the same dir
29 # as libmysql, because else failures may occur on boot if
30 # udev tries to access a user / group that doesn't exist
31 # on the system before /usr is mounted.
32 econf --libdir="/usr/$(get_libdir)" \
37 emake DESTDIR="${D}" install || die
39 find "${D}" -name '*.la' -delete
41 newdoc sample/README README.sample
42 dodoc AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS \
43 TODO UPGRADING ChangeLog
45 for subdir in sample/{linux,freebsd,complex,minimal} ; do
47 dodoc "${subdir}/"{*.sql,*.cfg}