mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
app-office/drawio-desktop-bin: drop 25.0.2, drop 27.7.17, add 29.6.6
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com> Merges: https://codeberg.org/gentoo/gentoo/pulls/522 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
committed by
Arthur Zamarin
parent
2437154136
commit
0a49f2ff53
@@ -1,7 +1,5 @@
|
||||
DIST drawio-desktop-bin-amd64-24.7.17.deb 99145854 BLAKE2B 1979ea365b2d9cfc34fc7146bb76fd0469f85b17aa9a56c6a8081748910075365bc7c4d499ecbb96111c5a72cdafd2ee044ff01c22d1f5af39d6dd6b04ba3135 SHA512 124d8933d1f887cf3238b0c27cab23f349a717eb0fabfe6a2374f669f254c2268d4089cc03ad6880861ad3e416c51e686d72403c2cae7ca26aa7e18c1e181436
|
||||
DIST drawio-desktop-bin-amd64-25.0.2.deb 99553202 BLAKE2B f1ca16fa1a5c3fd2deaec65c343dae74eda2d212b108e6dc4c57261f41bd373b47c234ef189939f5ec72dbea1a2ca7e2b480c0c567440fa9f7bf058016928511 SHA512 0ed69ebb6d7dc6866c704e3741f6f66668d978cff8fdc9a96268903cab5592972d9ae6323c85f5a72d17eeae495adff71dd4ecfc84e82941bbbc78294fd75f64
|
||||
DIST drawio-desktop-bin-amd64-26.2.2.deb 101686194 BLAKE2B ef213d8c37df9dc01bdbf22e039b1313f736185384d3fae63adfe5e0b546bda8173942dc20d8b9df111a7e2fa728c52659cf85e66c553e5209a9343ad8471ab0 SHA512 606afcfc02670759cccf77b2ffd20d9d34ea76d40dddb6a447a82ed90d2880cf61beda6674b2a155e4dc75cdb412aa57e3a6d2987dc70debe060ef1f1a7d6f5a
|
||||
DIST drawio-desktop-bin-arm64-24.7.17.deb 94358472 BLAKE2B 4dee7b066fcb72667bfefe340514f3ae09a592442c75f53ad2e451920ff8225463ffb87d64a876c093a128347610cd04f504ca69286568a565b473e2e0c1197a SHA512 7b26b76e7362b97b6233e7471feb0576f9420e1dfe135b682106356d81285d3e5b62ee93256684b0764dc6842551f04fe8f86e065f65872f23da0f7c11f5b70e
|
||||
DIST drawio-desktop-bin-arm64-25.0.2.deb 94887660 BLAKE2B a7d565f46b71448a73243e3b689fe32a121cf465edf8e4885856958f6751a1ecfae1b2fcabe04285d9a9f0f71d0094eaf414f72ea7b8df4a8ead706934da530a SHA512 0d70b011802abd8f3840f4b391fa94c32bfafbe26f5951c0d305d459f0c14b51023fae8b9f09a95b1b259d578ca8395373a6f65a8aa4cfd568248d7fa3ab8883
|
||||
DIST drawio-desktop-bin-amd64-29.6.6.deb 126189560 BLAKE2B 253336602dc681dbd65c627ed9328e73cb429ab275ab476c79332526a97afa20336c0e6c1992e543d3f4318f939a3b08e5dcd40ae3683a32d85d2f7fe8dbc2d3 SHA512 398a35f9f0460212ceadcde193d9a37ddb2ab372345647c1154ca1349e04bd1a8062ce65bfa2a76847f871e0be3370a33598273d62325c32151910fcc580a553
|
||||
DIST drawio-desktop-bin-arm64-26.2.2.deb 96836886 BLAKE2B 87a1266c21cfa208856506d6ea9681047bfd81de75028d1652fe883bbcba495ec055c0add8b1c90982f35d15399b06b0fceaec9fa99ec83e96cd45af3921f947 SHA512 31cb0aece583549903df87104662ca2b36871cfd1d2763c77391db4f8820956c1bc73541a1aa22e4d6b7040db63600a23ca673b3706f736321a5a42f3c688def
|
||||
DIST drawio-desktop-bin-arm64-29.6.6.deb 121087960 BLAKE2B c6770384a7f16f30991999e5030c90076ff9eb372fdf21549c9b60d6d029ec09025d1392fd5295e4063b341a4034878b16437995b2bce23168907609320eb930 SHA512 b25bc090477e992455a59aaf6510b05cf5a7affdd5d0fa0f22c3f772b337ec5ae0db428378477409ce2e39a0cc31eae9cdc511bd1c35c72467aacd863c675b0d
|
||||
DIST drawio-icon.svg 1194 BLAKE2B 624a024e95ff1a68ac298b64d0e633f46411f7ec142d8b2a7d639c7e6a66a1f7c695f67b28a64e323ec1dea36ec4d657e2ee9119cd58f1c84f0d9cb9b5d9755d SHA512 ce010d61c5de3322d4e3c66c87ae199b7d15e68ee7253078f001eccb3b725c0290426978cfd81a4d06276b8b50ea8bd650213a50eb72432451afe536790eb39e
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CHROMIUM_LANGS="
|
||||
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he
|
||||
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
|
||||
sv sw ta te th tr uk ur vi zh-CN zh-TW
|
||||
"
|
||||
|
||||
inherit chromium-2 desktop unpacker xdg
|
||||
|
||||
DESCRIPTION="draw.io diagramming and whiteboarding desktop app"
|
||||
HOMEPAGE="https://www.drawio.com/"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( https://github.com/jgraph/drawio-desktop/releases/download/v${PV}/drawio-amd64-${PV}.deb
|
||||
-> ${PN}-amd64-${PV}.deb )
|
||||
arm64? ( https://github.com/jgraph/drawio-desktop/releases/download/v${PV}/drawio-arm64-${PV}.deb
|
||||
-> ${PN}-arm64-${PV}.deb )
|
||||
https://raw.githubusercontent.com/jgraph/drawio-desktop/3fee9d732fc8b78b2886e042262df8bda8ef6ba5/build/icon.svg
|
||||
-> drawio-icon.svg
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
# These are the licenses used by node_modules packages, drawio and drawio-desktop repositories
|
||||
LICENSE="
|
||||
0BSD Apache-2.0 BSD BSD-2 CC0-1.0 GPL-2 ISC PYTHON WTFPL-2 MIT ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="-* amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
>=dev-libs/nss-3
|
||||
media-libs/alsa-lib
|
||||
media-libs/mesa
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
sys-libs/glibc
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/libXrandr
|
||||
x11-libs/pango
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/drawio/*"
|
||||
|
||||
pkg_pretend() {
|
||||
chromium_suid_sandbox_check_kernel_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# cleanup languages
|
||||
pushd "opt/drawio/locales" > /dev/null || die
|
||||
chromium_remove_language_paks
|
||||
popd > /dev/null || die
|
||||
|
||||
#Fix mimetype
|
||||
sed -i \
|
||||
-e 's*<icon name="x-office-document" />*<icon name="application-vnd.jgraph.mxfile"/>*g' \
|
||||
-e '4 i <sub-class-of type="text/xml"/>' \
|
||||
"usr/share/mime/packages/drawio.xml" || die "couldn't modify drawio.xml"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local destdir="/opt/drawio"
|
||||
|
||||
# Copy icons
|
||||
local IC_SIZE
|
||||
for IC_SIZE in 16 32 48 64 96 128 192 256 512 1024
|
||||
do
|
||||
newicon -s "${IC_SIZE}" "usr/share/icons/hicolor/${IC_SIZE}x${IC_SIZE}/apps/drawio.png" drawio.png
|
||||
newicon -s "${IC_SIZE}" -c mimetypes "usr/share/icons/hicolor/${IC_SIZE}x${IC_SIZE}/apps/drawio.png" \
|
||||
application-vnd.jgraph.mxfile.png
|
||||
done
|
||||
newicon -s scalable "${DISTDIR}/drawio-icon.svg" drawio.svg
|
||||
newicon -s scalable -c mimetypes "${DISTDIR}/drawio-icon.svg" application-vnd.jgraph.mxfile.svg
|
||||
|
||||
# Create a desktop entry and associate it with the drawio mime type
|
||||
domenu usr/share/applications/drawio.desktop
|
||||
|
||||
# MIME descriptor for .drawio and .vsdx files
|
||||
insinto /usr/share/mime/packages
|
||||
doins "usr/share/mime/packages/drawio.xml"
|
||||
|
||||
exeinto "${destdir}"
|
||||
doexe opt/drawio/chrome-sandbox opt/drawio/chrome_crashpad_handler opt/drawio/drawio opt/drawio/*.so*
|
||||
|
||||
insinto "${destdir}"
|
||||
insopts -m0644
|
||||
doins opt/drawio/*.pak opt/drawio/*.bin opt/drawio/*.json opt/drawio/*.dat
|
||||
insopts -m0755
|
||||
doins -r opt/drawio/locales opt/drawio/resources
|
||||
|
||||
dosym "${destdir}"/drawio /usr/bin/drawio
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -30,7 +30,7 @@ LICENSE="
|
||||
"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="-* amd64"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
Reference in New Issue
Block a user