2018-05-10 08:33:24 +02:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
inherit golang-build
|
|
|
|
|
|
|
|
DESCRIPTION="Gesetzliche Feiertage und mehr in Deutschland und Österreich (Bank holidays/public holidays in Austria and Germany)"
|
|
|
|
HOMEPAGE="https://github.com/wlbr/feiertage"
|
|
|
|
SRC_URI="https://github.com/wlbr/feiertage/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
EGO_PN="."
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
>=dev-lang/go-1.10.1"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
mkdir -p src/github.com/wlbr
|
|
|
|
cd src/github.com/wlbr
|
2018-05-10 09:44:40 +02:00
|
|
|
ln -s ../../../ feiertage
|
2018-05-10 09:24:30 +02:00
|
|
|
cd ../../../
|
|
|
|
default_src_prepare
|
|
|
|
}
|
|
|
|
|
2018-05-10 09:44:40 +02:00
|
|
|
src_compile()
|
|
|
|
{
|
|
|
|
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o bin/feiertage cmd/feiertage/feiertage.go
|
|
|
|
}
|
|
|
|
|
2018-05-10 09:24:30 +02:00
|
|
|
src_install() {
|
|
|
|
dobin bin/${PN}
|
|
|
|
dodoc README.md
|
2018-05-10 10:09:27 +02:00
|
|
|
elog "This ebuild only installs the binary."
|
2018-05-10 08:33:24 +02:00
|
|
|
}
|