Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidbert <voidbert@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: logisim-evolution-3.8.0
Date: Fri, 13 Jan 2023 16:27:27 +0100	[thread overview]
Message-ID: <20230113152727.BQeTFfYCzCYBO4OvyrQBCsp5PZZAFtYFJgsZVgHApwA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41603@inbox.vuxu.org>

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

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

https://github.com/voidbert/void-packages logisim-evolution
https://github.com/void-linux/void-packages/pull/41603

New package: logisim-evolution-3.8.0
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl



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

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

From a53fb80e2bf71bde0122b89349abf215593ba45f Mon Sep 17 00:00:00 2001
From: voidbert <50591320+voidbert@users.noreply.github.com>
Date: Thu, 12 Jan 2023 17:02:16 +0000
Subject: [PATCH] New package: logisim-evolution-3.8.0

---
 .../logisim-evolution/files/logisim-evolution |  6 ++++
 .../patches/desktop-entry.patch               | 25 +++++++++++++++
 srcpkgs/logisim-evolution/template            | 31 +++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/logisim-evolution/files/logisim-evolution
 create mode 100644 srcpkgs/logisim-evolution/patches/desktop-entry.patch
 create mode 100644 srcpkgs/logisim-evolution/template

diff --git a/srcpkgs/logisim-evolution/files/logisim-evolution b/srcpkgs/logisim-evolution/files/logisim-evolution
new file mode 100644
index 000000000000..1039e777fbba
--- /dev/null
+++ b/srcpkgs/logisim-evolution/files/logisim-evolution
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+export JAVA_HOME=/usr/lib/jvm/openjdk17
+$JAVA_HOME/bin/java -jar \
+	/usr/lib/@PKGNAME@/logisim-evolution-@VERSION@-all.jar $@
+
diff --git a/srcpkgs/logisim-evolution/patches/desktop-entry.patch b/srcpkgs/logisim-evolution/patches/desktop-entry.patch
new file mode 100644
index 000000000000..b9efff1f2c45
--- /dev/null
+++ b/srcpkgs/logisim-evolution/patches/desktop-entry.patch
@@ -0,0 +1,25 @@
+From 4bbbb9d2fecbc4f0b357ec2a7dd28da5f7698c54 Mon Sep 17 00:00:00 2001
+From: voidbert <humbertogilgomes@protonmail.com>
+Date: Fri, 13 Jan 2023 14:13:41 +0000
+Subject: [PATCH] Desktop entry update
+
+---
+ support/Flatpak/com.github.reds.LogisimEvolution.desktop | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/support/Flatpak/com.github.reds.LogisimEvolution.desktop b/support/Flatpak/com.github.reds.LogisimEvolution.desktop
+index 60a3521ac..312e80f35 100644
+--- a/support/Flatpak/com.github.reds.LogisimEvolution.desktop
++++ b/support/Flatpak/com.github.reds.LogisimEvolution.desktop
+@@ -2,7 +2,7 @@
+ Name=Logisim Evolution
+ GenericName=Logisim Logic Circuit Simulator
+ Comment=Digital Logic Circuit Simulator
+-Exec=LogisimEvolution.sh
++Exec=logisim-evolution
+ Icon=com.github.reds.LogisimEvolution
+ Terminal=false
+ Type=Application
+-- 
+2.39.0
+
diff --git a/srcpkgs/logisim-evolution/template b/srcpkgs/logisim-evolution/template
new file mode 100644
index 000000000000..b59cd3c71681
--- /dev/null
+++ b/srcpkgs/logisim-evolution/template
@@ -0,0 +1,31 @@
+# Template file for 'logisim-evolution'
+pkgname=logisim-evolution
+version=3.8.0
+revision=1
+hostmakedepends="openjdk17 gradle"
+depends="openjdk17-jre"
+short_desc="Digital logic design tool and simulator"
+maintainer="voidbert <humbertogilgomes@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/logisim-evolution/logisim-evolution"
+changelog="https://github.com/logisim-evolution/logisim-evolution/raw/master/CHANGES.md"
+distfiles="https://github.com/logisim-evolution/logisim-evolution/archive/refs/tags/v${version}.tar.gz"
+checksum=7a49558a490a0df886b3ea488f12e4ea887a2ec8c278872dca39b2bebfaed3ee
+
+do_build() {
+	export JAVA_HOME=/usr/lib/jvm/openjdk17
+	gradle --no-daemon shadowJar
+}
+
+do_install() {
+	vinstall build/libs/logisim-evolution-${version}-all.jar 0644 usr/lib/${pkgname}
+
+	vbin ${FILESDIR}/logisim-evolution
+	sed -i -e "s/@VERSION@/${version}/g" -e "s/@PKGNAME@/${pkgname}/g" \
+		${DESTDIR}/usr/bin/logisim-evolution
+
+	vinstall artwork/logisim-evolution-icon.svg 0644 \
+		usr/share/icons/hicolor/apps com.github.reds.LogisimEvolution.svg
+	vinstall support/Flatpak/com.github.reds.LogisimEvolution.desktop 0644 \
+		usr/share/applications
+}

  parent reply	other threads:[~2023-01-13 15:27 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12 17:03 [PR PATCH] " voidbert
2023-01-12 17:16 ` [PR REVIEW] " classabbyamp
2023-01-12 17:16 ` classabbyamp
2023-01-12 17:16 ` classabbyamp
2023-01-12 17:22 ` voidbert
2023-01-12 21:24 ` [PR PATCH] [Updated] " voidbert
2023-01-12 22:24 ` voidbert
2023-01-12 22:34 ` voidbert
2023-01-13  0:49 ` classabbyamp
2023-01-13  1:10 ` [PR REVIEW] " classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13  1:10 ` classabbyamp
2023-01-13 15:27 ` voidbert [this message]
2023-01-13 15:38 ` [PR PATCH] [Updated] " voidbert
2023-01-17 18:10 ` [PR REVIEW] " classabbyamp
2023-01-17 18:10 ` classabbyamp
2023-01-17 18:10 ` classabbyamp
2023-01-17 18:10 ` classabbyamp
2023-01-17 18:10 ` classabbyamp
2023-01-17 18:16 ` classabbyamp
2023-01-18 12:46 ` [PR PATCH] [Updated] " voidbert
2023-01-18 20:12 ` [PR REVIEW] " classabbyamp
2023-01-18 22:35 ` [PR PATCH] [Updated] " voidbert
2023-01-18 22:36 ` [PR REVIEW] " voidbert
2023-01-18 23:33 ` [PR PATCH] [Merged]: " classabbyamp

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=20230113152727.BQeTFfYCzCYBO4OvyrQBCsp5PZZAFtYFJgsZVgHApwA@z \
    --to=voidbert@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).