Skip to content

Commit

Permalink
Update the brew formula
Browse files Browse the repository at this point in the history
This update is for OSX users to be able to download v0.5.0 through the
brew formula.
Using v0.5.0 or v0.5.1 for users not on OSX won't change anything.
  • Loading branch information
Aorimn committed Jan 3, 2016
1 parent dad7b0e commit baa97ca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.5.1
This version is only used to update dislocker's brew file for OSX users
to be able to download v0.5. If you're not an OSX user, you can use either v0.5
or v0.5.1, this won't make any difference.

# v0.5
- Bugfixes:
- Support for old and new versions of PolarSSL (now called mbedTLS);
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ endif()

set (VERSION_MAJOR 0)
set (VERSION_MINOR 5)
set (VERSION_RELEASE 0)
set (VERSION_RELEASE 1)
set (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE}")

add_subdirectory (${PROJECT_SOURCE_DIR}/src)
Expand Down
26 changes: 11 additions & 15 deletions src/dislocker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@
# this brew file *must* be called 'dislocker.rb' to match the Formula
#

require "formula"
require 'formula'

class Dislocker < Formula
homepage "https://github.com/Aorimn/dislocker"
url "https://github.com/Aorimn/dislocker/archive/cd9d8e2e760fb94826e073112421442fdd287776.zip"
sha256 "d319695711ae2bf0dbef67d686cf90081056ab1795671a4ea993d63035350d86"
version "0.4.2"
homepage 'https://github.com/Aorimn/dislocker'
url 'https://github.com/Aorimn/dislocker/archive/v0.5.zip'
sha256 '20116021d6438c7551033f4a321bdc0659dba39227a9fd14c674f120cfd7c4aa'
version '0.5.0'

depends_on "polarssl"
depends_on 'polarssl'
depends_on 'cmake'
depends_on :osxfuse

def install
# This is a bit hackish, but is there another way?
ssl_libname='mbedtls'
if File.exists?("#{lib}/polarssl.a") && !File.exists?("/usr/local/Cellar/polarssl/1.3.10/mbedtls.a") # for some reason this returns false on my machine... I was fed up with it so I swapped the legacy support crap
ssl_libname='polarssl'
end

system "make -C src SSLIB=#{ssl_libname}"
system "make -C src install prefix=#{prefix}/"
system 'cmake', *std_cmake_args
system 'make'
system 'make', 'install'
end
end
end

0 comments on commit baa97ca

Please sign in to comment.