app-doc/cppman: simplify ebuilds
authorneeshy <neeshy@tfwno.gf>
Thu, 2 Apr 2020 22:12:31 +0000 (18:12 -0400)
committerJoonas Niilola <juippis@gentoo.org>
Sun, 5 Apr 2020 07:17:54 +0000 (10:17 +0300)
Signed-off-by: Nima Sadeghi <neeshy@tfwno.gf>
Closes: https://github.com/gentoo/gentoo/pull/15074
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
app-doc/cppman/cppman-0.4.8-r2.ebuild
app-doc/cppman/cppman-0.4.9.ebuild

index 47193572aa467c0f34426db3d4bd5108e569afc3..6e35a51f7a2bf7024f37f8c051bcfba9e5452e06 100644 (file)
@@ -18,7 +18,6 @@ SRC_URI="https://github.com/aitjcize/cppman/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
-IUSE="bash-completion zsh-completion"
 
 RDEPEND="
        sys-apps/groff
@@ -28,12 +27,9 @@ RDEPEND="
        ')
 "
 
-DOCS=( README.rst AUTHORS COPYING ChangeLog )
-
 src_prepare() {
-       sed -i '\:share/doc/cppman:d' setup.py
-       use bash-completion || sed -i '\:share/bash-completion/completions:d' setup.py
-       use zsh-completion || sed -i '\:share/zsh-completion/completions:d' setup.py
-
        default
+
+       # Don't allow setup.py to install documentation directly
+       sed -i '\:share/doc/cppman:d' setup.py || die "sed failed"
 }
index 47193572aa467c0f34426db3d4bd5108e569afc3..6e35a51f7a2bf7024f37f8c051bcfba9e5452e06 100644 (file)
@@ -18,7 +18,6 @@ SRC_URI="https://github.com/aitjcize/cppman/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
-IUSE="bash-completion zsh-completion"
 
 RDEPEND="
        sys-apps/groff
@@ -28,12 +27,9 @@ RDEPEND="
        ')
 "
 
-DOCS=( README.rst AUTHORS COPYING ChangeLog )
-
 src_prepare() {
-       sed -i '\:share/doc/cppman:d' setup.py
-       use bash-completion || sed -i '\:share/bash-completion/completions:d' setup.py
-       use zsh-completion || sed -i '\:share/zsh-completion/completions:d' setup.py
-
        default
+
+       # Don't allow setup.py to install documentation directly
+       sed -i '\:share/doc/cppman:d' setup.py || die "sed failed"
 }