Skip to content

Commit

Permalink
libtorrent-rasterbar: fix pkgconfig file
Browse files Browse the repository at this point in the history
Closes #102446.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
cho-m authored and BrewTestBot committed May 28, 2022
1 parent 0c8c7a4 commit 6c9537d
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions Formula/libtorrent-rasterbar.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
class LibtorrentRasterbar < Formula
desc "C++ bittorrent library with Python bindings"
homepage "https://www.libtorrent.org/"
url "https://github.com/arvidn/libtorrent/releases/download/v2.0.6/libtorrent-rasterbar-2.0.6.tar.gz"
sha256 "438e29272ff41ccc68ec7530f1b98d639f6d01ec8bf680766336ae202a065722"
license "BSD-3-Clause"
revision 1
head "https://github.com/arvidn/libtorrent.git", branch: "RC_2_0"

stable do
url "https://github.com/arvidn/libtorrent/releases/download/v2.0.6/libtorrent-rasterbar-2.0.6.tar.gz"
sha256 "438e29272ff41ccc68ec7530f1b98d639f6d01ec8bf680766336ae202a065722"

patch do
url "https://github.com/arvidn/libtorrent/commit/a5925cfc862923544d4d2b4dc5264836e2cd1030.patch?full_index=1"
sha256 "cbcbb988d5c534f0ee97da7cbbc72bcd7a10592c5619970b5330ab646ffc7c52"
end
end

livecheck do
url :stable
regex(/^v?(\d+(?:[._]\d+)+)$/i)
Expand All @@ -29,21 +38,17 @@ class LibtorrentRasterbar < Formula
conflicts_with "libtorrent-rakshasa", because: "they both use the same libname"

def install
args = %w[
args = %W[
-DCMAKE_CXX_STANDARD=14
-Dencryption=ON
-Dpython-bindings=ON
-Dpython-egg-info=ON
-DCMAKE_INSTALL_RPATH=#{lib}
]
args += std_cmake_args

mkdir "build" do
system "cmake", "..", *args
system "make"
system "make", "install"
end

system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
libexec.install "examples"
end

Expand Down

0 comments on commit 6c9537d

Please sign in to comment.