| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/sary/sary-1.2.0-r1.ebuild,v 1.8 2012/03/19 19:14:05 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
DESCRIPTION="Sary: suffix array library and tools"
|
| 8 |
HOMEPAGE="http://sary.sourceforge.net/"
|
| 9 |
SRC_URI="http://sary.sourceforge.net/${P}.tar.gz"
|
| 10 |
IUSE="static-libs"
|
| 11 |
|
| 12 |
LICENSE="LGPL-2.1"
|
| 13 |
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
| 14 |
SLOT="0"
|
| 15 |
RESTRICT="test"
|
| 16 |
|
| 17 |
RDEPEND="dev-libs/glib:2"
|
| 18 |
DEPEND="${RDEPEND}
|
| 19 |
virtual/pkgconfig"
|
| 20 |
|
| 21 |
src_configure() {
|
| 22 |
econf $(use_enable static-libs static)
|
| 23 |
}
|
| 24 |
|
| 25 |
src_install() {
|
| 26 |
|
| 27 |
emake DESTDIR="${D}" \
|
| 28 |
docsdir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
| 29 |
install || die
|
| 30 |
|
| 31 |
dodoc AUTHORS ChangeLog NEWS README TODO
|
| 32 |
|
| 33 |
if ! use static-libs ; then
|
| 34 |
find "${ED}" -name '*.la' -delete
|
| 35 |
fi
|
| 36 |
|
| 37 |
}
|