git: c0c2f2076d87 - main - science/svmlight: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 16 Jul 2023 17:47:02 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c0c2f2076d87607515c0be4416c7f7b95bf8e3e6

commit c0c2f2076d87607515c0be4416c7f7b95bf8e3e6
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-16 15:41:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-16 17:46:49 +0000

    science/svmlight: Fix build with llvm16
    
    - Update MASTER_SITES to https
    - Remove obsolete patch
    - Remove DOCS option
    - Pet portclippy
    - Adopt port
    
    Sponsored by:   The FreeBSD Foundation
---
 science/svmlight/Makefile  | 28 ++++++++++++----------------
 science/svmlight/distinfo  |  5 +++--
 science/svmlight/pkg-plist |  2 --
 3 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/science/svmlight/Makefile b/science/svmlight/Makefile
index b614bcf1f8f6..ddefdbc382dd 100644
--- a/science/svmlight/Makefile
+++ b/science/svmlight/Makefile
@@ -1,30 +1,28 @@
 PORTNAME=	svmlight
 PORTVERSION=	6.02
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	science
-MASTER_SITES=	http://osmot.cs.cornell.edu/svm_light/v${PORTVERSION}/
+MASTER_SITES=	https://osmot.cs.cornell.edu/svm_light/v${PORTVERSION}/
 DISTNAME=	svm_light
 
-PATCH_SITES=	http://cpansearch.perl.org/src/KWILLIAMS/Algorithm-SVMLight-0.09/
-PATCHFILES=	SVMLight.patch
-PATCH_DIST_STRIP=-p1
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Implementation of Support Vector Machines (SVMs) in C
+WWW=		https://svmlight.joachims.org/
 
 LICENSE=	SVM-Light
 LICENSE_NAME=	SVM-Light license
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 LICENSE_PERMS=	# none
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Implementation of Support Vector Machines (SVMs) in C
-WWW=		https://svmlight.joachims.org/
-
-CFLAGS+=	-fPIC -fcommon
-MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}"
-NO_WRKSUBDIR=	yes
 USES=		gmake
 USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	DOCS
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}"
+ALL_TARGET=	all libsvmlight_hideo
+
+CFLAGS+=	-fPIC -fcommon
+
+NO_WRKSUBDIR=	yes
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/include/svmlight
@@ -32,8 +30,6 @@ do-install:
 .for file in svm_classify svm_learn
 	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/libsvmlight.a ${STAGEDIR}${PREFIX}/lib/
-	${INSTALL_LIB}  ${WRKSRC}/libsvmlight.so ${STAGEDIR}${PREFIX}/lib/libsvmlight.so.1
-	${LN} -s libsvmlight.so.1 ${STAGEDIR}${PREFIX}/lib/libsvmlight.so
+	${INSTALL_LIB}  ${WRKSRC}/libsvmlight.so ${STAGEDIR}${PREFIX}/lib/libsvmlight.so
 
 .include <bsd.port.mk>
diff --git a/science/svmlight/distinfo b/science/svmlight/distinfo
index 07af9f12b977..561e193fe80e 100644
--- a/science/svmlight/distinfo
+++ b/science/svmlight/distinfo
@@ -1,4 +1,5 @@
+TIMESTAMP = 1682615944
 SHA256 (svm_light.tar.gz) = aa48985a4c77eecd84d293de40d4731da767e49a1d2323c6198180652aa8724e
 SIZE (svm_light.tar.gz) = 51026
-SHA256 (SVMLight.patch) = 0fc08fc2321970eb95e465c06deb7f99207ef90d7b492e3e6ff9883082a99962
-SIZE (SVMLight.patch) = 19490
+SHA256 (SVMLight.patch) = ae65da45b33c014d36d8e7fd6634a411738a72a79c0d23e063cf0e76dc79cc4a
+SIZE (SVMLight.patch) = 35789
diff --git a/science/svmlight/pkg-plist b/science/svmlight/pkg-plist
index 01c5ac4c0254..763c55079231 100644
--- a/science/svmlight/pkg-plist
+++ b/science/svmlight/pkg-plist
@@ -3,6 +3,4 @@ bin/svm_learn
 include/svmlight/kernel.h
 include/svmlight/svm_common.h
 include/svmlight/svm_learn.h
-lib/libsvmlight.a
 lib/libsvmlight.so
-lib/libsvmlight.so.1