libsvm, revbump for python changes (#9192)

This commit is contained in:
Schrijvers Luc
2023-08-12 12:30:01 +00:00
committed by GitHub
parent eb9d63a989
commit f86307ccb4
2 changed files with 54 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
SUMMARY="Library for Support Vector Machines"
DESCRIPTION="
Libsvm is a simple, easy-to-use, and efficient software for SVM \
DESCRIPTION="Libsvm is a simple, easy-to-use, and efficient software for SVM \
classification and regression. It solves C-SVM classification, nu-SVM \
classification, one-class-SVM, epsilon-SVM regression, and nu-SVM \
regression. It also provides an automatic model selection tool for \
@@ -8,11 +7,12 @@ C-SVM classification."
HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/libsvm/"
COPYRIGHT="2000-2018 Chih-Chung Chang and Chih-Jen Lin"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/cjlin1/libsvm/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="7a466f90f327a98f8ed1cb217570547bcb00077933d1619f3cb9e73518f38196"
SOURCE_FILENAME="libsvm-$portVersion.tar.gz"
SOURCE_DIR="libsvm-323"
PATCHES="libsvm-$portVersion.patchset"
ARCHITECTURES="all"
@@ -44,7 +44,7 @@ PROVIDES_tools="
"
REQUIRES_tools="
haiku
cmd:python
cmd:python3
"
BUILD_REQUIRES="
@@ -81,6 +81,6 @@ INSTALL()
cp libsvm.so.2 $libDir
cp svm.h $includeDir
prepareInstalledDevelLibs libsvm
prepareInstalledDevelLib libsvm
packageEntries devel $developDir
}

View File

@@ -0,0 +1,49 @@
From 7b64603fb48db0d890065199c5673f2b3e6c5e1f Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Sat, 12 Aug 2023 13:46:47 +0200
Subject: Use python3 for the python commands
diff --git a/tools/checkdata.py b/tools/checkdata.py
index 797a03c..150436c 100755
--- a/tools/checkdata.py
+++ b/tools/checkdata.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# A format checker for LIBSVM
diff --git a/tools/easy.py b/tools/easy.py
index f718490..4be9aef 100755
--- a/tools/easy.py
+++ b/tools/easy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import os
diff --git a/tools/grid.py b/tools/grid.py
index ff7739a..1868d31 100755
--- a/tools/grid.py
+++ b/tools/grid.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
__all__ = ['find_parameters']
import os, sys, traceback, getpass, time, re
diff --git a/tools/subset.py b/tools/subset.py
index c091a5a..7fbdcc2 100755
--- a/tools/subset.py
+++ b/tools/subset.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os, sys, math, random
from collections import defaultdict
--
2.37.3