dev-go/go-crypt: new package
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
parent
f0b613717e
commit
c82e295f42
2
dev-go/go-crypt/Manifest
Normal file
2
dev-go/go-crypt/Manifest
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
EBUILD go-crypt-9999.ebuild 961 SHA256 d012c1265918a91654570b7748fad85bc8a133ff9824460457b4f417a113a6f5 SHA512 03d67e49787a155701dac8b311a1ec65ef25179ebc6b277d88c01cf410b579a150ca809fff3e52891d6c7a9fb8fe99a52a5924ca6f5ac59e576ec280c657e395 WHIRLPOOL d360f127f3eceeda9b0674ba3fcff7bfd9120dd19070d45a99a65c7cdf39bf59efaa9ac40f5fc73c5e18599d49d87cf38d97f372a5a891d039e6b257dde093de
|
||||||
|
MISC metadata.xml 518 SHA256 5b4492d975247bb347a454c62f263f69a8d26c5b5d7fcde9279e579be9eb0a38 SHA512 f11570048cb365f92610e32493cbb866b8de351c26a3c13f704db49bb64984a028469880819a76801fac6ca97e31e7887d1fd198d2efdae95b0f3d3a4b2e9bd0 WHIRLPOOL e22f7e85475c6fccb9ead6975b0a0d4f2817a829251ac71bc16524ff796cbe64ff0f28ce7a3e7c4eca78a561269ce913f603a5bf83e74f00c088acedc2b4bd01
|
39
dev-go/go-crypt/go-crypt-9999.ebuild
Normal file
39
dev-go/go-crypt/go-crypt-9999.ebuild
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
EGO_PN="github.com/nyarla/go-crypt/..."
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
inherit golang-vcs
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://${EGO_PN%/*}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm"
|
||||||
|
inherit golang-vcs-snapshot
|
||||||
|
fi
|
||||||
|
inherit golang-build
|
||||||
|
|
||||||
|
DESCRIPTION="A golang implementation of crypt(3)."
|
||||||
|
HOMEPAGE="https://${EGO_PN%/*}"
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/${PVR}"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
GOPATH="${S}" \
|
||||||
|
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
golang_install_pkgs
|
||||||
|
}
|
||||||
|
|
||||||
|
golang_install_pkgs() {
|
||||||
|
insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
|
||||||
|
rm -rf "${S}"/src/${EGO_PN%/*}/.git*
|
||||||
|
doins -r "${S}"/src/${EGO_PN%/*}
|
||||||
|
insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}")
|
||||||
|
doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}.a
|
||||||
|
}
|
16
dev-go/go-crypt/metadata.xml
Normal file
16
dev-go/go-crypt/metadata.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>nemunaire@nemunai.re</email>
|
||||||
|
<name>Pierre-Olivier Mercier</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>proxy-maint@gentoo.org</email>
|
||||||
|
<name>Proxy Maintainers</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">nyarla/go-crypt</remote-id>
|
||||||
|
<bugs-to>https://github.com/nyarla/go-crypt/issues</bugs-to>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user