<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bf3cc376ce1aa94ea89f2bc058618c9b03bbcff9">https://github.com/macports/macports-ports/commit/bf3cc376ce1aa94ea89f2bc058618c9b03bbcff9</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new bf3cc376ce1 plantuml: Update to 1.2021.5
</span>bf3cc376ce1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bf3cc376ce1aa94ea89f2bc058618c9b03bbcff9
</span>Author: Vadim-Valdis Yudaev <judaew@outlook.de>
AuthorDate: Tue May 4 22:34:51 2021 +0300
<span style='display:block; white-space:pre;color:#404040;'> plantuml: Update to 1.2021.5
</span>---
java/plantuml/Portfile | 12 +-
.../files/patch-add-missing-svg-folder.diff | 136 +++++++++++++++++++++
2 files changed, 144 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/plantuml/Portfile b/java/plantuml/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 06980ed55de..27ad9bf14f0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/plantuml/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/plantuml/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup github 1.0
PortGroup java 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup plantuml plantuml 1.2021.4 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup plantuml plantuml 1.2021.5 v
</span> revision 0
categories java editors
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,9 +16,9 @@ description PlantUML is a tool for generating UML diagrams from text
</span> long_description ${description}
homepage http://plantuml.com/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 4873eae0a3f2749f0d7d9a05de22de01302dbf43 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 6609430326545746aaf1b65a991bfe89155967002447d6113762e106e1671cdd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 4678738
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 37c4b094dd2c4add672e683a3773c6d109081489 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 95348ce62e32d50539f81603b9424ee7f82ddfd93c8ec8607150774a01f26c1f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4704854
</span>
depends_build bin:ant:apache-ant
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,6 +37,10 @@ post-extract {
</span> copy ${filespath}/${name}.in ${worksrcpath}/${name}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Change is already in master, remove the patch in next version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# See https://github.com/plantuml/plantuml/issues/545
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-add-missing-svg-folder.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
reinplace "s|__PLANTUML_LAUNCHER_PATH__|${prefix}/share/java/${jarname}|g" \
${worksrcpath}/${name}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/plantuml/files/patch-add-missing-svg-folder.diff b/java/plantuml/files/patch-add-missing-svg-folder.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d62c522e951
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/plantuml/files/patch-add-missing-svg-folder.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,136 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Arnaud Roques <plantuml@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sun, 2 May 2021 12:12:46 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Add missing SVG folder
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ svg/default.css | 3 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ svg/default.js | 110 ++++++++++++++++++++++++++++++++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 113 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100644 svg/default.css
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100644 svg/default.js
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git svg/default.css.orig svg/default.css
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ svg/default.css
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++.elem {cursor: pointer;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++.elem, .link {opacity: 0.3;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++.elem.selected, .link.selected {opacity: 1;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\ No newline at end of file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git svg/default.js.orig svg/default.js
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ svg/default.js
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,110 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function addItemToMapOfLists(mapOfLists, name, item) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // mapOfLists = {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // 'key1': [item1, item2, ...],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // 'key2': [item3, item4, ...],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (mapOfLists[name].length > 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (!mapOfLists[name].includes(item)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ mapOfLists[name].push(item);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ mapOfLists[name] = [item];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function main() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let elems = Array.from(document.getElementsByClassName('elem'));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let links = Array.from(document.getElementsByClassName('link'));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let elemsMap = {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let linkedElems = {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let linkedLinks = {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elems.forEach(elem => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let name = elem.classList[1];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elemsMap[name] = elem;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedElems[name] = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedLinks[name] = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ links.forEach(link => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let name1 = link.classList[1];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let name2 = link.classList[2];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (elemsMap[name1]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (elemsMap[name2]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let elem1 = elemsMap[name1];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let elem2 = elemsMap[name2];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ addItemToMapOfLists(linkedElems, name1, elem2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ addItemToMapOfLists(linkedElems, name2, elem1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ addItemToMapOfLists(linkedLinks, name1, link);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ addItemToMapOfLists(linkedLinks, name2, link);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let selectedElems = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let selectedLinks = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ let selectedElemName = null;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ function clearSelected() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems.forEach(item => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ item.classList.remove('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedLinks.forEach(item => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ item.classList.remove('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedLinks = [];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ function selectAll() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElemName = null;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems = Array.from(elems);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems.forEach(item => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ item.classList.add('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedLinks = Array.from(links);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedLinks.forEach(item => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ item.classList.add('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ function selectElem(elemName) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (elemName === selectedElemName) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectAll();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ clearSelected();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElemName = elemName;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elemsMap[elemName].classList.add('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems.push(elemsMap[elemName]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedElems[elemName].forEach(linkedElem => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedElems.push(linkedElem);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedElem.classList.add('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedLinks[elemName].forEach(linkedLink => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectedLinks.push(linkedLink);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ linkedLink.classList.add('selected');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ Object.keys(elemsMap).forEach(name => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elemsMap[name].onclick = () => { selectElem(name); };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ selectAll();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++document.addEventListener('DOMContentLoaded', (event) => {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ main();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++});
</span></pre><pre style='margin:0'>
</pre>