diff options
author | Sam James <sam@gentoo.org> | 2024-02-27 20:24:05 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-27 21:44:44 +0000 |
commit | 2dfd2f161a175e9541221a01820530c92af2731c (patch) | |
tree | d497623709ffc5279fe06c5771b453d78f46f3fe /dev-lang | |
parent | dev-libs/libbsd: add 0.12.0 (diff) | |
download | gentoo-2dfd2f161a175e9541221a01820530c92af2731c.tar.gz gentoo-2dfd2f161a175e9541221a01820530c92af2731c.tar.bz2 gentoo-2dfd2f161a175e9541221a01820530c92af2731c.zip |
dev-lang/swig: add 4.2.1
Skip Java test for bug #921504.
Bug: https://bugs.gentoo.org/921504
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/swig/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/swig/swig-4.2.1.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-lang/swig/Manifest b/dev-lang/swig/Manifest index d6c7d753b607..09dc4fcf0f8b 100644 --- a/dev-lang/swig/Manifest +++ b/dev-lang/swig/Manifest @@ -1,2 +1,3 @@ DIST swig-4.1.1.tar.gz 8600805 BLAKE2B 898d3405f20c3e49626fb808b568e77c69b81ec2401c0a0c406f9e7a3d7d218353dc8b8ae88a3d485ddfc3be659971b961ee2c89d5b0c75aed0688e0952fd208 SHA512 1cea1918455a75ebc9b2653dd1715bd5dcd974554955f324295c6a6f14c0a715651b221b85fad4a8af5197e0c75bfe7b590bc6ba7178c26245fbbd9a7e110100 DIST swig-4.2.0.tar.gz 8339586 BLAKE2B 4f1c3c7d4b1e218b67a2d796d2171df73971036a433e5fb80233b3050f022d578efdff28fc44d98a6d176ec6270b4942f5f56e9a74bbd8b30d6836c76c620a04 SHA512 b7f508b25bc6e882ed6123f6c7ad12b02a7b74de09ac6e5789968e9c2f51407d1e3dafd5ea495087b4fb0f447ecce17e6070471479c67c4265166d8342a10862 +DIST swig-4.2.1.tar.gz 8364050 BLAKE2B 0acffd4794d09f2347d669d1460a794c03f136ab3ddc6623741e182ff52b6bf5f639c736e38540918ebb1abbe36c2ce1957aef8a429f1a716d9c5361175569bf SHA512 019dee5a46d57e1030eef47cd5d007ccaadbdcd4e53cd30d7c795f0118ecf4406a78185534502c81c5f6d7bac0713256e7e19b20b5a2d14e2c552219edbaf5cf diff --git a/dev-lang/swig/swig-4.2.1.ebuild b/dev-lang/swig/swig-4.2.1.ebuild new file mode 100644 index 000000000000..2ca82d488662 --- /dev/null +++ b/dev-lang/swig/swig-4.2.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Simplified Wrapper and Interface Generator" +HOMEPAGE="http://www.swig.org/ https://github.com/swig/swig" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+ BSD BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="ccache doc pcre test" +RESTRICT="!test? ( test )" + +RDEPEND=" + pcre? ( dev-libs/libpcre2 ) + ccache? ( sys-libs/zlib ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-libs/boost ) +" +BDEPEND="virtual/pkgconfig" + +DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO ) + +src_configure() { + # TODO: add USE for various langs? (https://bugs.gentoo.org/921504#c3) + econf \ + PKGCONFIG="$(tc-getPKG_CONFIG)" \ + --without-maximum-compile-warnings \ + $(use_enable ccache) \ + $(use_with pcre) +} + +src_test() { + # The tests won't get run w/o an explicit call, broken Makefiles? + # java skipped for bug #921504 + emake skip-java=true check +} + +src_install() { + default + + if use doc; then + docinto html + dodoc -r Doc/{Devel,Manual} + fi +} |