Skip to content

Commit

Permalink
libdvbpsi: use ssl/tls url, sha256 hash, modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats authored and bfontaine committed May 28, 2015
1 parent d11e143 commit a1c37d3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Formula/libdvbpsi.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'formula'

class Libdvbpsi < Formula
homepage 'http://www.videolan.org/developers/libdvbpsi.html'
url 'http://download.videolan.org/pub/libdvbpsi/0.2.2/libdvbpsi-0.2.2.tar.bz2'
sha1 '562d46ce256a678309f7c39be8cf31eea4bf6757'
homepage "https://www.videolan.org/developers/libdvbpsi.html"
url "https://download.videolan.org/pub/libdvbpsi/0.2.2/libdvbpsi-0.2.2.tar.bz2"
sha256 "9aa62345c8fed04a4f59524967fb154e3f9b02625666a200861555dcb9163ed3"

bottle do
cellar :any
Expand All @@ -15,8 +13,8 @@ class Libdvbpsi < Formula

def install
# Clang doesn't recognize O6. Just remove it. Fixes a build error.
inreplace 'configure', 'CFLAGS="${CFLAGS} -O6"', 'CFLAGS="${CFLAGS}"'
inreplace "configure", "CFLAGS=\"${CFLAGS} -O6\"", "CFLAGS=\"${CFLAGS}\""
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--enable-release"
system "make install"
system "make", "install"
end
end

0 comments on commit a1c37d3

Please sign in to comment.