improved ebuild metadata
This commit is contained in:
parent
ba331eb952
commit
81a22f92af
@ -6,30 +6,35 @@ EAPI=6
|
|||||||
inherit golang-build
|
inherit golang-build
|
||||||
|
|
||||||
EGO_PN="github.com/oniony/TMSU/"
|
EGO_PN="github.com/oniony/TMSU/"
|
||||||
DESCRIPTION=""
|
DESCRIPTION="Files tagger and virtual tag-based filesystem"
|
||||||
HOMEPAGE=""
|
HOMEPAGE="https://github.com/oniony/TMSU/wiki"
|
||||||
SRC_URI="https://github.com/oniony/TMSU/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/oniony/TMSU/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test zsh-completion"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND=""
|
||||||
|
DEPEND="
|
||||||
dev-go/go-sqlite3
|
dev-go/go-sqlite3
|
||||||
|
dev-lang/go
|
||||||
dev-libs/go-fuse
|
dev-libs/go-fuse
|
||||||
"
|
zsh-completion? ( app-shells/zsh )
|
||||||
DEPEND="dev-lang/go"
|
"
|
||||||
|
|
||||||
S=${WORKDIR}/TMSU-${PV}
|
src_unpack() {
|
||||||
|
default
|
||||||
RESTRICT="test"
|
mv TMSU-${PV} ${P} || die "Failed to move sorce directory."
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
GOPATH="${S}:$(get_golibdir_gopath)" \
|
|
||||||
go install -v -work -x ${EGO_BUILD_FLAGS} ${EGO_PN} || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
golang_install_pkgs
|
dobin misc/bin/*
|
||||||
newbin bin/TMSU tmsu
|
doman misc/man/tmsu.*
|
||||||
|
newbin TMSU tmsu
|
||||||
|
|
||||||
|
if use zsh-completion ; then
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
doins misc/zsh/_tmsu
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user