Add more ebuilds!

This commit is contained in:
Sam Therapy 2023-11-09 00:28:55 +01:00
parent d33aedfdb1
commit 535dfa1b11
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
9 changed files with 86 additions and 49 deletions

View file

@ -0,0 +1,5 @@
AUX goreleaser-manpage-no-compress.patch 199 BLAKE2B 42e3f76c79ba60bc35bcceb81aa6eca63eca05a39b69ccb1de0e237f8c8ba4050107ad1e71f9537a39e5658c5f1e52cb92e433747a7a561c6051cc1781e02583 SHA512 f168becefc1b8477730a3c49ca812213fbf91d02aa3e6b7977bcf98d4270f56e76bec1d2f6a4304fe43a12c879ef71c79d4b9059ef1472778e0eefc73b23881f
DIST goreleaser-1.22.0-vendor.tar.xz 7802072 BLAKE2B cd7618dc82c1a54b5a77012072c03e303e7a9c8ca00d3a8e862b4ac0463e5c75f9eaa4162894f72f38b00395c1a7e1e248f71643b6b2d2827bf7aa50b4ca7e42 SHA512 6895bc254741a07ccfc5dc8f07b4baa1fc0ca55e33422e04814c22144c36bae38cecdfda9a001c8adc7a756ccea24b1755f5ea56c2759a204c422cba9e69bd32
DIST goreleaser-1.22.0.tar.gz 934753 BLAKE2B 50ff56d1f6517848949ea8ade7d10f2717b73defb9407dc7f2a7d4b435832426452887d324d15f69221f14449e66e98351b413fc7da1e65744c609c69b3f4e6e SHA512 6334a9b6cb3a9d90672bc3161f3f5f7e2a4edf8efab5b2d6edeef185dc5c7d46d70053432fe37c7a44c2a0aa7afcdad2dd4478f6cedf6bca73f6ed37bdcf7ef1
EBUILD goreleaser-1.22.0.ebuild 1191 BLAKE2B 535c868ef4e5836cb0666f9f7e34f5b0fc2bfc77fd83c0e96d1daeb0931d76d89cacf43a0bf48f000a0fb0456ab0df2f4effd366b5bc02195abcb76475d828a6 SHA512 0943fddec3e87a3a18dc932396dff9d00728dafa55ddebaa1f90b83d91e8054aa390cdd500d346bcf7b174b218edf0de23248a3b27697ab21747c64994c532af
EBUILD goreleaser-9999.ebuild 1191 BLAKE2B 535c868ef4e5836cb0666f9f7e34f5b0fc2bfc77fd83c0e96d1daeb0931d76d89cacf43a0bf48f000a0fb0456ab0df2f4effd366b5bc02195abcb76475d828a6 SHA512 0943fddec3e87a3a18dc932396dff9d00728dafa55ddebaa1f90b83d91e8054aa390cdd500d346bcf7b174b218edf0de23248a3b27697ab21747c64994c532af

View file

@ -0,0 +1,8 @@
--- a/scripts/manpages.sh
+++ b/scripts/manpages.sh
@@ -2,4 +2,4 @@
set -e
rm -rf manpages
mkdir manpages
-go run . man | gzip -c -9 >manpages/goreleaser.1.gz
+go run . man >manpages/goreleaser.1

View file

@ -0,0 +1 @@
goreleaser-9999.ebuild

View file

@ -0,0 +1,44 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Deliver Go binaries as fast and easily as possible"
HOMEPAGE="https://github.com/goreleaser/goreleaser https://goreleaser.com/"
LICENSE="MIT BSD BSD-2 Apache-2.0 MPL-2.0"
SLOT="0"
PATCHES=(
"${FILESDIR}/${PN}-manpage-no-compress.patch"
)
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/goreleaser/goreleaser.git"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
COMMIT=$(git-r3_peek_remote_ref)
}
else
# TODO: UPDATE EVERY BUMP
COMMIT="6a16fcd38aa41ec2a5fea50728d22258ab9e2580"
SRC_URI="https://github.com/goreleaser/goreleaser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://git.froth.zone/api/packages/packaging/generic/portage/deps/${P}-vendor.tar.xz"
KEYWORDS="~amd64 ~arm64 ~x86"
fi
src_compile() {
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.commit=${COMMIT} -X main.builtBy=portage" .
./scripts/manpages.sh
}
src_install() {
dobin ./${PN}
doman manpages/goreleaser.1
einstalldocs
}

View file

@ -1 +0,0 @@
EBUILD goreleaser-9999.ebuild 732 BLAKE2B 9f5f0efb361c8c118b1242a47912800b98dbaf4006e8783e7c6248cca1713e9cf0f8fd881c208418e6efd2e82ba775d080a11973c07b9e49d95771db5f3babd1 SHA512 38967fddb9217d44b11d80fe4be24970330cb9c18d17b371a5064c4eab0b5d4cb370d442f346df450a89d77c5abd01dc1b7aa71629ea12ad156c64ee8e771285

View file

@ -1,31 +0,0 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 go-module
DESCRIPTION="Deliver Go binaries as fast and easily as possible"
HOMEPAGE="https://github.com/goreleaser/goreleaser https://goreleaser.com/"
EGIT_REPO_URI="https://github.com/goreleaser/goreleaser.git"
RESTRICT="network-sandbox strip"
LICENSE="MIT BSD BSD-2 Apache-2.0 MPL-2.0"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.commit=$(git-r3_peek_remote_ref) -X main.builtBy=portage" .
}
src_install() {
dobin ./${PN}
}

View file

@ -1 +1,4 @@
EBUILD nfpm-9999.ebuild 736 BLAKE2B 473fdcd13bbafdf2aa86bf85eb582c36b0ea520429a4aada122b45d7d3d3963a7a436022500587c812098abda417058d0765b566bc28fc66d25d20a9c0123bbe SHA512 3e04a2da304431f914976774ef78afb5d01c96bc03c9cc2d454319a59a7ccf0d07898f02b85e1edfd143a05987d9a8090ec5c79347932693c8332452ccc900aa
DIST nfpm-2.34.0-vendor.tar.xz 2443248 BLAKE2B 6ddf909150a23270d242424476d8f8a183b2058bf91df4ff78e666c3acc162a8df9b83f2176c262829ec7cf93ef5e668f566dd065145e410acb3948a9854b96f SHA512 18c84351cde81dca4ca57d0def2d208fd7cf193d62783bf41b0596d5d726cf63011fbb4696d0b1919134b8e697bf63efc31e1204a33bd4e7144d337d44ce0c4c
DIST nfpm-2.34.0.tar.gz 452713 BLAKE2B 890e78857641807a5a60469439679466c5e8f63fea91f23ee1ab5dae5ed0cff35f9388589cbee4c3e351c79d18b8a03866df2f05864b213fe3eec249d0c34702 SHA512 fd6dc65a421685072c1723c5e59e6ec04b72a4761e84d9c0d87a6dd72a07e79fabdcd104ccc73ea1880fe2be146cd2e7779be0adae7a4573b1652804468f18a7
EBUILD nfpm-2.34.0.ebuild 1071 BLAKE2B eeef8bd1c3562ebcefb7b8267f96e4c8d3bc1978b0424fca51f446f3f1d96a2428ab058d0377a93049e7a72f1d04b2a959c26f299890fb1adaeec3b17b94254f SHA512 a375545c64e47ae1702e49ee4be31744efb0cfabc89768537af3fe35d3857cd1b450850d509c9d4ecd40c90822333569418d68cdf380438367f03c21cec18719
EBUILD nfpm-9999.ebuild 1071 BLAKE2B eeef8bd1c3562ebcefb7b8267f96e4c8d3bc1978b0424fca51f446f3f1d96a2428ab058d0377a93049e7a72f1d04b2a959c26f299890fb1adaeec3b17b94254f SHA512 a375545c64e47ae1702e49ee4be31744efb0cfabc89768537af3fe35d3857cd1b450850d509c9d4ecd40c90822333569418d68cdf380438367f03c21cec18719

View file

@ -0,0 +1 @@
nfpm-9999.ebuild

View file

@ -1,31 +1,38 @@
# Copyright 2020-2021 Gentoo Authors
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit git-r3 go-module
inherit go-module
DESCRIPTION="nFPM is Not FPM - a simple deb, rpm and apk packager"
HOMEPAGE="https://github.com/goreleaser/nfpm https://nfpm.goreleaser.com/"
EGIT_REPO_URI="https://github.com/goreleaser/nfpm.git"
RESTRICT="network-sandbox strip"
LICENSE="MIT BSD BSD-2 Apache-2.0 MPL-2.0"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/goreleaser/nfpm.git"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
COMMIT=$(git-r3_peek_remote_ref)
}
else
# TODO: UPDATE EVERY BUMP
COMMIT="6a16fcd38aa41ec2a5fea50728d22258ab9e2580"
SRC_URI="https://github.com/goreleaser/nfpm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://git.froth.zone/api/packages/packaging/generic/portage/deps/${P}-vendor.tar.xz"
KEYWORDS="~amd64 ~arm64 ~x86"
fi
src_compile() {
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.commit=$(git-r3_peek_remote_ref) -X main.builtBy=portage" ./cmd/nfpm
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.commit=${COMMIT} -X main.builtBy=portage" ./cmd/nfpm
}
src_install() {
dobin ./${PN}
dobin ./${PN}
einstalldocs
}