commit: 002a07d803aff78b42649214946e5108891594e6
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 16 18:55:59 2017 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 18:57:14 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002a07d8
www-apache/passenger: Fix building with USE=-apache2, bug 626988
Package-Manager: Portage-2.3.8, Repoman-2.3.3
www-apache/passenger/passenger-5.1.11.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/www-apache/passenger/passenger-5.1.11.ebuild
b/www-apache/passenger/passenger-5.1.11.ebuild
index 60b0bdbcc33..9a80d0c6a2a 100644
--- a/www-apache/passenger/passenger-5.1.11.ebuild
+++ b/www-apache/passenger/passenger-5.1.11.ebuild
@@ -73,6 +73,11 @@ all_ruby_prepare() {
# Fix hard-coded use of AR
sed -i -e "s/ar cru/"$(tc-getAR)" cru/" build/support/cplusplus.rb ||
die
+
+ # Make sure apache support is not attempted with -apache2
+ if ! use apache2 ; then
+ sed -i -e '/fakeroot/ s/:apache2, //' build/packaging.rb || die
+ fi
}
all_ruby_compile() {