Skip to content

Commit

Permalink
Merge pull request #44 from midsandhighs/main
Browse files Browse the repository at this point in the history
homebrew formula debug & 3.9 as python version default
  • Loading branch information
bovine authored Sep 7, 2021
2 parents a87e2cf + 0082ead commit 6902f01
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions brewed/brew_debug_cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# brew command to remove all installed formulas but maintain Casks (items installed into /Applications)
echo "removing brew installed formula"
brew remove --force $(brew list --formulae)

echo "removing py3.9 site-packages"
rm -rf /opt/homebrew/lib/python3.9/site-packages/
3 changes: 3 additions & 0 deletions brewed/mv_formula.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

cp -v tohil.rb /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/tohil.rb
25 changes: 25 additions & 0 deletions brewed/tohil.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class Tohil < Formula
include Language::Python::Virtualenv
desc "Feathered serpent - delightful integration between Python and TCL"
homepage "https://github.com/flightaware/tohil"
url "https://github.com/flightaware/tohil/archive/refs/tags/v4.0.0.tar.gz"
sha256 "dfa0805b86eb64c6755e01f3f2aaac0a8ef8e3181d3ebe8633de490ae73c252d"
license "NOASSERTION"

depends_on "[email protected]"
depends_on "tcl-tk"
depends_on "[email protected]" => :build

def install
virtualenv_install_with_resources :using => "[email protected]"
system "autoconf"
system "./configure", "--prefix=/usr/local/opt", "--with-python-version=3.9", "--with-tcl=/usr/local/opt/tcl-tk/lib/"
system "make"
# system Formula["[email protected]"].opt_bin/"python3", *Language::Python.setup_install_args(prefix)
system "make", "install"
end

test do
system "false"
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6902f01

Please sign in to comment.