diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/libsvm | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/libsvm')
-rw-r--r-- | homebrew/libsvm/.beer | 22 | ||||
-rw-r--r-- | homebrew/libsvm/.make.sh-auto | 8 | ||||
-rw-r--r-- | homebrew/libsvm/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/libsvm/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/libsvm/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/libsvm/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/libsvm/download.sh | 1 |
7 files changed, 35 insertions, 0 deletions
diff --git a/homebrew/libsvm/.beer b/homebrew/libsvm/.beer new file mode 100644 index 000000000..d6c51bf5a --- /dev/null +++ b/homebrew/libsvm/.beer @@ -0,0 +1,22 @@ +{ + "name": "Libsvm", + "description": "Library for support vector machines", + "url": "https://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.22.tar.gz", + "mirror": "https://dl.bintray.com/homebrew/mirror/libsvm-3.22.tar.gz", + "homepage": "https://www.csie.ntu.edu.tw/~cjlin/libsvm/", + "depends": [], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "system \"make\", \"CFLAGS=#{ENV.cflags}\"", + "system \"make\", \"lib\"", + "bin.install \"svm-scale\", \"svm-train\", \"svm-predict\"", + "lib.install \"libsvm.so.2\" => \"libsvm.2.dylib\"", + "lib.install_symlink \"libsvm.2.dylib\" => \"libsvm.dylib\"", + "MachO::Tools.change_dylib_id(\"#{lib}/libsvm.2.dylib\", \"#{lib}/libsvm.2.dylib\")", + "include.install \"svm.h\"" + ], + "version": "3.22", + "file": "libsvm.rb" +}
\ No newline at end of file diff --git a/homebrew/libsvm/.make.sh-auto b/homebrew/libsvm/.make.sh-auto new file mode 100644 index 000000000..8508f84f2 --- /dev/null +++ b/homebrew/libsvm/.make.sh-auto @@ -0,0 +1,8 @@ +pkg:setup +make CFLAGS=${CFLAGS} +make lib +bin.install "svm-scale", "svm-train", "svm-predict" +lib.install "libsvm.so.2" => "libsvm.2.dylib" +lib.install_symlink "libsvm.2.dylib" => "libsvm.dylib" +MachO::Tools.change_dylib_id("#{lib}/libsvm.2.dylib", "#{lib}/libsvm.2.dylib") +include.install "svm.h" diff --git a/homebrew/libsvm/_metadata/description b/homebrew/libsvm/_metadata/description new file mode 100644 index 000000000..02cc4f083 --- /dev/null +++ b/homebrew/libsvm/_metadata/description @@ -0,0 +1 @@ +Library for support vector machines diff --git a/homebrew/libsvm/_metadata/homepage b/homebrew/libsvm/_metadata/homepage new file mode 100644 index 000000000..f54dc4995 --- /dev/null +++ b/homebrew/libsvm/_metadata/homepage @@ -0,0 +1 @@ +https://www.csie.ntu.edu.tw/~cjlin/libsvm/ diff --git a/homebrew/libsvm/_metadata/name b/homebrew/libsvm/_metadata/name new file mode 100644 index 000000000..4b02eae51 --- /dev/null +++ b/homebrew/libsvm/_metadata/name @@ -0,0 +1 @@ +Libsvm diff --git a/homebrew/libsvm/_metadata/version b/homebrew/libsvm/_metadata/version new file mode 100644 index 000000000..8838d68a7 --- /dev/null +++ b/homebrew/libsvm/_metadata/version @@ -0,0 +1 @@ +3.22 diff --git a/homebrew/libsvm/download.sh b/homebrew/libsvm/download.sh new file mode 100755 index 000000000..3e3e82c31 --- /dev/null +++ b/homebrew/libsvm/download.sh @@ -0,0 +1 @@ +wget https://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.22.tar.gz || wget https://dl.bintray.com/homebrew/mirror/libsvm-3.22.tar.gz
\ No newline at end of file |