From nobody Mon Nov 06 11:03:27 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SP7kS1RbVz50KFq; Mon, 6 Nov 2023 11:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SP7kS0yVNz4Ypy; Mon, 6 Nov 2023 11:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699268608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M11pLlvl7/r3KQ96mSZotZF2ci9RJABtZBv0OH8oyIQ=; b=G99WHKycwsD6ar18pMquCVBmanH/Zil/M4Xsk7HN8U2ENOv+UTxO442H715AS9fnBYMsfx LvA2uVwAE7XI6qRIP36D2zmVbExyy+gUyDsBk3a+z1vgPCwIhWuiml2OHf3uXeKFwbZMs+ oxsH0q4uJ3+kDHwFoXNHaMswkQS8e61Rxh5NAKTb19bl9BKcf5e/a12WIn4Oir+GWAoo5T 5MWHiTRLkHyRrpsNEKl/hZ5YZc1sfj68X12e3FkuEbYXxxQu8ycklkuGyYfW3POfXbLRsw fU88OUAoV9uSik6vSJ5idu6TlzxjR/7CGVIV3f3ix/zvo7af6/Ak2RLxEmApPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699268608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M11pLlvl7/r3KQ96mSZotZF2ci9RJABtZBv0OH8oyIQ=; b=buLRTbFcdUgYEq8hwz4Q/a16OtPXGx5dYa9jjwx4qaMoZvUlOeeWAn0IKu9t/HVSd8tFxr qkXXXoGhEamkqvoPLSFDXMaIpQ2jitJd9WiGbbqK3QOj8x882bNqZd4Lah4rfI7NuVhfVT /P5BjGt6txzNoGhKMZEmPEUIMRT5gjd8QW5SAUi7wY0fUMO27YfNhGyZ1y0iX+L7n09jpK PEMbNYKhnfJo6lXfZGX98BujSluvTUfsziVIhSsczWc50FTO8FZ4O0jDDAZh+Rc49aEynh 0rF2z878ccZ22yDv5U9SEAdswEZ01TwswigcoJrn9HRiXqhnrznLZSZUHCp6CA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699268608; a=rsa-sha256; cv=none; b=pmgKVk1ZROki1AOUZGa+9pWLsH5KOhlRAxg+M+8V2Hx7HxV8Z1ddCy02L0POQYRmnTvuPl Jlft8UQ6nfZmUEntP1cWD69dZo5ajve+l5EGzwEMsN9T+mLVGE7NecLv3dXfJzBiDv70N7 NuyrmNHjNBbMPK3X8J0P15k/J66FPBUmbPVq0K+OQGvAPnhy/MFqStAMS12rxFds6KIozA ySpoJlHqpU5RN2AydLNfdfNI7Jo6Vlhwj9HdbAFN56bYEP9Gs+EBLekkYMPlyUgM+PYnlS svcqft/H3cW3jSHi33dTMGdOy/s+LCcTcH1UBbSZXQwhm2eKD5/JrYC1N+JOpA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SP7kS02cwz14mY; Mon, 6 Nov 2023 11:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A6B3RRU089887; Mon, 6 Nov 2023 11:03:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A6B3ReH089884; Mon, 6 Nov 2023 11:03:27 GMT (envelope-from git) Date: Mon, 6 Nov 2023 11:03:27 GMT Message-Id: <202311061103.3A6B3ReH089884@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 9aa335cb8f1b - main - graphics/drawio: + Diagramming and whiteboarding desktop app List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9aa335cb8f1b9b7d13d998bde804d3a352af2a4f Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=9aa335cb8f1b9b7d13d998bde804d3a352af2a4f commit 9aa335cb8f1b9b7d13d998bde804d3a352af2a4f Author: Alexey Yushkin <636808@mail.ru> AuthorDate: 2023-10-27 17:08:37 +0000 Commit: Gleb Popov CommitDate: 2023-11-06 11:02:22 +0000 graphics/drawio: + Diagramming and whiteboarding desktop app Co-authored-by: Alexey Donskov Sponsored by: Serenity Cybersecurity, LLC --- graphics/Makefile | 1 + graphics/drawio/Makefile | 27 +++++++ graphics/drawio/distinfo | 3 + graphics/drawio/files/drawio.in | 8 ++ .../patch-usr_share_applications_drawio.desktop | 10 +++ graphics/drawio/pkg-descr | 2 + graphics/drawio/pkg-plist | 89 ++++++++++++++++++++++ 7 files changed, 140 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 2b8fe6e949c8..d23b9d13787c 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -143,6 +143,7 @@ SUBDIR += djvulibre SUBDIR += dmtx-utils SUBDIR += drawing + SUBDIR += drawio SUBDIR += drawpile SUBDIR += drm-510-kmod SUBDIR += drm-515-kmod diff --git a/graphics/drawio/Makefile b/graphics/drawio/Makefile new file mode 100644 index 000000000000..561a3f7de435 --- /dev/null +++ b/graphics/drawio/Makefile @@ -0,0 +1,27 @@ +PORTNAME= drawio +PORTVERSION= 22.0.3 +DISTVERSIONPREFIX= x86_64- +CATEGORIES= graphics +MASTER_SITES= https://github.com/jgraph/drawio-desktop/releases/download/v${PORTVERSION}/ +EXTRACT_SUFX= .rpm + +MAINTAINER= 636808@mail.ru +COMMENT= Diagramming and whiteboarding desktop app +WWW= https://drawio.com/ + +LICENSE= APACHE20 + +USES= desktop-file-utils electronfix:25 shared-mime-info + +ELECTRONFIX_MAIN_EXECUTABLE= drawio +SUB_FILES= drawio +NO_WRKSUBDIR= yes +NO_BUILD= yes + +do-install: + cd ${WRKSRC}/opt/ && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/share + cd ${WRKSRC}/usr/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${FIND} ${STAGEDIR}${PREFIX} -name '*.orig' -delete + +.include diff --git a/graphics/drawio/distinfo b/graphics/drawio/distinfo new file mode 100644 index 000000000000..794e531faa18 --- /dev/null +++ b/graphics/drawio/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1698402619 +SHA256 (drawio-x86_64-22.0.3.rpm) = 2c19909a99510da7722913305d8abe3c674a13b8823dc7ab8fb67c4d3d9670bb +SIZE (drawio-x86_64-22.0.3.rpm) = 107585929 diff --git a/graphics/drawio/files/drawio.in b/graphics/drawio/files/drawio.in new file mode 100644 index 000000000000..778634eb81e6 --- /dev/null +++ b/graphics/drawio/files/drawio.in @@ -0,0 +1,8 @@ +#!/bin/sh + +# workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234 +if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then + export DBUS_SESSION_BUS_ADDRESS="autolaunch:" +fi + +exec %%DATADIR%%/drawio "$@" diff --git a/graphics/drawio/files/patch-usr_share_applications_drawio.desktop b/graphics/drawio/files/patch-usr_share_applications_drawio.desktop new file mode 100644 index 000000000000..4bbe2db0a154 --- /dev/null +++ b/graphics/drawio/files/patch-usr_share_applications_drawio.desktop @@ -0,0 +1,10 @@ +--- usr/share/applications/drawio.desktop.orig 2023-10-16 17:30:53 UTC ++++ usr/share/applications/drawio.desktop +@@ -1,6 +1,6 @@ Name=drawio + [Desktop Entry] + Name=drawio +-Exec=/opt/drawio/drawio %U ++Exec=drawio %U + Terminal=false + Type=Application + Icon=drawio diff --git a/graphics/drawio/pkg-descr b/graphics/drawio/pkg-descr new file mode 100644 index 000000000000..ce998feee123 --- /dev/null +++ b/graphics/drawio/pkg-descr @@ -0,0 +1,2 @@ +Drawio-desktop is a diagramming and whiteboarding desktop app based on Electron +that wraps the core draw.io editor. diff --git a/graphics/drawio/pkg-plist b/graphics/drawio/pkg-plist new file mode 100644 index 000000000000..4f41c42e11b8 --- /dev/null +++ b/graphics/drawio/pkg-plist @@ -0,0 +1,89 @@ +bin/drawio +share/applications/drawio.desktop +%%DATADIR%%/LICENSE.electron.txt +%%DATADIR%%/LICENSES.chromium.html +%%DATADIR%%/chrome_100_percent.pak +%%DATADIR%%/chrome_200_percent.pak +%%DATADIR%%/chrome_crashpad_handler +%%DATADIR%%/chromedriver +%%DATADIR%%/drawio +%%DATADIR%%/icudtl.dat +%%DATADIR%%/libEGL.so +%%DATADIR%%/libGLESv2.so +%%DATADIR%%/libffmpeg.so +%%DATADIR%%/libvk_swiftshader.so +%%DATADIR%%/libvulkan.so +%%DATADIR%%/locales/af.pak +%%DATADIR%%/locales/am.pak +%%DATADIR%%/locales/ar.pak +%%DATADIR%%/locales/bg.pak +%%DATADIR%%/locales/bn.pak +%%DATADIR%%/locales/ca.pak +%%DATADIR%%/locales/cs.pak +%%DATADIR%%/locales/da.pak +%%DATADIR%%/locales/de.pak +%%DATADIR%%/locales/el.pak +%%DATADIR%%/locales/en-GB.pak +%%DATADIR%%/locales/en-US.pak +%%DATADIR%%/locales/es-419.pak +%%DATADIR%%/locales/es.pak +%%DATADIR%%/locales/et.pak +%%DATADIR%%/locales/fa.pak +%%DATADIR%%/locales/fi.pak +%%DATADIR%%/locales/fil.pak +%%DATADIR%%/locales/fr.pak +%%DATADIR%%/locales/gu.pak +%%DATADIR%%/locales/he.pak +%%DATADIR%%/locales/hi.pak +%%DATADIR%%/locales/hr.pak +%%DATADIR%%/locales/hu.pak +%%DATADIR%%/locales/id.pak +%%DATADIR%%/locales/it.pak +%%DATADIR%%/locales/ja.pak +%%DATADIR%%/locales/kn.pak +%%DATADIR%%/locales/ko.pak +%%DATADIR%%/locales/lt.pak +%%DATADIR%%/locales/lv.pak +%%DATADIR%%/locales/ml.pak +%%DATADIR%%/locales/mr.pak +%%DATADIR%%/locales/ms.pak +%%DATADIR%%/locales/nb.pak +%%DATADIR%%/locales/nl.pak +%%DATADIR%%/locales/pl.pak +%%DATADIR%%/locales/pt-BR.pak +%%DATADIR%%/locales/pt-PT.pak +%%DATADIR%%/locales/ro.pak +%%DATADIR%%/locales/ru.pak +%%DATADIR%%/locales/sk.pak +%%DATADIR%%/locales/sl.pak +%%DATADIR%%/locales/sr.pak +%%DATADIR%%/locales/sv.pak +%%DATADIR%%/locales/sw.pak +%%DATADIR%%/locales/ta.pak +%%DATADIR%%/locales/te.pak +%%DATADIR%%/locales/th.pak +%%DATADIR%%/locales/tr.pak +%%DATADIR%%/locales/uk.pak +%%DATADIR%%/locales/ur.pak +%%DATADIR%%/locales/vi.pak +%%DATADIR%%/locales/zh-CN.pak +%%DATADIR%%/locales/zh-TW.pak +%%DATADIR%%/resources.pak +%%DATADIR%%/resources/app-update.yml +%%DATADIR%%/resources/app.asar +%%DATADIR%%/resources/package-type +%%DATADIR%%/snapshot_blob.bin +%%DATADIR%%/v8_context_snapshot.bin +%%DATADIR%%/vk_swiftshader_icd.json +share/icons/hicolor/1024x1024/apps/drawio.png +share/icons/hicolor/128x128/apps/drawio.png +share/icons/hicolor/16x16/apps/drawio.png +share/icons/hicolor/192x192/apps/drawio.png +share/icons/hicolor/256x256/apps/drawio.png +share/icons/hicolor/32x32/apps/drawio.png +share/icons/hicolor/48x48/apps/drawio.png +share/icons/hicolor/512x512/apps/drawio.png +share/icons/hicolor/64x64/apps/drawio.png +share/icons/hicolor/720x720/apps/drawio.png +share/icons/hicolor/96x96/apps/drawio.png +share/mime/packages/drawio.xml