From c28b71c7979b286740a942cf08aa90d55722ecc9 Mon Sep 17 00:00:00 2001 From: Serge Bibauw Date: Fri, 15 Feb 2019 00:34:42 +0100 Subject: [PATCH] Add jMetrik 4.1.1 (#58609) * Add jMetrik 4.1.1 jMetrik is a free psychometric measurement and statistics software distributed by Psychomeasurement Systems, LLC. It runs on Java (set as dependency) and is being installed by install4j. I heavily copied the formula for SoapUI.rb and adapted the parameters for the install4j install and uninstall scripts. * Improve jMetrik 4.1.1: java dep as caveats * jMetrik: Clean comments and install args, add zap stanza * Update jmetrik.rb --- Casks/jmetrik.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Casks/jmetrik.rb diff --git a/Casks/jmetrik.rb b/Casks/jmetrik.rb new file mode 100644 index 00000000000..ccb8673c3ee --- /dev/null +++ b/Casks/jmetrik.rb @@ -0,0 +1,36 @@ +cask 'jmetrik' do + version '4.1.1' + sha256 'a6b7fa7870232f9bf615704c810c8046b3b5ebc02ec3a920fb96e0f255b61321' + + url "https://itemanalysis.com/jmetrik/v#{version.dots_to_underscores}/jmetrik_macos_#{version.dots_to_underscores}_java7.dmg" + name 'jMetrik' + homepage 'http://itemanalysis.com/' + + installer script: { + executable: 'jMetrik Installer.app/Contents/MacOS/JavaApplicationStub', + # For future Cask maintainers, if any of these variables + # change in future versions, you can run the installer + # manually and then check the values in the following + # file generated by the installation: + # /Applications/jmetrik/.install4j/response.varfile + args: [ + '-q', # Silent mode + '-VcreateDesktopLinkAction$Boolean=false', # Do not create a desktop icon + '-VexecutionLauncherAction$Boolean=false', # Do not launch jMetrik after installing + "-Vsys.installationDir=#{appdir}/jMetrik", # Install to subdirectory of /Applications + ], + sudo: true, + } + + uninstall script: { + executable: "#{appdir}/jMetrik/jMetrik Uninstaller.app/Contents/MacOS/JavaApplicationStub", + args: ['-q'], + sudo: true, + } + + zap trash: '~/jmetrik' + + caveats do + depends_on_java '7+' + end +end