git: f465f8506f78 - main - devel/robin-hood-hashing: enable CMake support

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 28 Oct 2022 11:31:39 UTC
The branch main has been updated by jbeich:

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

commit f465f8506f78c7d5a5f391dfb5f3fabb10adbf40
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-10-14 07:25:07 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-10-28 11:31:20 +0000

    devel/robin-hood-hashing: enable CMake support
    
    CMake Error at CMakeLists.txt:1 (find_package):
      By not providing "Findrobin_hood.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "robin_hood", but CMake did not find one.
    
      Could not find a package configuration file provided by "robin_hood" with
      any of the following names:
    
        robin_hoodConfig.cmake
        robin_hood-config.cmake
    
      Add the installation prefix of "robin_hood" to CMAKE_PREFIX_PATH or set
      "robin_hood_DIR" to a directory containing one of the above files.  If
      "robin_hood" provides a separate development package or SDK, be sure it has
      been installed.
    
    PR:             267038
    Inspired by:    CRUX, Gentoo, Solus, Vcpkg, Void
    Approved by:    maintainer timeout (2 weeks)
---
 devel/robin-hood-hashing/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/devel/robin-hood-hashing/Makefile b/devel/robin-hood-hashing/Makefile
index 2bc7a094e007..990da44fcdff 100644
--- a/devel/robin-hood-hashing/Makefile
+++ b/devel/robin-hood-hashing/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	robin-hood-hashing
 DISTVERSION=	3.11.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,13 +15,12 @@ USES=		cmake compiler:c++14-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	martinus
 
-NO_BUILD=	yes
+CMAKE_OFF=	RH_STANDALONE_PROJECT
 NO_ARCH=	yes
 
-PLIST_FILES=	include/robin_hood.h
-
-do-install: # see https://github.com/martinus/robin-hood-hashing/issues/162
-	${INSTALL_DATA} ${WRKSRC}/src/include/robin_hood.h ${STAGEDIR}${PREFIX}/include
+PLIST_FILES=	include/robin_hood.h \
+		lib/cmake/robin_hood/robin_hood-targets.cmake \
+		lib/cmake/robin_hood/robin_hoodConfig.cmake
 
 # tests fail to build, see https://github.com/martinus/robin-hood-hashing/issues/161