Skip to content

Commit

Permalink
diary 0.15 (new formula)
Browse files Browse the repository at this point in the history
diary 0.15

diary: update deps and livecheck

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
in0rdr authored and chenrui333 committed Jan 16, 2025
1 parent 6c32107 commit 543d7dc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/d/diary.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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"

livecheck do
url "https://code.in0rdr.ch/diary/archive/"
regex(/href=.*?diary-v?(\d+(?:\.\d+)+)\.t/i)
end

depends_on "pkgconf" => :build

uses_from_macos "libxml2"
uses_from_macos "ncurses"

def install

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

View workflow job for this annotation

GitHub Actions / Linux

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

/usr/bin/env tar --extract --no-same-owner --file /home/linuxbrew/.cache/Homebrew/downloads/f44112b133fa30e7c8489c1f863434cf5deaaa7b6dccf70b0c1b244397b640b3--diary-v0.15.tar.gz --directory /tmp/homebrew-unpack-20250116-5283-ejzxry mv /tmp/homebrew-unpack-20250116-5283-ejzxry/diary-v0.15 /tmp/diary-20250116-5283-e3zawq/diary-v0.15 ==> make gcc -I src/ src/export.c src/import.c src/utils.c src/caldav.c src/diary.c -o diary -Wall -I/home/linuxbrew/.linuxbrew/opt/libxml2/include/libxml2 -I/home/linuxbrew/.linuxbrew/opt/zlib/include -I/home/linuxbrew/.linuxbrew/Cellar/icu4c@76/76.1_1/include -lncursesw -lcurl -L/home/linuxbrew/.linuxbrew/opt/libxml2/lib -lxml2 -ldl -pthread In file included from src/caldav.c:1: src/caldav.h:19:10: fatal error: curl/curl.h: No such file or directory 19 | #include <curl/curl.h> | ^~~~~~~~~~~~~ compilation terminated. In file included from src/diary.h:27, from src/diary.c:1: src/caldav.h:19:10: fatal error: curl/curl.h: No such file or directory 19 | #include <curl/curl.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: 14 hours ago Branch: master Core tap HEAD: 5786942897342f5c10a53ed099d62eeeb2b14c75 Core tap last commit: 6 minutes ago Core tap JSON: 16 Jan 01:59 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_PATH: /home/linuxbrew/.linuxbrew/opt/pkgconf/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/icu4c@76/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/ncurses/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/readline/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/zlib/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libxml2/lib/pkgconfig PKG_CONFIG_LIBDIR: HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git ACLOCAL_PATH: /home/linuxbrew/.linuxbrew/share/aclocal PATH: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/home/linuxbrew/.linuxbrew/opt/pkgconf/bin:/home/linuxbrew/.linuxbrew/opt/icu4c@76/bin:/home/linuxbrew/.linuxbrew/opt/ncurses/bin:/home/linuxbrew/.linuxbrew/opt/libxml2/bin:/usr/bin:/bin:/usr/sbin:/sbin 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 ::error::diary 0.15 did not build
system "make"
system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}", "install"
end

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

0 comments on commit 543d7dc

Please sign in to comment.