www-apache/passenger: Fix building with USE=-apache2, bug 626988
authorHans de Graaff <graaff@gentoo.org>
Mon, 16 Oct 2017 18:55:59 +0000 (20:55 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 16 Oct 2017 18:57:14 +0000 (20:57 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

www-apache/passenger/passenger-5.1.11.ebuild

index 60b0bdbcc33dcc38d6dab356d1a15059046838eb..9a80d0c6a2a0874886a9afdbea5b547a228dff19 100644 (file)
@@ -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() {