Signed-off-by: Nima Sadeghi <neeshy@tfwno.gf>
Closes: https://github.com/gentoo/gentoo/pull/15074
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
-IUSE="bash-completion zsh-completion"
RDEPEND="
sys-apps/groff
')
"
-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"
}
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
-IUSE="bash-completion zsh-completion"
RDEPEND="
sys-apps/groff
')
"
-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"
}