1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Simplified Wrapper and Interface Generator"
9 HOMEPAGE="http://www.swig.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12 LICENSE="GPL-3+ BSD BSD-2"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
15 IUSE="ccache doc pcre"
18 DEPEND="pcre? ( dev-libs/libpcre )
19 ccache? ( sys-libs/zlib )"
22 DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO )
26 # https://github.com/swig/swig/pull/1796
28 -e '/if pkg-config javascriptcoregtk-1.0/s:pkg-config:$PKGCONFIG:' \
34 PKGCONFIG="$(tc-getPKG_CONFIG)" \
35 $(use_enable ccache) \
44 dodoc -r Doc/{Devel,Manual}