Skip to content

Commit

Permalink
php-uuid: fix uuidlib location
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Feb 23, 2023
1 parent f3124b9 commit 8f5ddfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/php-uuid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ class PhpUuid < Formula
head "https://github.com/php/pecl-networking-uuid.git"

depends_on "autoconf" => :build
depends_on "ossp-uuid"
depends_on "util-linux"
depends_on "php"

patch do
# let's fix the path to uuid.h (uuid/uuid.h on linux, ossp/uuid.h on OSX)
# uuid_mac & uuid_time might not be available on OSX, let's add test to avoid compiling issue on these functions
url "https://github.com/SMillerDev/pecl-networking-uuid/commit/90a448026454af4e3b76fa514dca583a1d31d7e5.patch?full_index=1"
sha256 "c590c2045cf9837e9c97f1bfd078b615cf32d4d4c2995a793bc3691b9a0c29ee"
url "https://github.com/php/pecl-networking-uuid/commit/a393861918b75d9657cb8125a4e17cebd2432c4a.patch?full_index=1"
sha256 "f72c5bd71d4c320a3bf7922104bbce959b574b79e3d504e35bccb154054f0f66"
directory "uuid-1.2.0"
end

Expand All @@ -28,7 +28,7 @@ def install
system Formula["php"].bin/"phpize"
configure_args = %W[
--with-php-config=#{Formula["php"].opt_bin/"php-config"}
--with-uuid=#{Formula["ossp-uuid"].opt_include}
--with-uuid=#{Formula["util-linux"].opt_prefix}
]
system "./configure", *configure_args
system "make"
Expand Down

0 comments on commit 8f5ddfc

Please sign in to comment.