1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils toolchain-funcs
9 MY_P="SambaScanner-${PV}"
10 DESCRIPTION="a tool to search a whole samba network for files"
11 HOMEPAGE="http://www.johannes-bauer.com/software/sambascanner/"
12 SRC_URI="http://www.johannes-bauer.com/software/${PN}/${MY_P}.tar.bz2"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="debug linguas_de"
19 RDEPEND=">=net-fs/samba-3"
27 #prevent configure from completely replacing our CFLAGS
29 -e 's:CFLAGS="-O0 -g -pthread":CFLAGS="${CFLAGS} -g -pthread":' \
36 econf CFLAGS="${CFLAGS} -pthread" $(use_enable debug)
40 emake CC=$(tc-getCC) || die "emake failed"
44 # sambascanner's make install is broken
45 dobin src/sambascanner bin/sambaretrieve src/smblister || die
46 insinto /usr/share/${PN}/
48 use linguas_de && domo i18n/de.mo
49 dodoc AUTHORS ChangeLog README sambascannerrc-example db/db.conf.sample || die