app-office/openoffice-bin: Use [[ ... ]] instead of POSIX [ ... ]

as per the coding style guide:
https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0101

The changes were generated using these two commands:

```
find -name '*.ebuild' -exec sed -i -E \
's|(\s+)\[+(\s+)(\S+)(\s+)(\S+)(\s+)(\S+)(\s+)\]+(\s+)|\1\[\[\2\3\4\5\6\7\8\]\]\9|g' \
{} \+

find -name '*.ebuild' -exec sed -i -E \
's|\[(\s+)(\S+)(\s+)==?(\s+)(\S+)(\s+)\]|\[\1\2\3==\4\5\6\]|g' \
{} \+
```

this is aimed to be a series of commits meant to replace all instance of
POSIX [ ... ] to bash's [[ ... ]], to make guru up to date with the
coding style guide

this process is divided up into a series of commits in order to make
review and testing more easy

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
Part-of: https://codeberg.org/gentoo/guru/pulls/6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
ingenarel (NeoJesus) authored and Michał Górny committed 2026-09-25 18:48:54 +02:00
1 parent 6481ca930b
commit b4ac684b69
1 file changed
+4 -3
@@ -16,7 +16,7 @@ NM1="${NM}-brand"
NM2="${NM}4"
NM3="${NM2}.$(ver_cut 2-3)"
FILEPATH="https://downloads.sourceforge.net/openofficeorg.mirror"
if [ "${ARCH}" = "amd64" ] ; then
if [[ "${ARCH}" == "amd64" ]] ; then
XARCH="x86_64"
else
XARCH="i586"
@@ -144,8 +144,9 @@ src_install() {
#Menu entries, icons and mime-types
cd "${ED}${INSTDIR}/share/xdg/" || die
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
if [ "${desk}" = "javafilter" ] ; then
use java || { rm javafilter.desktop; continue; }
if [[ "${desk}" == "javafilter" ]] && ! use java; then
rm javafilter.desktop || die "deleting file javafilter.desktop failed"
continue
fi
mv ${desk}.desktop ${NM}-${desk}.desktop || die
sed -i -e "s/${NM2} /ooffice /g" ${NM}-${desk}.desktop || die