Github messages for voidlinux
 help / color / mirror / Atom feed
From: sirkhancision <sirkhancision@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: omegat-4.3.3
Date: Sun, 04 Dec 2022 05:14:45 +0100	[thread overview]
Message-ID: <20221204041445.zwh37gtVjeR-ZzlL060K1Z2DozX27XIzFXOXWbpGBRs@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40500@inbox.vuxu.org>

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

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

https://github.com/sirkhancision/void-packages omegat
https://github.com/void-linux/void-packages/pull/40500

New package: omegat-4.3.3
Hello, this is my first contribution to void-packages, so forgive me if there's anything weird. :)

#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures:
  - x86_64-musl
  - armv6l-glibc
  - armv6l-musl
  - i686-glibc


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

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

From d0ea83f3395bbde4a2874c4ae8e3176a5057f462 Mon Sep 17 00:00:00 2001
From: Jorge Santiago <jsantiago12tone@gmail.com>
Date: Sun, 13 Nov 2022 04:08:30 -0300
Subject: [PATCH] New package: omegat-4.3.3

---
 srcpkgs/omegat/files/omegat.desktop |  9 +++++++
 srcpkgs/omegat/files/omegat.sh      |  3 +++
 srcpkgs/omegat/template             | 40 +++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+)
 create mode 100644 srcpkgs/omegat/files/omegat.desktop
 create mode 100644 srcpkgs/omegat/files/omegat.sh
 create mode 100644 srcpkgs/omegat/template

diff --git a/srcpkgs/omegat/files/omegat.desktop b/srcpkgs/omegat/files/omegat.desktop
new file mode 100644
index 000000000000..dba53a01fbfb
--- /dev/null
+++ b/srcpkgs/omegat/files/omegat.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=OmegaT
+GenericName=OmegaT
+Exec=omegat
+Type=Application
+Comment=Multiplatform CAT application
+Terminal=false
+Categories=Development;Translation;Java;
+Icon=omegat
diff --git a/srcpkgs/omegat/files/omegat.sh b/srcpkgs/omegat/files/omegat.sh
new file mode 100644
index 000000000000..8e1080fa8e4f
--- /dev/null
+++ b/srcpkgs/omegat/files/omegat.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/omegat/ || exit 1
+java -jar -Xmx1024M OmegaT.jar "$@"
diff --git a/srcpkgs/omegat/template b/srcpkgs/omegat/template
new file mode 100644
index 000000000000..12f21a20d110
--- /dev/null
+++ b/srcpkgs/omegat/template
@@ -0,0 +1,40 @@
+# Template file for 'omegat'
+pkgname=omegat
+version=4.3.3
+revision=1
+hostmakedepends="openjdk8"
+depends="virtual?java-runtime"
+short_desc="Multiplatform CAT application"
+maintainer="Jorge Santiago <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://omegat.org/"
+distfiles="https://sourceforge.net/projects/omegat/files/OmegaT%20-%20Standard/OmegaT%20${version}/OmegaT_${version}_Source.zip"
+checksum=3cb39c9357aefe6efb274e1ee56f1ece57141b73a40a2416a7b405a6c8123184
+
+do_build() {
+	JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk ./gradlew -x test installDist
+}
+
+do_install() {
+	OMEGATDIR=opt/omegat
+
+	cd build/install/OmegaT
+	vmkdir "${OMEGATDIR}"
+
+	vcopy images "${OMEGATDIR}"
+	vcopy lib "${OMEGATDIR}"
+	vcopy plugins "${OMEGATDIR}"
+	vcopy scripts "${OMEGATDIR}"
+
+	vinstall OmegaT.jar 644 "${OMEGATDIR}"
+	vbin "${FILESDIR}/omegat.sh" omegat
+	vinstall images/OmegaT.svg 644 usr/share/pixmaps omegat.svg
+	vinstall "${FILESDIR}/omegat.desktop" 644 usr/share/applications
+
+	for file in *.txt; do
+		if [[ $file == *"license"* ]]; then
+			continue
+		fi
+		vdoc "$file"
+	done
+}

  parent reply	other threads:[~2022-12-04  4:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-13  8:06 [PR PATCH] " sirkhancision
2022-11-13  8:14 ` [PR REVIEW] " classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13  8:14 ` classabbyamp
2022-11-13 19:51 ` [PR PATCH] [Updated] " sirkhancision
2022-11-13 19:55 ` sirkhancision
2022-11-14  4:40 ` [PR PATCH] [Updated] " sirkhancision
2022-11-14  4:43 ` sirkhancision
2022-11-14 22:18 ` [PR REVIEW] " classabbyamp
2022-11-14 22:18 ` classabbyamp
2022-11-14 22:18 ` classabbyamp
2022-11-15  0:52 ` sirkhancision
2022-11-15  0:53 ` classabbyamp
2022-11-15  4:14 ` [PR PATCH] [Updated] " sirkhancision
2022-11-15  4:15 ` [PR REVIEW] " sirkhancision
2022-11-15  4:17 ` sirkhancision
2022-11-15  4:18 ` sirkhancision
2022-11-15 17:58 ` sirkhancision
2022-12-04  4:14 ` sirkhancision [this message]
2022-12-04  4:16 ` [PR PATCH] [Updated] " sirkhancision
2022-12-06 19:45 ` sirkhancision
2023-03-07  2:07 ` github-actions
2023-03-22  1:54 ` [PR PATCH] [Closed]: " github-actions

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=20221204041445.zwh37gtVjeR-ZzlL060K1Z2DozX27XIzFXOXWbpGBRs@z \
    --to=sirkhancision@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).