/[gentoo-x86]/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r2.ebuild
Gentoo

Contents of /sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jan 9 19:45:13 2012 UTC (2 years, 3 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Marking libnss-mysql-1.5_p20060915-r2 ppc for bug 388119

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r2.ebuild,v 1.4 2011/10/27 15:51:28 chainsaw Exp $
4
5 EAPI=2
6
7 inherit eutils multilib autotools
8
9 KEYWORDS="amd64 ppc ~sparc x86"
10
11 DESCRIPTION="NSS MySQL Library."
12 HOMEPAGE="http://libnss-mysql.sourceforge.net/"
13 SRC_URI="http://libnss-mysql.sourceforge.net/snapshot/${PN}-${PV/1.5_p/}.tgz"
14 LICENSE="GPL-2"
15 SLOT="0"
16 IUSE="debug"
17
18 DEPEND="virtual/mysql"
19 RDEPEND="${DEPEND}"
20 S="${WORKDIR}/${PN}"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-no-automagic-debug.diff
24 eautoconf
25 }
26
27 src_configure() {
28 # Usually, authentication libraries don't belong into usr.
29 # But here, it's required that the lib is in the same dir
30 # as libmysql, because else failures may occur on boot if
31 # udev tries to access a user / group that doesn't exist
32 # on the system before /usr is mounted.
33 econf --libdir="/usr/$(get_libdir)" \
34 $(use_enable debug)
35 }
36
37 src_install() {
38 emake DESTDIR="${D}" install || die
39
40 find "${D}" -name '*.la' -delete
41
42 newdoc sample/README README.sample
43 dodoc AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS \
44 TODO UPGRADING ChangeLog
45
46 for subdir in sample/{linux,freebsd,complex,minimal} ; do
47 docinto "${subdir}"
48 dodoc "${subdir}/"{*.sql,*.cfg}
49 done
50 }

  ViewVC Help
Powered by ViewVC 1.1.20