app-shells/gitstatus: use github tag tarballs

VisibleVcsPkg: version 1.5.4: VCS version visible for KEYWORDS="~amd64", profile default/linux/amd64/17.0/musl (72 total)

Signed-off-by: liuyujielol <2073201758GD@gmail.com>
This commit is contained in:
liuyujielol 2023-11-15 20:35:59 +08:00 committed by 梁永祥
parent fea790151b
commit cc49309751
2 changed files with 10 additions and 13 deletions

View File

@ -1 +1,2 @@
DIST gitstatus-1.5.4.tar.gz 92450 BLAKE2B 6eed36b98eef84777d268c276ddcdd7dbeb3e3d9252d8ef3ef27388e91a75fab9357af421891bd2fed7588357f3bf96bc44af7276d7862395995e449f7281470 SHA512 db7b082f302851e516c79fb464972fc065aafae426dc1d732b2a08e72d88e47a35b11c079cd7bb8795b8363dc8a583c1c62bb44566d82e5c925a335c015c0329
DIST libgit2-tag-5860a42d19bcd226cb6eff2dcbfcbf155d570c73.tar.gz 1518368 BLAKE2B bf0836df7da34c16c0702de29772f582cae4e8c255db3392540553ffa6bc41488cdf596fe39d06d0c5960bd4c56dcc25a2c29574848e116e1ffb9758c73b3664 SHA512 c9adfa819aa2d587fb30c32d4addb09623078e3ccadc0a4a063402d4c8d779f2ee60051ea3717b2cc5ff5b7c760c74390c67976ee42389895272b9f5cf66f0d1

View File

@ -1,21 +1,20 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake flag-o-matic git-r3
inherit cmake flag-o-matic
DESCRIPTION="Git status for Bash and Zsh prompt"
HOMEPAGE="https://github.com/romkatv/gitstatus"
SRC_URI="https://github.com/romkatv/gitstatus/archive/v${PV}.tar.gz -> ${P}.tar.gz"
# LIBGIT2_TAG depends on pkgver. They must be updated together. See libgit2_version in:
# https://raw.githubusercontent.com/romkatv/gitstatus/v${pkgver}/build.info
LIBGIT2_TAG="tag-5860a42d19bcd226cb6eff2dcbfcbf155d570c73"
EGIT_REPO_URI="https://github.com/romkatv/libgit2"
EGIT_COMMIT="${LIBGIT2_TAG}"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/deps"
BUILD_DIR="${EGIT_CHECKOUT_DIR}_BUILD"
CMAKE_USE_DIR="${EGIT_CHECKOUT_DIR}"
SRC_URI+=" https://github.com/romkatv/libgit2/archive/refs/tags/${LIBGIT2_TAG}.tar.gz -> libgit2-${LIBGIT2_TAG}.tar.gz"
CMAKE_USE_DIR="${S}/deps/libgit2"
BUILD_DIR="${CMAKE_USE_DIR}_BUILD"
IUSE="zsh-completion"
@ -27,11 +26,8 @@ DEPEND="zsh-completion? ( app-shells/zsh )"
RDEPEND="${DEPEND}"
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
fi
git-r3_fetch
git-r3_checkout
default
mv -v "${WORKDIR}/libgit2-${LIBGIT2_TAG}" "${S}/deps/libgit2" || die
}
src_configure() {
@ -58,7 +54,7 @@ src_compile() {
cmake_src_compile
local cxxflags=(
"-I${EGIT_CHECKOUT_DIR}/include"
"-I${CMAKE_USE_DIR}/include"
-DGITSTATUS_ZERO_NSEC
-D_GNU_SOURCE
)