1 |
commit: 8edfc50dab0424fe3db9741c3e5ccb9a0e0588a9 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 20 18:02:51 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 20 18:02:55 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edfc50d |
7 |
|
8 |
sys-devel/flex: disable building tests when USE=-test #568842 |
9 |
|
10 |
sys-devel/flex/flex-2.6.0.ebuild | 8 ++++++++ |
11 |
1 file changed, 8 insertions(+) |
12 |
|
13 |
diff --git a/sys-devel/flex/flex-2.6.0.ebuild b/sys-devel/flex/flex-2.6.0.ebuild |
14 |
index b603320..6fc951f 100644 |
15 |
--- a/sys-devel/flex/flex-2.6.0.ebuild |
16 |
+++ b/sys-devel/flex/flex-2.6.0.ebuild |
17 |
@@ -25,6 +25,14 @@ DEPEND="${RDEPEND} |
18 |
src_prepare() { |
19 |
epatch "${FILESDIR}"/${P}-out-of-tree-build.patch #567332 |
20 |
epatch "${FILESDIR}"/${P}-out-of-tree-test.patch #567332 |
21 |
+ |
22 |
+ # Disable running in the tests/ subdir as it has a bunch of built sources |
23 |
+ # that cannot be made conditional (automake limitation). #568842 |
24 |
+ if ! use test ; then |
25 |
+ sed -i \ |
26 |
+ -e '/^SUBDIRS =/,/^$/{/tests/d}' \ |
27 |
+ Makefile.in || die |
28 |
+ fi |
29 |
} |
30 |
|
31 |
src_configure() { |