blob: 03e31937f7461f250d276bf0a54c2b2ae3a299ac (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r1.ebuild,v 1.3 2010/10/13 20:09:57 maekke Exp $
EAPI=2
inherit eutils multilib autotools
KEYWORDS="amd64 ~ppc ~sparc x86"
DESCRIPTION="NSS MySQL Library."
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"
DEPEND="virtual/mysql"
S="${WORKDIR}/${PN}"
src_prepare() {
epatch "${FILESDIR}"/${P}-no-automagic-debug.diff
eautoconf
}
src_configure() {
# authentication libraries don't belong into usr,
# please don't change this
econf --libdir="/$(get_libdir)" \
$(use_enable debug)
}
src_install() {
emake DESTDIR="${D}" install || die
find "${D}" -name '*.la' -delete
newdoc sample/README README.sample
dodoc AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS \
TODO UPGRADING ChangeLog
for subdir in sample/{linux,freebsd,complex,minimal} ; do
docinto "${subdir}"
dodoc "${subdir}/"{*.sql,*.cfg}
done
}
|