Skip to content

Commit

Permalink
Merge pull request Homebrew#203201 from Homebrew/bump-libxmp-lite-4.6.1
Browse files Browse the repository at this point in the history
libxmp-lite 4.6.1
  • Loading branch information
chenrui333 authored Jan 5, 2025
2 parents 3a4130c + b78304b commit 62cc9b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ libxml2
libxmlb
libxmlsec1
libxmp
libxmp-lite
libxmu
libxo
libxrender
Expand Down
32 changes: 14 additions & 18 deletions Formula/lib/libxmp-lite.rb
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
class LibxmpLite < Formula
desc "Lite libxmp"
homepage "https://xmp.sourceforge.net/"
url "https://downloads.sourceforge.net/project/xmp/libxmp/4.6.0/libxmp-lite-4.6.0.tar.gz"
sha256 "71a93eb0119824bcc56eca95db154d1cdf30304b33d89a4732de6fef8a2c6f38"
url "https://downloads.sourceforge.net/project/xmp/libxmp/4.6.1/libxmp-lite-4.6.1.tar.gz"
sha256 "d2096d0ad04d90556a88856a3a9e093d434ed3b6b6791907be73db7e2b9b7837"
license "MIT"

bottle do
sha256 cellar: :any, arm64_sequoia: "c45fbdc96da10e952e39b5b1cb2893f4f3e466dcf09ff85e6c0c7b13697ffa34"
sha256 cellar: :any, arm64_sonoma: "f26e1ba3917347f6a7a258c0dae899801b702c4dac38732b92bd7f0df92813fc"
sha256 cellar: :any, arm64_ventura: "9500723abc3c75d1b85b4673344bf7ef874a6374883042fc8ec9cfe5f8064412"
sha256 cellar: :any, arm64_monterey: "fcfcc41e351cc97fc54a8c47fc958ac4c140fcfca85efbe4dc59d6c4768dc4e0"
sha256 cellar: :any, arm64_big_sur: "6569f2687511dbc55c47854deda2bacac26e6e27b431da225b508814c720500e"
sha256 cellar: :any, sonoma: "64a236751b18526082594d9cf8df3073b63f3e62476243a615aa802fee0fe0e5"
sha256 cellar: :any, ventura: "7f9ac879b3cd5e9b67cac75a79c5f25b53165986444edcefaf8149f1c0f00c33"
sha256 cellar: :any, monterey: "165bc02b01f381bd122b421490245ade0b277d4e0051dc4498b8354edb811488"
sha256 cellar: :any, big_sur: "56c37651e4a234b8796895786eccc4aacc03eb22c8aa3d30e16598856c4462a6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1cf6c9f842c6d2c80e98c6731e0707ea6f9c8ac9b89dc8c3b5a1d396d81ce46c"
sha256 cellar: :any, arm64_sequoia: "45f2bf9d9951767cf6b3432907a7d78c4e64ad758b28bd691f763446ee84eeb1"
sha256 cellar: :any, arm64_sonoma: "04a21a3c396232c2ab897af6d7becbfd7e983e53f230082cf7852f2cdc76956a"
sha256 cellar: :any, arm64_ventura: "3e1bc29593bab4b7cfc75fa8127468f79e04f2664abe204b246c029b02b5acea"
sha256 cellar: :any, sonoma: "cfb0b254511b6c25751c6ba6ba0af28ac18e8bfc7d5b14aa2a1794199d06098d"
sha256 cellar: :any, ventura: "f82931dcaf8023784413cf966e64085f0d31083e25b39296bbd36cf3fe5d9fea"
sha256 cellar: :any_skip_relocation, x86_64_linux: "422e9bdeaf10af4d9b4d587653ad89aa5cf2e4fedd7d7ee2581b0f899982af7d"
end

def install
system "./configure", "--prefix=#{prefix}"
system "./configure", *std_configure_args
system "make", "install"
end

test do
(testpath/"test.c").write <<~'EOS'
(testpath/"test.c").write <<~C
#include <stdio.h>
#include <libxmp-lite/xmp.h>
int main(int argc, char* argv[]){
printf("libxmp-lite %s/%c%u\n", XMP_VERSION, *xmp_version, xmp_vercode);
printf("libxmp-lite %s/%c%u\\n", XMP_VERSION, *xmp_version, xmp_vercode);
return 0;
}
EOS
C

system ENV.cc, "test.c", "-I", include, "-L", lib, "-L#{lib}", "-lxmp-lite", "-o", "test"
system "#{testpath}/test"
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lxmp-lite", "-o", "test"
system "./test"
end
end

0 comments on commit 62cc9b9

Please sign in to comment.