2019-09-02 13:51:22 +00:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-01-30 07:06:43 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
EGO_PN=git.nemunai.re/youp0m.git
|
|
|
|
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
inherit golang-vcs
|
|
|
|
else
|
|
|
|
KEYWORDS="~amd64 ~arm ~mips"
|
|
|
|
EGIT_COMMIT=v${PV}
|
|
|
|
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
|
|
inherit golang-vcs-snapshot
|
|
|
|
fi
|
|
|
|
inherit golang-build
|
|
|
|
|
|
|
|
DESCRIPTION="Display a daily cute picture"
|
2019-09-02 13:51:22 +00:00
|
|
|
HOMEPAGE="https://you.p0m.fr"
|
2018-01-30 07:06:43 +00:00
|
|
|
LICENSE="AGPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
DEPEND="
|
2019-09-09 10:55:01 +00:00
|
|
|
dev-go/go-bindata
|
2018-01-30 07:06:43 +00:00
|
|
|
dev-go/go-crypt
|
|
|
|
dev-go/resize
|
|
|
|
"
|
|
|
|
RDEPEND=""
|
|
|
|
|
2019-09-02 14:06:39 +00:00
|
|
|
src_configure() {
|
|
|
|
env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
|
|
|
|
GOCACHE="${T}/go-cache" \
|
|
|
|
go generate -v -work "${EGO_PN}"
|
|
|
|
}
|
|
|
|
|
2018-01-30 07:06:43 +00:00
|
|
|
src_install() {
|
|
|
|
mv ${PN}.git ${PN}
|
|
|
|
dobin ${PN}
|
|
|
|
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
|
|
|
keepdir /var/lib/${PN}
|
|
|
|
}
|