| 1 |
# Copyright 1999-2013 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swig/swig-2.0.8.ebuild,v 1.10 2012/12/30 14:33:15 ago Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
DESCRIPTION="Simplified Wrapper and Interface Generator" |
| 8 |
HOMEPAGE="http://www.swig.org/" |
| 9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
| 10 |
|
| 11 |
LICENSE="GPL-3+ BSD BSD-2" |
| 12 |
SLOT="0" |
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
| 14 |
IUSE="ccache doc pcre" |
| 15 |
RESTRICT="test" |
| 16 |
|
| 17 |
DEPEND="pcre? ( dev-libs/libpcre ) |
| 18 |
ccache? ( sys-libs/zlib )" |
| 19 |
RDEPEND="${DEPEND}" |
| 20 |
|
| 21 |
DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO ) |
| 22 |
|
| 23 |
src_configure() { |
| 24 |
econf \ |
| 25 |
$(use_enable ccache) \ |
| 26 |
$(use_with pcre) |
| 27 |
} |
| 28 |
|
| 29 |
src_install() { |
| 30 |
default |
| 31 |
|
| 32 |
if use doc ; then |
| 33 |
dohtml -r Doc/{Devel,Manual} |
| 34 |
fi |
| 35 |
} |