Skip to content

Commit

Permalink
math/spectra: Install cmake files.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Nov 10, 2021
1 parent c4eedbc commit acb326a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions math/spectra/Makefile
@@ -1,6 +1,7 @@
PORTNAME= spectra
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions math/spectra/pkg-plist
Expand Up @@ -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

0 comments on commit acb326a

Please sign in to comment.