net-misc/networkmanager: disable examples by stubbing out the Makefile
authorMike Gilbert <floppym@gentoo.org>
Thu, 4 Aug 2016 17:13:01 +0000 (13:13 -0400)
committerMike Gilbert <floppym@gentoo.org>
Thu, 4 Aug 2016 17:24:27 +0000 (13:24 -0400)
Package-Manager: portage-2.3.0_p16

net-misc/networkmanager/networkmanager-1.2.4.ebuild

index ba3a6e1630c108b97845c4a3fecd18e8bcee5b6b..56aa7e0f98990973144864a0f4afcf97c1186568 100644 (file)
@@ -122,9 +122,6 @@ src_prepare() {
        DOC_CONTENTS="To modify system network connections without needing to enter the
                root password, add your user account to the 'plugdev' group."
 
-       # Don't build examples, they are not needed and can cause build failure
-       sed -e '/^\s*examples\s*\\*/d' -i Makefile.{am,in} || die
-
        use vala && vala_src_prepare
        gnome2_src_prepare
 }
@@ -207,6 +204,13 @@ multilib_src_configure() {
                        ln -s "${S}"/docs/${d}/html docs/${d}/html || die
                done
        fi
+
+       # Disable examples
+       cat > examples/Makefile <<-EOF
+       .PHONY: all install
+       all:
+       install:
+       EOF
 }
 
 multilib_src_compile() {