mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user