git: acb326a48b08 - main - math/spectra: Install cmake files.

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 18:29:08 UTC
The branch main has been updated by yuri:

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

commit acb326a48b0802adf8034b0849e8fa54c89555fb
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-10 10:23:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-10 18:29:05 +0000

    math/spectra: Install cmake files.
---
 math/spectra/Makefile  | 8 +++-----
 math/spectra/pkg-plist | 3 +++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/math/spectra/Makefile b/math/spectra/Makefile
index 5379fc9f3265..4bc68f461a34 100644
--- a/math/spectra/Makefile
+++ b/math/spectra/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	spectra
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,16 +12,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 TEST_DEPENDS=	gmake>0:devel/gmake
 
-USES=		eigen:3,run
+USES=		cmake eigen:3,build,run
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	yixuan
 
-NO_BUILD=	yes
 NO_ARCH=	yes
 
-do-install:
-	cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}
-
 do-test: # some tests are known to fail: https://github.com/yixuan/spectra/issues/47
 	@cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} CXXFLAGS=-I${LOCALBASE}/include/eigen3 ${GMAKE} all test
 
diff --git a/math/spectra/pkg-plist b/math/spectra/pkg-plist
index 2d89b9e27ce1..1bfb3f17ca09 100644
--- a/math/spectra/pkg-plist
+++ b/math/spectra/pkg-plist
@@ -48,3 +48,6 @@ include/Spectra/Util/TypeTraits.h
 include/Spectra/Util/Version.h
 include/Spectra/contrib/LOBPCGSolver.h
 include/Spectra/contrib/PartialSVDSolver.h
+%%DATADIR%%/cmake/Spectra-targets.cmake
+%%DATADIR%%/cmake/spectra-config-version.cmake
+%%DATADIR%%/cmake/spectra-config.cmake