dev-go/resize: new package

Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
nemunaire 2018-01-30 07:35:36 +01:00
parent ad8b37ffba
commit f0b613717e
3 changed files with 57 additions and 0 deletions

2
dev-go/resize/Manifest Normal file
View File

@ -0,0 +1,2 @@
EBUILD resize-9999.ebuild 947 SHA256 521fb84527d3b9e32d0bf07553dd225b1b7e6b4ee28de28cf8167163e2865dc4 SHA512 47da94812bbd80844df28454d83ac2f41ca0d45f4b28abec898182813e92d8674639baf93df10d6d93306e322d5fcadc29e6f48fe6d2c75c4bca88c1b1a29f87 WHIRLPOOL 171cf75147fb5b4791f707138b664938df0c2752e1145943d210a94ce9e65594025e76827ca6fcf65ab3c1b20cbd8d227057163d954d0cbe971ebb191c9984cb
MISC metadata.xml 510 SHA256 97198ee52b9920c42c279d2ecea0c1b6f54d92ad1e1405979af75e1c71feb2bf SHA512 ccc54fd8b4982990a5adfc529124b9fe34c5d7a169c061da1783e2b79ff66d0fb9c16c2863481da62966068d9ae458e76d3fb41ed2070888c4481ab50de388cc WHIRLPOOL 450bfff6db797c4fe7a1a06a424ac68226daf9e91e5f3316e1119c36944f58577513f71928db7b83fd1db899da2d9be462f7d72c5ed18a85b6e9cb84a186765c

View 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">nfnt/resize</remote-id>
<bugs-to>https://github.com/nfnt/resize/issues</bugs-to>
</upstream>
</pkgmetadata>

View 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/nfnt/resize/..."
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="Pure golang image resizing"
HOMEPAGE="https://${EGO_PN%/*}"
LICENSE="ISC"
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
}