From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: KeenWrite 2.0
Date: Tue, 11 May 2021 14:57:47 -0000 (UTC) [thread overview]
Message-ID: <s7e61a$11mu$1@ciao.gmane.io> (raw)
In-Reply-To: <CAANrE7qWZbfWG-T5cq8-Ri5N-_rKbKtULGj+QSHp4o15V7CF1g@mail.gmail.com>
On 2021-05-10, Thangalin <thangalin@gmail.com> wrote:
> Happy to announce that invoking ConTeXt from KeenWrite is now possible.
Cool. To make it easier to install in macOS, I have quickly cooked a
couple of Homebrew formulas (see below). Use like this:
cd <directory containing the scripts>
brew install ./zulufx16.rb
brew install ./keenwrite.rb
keenwrite
Nicola
############################################################
# Save as zulufx16.rb
############################################################
cask "zulufx16" do
version "16.0.1,16.30.15-ca"
if Hardware::CPU.intel?
sha256 "cbb3b96d80a0675893f21dc51ba3f532049c501bd7dc4c8d1ee930e63032c745"
url "https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_x64.tar.gz",
referer: "https://www.azul.com/downloads/zulu/zulu-mac/"
else
sha256 "6b66194ee69ac0abc28a6fb00cad37fc29a8b5085776cfbaeebf4a600b03a16e"
url "https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_aarch64.tar.gz",
referer: "https://www.azul.com/downloads/zulu/zulu-mac/"
end
name "ZuluFX 16"
desc "Azul Zulu Java 16 Standard Edition Development Kit"
homepage "https://www.azul.com/downloads/zulu/zulu-mac/"
depends_on macos: ">= :yosemite"
artifact "zulu16.30.15-ca-fx-jdk16.0.1-macosx_x64/zulu-16.jdk", target: "/Library/Java/JavaVirtualMachines/zulu-16.jdk"
zap delete: "/Library/Java/JavaVirtualMachines/zulu-16.jdk"
end
############################################################
############################################################
# Save as keenwrite.rb
############################################################
class Zulufx16Requirement < Requirement
fatal true
satisfy(build_env: false) { Dir.exist?("/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home") }
def message
<<~EOS
Execute `brew install --cask zulufx16` before installing Keenwrite.
EOS
end
end
class Keenwrite < Formula
desc "Java-based desktop text editor with live preview, string interpolation, and formulas"
homepage "https://github.com/DaveJarvis/keenwrite"
url "https://github.com/DaveJarvis/keenwrite/releases/download/2.0.0/keenwrite.jar"
version "2.0.0"
sha256 "259743af0728502e89abac043973ef5c213573183ba71ba93accb2a330f0e7a8"
head "https://github.com/DaveJarvis/keenwrite.git"
def install
java_home = "/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home"
ENV["JAVA_HOME"] = java_home
libexec.install "keenwrite.jar"
(bin/"keenwrite").write <<~EOS
#!/bin/bash
export JAVA_HOME="#{java_home}"
exec "${JAVA_HOME}/bin/java" --illegal-access=permit -jar "/usr/local/Cellar/keenwrite/#{version}/libexec/keenwrite.jar" "$@"
EOS
end
test do
false
end
end
############################################################
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2021-05-11 14:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 5:40 Thangalin
2021-05-10 9:46 ` Floris van Manen
2021-05-10 12:34 ` Hans Hagen
2021-05-10 18:10 ` Thangalin
2021-05-10 18:04 ` Thangalin
2021-05-11 14:57 ` Nicola [this message]
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='s7e61a$11mu$1@ciao.gmane.io' \
--to=nvitacolonna@gmail.com \
--cc=ntg-context@ntg.nl \
/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).