1
0
Fork 0

improved ebuild metadata

This commit is contained in:
Horea Christian 2017-04-15 10:31:42 +02:00
parent ba331eb952
commit 81a22f92af
1 changed files with 21 additions and 16 deletions

View File

@ -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
} }