I'm the proxy maintainer for dev-cpp/gtest. In trying to support building against an unbundled dev-libs/re2 and dev-cpp/abseil-cpp, but src_configure() fails with: > Could not find a package configuration file provided by "re2" with any of > the following names: > > re2Config.cmake > re2-config.cmake Indeed when installing using the Makefile, the pkg-config files get installed but not the CMake files. On the other hand having tested building with CMake, a CMake build will install both pkg-config and CMake files.
Maybe gtest should try pkg-config as well? The cmake files for re2 don't seem well maintained upstream.
If you look at the git history, it shows Makefile and CMakeLists.txt with the same mtime in May, and that they largely share the same commit history. From https://github.com/google/re2/wiki/Install: > Bazel and CMake are also supported. The latter enables generation > of Visual Studio and Xcode projects as well as Cygwin, MinGW and MSYS > makefiles. Bug reports and/or fixes are welcome!"
Some fun context :) https://github.com/google/re2/issues/274#issuecomment-683440146 I commented on your linked PR switching to cmake, that I cannot even build the package at all using your ebuild since it fails during cmake_src_configure. And given that junyer doesn't really like cmake it doesn't surprise me that the Makefile gets more actual testing by the developer. I'm not sure mere mtime of the files factors into that.
OK. Maybe I'll focus on installing re2Config.cmake.in.