From: abenson <abenson@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Ghidrathon-3.0.1
Date: Thu, 05 Oct 2023 16:09:45 +0200 [thread overview]
Message-ID: <20231005140945.hUFLrksXsPIGY8E9E2I86RdgBBJPdzGwQjdgCE-6x_A@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46447@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
There is an updated pull request by abenson against master on the void-packages repository
https://github.com/abenson/void-packages np_ghidrathon
https://github.com/void-linux/void-packages/pull/46447
New package: Ghidrathon-3.0.1
#### 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
A patch file from https://github.com/void-linux/void-packages/pull/46447.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-np_ghidrathon-46447.patch --]
[-- Type: text/x-diff, Size: 3399 bytes --]
From 99f5a8c9c75db57c1bef41aa3be1c2999c41b1cc Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Thu, 5 Oct 2023 07:23:31 -0500
Subject: [PATCH 1/2] New package: jep-4.1.1
---
srcpkgs/jep/template | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 srcpkgs/jep/template
diff --git a/srcpkgs/jep/template b/srcpkgs/jep/template
new file mode 100644
index 0000000000000..22dcc3a1dfc3e
--- /dev/null
+++ b/srcpkgs/jep/template
@@ -0,0 +1,21 @@
+# Template file for 'jep'
+pkgname=jep
+version=4.1.1
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools openjdk17"
+makedepends="python3-devel openjdk17"
+short_desc="Embed Python in Java"
+maintainer="Andrew Benson <abenson+void@gmail.com>"
+license="Zlib"
+homepage="https://github.com/ninia/jep"
+changelog="https://github.com/ninia/jep/releases"
+distfiles="https://github.com/ninia/jep/archive/v${version}.tar.gz"
+checksum=1ce29fbb40a168fa0803f4e325a790421d85262a179f90754395487171dbbb89
+
+export JAVA_HOME=/usr/lib/jvm/openjdk17
+export LDFLAGS=-L${XBPS_CROSS_BASE}/usr/lib/jvm/openjdk17/lib/server
+
+post_install() {
+ ln -sf jep.so ${DESTDIR}/${py3_sitelib}/jep/libjep.so
+}
From def4a8865eac76707baaaa9eec2e3ddea456edc3 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Thu, 5 Oct 2023 07:40:37 -0500
Subject: [PATCH 2/2] New package: Ghidrathon-3.0.1
---
srcpkgs/Ghidrathon/patches/dont-use-pip.patch | 10 ++++++++
srcpkgs/Ghidrathon/template | 24 +++++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 srcpkgs/Ghidrathon/patches/dont-use-pip.patch
create mode 100644 srcpkgs/Ghidrathon/template
diff --git a/srcpkgs/Ghidrathon/patches/dont-use-pip.patch b/srcpkgs/Ghidrathon/patches/dont-use-pip.patch
new file mode 100644
index 0000000000000..88fe8faa9d3ba
--- /dev/null
+++ b/srcpkgs/Ghidrathon/patches/dont-use-pip.patch
@@ -0,0 +1,10 @@
+--- a/build.gradle
++++ b/build.gradle
+@@ -42,7 +42,6 @@
+ // we need to copy the Jep native binaries built in installJep to our extension directory; we use a small
+ // utility script written in Python
+ task copyJepNativeBinaries(type: Exec) {
+- dependsOn installJep
+ workingDir "${projectDir}"
+ commandLine pythonBin, "util${File.separator}configure_jep_native_binaries.py"
+ }
diff --git a/srcpkgs/Ghidrathon/template b/srcpkgs/Ghidrathon/template
new file mode 100644
index 0000000000000..6e44507928635
--- /dev/null
+++ b/srcpkgs/Ghidrathon/template
@@ -0,0 +1,24 @@
+# Template file for 'Ghidrathon'
+pkgname=Ghidrathon
+version=3.0.1
+revision=1
+hostmakedepends="gradle openjdk17 unzip jep"
+makedepends="ghidra python3-devel"
+depends="ghidra jep"
+short_desc="Ghidra extension for Python3 support"
+maintainer="Andrew Benson <abenson+void@gmail.com>"
+license="Apache-2.0"
+homepage="https://github.com/mandiant/Ghidrathon"
+changelog="https://github.com/mandiant/Ghidrathon/releases"
+distfiles="https://github.com/mandiant/Ghidrathon/archive/v${version}.tar.gz"
+checksum=9173f489f4a91569b9b36cf2f78e6b88af2189d742e658829cb492250b238c1f
+nocross=yes # ghidra cannot be cross-compiled
+
+do_build() {
+ gradle -PGHIDRA_INSTALL_DIR=${XBPS_CROSS_BASE}/usr/libexec/ghidra
+}
+
+do_install() {
+ vmkdir usr/libexec/ghidra/Ghidra/Extensions
+ unzip dist/*Ghidrathon*.zip -d ${DESTDIR}/usr/libexec/ghidra/Ghidra/Extensions
+}
next prev parent reply other threads:[~2023-10-05 14:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 14:00 [PR PATCH] " abenson
2023-10-05 14:09 ` abenson [this message]
2023-11-04 11:56 ` [PR PATCH] [Merged]: " abenson
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=20231005140945.hUFLrksXsPIGY8E9E2I86RdgBBJPdzGwQjdgCE-6x_A@z \
--to=abenson@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).