1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils toolchain-funcs
7 MY_P="SambaScanner-${PV}"
8 DESCRIPTION="a tool to search a whole samba network for files"
9 HOMEPAGE="http://www.johannes-bauer.com/sambascanner/"
10 SRC_URI="http://www.johannes-bauer.com/${PN}/${MY_P}.tar.bz2"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="debug linguas_de"
17 RDEPEND=">=net-fs/samba-3"
24 if ! built_with_use --missing true sys-libs/glibc nptl; then
25 die "Sambascanner requires an NPTL system"
30 #prevent configure from completely replacing our CFLAGS
31 sed 's:CFLAGS="-O0 -g -pthread":CFLAGS="${CFLAGS} -g -pthread":' -i configure.ac
37 econf CFLAGS="${CFLAGS} -pthread" $(use_enable debug)
38 emake CC=$(tc-getCC) || die "emake failed"
42 # sambascanner's make install is broken
43 dobin src/sambascanner bin/sambaretrieve src/smblister
44 insinto /usr/share/${PN}/
46 use linguas_de && domo i18n/de.mo
47 dodoc AUTHORS ChangeLog README sambascannerrc-example db/db.conf.sample