Skip to content

Commit

Permalink
add PlantUML plan
Browse files Browse the repository at this point in the history
  • Loading branch information
terhorstd committed Sep 10, 2023
1 parent 74dc68f commit ed320bb
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ split_ext() {
*.tar.xz) echo ".tar.xz" ;;
*.tgz) echo ".tgz" ;;
*.zip) echo ".zip" ;;
*.jar) echo ".jar" ;;
*) log_error "UNKNOWN EXTENSION OF FILE '$1'"; exit 1;
esac
}
Expand Down
50 changes: 50 additions & 0 deletions plans/plantuml/1.2023.10/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash
#
# Builder – Compile scripts for local installs of software packages.
# Copyright (C) 2020 Forschungszentrum Jülich GmbH, INM-6
#
# Builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Builder. If not, see <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
URL=https://github.com/plantuml/plantuml/releases/download/v${VERSION}/${PACKAGE}.jar
SHA256SUM=ee06454723028763dd8280459e8fd8f31fcd85b1ae8d9ab0e32122243c098c3b
#GPG_VERIFY_KEY=../plantuml-jar-signing-key.pub

source_prepare() {
log_status ">>> prepare source (from planfile)"
check_package_file
}

build_prepare() {
log_status ">>> nothing to build."
}

build_package() {
log_status ">>> nothing to build."
}

build_install() {
WRAPPER="${TARGET}/bin/plantuml"
log_info "Installing shell wrapper at ${WRAPPER}"
mkdir -pv ${TARGET}/bin
# wrapper similar to suggested by
# https://daniel-siepmann.de/posts/migrated/workflow-for-read-the-docs-sphinx-and-plantuml.html
cat >>"${WRAPPER}" <<EOT
#!/usr/bin/env sh -e
java -Djava.awt.headless=true -jar ${TARGET}/${PACKAGE}-${VERSION}.jar "\${@}"
EOT
chmod u+x "${WRAPPER}"
cp -v ${PACKAGE_FILE} ${TARGET}/${PACKAGE}-${VERSION}.jar
}
43 changes: 43 additions & 0 deletions plans/plantuml/1.2023.10/default.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#%Module1.0#####################################################################
#
# https://plantuml.com
#
# ${AUTOMATIC_BUILD_WARNING}
#

# Specific Settings ############################################################

set VERSION ${VERSION}
set SUFFIX -${VARIANT}
set INSTALLDIR ${TARGET}

set moduledir [file dirname \$ModulesCurrentModulefile]

# Common Setting ###############################################################
if [info exists version]==0 {
set version [file tail [module-info version [module-info name] ] ]
}

proc ModulesHelp { } {
global VERSION SUFFIX INSTALLDIR
puts stderr "================================================================================
PlantUML \$VERSION\$SUFFIX
================================================================================

Generate UML diagram from textual description.

PlantUML is a component that allows to quickly write: Sequence diagram, Use
case diagram, Class diagram, Object diagram, Activity diagram (here is the
legacy syntax), Component diagram, Deployment diagram, State diagram, Timing
diagram.

To know more about PlantUML, please visit https://plantuml.com/
"
}

module-whatis "PlantUML graphics library, version \$VERSION\$SUFFIX"

conflict ${PACKAGE}
${PREREQ_DEPENDS}

prepend-path PATH \$INSTALLDIR/bin
52 changes: 52 additions & 0 deletions plans/plantuml/plantuml-jar-signing-key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGGyShgBEADzVz7BjNtS9oBTbLBKOlrcM83A0C0fZ0demBRBTt/Vni/c6ZXO
Jnrkc+YdEBYERahYQjm9opGJE5sEvNpepybeGkBtuUwNPN8xtA+tbyg4oWfPxUSX
cSp9J2HuYVr9InVY5rYarTzYUz5rOB2sX+8p9VdiKN96yxldgrHcVggGJdY+EVz0
JpY7ha41bnSRSgzM0OKd09qGxScjW5+TQkUw1MtjC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