summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneeshy <neeshy@tfwno.gf>2020-04-02 18:12:31 -0400
committerJoonas Niilola <juippis@gentoo.org>2020-04-05 10:17:54 +0300
commitf27f51ec43d91aa1bb0733f0b9bd44d735da89d4 (patch)
treef6b001843ac573c1727b866501b2d5a4c85a14e0 /app-doc/cppman
parentapp-doc/cppman: cleanup, fix DOCS location (diff)
downloadgentoo-f27f51ec43d91aa1bb0733f0b9bd44d735da89d4.tar.gz
gentoo-f27f51ec43d91aa1bb0733f0b9bd44d735da89d4.tar.bz2
gentoo-f27f51ec43d91aa1bb0733f0b9bd44d735da89d4.zip
app-doc/cppman: simplify ebuilds
Signed-off-by: Nima Sadeghi <neeshy@tfwno.gf> Closes: https://github.com/gentoo/gentoo/pull/15074 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-doc/cppman')
-rw-r--r--app-doc/cppman/cppman-0.4.8-r2.ebuild10
-rw-r--r--app-doc/cppman/cppman-0.4.9.ebuild10
2 files changed, 6 insertions, 14 deletions
diff --git a/app-doc/cppman/cppman-0.4.8-r2.ebuild b/app-doc/cppman/cppman-0.4.8-r2.ebuild
index 47193572aa46..6e35a51f7a2b 100644
--- a/app-doc/cppman/cppman-0.4.8-r2.ebuild
+++ b/app-doc/cppman/cppman-0.4.8-r2.ebuild
@@ -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"
}
diff --git a/app-doc/cppman/cppman-0.4.9.ebuild b/app-doc/cppman/cppman-0.4.9.ebuild
index 47193572aa46..6e35a51f7a2b 100644
--- a/app-doc/cppman/cppman-0.4.9.ebuild
+++ b/app-doc/cppman/cppman-0.4.9.ebuild
@@ -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"
}