Github messages for voidlinux
 help / color / mirror / Atom feed
From: gabriel-russo <gabriel-russo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: umlet-15
Date: Thu, 16 Jun 2022 17:19:32 +0200	[thread overview]
Message-ID: <20220616151932.whkJONqBhomr7q2bD7hO0u-gEih_XZTqRnjtp-NcWRU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37582@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]

There is an updated pull request by gabriel-russo against master on the void-packages repository

https://github.com/gabriel-russo/void-packages umlet
https://github.com/void-linux/void-packages/pull/37582

[WIP] New package: umlet-15
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)

ToDo: 
- Search for broken in different archs
- Template review/improve

A patch file from https://github.com/void-linux/void-packages/pull/37582.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-umlet-37582.patch --]
[-- Type: text/x-diff, Size: 1993 bytes --]

From 7199972492262ebf977f89ad6c54e7fd49eb7ee5 Mon Sep 17 00:00:00 2001
From: Gabriel Russo <gabrielrusso@protonmail.com>
Date: Thu, 16 Jun 2022 01:26:05 -0400
Subject: [PATCH] New package: umlet-15

---
 srcpkgs/umlet/template | 47 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 srcpkgs/umlet/template

diff --git a/srcpkgs/umlet/template b/srcpkgs/umlet/template
new file mode 100644
index 000000000000..0a13eee8531e
--- /dev/null
+++ b/srcpkgs/umlet/template
@@ -0,0 +1,47 @@
+# Template file for 'umlet'
+pkgname=umlet
+version=15
+revision=1
+wrksrc=${pkgname}-2022-04-26_UMLet_v${version}
+hostmakedepends="apache-maven unzip"
+depends="openjdk11"
+short_desc="Simple, text driven UML drawing tool"
+maintainer="Gabriel Russo <gabrielrusso@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://www.umlet.com/"
+distfiles="https://github.com/umlet/umlet/archive/refs/tags/2022-04-26_UMLet_v${version}.tar.gz"
+checksum=f9e31176d6068681bdc40a97bd67da28a85e5665bf0ba459f474915a77c904c1
+
+do_build() {
+	export MAVEN_OPTS="$MAVEN_OPTS -Duser.home=${wrksrc}"
+	mvn clean package -pl umlet-standalone -am -Dmaven.test.skip=true
+}
+
+pre_install() {
+	unzip umlet-standalone/target/umlet-standalone-${version}*.zip
+
+    # Fix umlet launcher to use freedesktop icon-theme-spec standard
+	vsed 's|img/umlet_logo\.png|umlet|' -i Umlet/umlet.desktop
+
+    # Fix Error: Unable to access jarfile umlet.jar
+	vsed 's|umlet\.jar|/usr/bin/umlet\.jar|' -i Umlet/umlet.desktop
+
+	rm -r Umlet/img
+	rm Umlet/*.exe
+
+	vmkdir usr/lib
+	vmkdir usr/bin
+}
+
+do_install() {
+	for _i in 16 20 24 32 40 48 64; do
+	    vmkdir usr/share/icons/hicolor/${_i}x${_i}/apps
+		vinstall umlet-standalone/target/classes/umlet_logo${_i}.png 644 usr/share/icons/hicolor/${_i}x${_i}/apps umlet.png
+	done
+
+	vinstall Umlet/umlet.desktop 644 usr/share/applications
+
+	vcopy Umlet/ usr/lib/
+
+	ln -s /usr/lib/Umlet/umlet.jar ${DESTDIR}/usr/bin/umlet.jar
+}

  reply	other threads:[~2022-06-16 15:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16  5:47 [PR PATCH] " gabriel-russo
2022-06-16 15:19 ` gabriel-russo [this message]
2022-09-15  2:17 ` github-actions
2022-09-15 12:17 ` [PR PATCH] [Closed]: " gabriel-russo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220616151932.whkJONqBhomr7q2bD7hO0u-gEih_XZTqRnjtp-NcWRU@z \
    --to=gabriel-russo@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).