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)
This commit is contained in:
Jan Beich 2022-10-14 07:25:07 +00:00
parent 7e6bb8bb94
commit f465f8506f

View file

@ -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