2020-01-06 05:27:21 +01:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
EGO_PN="github.com/oniony/TMSU/"
|
|
|
|
EGO_VENDOR=( "github.com/mattn/go-sqlite3 v1.12.0" )
|
|
|
|
|
|
|
|
inherit golang-build golang-vcs-snapshot
|
|
|
|
|
|
|
|
DESCRIPTION="Files tagger and virtual tag-based filesystem"
|
|
|
|
HOMEPAGE="https://github.com/oniony/TMSU/wiki"
|
|
|
|
SRC_URI="
|
|
|
|
https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
|
|
${EGO_VENDOR_URI}
|
|
|
|
"
|
|
|
|
|
2020-01-06 05:28:24 +01:00
|
|
|
LICENSE="AGPL-3 AGPL-3+ BSD-4 GPL-3+ MIT"
|
2020-01-06 05:27:21 +01:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
RDEPEND="sys-fs/fuse:0"
|
|
|
|
DEPEND="
|
|
|
|
dev-lang/go
|
|
|
|
dev-libs/go-fuse
|
|
|
|
test? ( ${RDEPEND} )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
mkdir "${WORKDIR}/${P}/src/${EGO_PN}vendor/src"
|
|
|
|
mv "${WORKDIR}/${P}/src/${EGO_PN}vendor/github.com" "${WORKDIR}/${P}/src/${EGO_PN}vendor/src/"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
pushd "${WORKDIR}/${P}/src/${EGO_PN}"
|
|
|
|
GOPATH="${WORKDIR}/${P}/src/${EGO_PN}vendor/" emake
|
|
|
|
popd || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin "${WORKDIR}/${P}/src/${EGO_PN}bin/tmsu"
|
|
|
|
dobin "${WORKDIR}/${P}/src/${EGO_PN}misc/bin/"*
|
|
|
|
doman "${WORKDIR}/${P}/src/${EGO_PN}misc/man/tmsu."*
|
|
|
|
insinto /usr/share/zsh/site-functions
|
|
|
|
doins "${WORKDIR}/${P}/src/${EGO_PN}misc/zsh/_tmsu"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
2020-12-27 07:44:17 -05:00
|
|
|
cd "${WORKDIR}/${P}/src/github.com/oniony/TMSU/tests" || die
|
2020-01-06 05:27:21 +01:00
|
|
|
./runall || die
|
|
|
|
}
|