mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 00:46:58 +02:00
dev-lang/swig: Sync with Gentoo
It's from Gentoo commit ccf2eb2b7d4a99074731f23ebf69c88df75aee81.
This commit is contained in:
parent
38004aceb9
commit
9498860795
@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
|
|||||||
|
|
||||||
LICENSE="GPL-3+ BSD BSD-2"
|
LICENSE="GPL-3+ BSD BSD-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~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"
|
IUSE="ccache doc pcre test"
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
@ -27,6 +27,13 @@ BDEPEND="virtual/pkgconfig"
|
|||||||
|
|
||||||
DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO )
|
DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Delete after 4.2.1 (bug #900769, bug #935318)
|
||||||
|
sed -i -e 's:fpic:fPIC:' configure.ac configure || die
|
||||||
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
# TODO: add USE for various langs? (https://bugs.gentoo.org/921504#c3)
|
# TODO: add USE for various langs? (https://bugs.gentoo.org/921504#c3)
|
||||||
econf \
|
econf \
|
||||||
@ -36,10 +43,22 @@ src_configure() {
|
|||||||
$(use_with pcre)
|
$(use_with pcre)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Override these variables per Makefile.in to get verbose logs
|
||||||
|
emake FLAGS="-k" RUNPIPE=""
|
||||||
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
# The tests won't get run w/o an explicit call, broken Makefiles?
|
# The tests won't get run w/o an explicit call, broken Makefiles?
|
||||||
# java skipped for bug #921504
|
# java skipped for bug #921504
|
||||||
emake skip-java=true check
|
# *-sections for bug #935318
|
||||||
|
emake check \
|
||||||
|
skip-java=true \
|
||||||
|
FLAGS="-k" \
|
||||||
|
RUNPIPE="" \
|
||||||
|
CFLAGS="${CFLAGS} -ffunction-sections -fdata-sections" \
|
||||||
|
CXXFLAGS="${CXXFLAGS} -ffunction-sections -fdata-sections" \
|
||||||
|
LDFLAGS="${LDFLAGS}"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
Loading…
Reference in New Issue
Block a user