Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to macOS (aka homebrew) #67

Open
aparcar opened this issue Mar 31, 2022 · 1 comment
Open

Port to macOS (aka homebrew) #67

aparcar opened this issue Mar 31, 2022 · 1 comment

Comments

@aparcar
Copy link
Contributor

aparcar commented Mar 31, 2022

Since ucode runs fine on macOS it could be added to homebrew.

I ported it with this fun error message, however I'd keep this open as a reminder for myself to finish it in the near future

ucode:
  * GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)
Error: 1 problem in 1 formula detected
@aparcar
Copy link
Contributor Author

aparcar commented Mar 31, 2022

For reference the build definitions looks like this

class Ucode < Formula
  desc "Jinja-like micro templating"
  homepage "https://github.com/jow-/ucode"
  url "https://github.com/jow-/ucode/archive/refs/tags/v0.0.20220331.tar.gz"
  sha256 "7536e2454ff09092f32f508fc7a3dbe968292b81e88830bc37af1f3b728d7529"
  license "ISC"

  depends_on "cmake" => :build

  def install
     system "cmake", "-S", ".", "-B", "build",
       "-D", "NL80211_SUPPORT=OFF",
       "-D", "RTNL_SUPPORT=OFF",
       "-D", "UBUS_SUPPORT=OFF",
       "-D", "UCI_SUPPORT=OFF",
       "-D", "ULOOP_SUPPORT=OFF",
       *std_cmake_args
     system "cmake", "--build", "build"
  end

  test do
    environment_variables UCODE_BIN: working_dir/"build/ucode"
    environment_variables UCODE_LIB: working_dir/"build/"
    system ./tests/custom/run_tests.sh
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant