Skip to content

Commit

Permalink
diary 0.15 (new formula)
Browse files Browse the repository at this point in the history
diary 0.15
  • Loading branch information
in0rdr committed Jan 15, 2025
1 parent d94ffbe commit 76f01cb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula/d/diary.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Diary < Formula
desc "Text-based journaling program"
homepage "https://diary.p0c.ch"
url "https://code.in0rdr.ch/diary/archive/diary-v0.15.tar.gz"
sha256 "51103df0ddb33a1e86bb85e435ba7b7a5ba464ce49234961ca3e3325cd123d4c"
license "MIT"

def install

Check failure on line 8 in Formula/d/diary.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle diary` failed on Linux!

make: pkg-config: No such file or directory make: pkg-config: No such file or directory gcc -I src/ src/export.c src/import.c src/utils.c src/caldav.c src/diary.c -o diary -Wall -lncursesw -lcurl -ldl -pthread In file included from src/export.h:7, from src/export.c:1: src/utils.h:13:10: fatal error: ncurses.h: No such file or directory 13 | #include <ncurses.h> | ^~~~~~~~~~~ compilation terminated. In file included from src/import.h:11, from src/import.c:1: src/utils.h:13:10: fatal error: ncurses.h: No such file or directory 13 | #include <ncurses.h> | ^~~~~~~~~~~ compilation terminated. In file included from src/utils.c:1: src/utils.h:13:10: fatal error: ncurses.h: No such file or directory 13 | #include <ncurses.h> | ^~~~~~~~~~~ compilation terminated. In file included from src/caldav.c:1: src/caldav.h:18:10: fatal error: ncurses.h: No such file or directory 18 | #include <ncurses.h> | ^~~~~~~~~~~ compilation terminated. In file included from src/diary.c:1: src/diary.h:18:10: fatal error: ncurses.h: No such file or directory 18 | #include <ncurses.h> | ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:34: diary] Error 1 ==> Formula Path: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/d/diary.rb ==> Configuration HOMEBREW_VERSION: 4.4.16-31-g256e826 ORIGIN: https://github.com/Homebrew/brew HEAD: 256e826c3add51d51519cf0c3b5af37f894193d0 Last commit: 8 hours ago Branch: master Core tap HEAD: 893f9634ee7c1ec3a15cb06aab238e53432d5187 Core tap last commit: 5 minutes ago Core tap JSON: 15 Jan 19:49 UTC HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew HOMEBREW_BOOTSNAP: set HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /github/home/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit zen3 Clang: N/A Git: 2.47.0 => /usr/bin/git Curl: 7.81.0 => /usr/bin/curl Kernel: Linux 6.8.0-1017-azure x86_64 GNU/Linux OS: Ubuntu 22.04.5 LTS Host glibc: 2.35 /usr/bin/gcc: 11.4.0 /usr/bin/ruby: N/A glibc: N/A gcc@11: N/A gcc: N/A xorg: N/A ==> ENV HOMEBREW_CC: gcc-11 HOMEBREW_CXX: g++-11 MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /home/linuxbrew/.linuxbrew PKG_CONFIG_LIBDIR: HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git PATH: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin ::error::diary 0.15 did not build Logs: /github/home/bottles/logs/diary/00.options.out /github/home/bottles/logs/diary/01.make /github/home/bottles/logs/diary/01.make.cc READ THIS: https://docs.brew.sh/Troubleshooting

Check failure on line 8 in Formula/d/diary.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle diary` failed on macOS Sequoia (15) on Apple Silicon!

"_xmlXPathFreeContext", referenced from: _extract_xml_content in utils-96a3c9.o "_xmlXPathNewContext", referenced from: _extract_xml_content in utils-96a3c9.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [diary] Error 1 ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/d/diary.rb ==> Configuration HOMEBREW_VERSION: 4.4.16-31-g256e826 ORIGIN: https://github.com/Homebrew/brew HEAD: 256e826c3add51d51519cf0c3b5af37f894193d0 Last commit: 8 hours ago Branch: master Core tap HEAD: 893f9634ee7c1ec3a15cb06aab238e53432d5187 Core tap last commit: 5 minutes ago Core tap JSON: 15 Jan 19:49 UTC Core cask tap JSON: 15 Jan 19:49 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 16.0.0 build 1600 Git: 2.39.5 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 15.2-arm64 CLT: 16.2.0.0.1.1733547573 Xcode: 16.2 Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/15 HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin Logs: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/00.options.out /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make.cc READ THIS: https://docs.brew.sh/Troubleshooting ::error::diary 0.15 did not build

Check failure on line 8 in Formula/d/diary.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle diary` failed on macOS Sonoma (14) on Apple Silicon!

"_xmlXPathFreeContext", referenced from: _extract_xml_content in utils-ae1fe9.o "_xmlXPathNewContext", referenced from: _extract_xml_content in utils-ae1fe9.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [diary] Error 1 ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/d/diary.rb ==> Configuration HOMEBREW_VERSION: 4.4.16-31-g256e826 ORIGIN: https://github.com/Homebrew/brew HEAD: 256e826c3add51d51519cf0c3b5af37f894193d0 Last commit: 8 hours ago Branch: master Core tap HEAD: 893f9634ee7c1ec3a15cb06aab238e53432d5187 Core tap last commit: 5 minutes ago Core tap JSON: 15 Jan 19:49 UTC Core cask tap JSON: 15 Jan 19:49 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 16.0.0 build 1600 Git: 2.39.5 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 14.7.2-arm64 CLT: 16.2.0.0.1.1733547573 Xcode: 16.2 Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14 HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin Logs: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/00.options.out /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make.cc READ THIS: https://docs.brew.sh/Troubleshooting ::error::diary 0.15 did not build

Check failure on line 8 in Formula/d/diary.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle diary` failed on macOS Ventura (13) on Apple Silicon!

_extract_xml_content in utils-6468dd.o _xmlXPathFreeContext, referenced from: _extract_xml_content in utils-6468dd.o _xmlXPathNewContext, referenced from: _extract_xml_content in utils-6468dd.o clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [diary] Error 1 ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/d/diary.rb ==> Configuration HOMEBREW_VERSION: 4.4.16-31-g256e826 ORIGIN: https://github.com/Homebrew/brew HEAD: 256e826c3add51d51519cf0c3b5af37f894193d0 Last commit: 8 hours ago Branch: master Core tap HEAD: 893f9634ee7c1ec3a15cb06aab238e53432d5187 Core tap last commit: 5 minutes ago Core tap JSON: 15 Jan 19:50 UTC Core cask tap JSON: 15 Jan 19:50 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 15.0.0 build 1500 Git: 2.39.3 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 13.7.2-arm64 CLT: 15.1.0.0.1.1700200546 Xcode: 15.2 Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13 HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin Logs: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/00.options.out /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/diary/01.make.cc READ THIS: https://docs.brew.sh/Troubleshooting ::error::diary 0.15 did not build
system "make"
system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}", "install"
end

test do
assert_match "v0.15", shell_output("#{bin}/diary -v")
end
end

0 comments on commit 76f01cb

Please sign in to comment.