net-im/nheko: Don't rebuild if there's no update.

I unpacked all URIs from EGIT_REPO_URI. That is not how it was designed
so it broke a bit: The commit ID of coeurl (local) was compared to the
commit ID of nheko (remote).

The commit ID of coeurl was stored because it was used in the last call
to git-r3_src_unpack and it was compared to the commit ID of nheko
because it was the first in EGIT_REPO_URI.

I now unpack the dependencies first from a dedicated variable and then
unpack nheko like normal.
This commit is contained in:
tastytea 2021-12-31 03:26:37 +01:00
parent ff72b6d10d
commit 37b37a3403
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -7,8 +7,8 @@ inherit cmake git-r3 optfeature xdg
DESCRIPTION="Native desktop client for Matrix using Qt"
HOMEPAGE="https://github.com/Nheko-Reborn/nheko"
EGIT_REPO_URI=(
"https://github.com/Nheko-Reborn/nheko.git"
EGIT_REPO_URI="https://github.com/Nheko-Reborn/nheko.git"
MY_DEP_URIS=(
"https://github.com/Nheko-Reborn/mtxclient.git"
"https://nheko.im/nheko-reborn/coeurl.git"
)
@ -58,10 +58,13 @@ DEPEND="
BDEPEND="dev-qt/linguist-tools:5"
src_unpack() {
for repo_uri in ${EGIT_REPO_URI[@]}; do
# Unpack dependencies first. The commit ID of the repo used in the last call
# to git-r3_src_unpack is stored.
for repo_uri in ${MY_DEP_URIS[@]}; do
EGIT_REPO_URI="${repo_uri}" EGIT_CHECKOUT_DIR="${WORKDIR}/${repo_uri##*/}" git-r3_src_unpack
done
mv nheko.git ${P}
git-r3_src_unpack
}
src_prepare() {