Clean up mangal package
This commit is contained in:
parent
65b048c1f1
commit
f842d94add
@ -4,56 +4,53 @@
|
||||
# Adapted from https://github.com/leycec/raiagent/blob/master/app-misc/mangal/mangal-9999.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
inherit git-r3 go-module
|
||||
|
||||
DESCRIPTION="The most advanced (yet simple) CLI manga downloader"
|
||||
HOMEPAGE="https://github.com/metafates/mangal"
|
||||
|
||||
EGIT_REPO_URI="${HOMEPAGE}.git"
|
||||
EGIT_BRANCH="main"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="bash fish zsh"
|
||||
|
||||
IUSE="bash fish zsh"
|
||||
RDEPEND="
|
||||
bash? ( app-shells/bash )
|
||||
fish? ( app-shells/fish )
|
||||
zsh? ( app-shells/zsh )
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/metafates/mangal.git"
|
||||
EGIT_BRANCH="main"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/metafates/mangal/archive/refs/tags/v${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
fi
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_src_unpack
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ego build -mod=vendor .
|
||||
# emake BUILD_FLAGS="-mod=vendor" build
|
||||
ego build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use zsh; then
|
||||
insinto "/usr/share/zsh/vendor-completions"
|
||||
cp zsh/mangal.zsh zsh/_mangal
|
||||
doins zsh/_mangal
|
||||
cp completions/mangal.zsh completions/_mangal
|
||||
doins completions/_mangal
|
||||
fi
|
||||
|
||||
if use fish; then
|
||||
insinto "/usr/share/fish/completions"
|
||||
doins fish/mangal.fish
|
||||
doins completions/mangal.fish
|
||||
fi
|
||||
|
||||
if use bash; then
|
||||
insinto "/usr/share/bash-completion/completions"
|
||||
cp bash/mangal.bash bash/mangal
|
||||
doins bash/mangal
|
||||
cp completions/mangal.bash completions/mangal
|
||||
doins completions/mangal
|
||||
fi
|
||||
|
||||
dobin ${PN}
|
||||
|
Loading…
x
Reference in New Issue
Block a user