From 76b39d470f398e6a4ff7be7b41be289546c31470 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 29 Apr 2022 09:15:26 +0200 Subject: devel/fccf: new port fccf is a command-line tool that quickly searches through C/C++ source code in a directory based on a search string and prints relevant code snippets that match the query. Highlights: * Quickly identifies source files that contain a search string. * For each candidate source file, builds an abstract syntax tree (AST). * Visits the nodes in the AST, looking for function declarations, classes, enums, variables etc., that match the user's request. * Pretty-prints the identified snippet of source code to the terminal. * MIT License WWW: https://github.com/p-ranav/fccf --- devel/fccf/files/patch-cmake_install-script.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/fccf/files/patch-cmake_install-script.cmake (limited to 'devel/fccf/files/patch-cmake_install-script.cmake') diff --git a/devel/fccf/files/patch-cmake_install-script.cmake b/devel/fccf/files/patch-cmake_install-script.cmake new file mode 100644 index 000000000000..320cd3d96984 --- /dev/null +++ b/devel/fccf/files/patch-cmake_install-script.cmake @@ -0,0 +1,11 @@ +--- cmake/install-script.cmake.orig 2022-04-29 07:09:29 UTC ++++ cmake/install-script.cmake +@@ -5,7 +5,7 @@ get_filename_component(prefix "${CMAKE_INSTALL_PREFIX} + ) + + get_filename_component(prefix "${CMAKE_INSTALL_PREFIX}" ABSOLUTE) +-set(config_dir "${prefix}/${fccf_INSTALL_CMAKEDIR}") ++set(config_dir "\$ENV{DESTDIR}${prefix}/${fccf_INSTALL_CMAKEDIR}") + set(config_file "${config_dir}/fccfConfig.cmake") + + message(STATUS "Installing: ${config_file}") -- cgit v1.2.3