commit:     71ce50cee7876f5604dc48c1c190455cd79c605f
Author:     odrling <florianbadie <AT> odrling <DOT> xyz>
AuthorDate: Sun Dec 14 22:23:13 2025 +0000
Commit:     Florian Badie <florianbadie <AT> mailbox <DOT> org>
CommitDate: Sun Dec 14 22:23:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=71ce50ce

app-text/typst: use [[ ]] for conditions

Signed-off-by: odrling <florianbadie <AT> odrling.xyz>

 app-text/typst/typst-0.14.2.ebuild | 10 +++++-----
 app-text/typst/typst-9999.ebuild   | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/app-text/typst/typst-0.14.2.ebuild 
b/app-text/typst/typst-0.14.2.ebuild
index 7f3bd38735..5a05a5e573 100644
--- a/app-text/typst/typst-0.14.2.ebuild
+++ b/app-text/typst/typst-0.14.2.ebuild
@@ -10,7 +10,7 @@ inherit cargo shell-completion
 DESCRIPTION="A markup-based typesetting system for the sciences"
 HOMEPAGE="https://typst.app";
 
-if [ ${PV} == 9999 ]; then
+if [[ ${PV} == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/typst/typst.git";
 else
@@ -41,12 +41,12 @@ QA_FLAGS_IGNORED="usr/bin/typst"
 
 DOCS=( README.md )
 
-if [ ${PV} != 9999 ]; then
+if [[ ${PV} != 9999 ]]; then
        ECARGO_VENDOR="${WORKDIR}/vendor"
 fi
 
 src_unpack() {
-       if [ ${PV} == 9999 ]; then
+       if [[ ${PV} == 9999 ]]; then
                git-r3_src_unpack
                cargo_live_src_unpack
        else
@@ -55,7 +55,7 @@ src_unpack() {
 }
 
 src_prepare() {
-       if [ ${PV} != 9999 ]; then
+       if [[ ${PV} != 9999 ]]; then
                # ignore git repo for typst-dev-assets when using a vendor 
tarball
                sed -i 's/^typst-dev-assets.*$/typst-dev-assets = "*"/' 
Cargo.toml || die
        fi
@@ -64,7 +64,7 @@ src_prepare() {
 }
 
 src_compile() {
-       if [ ${PV} != 9999 ]; then
+       if [[ ${PV} != 9999 ]]; then
                local GIT_HASH=$(gunzip < "${DISTDIR}/${P}.tar.gz" | git 
get-tar-commit-id)
                export TYPST_VERSION="${PV} (${GIT_HASH::8})"
        fi

diff --git a/app-text/typst/typst-9999.ebuild b/app-text/typst/typst-9999.ebuild
index 7f3bd38735..5a05a5e573 100644
--- a/app-text/typst/typst-9999.ebuild
+++ b/app-text/typst/typst-9999.ebuild
@@ -10,7 +10,7 @@ inherit cargo shell-completion
 DESCRIPTION="A markup-based typesetting system for the sciences"
 HOMEPAGE="https://typst.app";
 
-if [ ${PV} == 9999 ]; then
+if [[ ${PV} == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/typst/typst.git";
 else
@@ -41,12 +41,12 @@ QA_FLAGS_IGNORED="usr/bin/typst"
 
 DOCS=( README.md )
 
-if [ ${PV} != 9999 ]; then
+if [[ ${PV} != 9999 ]]; then
        ECARGO_VENDOR="${WORKDIR}/vendor"
 fi
 
 src_unpack() {
-       if [ ${PV} == 9999 ]; then
+       if [[ ${PV} == 9999 ]]; then
                git-r3_src_unpack
                cargo_live_src_unpack
        else
@@ -55,7 +55,7 @@ src_unpack() {
 }
 
 src_prepare() {
-       if [ ${PV} != 9999 ]; then
+       if [[ ${PV} != 9999 ]]; then
                # ignore git repo for typst-dev-assets when using a vendor 
tarball
                sed -i 's/^typst-dev-assets.*$/typst-dev-assets = "*"/' 
Cargo.toml || die
        fi
@@ -64,7 +64,7 @@ src_prepare() {
 }
 
 src_compile() {
-       if [ ${PV} != 9999 ]; then
+       if [[ ${PV} != 9999 ]]; then
                local GIT_HASH=$(gunzip < "${DISTDIR}/${P}.tar.gz" | git 
get-tar-commit-id)
                export TYPST_VERSION="${PV} (${GIT_HASH::8})"
        fi

Reply via email to