Skip to content

Commit

Permalink
updating tpl to indicate mestart arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mittelmark committed Sep 19, 2024
1 parent 6f6c442 commit f5ea948
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 10 deletions.
4 changes: 2 additions & 2 deletions microemacs/brew/microemacs-help.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class MicroemacsHelp < Formula
sha256 "__sha__"
version "__version__"
url "https://github.com/bjasspa/jasspa/releases/download/me_#{version}/Jasspa_MicroEmacs_#{version}_help_ehf.zip"
depends_on "microemacs-mec"
depends_on "microemacs-macros"

def install
Expand All @@ -20,7 +19,8 @@ class MicroemacsHelp < Formula
cp "#{file}", macrofolder
end
### setting MEPATH for mews and mecs does not work, what could we do?
puts "start Microemacs with: MEPATH=~/.config/jasspa:#{share}/jasspa/macros:${share}/jasspa/spelling mec"
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/macros:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mec (or mew)"
puts "on MacOS replace /home/linuxbrew/.linuxbrew with /opt/homebrew for M1 Macs or /usr/local for Intel Macs"
end

end
3 changes: 2 additions & 1 deletion microemacs/brew/microemacs-macros.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class MicroemacsMacros < Formula
cp "#{file}", macrofolder
end
### setting MEPATH for mews and mecs does not work, what could we do?
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mews"
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/macros:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mec (or mew)"
puts "on MacOS replace /home/linuxbrew/.linuxbrew with /opt/homebrew for M1 Macs or /usr/local for Intel Macs"
end

end
5 changes: 2 additions & 3 deletions microemacs/brew/microemacs-mec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class MicroemacsMec < Formula
PREFIX="https://github.com/bjasspa/jasspa/releases/download/me_#{version}/Jasspa_MicroEmacs_#{version}_bin_"
depends_on "luit"
depends_on "abduco"
depends_on "microemacs-macros"
depends_on "microemacs-help"
if OS.mac?
if Hardware::CPU.arm?
# Code for Apple Silicon (M1, M2, etc.)
Expand Down Expand Up @@ -35,7 +33,8 @@ class MicroemacsMec < Formula
elsif OS.windows?
bin.install "bin/windows100-intel32/mec.exe"
end
puts "start Microemacs with: MEPATH=~/.config/jasspa:#{share}/jasspa/macros:#{share}/jasspa/spelling mec"
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/macros:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mec"
puts "on MacOS replace /home/linuxbrew/.linuxbrew with /opt/homebrew for M1 Macs or /usr/local for intel Macs"
end

def caveats
Expand Down
5 changes: 2 additions & 3 deletions microemacs/brew/microemacs-mew.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class MicroemacsMew < Formula
depends_on "libxaw"
depends_on "libxt"
end
depends_on "microemacs-macros"
depends_on "microemacs-help"
if OS.mac?
if Hardware::CPU.arm?
# Code for Apple Silicon (M1, M2, etc.)
Expand Down Expand Up @@ -40,7 +38,8 @@ class MicroemacsMew < Formula
elsif OS.windows?
bin.install "bin/windows100-intel32/mew.exe"
end
puts "start Microemacs with: MEPATH=~/.config/jasspa:${share}/jasspa/macros:${share}/jasspa/spelling mew"
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/macros:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mew"
puts "on MacOS replace /home/linuxbrew/.linuxbrew with /opt/homebrew for M1 Macs or /usr/local for Intel Macs"
end

def caveats
Expand Down
3 changes: 2 additions & 1 deletion microemacs/brew/microemacs-spelling-template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class MicroemacsSpelling__Lang__ < Formula
cp "#{file}", spellfolder
end
### setting MEPATH for mews and mecs does not work, what could we do?
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mews"
puts "start Microemacs with: MEPATH=~/.config/jasspa:/home/linuxbrew/.linuxbrew/share/jasspa/macros:/home/linuxbrew/.linuxbrew/share/jasspa/spelling mec (or mew)"
puts "on MacOS replace /home/linuxbrew/.linuxbrew with /opt/homebrew for M1 Macs or /usr/local for Intel Macs"
end

end
25 changes: 25 additions & 0 deletions microemacs/brew/microemacs.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

class Microemacs < Formula
desc "MicroEmacs 24 Text Editor Meta Package Terminal and GUI Version"
homepage "https://github.com/bjasspa/jasspa"
version "__version__"
url "https://github.com/bjasspa/jasspa/releases/download/me_#{version}/Jasspa_MicroEmacs_#{version}_readme.zip"
sha256 "38f30e3005aa9bf7bd3c606d7f01fdb79467890219c138d09e2123d12eda75c0"
# Add more dependencies as needed
depends_on "microemacs-mec"
depends_on "microemacs-mew"
depends_on "microemacs-help"
depends_on "microemacs-macros"

def install
jasspafolder = "#{share}/jasspa/"
# Create the directory if it does not exist
require 'fileutils'
FileUtils.mkdir_p(jasspafolder) unless Dir.exist?(jasspafolder)
# Example: List files in the buildpath
Dir.glob("#{buildpath}/*").each do |file|
puts "Found file: #{file}"
cp "#{file}", jasspafolder
end
end
end

0 comments on commit f5ea948

Please sign in to comment.