Skip to content

Commit

Permalink
Merge pull request #204513 from Homebrew/bump-inchi-1.07.2
Browse files Browse the repository at this point in the history
inchi 1.07.2
  • Loading branch information
BrewTestBot authored Jan 16, 2025
2 parents 5420501 + 8fd7a5b commit 475dff0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 40 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,7 @@ immich-cli
immortal
immudb
imposm3
inchi
include-what-you-use
influxdb
influxdb-cli
Expand Down
48 changes: 8 additions & 40 deletions Formula/i/inchi.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
class Inchi < Formula
desc "IUPAC International Chemical Identifier"
homepage "https://www.inchi-trust.org/"
url "https://github.com/IUPAC-InChI/InChI/releases/download/v1.07.1/INCHI-1-SRC.zip"
sha256 "fe6e1ee25714988f7b86420b7615b4e1d7c01fda9b93d63b634a0c021ac9f917"
url "https://github.com/IUPAC-InChI/InChI/releases/download/v1.07.2/INCHI-1-SRC.zip"
sha256 "4a5627befd1ea29853d4920d975563874108648efe9bfcd1d4dfa3a215032cfb"
license "MIT"

bottle do
sha256 cellar: :any, arm64_sequoia: "b229ca55644d5c53c2cd5c070f631a4379806e44059bd370e61d4b94b0b0e784"
sha256 cellar: :any, arm64_sonoma: "c4488a6860bbcc789c950bfca39a2b613259346d9abfc822bfa863fcdeaf6427"
sha256 cellar: :any, arm64_ventura: "f8e910c3ca6711c1a0fb70ce5a4392665e85a2b8c39d1911911346d9475302f1"
sha256 cellar: :any, sonoma: "6db049c16f2625d44e971bf9626d58bce066cf698e0eaeb29a889b13c8850f9a"
sha256 cellar: :any, ventura: "da10c8873201f570b9797d45f80e88afb35de4654c541f21ea4888dac8d99c87"
sha256 cellar: :any_skip_relocation, x86_64_linux: "df02aacc34873e732291793847d59d6ca4ebee54a4956372ec4dc03d9fe88729"
sha256 cellar: :any, arm64_sequoia: "25f7aebdb481a803f18fa0627ec514de1005582706ca16e4df152721f5a073e2"
sha256 cellar: :any, arm64_sonoma: "7473f6e96cc89bd4afe24c8de25e113bb413b7a87aae10e401d30b90fc7f7e33"
sha256 cellar: :any, arm64_ventura: "32c4b33b8814920aa956f7ba12ba4910846d46a25ce2ce97c56c62c689166021"
sha256 cellar: :any, sonoma: "d88925c6975be8a0e19f5519ddd9d4891c72ce8e6440b3dd047627f990c64144"
sha256 cellar: :any, ventura: "3a672451ca7f22d991068b6832cf1183b35a91250c27a945f5b3810c02476c52"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6aa1570cbbc5be0acc8e6fb4dada9e301b2bd9d45c430ba558306fae993f8aba"
end

# These used to be part of open-babel
link_overwrite "include/inchi/inchi_api.h", "lib/libinchi.dylib", "lib/libinchi.so"

# Fix dylib file names
# PR ref: https://github.com/IUPAC-InChI/InChI/pull/62
patch :p2, :DATA

def install
bin.mkpath
lib.mkpath
Expand Down Expand Up @@ -74,31 +70,3 @@ def install
EOS
end
end

__END__
diff --git a/INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile b/INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile
index 6d5a722..5b953ed 100644
--- a/INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile
+++ b/INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile
@@ -175,7 +175,7 @@ else ifeq ($(OS_ID),2)
# jwm: linking to .dylib on OS X
$(API_CALLER_PATHNAME) : $(API_CALLER_OBJS) $(INCHI_LIB_PATHNAME).so$(VERSION)
$(LINKER) -o $(API_CALLER_PATHNAME) $(API_CALLER_OBJS) \
-$(INCHI_LIB_PATHNAME).dylib$(VERSION) -lm
+$(INCHI_LIB_PATHNAME)$(VERSION).dylib -lm
else
# djb-rwth: linking to .so on Linux
$(API_CALLER_PATHNAME) : $(API_CALLER_OBJS) $(INCHI_LIB_PATHNAME).so$(VERSION)
@@ -253,9 +253,9 @@ $(INCHI_LIB_PATHNAME).dll$(VERSION): $(INCHI_LIB_OBJS)
$(INCHI_LIB_OBJS) -Wl$(LINUX_MAP),-soname,$(INCHI_LIB_NAME).dll$(VERSION) -Wl,--subsystem,windows -lm
else ifeq ($(OS_ID), 2)
# jwm: creating .dylib on OS X
-$(INCHI_LIB_PATHNAME).dylib$(VERSION): $(INCHI_LIB_OBJS)
- $(SHARED_LINK) $(SHARED_LINK_PARM) -o $(INCHI_LIB_PATHNAME).dylib$(VERSION) \
-$(INCHI_LIB_OBJS) -Wl$(LINUX_MAP)$(LINUX_Z_RELRO) -install_name $(INCHI_LIB_NAME).dylib$(VERSION) -lm
+$(INCHI_LIB_PATHNAME)$(VERSION).dylib: $(INCHI_LIB_OBJS)
+ $(SHARED_LINK) $(SHARED_LINK_PARM) -o $(INCHI_LIB_PATHNAME)$(VERSION).dylib \
+$(INCHI_LIB_OBJS) -Wl$(LINUX_MAP)$(LINUX_Z_RELRO) -install_name $(INCHI_LIB_NAME)$(VERSION).dylib -lm
else
# djb-rwth: creating .so on Linux
$(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS)

0 comments on commit 475dff0

Please sign in to comment.