aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-07-19 22:50:04 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-30 08:25:19 -0800
commita8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f (patch)
treecfded8a49cfc5b7e52ab2615d24a74c5fa7b479e /paludis
parent9cb3984eb0e0829d4f05b6116f6ae572bc44d21b (diff)
downloadpaludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.gz
paludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.xz
build: introduce cmake based build system
Diffstat (limited to 'paludis')
-rw-r--r--paludis/CMakeLists.txt423
-rw-r--r--paludis/args/CMakeLists.txt43
-rw-r--r--paludis/distributions/CMakeLists.txt10
-rw-r--r--paludis/distributions/exherbo/CMakeLists.txt9
-rw-r--r--paludis/distributions/gentoo/CMakeLists.txt9
-rw-r--r--paludis/environments/CMakeLists.txt8
-rw-r--r--paludis/environments/paludis/CMakeLists.txt29
-rw-r--r--paludis/environments/portage/CMakeLists.txt13
-rw-r--r--paludis/environments/test/CMakeLists.txt12
-rw-r--r--paludis/fetchers/CMakeLists.txt31
-rw-r--r--paludis/fetchers/demos/CMakeLists.txt6
-rw-r--r--paludis/repositories/CMakeLists.txt8
-rw-r--r--paludis/repositories/accounts/CMakeLists.txt17
-rw-r--r--paludis/repositories/e/CMakeLists.txt158
-rw-r--r--paludis/repositories/e/eapis/CMakeLists.txt23
-rw-r--r--paludis/repositories/e/ebuild/0/CMakeLists.txt39
-rw-r--r--paludis/repositories/e/ebuild/1/CMakeLists.txt7
-rw-r--r--paludis/repositories/e/ebuild/2/CMakeLists.txt14
-rw-r--r--paludis/repositories/e/ebuild/3/CMakeLists.txt6
-rw-r--r--paludis/repositories/e/ebuild/4/CMakeLists.txt10
-rw-r--r--paludis/repositories/e/ebuild/5/CMakeLists.txt9
-rw-r--r--paludis/repositories/e/ebuild/6/CMakeLists.txt11
-rw-r--r--paludis/repositories/e/ebuild/CMakeLists.txt35
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/CMakeLists.txt43
-rw-r--r--paludis/repositories/e/ebuild/paludis-1/CMakeLists.txt6
-rw-r--r--paludis/repositories/e/ebuild/pbin-1/CMakeLists.txt7
-rw-r--r--paludis/repositories/e/ebuild/utils/4/CMakeLists.txt17
-rw-r--r--paludis/repositories/e/ebuild/utils/5/CMakeLists.txt7
-rw-r--r--paludis/repositories/e/ebuild/utils/CMakeLists.txt97
-rw-r--r--paludis/repositories/e/ebuild/utils/exheres-0/CMakeLists.txt58
-rw-r--r--paludis/repositories/fake/CMakeLists.txt24
-rw-r--r--paludis/repositories/gemcutter/CMakeLists.txt25
-rw-r--r--paludis/repositories/repository/CMakeLists.txt8
-rw-r--r--paludis/repositories/unavailable/CMakeLists.txt14
-rw-r--r--paludis/repositories/unpackaged/CMakeLists.txt15
-rw-r--r--paludis/repositories/unwritten/CMakeLists.txt13
-rw-r--r--paludis/resolver/CMakeLists.txt126
-rw-r--r--paludis/selinux/CMakeLists.txt16
-rw-r--r--paludis/syncers/CMakeLists.txt100
-rw-r--r--paludis/util/CMakeLists.txt263
40 files changed, 1769 insertions, 0 deletions
diff --git a/paludis/CMakeLists.txt b/paludis/CMakeLists.txt
new file mode 100644
index 000000000..132cb8c57
--- /dev/null
+++ b/paludis/CMakeLists.txt
@@ -0,0 +1,423 @@
+
+if(ENABLE_PBINS)
+ add_definitions(-DENABLE_PBINS)
+endif()
+if(ENABLE_PYTHON)
+ add_definitions(-DENABLE_PYTHON_HOOKS)
+endif()
+if(ENABLE_STRIPPER)
+ add_definitions(-DENABLE_STRIPPER)
+endif()
+
+# TODO(compnerd) remove these when we adjust hooker.cc
+add_definitions(-DPALUDIS_VERSION_MAJOR=${PROJECT_VERSION_MAJOR}
+ -DPALUDIS_VERSION_MINOR=${PROJECT_VERSION_MINOR})
+
+add_subdirectory(distributions)
+add_subdirectory(fetchers)
+add_subdirectory(syncers)
+add_subdirectory(util)
+add_subdirectory(selinux)
+add_subdirectory(repositories)
+add_subdirectory(environments)
+
+# TODO(compnerd) remove these when we no longer need to support the autotools
+# build and can change about.hh.in to use the variable names that are used in
+# CMake
+set(VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
+set(VERSION_MINOR ${PROJECT_VERSION_MINOR})
+set(VERSION_MICRO ${PROJECT_VERSION_PATCH})
+set(PALUDIS_PC_SLOT ${PALUDIS_PKG_CONFIG_SLOT})
+# TODO(compnerd) VERSION_SUFFIX
+# TODO(compnerd) GIT_HEAD
+set(PACKAGE ${PROJECT_NAME})
+set(CXXFLAGS ${CMAKE_CXX_FLAGS})
+list_union("${CMAKE_EXE_LINKER_FLAGS}" "${CMAKE_SHARED_LINKER_FLAGS}" LDFLAGS)
+string(REPLACE ";" " " LDFLAGS "${LDFLAGS}")
+set(CXX ${CMAKE_CXX_COMPILER})
+execute_process(COMMAND
+ whoami
+ OUTPUT_VARIABLE
+ BUILDUSER
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+execute_process(COMMAND
+ hostname
+ OUTPUT_VARIABLE
+ BUILDHOST
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+execute_process(COMMAND
+ date +%&-%m-%dT%H:%M:%S%z
+ OUTPUT_VARIABLE
+ BUILDDATE
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/about.hh.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/about.hh"
+ @ONLY)
+
+paludis_m4process(${CMAKE_CURRENT_SOURCE_DIR}/paludis.hh.m4
+ paludis_hh_TARGET)
+paludis_m4process(${CMAKE_CURRENT_SOURCE_DIR}/comparision_policy.hh.m4
+ comparision_policy_hh_TARGET)
+
+set(environment_object_libraries)
+foreach(environment ${PALUDIS_ALL_ENVIRONMENTS})
+ string(TOUPPER ${environment} uc_environment)
+ if(ENABLE_${uc_environment}_ENVIRONMENT)
+ list(APPEND environment_object_libraries libpaludis${environment}environment)
+ endif()
+endforeach()
+
+set(repository_object_libraries)
+foreach(repository ${PALUDIS_ALL_REPOSITORIES})
+ string(TOUPPER ${repository} repository_uppercase)
+ if(ENABLE_${repository_uppercase}_REPOSITORY)
+ list(APPEND repository_object_libraries libpaludis${repository}repository)
+ endif()
+endforeach()
+
+paludis_add_library(libpaludis
+ "${CMAKE_CURRENT_SOURCE_DIR}/about_metadata.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/action_names.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/additional_package_dep_spec_requirement.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/always_enabled_dependency_label.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/broken_linkage_configuration.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/broken_linkage_finder.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/buffer_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/call_pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/changed_choices.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/choice.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/comma_separated_dep_parser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/comma_separated_dep_pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/command_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/common_sets.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/contents.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/create_output_manager_info.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_label.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_annotations.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_data.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_flattener.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/distribution.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_linkage_checker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_blocker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_choices.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_dep_parser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_conditional_dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_package_dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_slot_requirement.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_use_requirement.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment_factory.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment_implementation.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/file_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filter.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filter_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filtered_generator.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/format_messages_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/formatted_pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/forward_at_finish_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fuzzy_finder.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/generator.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/generator_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hook.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hooker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ipc_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/libtool_linkage_checker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/linkage_checker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/literal_metadata_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/maintainer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask_utils.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/match_package.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger_entry_type.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_key_holder.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/name.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam_merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam_unmerger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/notifier_callback.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager_factory.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager_from_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_dep_spec_collection.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_dep_spec_properties.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludislike_options_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/partially_made_package_dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/partitioning.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/permitted_choice_value_parameter_values.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_print_options.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_factory.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_name_cache.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/selection.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/selection_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/serialise.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/set_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/slot.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/slot_requirement.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/spec_tree.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/standard_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/stripper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/syncer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tar_merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tee_output_manager.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unchoices_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unformatted_pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unmerger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/user_dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_operator.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_requirements.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_spec.cc"
+ INCORPORATE_OBJECT_LIBRARIES
+ ${repository_object_libraries}
+ ${environment_object_libraries}
+ SE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/action.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/choice.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/create_output_manager_info.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_annotations.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_blocker.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_choices.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_dep_parser.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_package_dep_spec.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_use_requirement.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_merger.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hook.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/match_package.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger_entry_type.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_key.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_id.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/partially_made_package_dep_spec.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_print_options.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/set_file.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tar_merger.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/user_dep_spec.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_operator.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_spec.se")
+target_link_libraries(libpaludis
+ PRIVATE
+ libpaludisselinux
+ libpaludisutil
+ ${CMAKE_DL_LIBS}
+ ${CMAKE_THREAD_LIBS_INIT})
+add_dependencies(libpaludis ${paludis_hh_TARGET} ${paludis_util_hh_TARGET})
+
+if(ENABLE_PYTHON)
+ paludis_add_library(libpaludispythonhooks
+ "${CMAKE_CURRENT_SOURCE_DIR}/python_hooks.cc")
+ if(CXX_SUPPORTS_FNO_STRICT_ALIASING)
+ target_compile_options(libpaludispythonhooks PRIVATE -fno-strict-aliasing)
+ endif()
+ target_compile_definitions(libpaludispythonhooks
+ PRIVATE
+ -DPYTHONINSTALLDIR="${PALUDIS_PYTHON_INSTALL_DIR}")
+ target_include_directories(libpaludispythonhooks
+ PRIVATE
+ ${PYTHON_INCLUDE_DIRS})
+ target_link_libraries(libpaludispythonhooks
+ PRIVATE
+ libpaludis
+ ${Boost_PYTHON_LIBRARY}
+ ${PYTHON_LIBRARY})
+endif()
+
+if(ENABLE_PBINS)
+ paludis_add_library(libpaludistarextras
+ "${CMAKE_CURRENT_SOURCE_DIR}/tar_extras.cc")
+ add_dependencies(libpaludistarextras libpaludis_SE)
+ target_link_libraries(libpaludistarextras
+ PRIVATE
+ ${LibArchive_LIBRARIES})
+endif()
+
+if(ENABLE_STRIPPER)
+ paludis_add_library(libpaludisstripperextras
+ "${CMAKE_CURRENT_SOURCE_DIR}/stripper_extras.cc")
+ add_dependencies(libpaludisstripperextras libpaludis_SE)
+ target_link_libraries(libpaludisstripperextras
+ PRIVATE
+ ${LibMagic_LIBRARIES})
+endif()
+
+paludis_add_library(libpaludissohooks_TEST
+ SHARED_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/sohooks_TEST.cc")
+add_dependencies(libpaludissohooks_TEST libpaludis_SE)
+
+foreach(test
+ about
+ broken_linkage_configuration
+ comma_separated_dep_parser
+ dep_spec
+ elike_dep_parser
+ elike_use_requirement
+ environment_implementation
+ filter
+ filtered_generator
+ fs_merger
+ fuzzy_finder
+ generator
+ hooker
+ name
+ partitioning
+ repository_name_cache
+ selection
+ set_file
+ tar_merger
+ user_dep_spec
+ version_operator
+ version_spec)
+ paludis_add_test(${test} GTEST)
+endforeach()
+
+if(ENABLE_GTEST)
+ paludis_add_test(stripper GTEST)
+ add_executable(stripper_TEST_binary
+ "${CMAKE_CURRENT_SOURCE_DIR}/stripper_TEST_binary.cc")
+ add_dependencies(stripper_TEST stripper_TEST_binary)
+endif()
+
+add_subdirectory(args)
+add_subdirectory(resolver)
+
+install(TARGETS
+ libpaludis
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/about.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/about_metadata.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/action.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/action_names.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/additional_package_dep_spec_requirement.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/always_enabled_dependency_label.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/broken_linkage_configuration.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/broken_linkage_finder.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/buffer_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/call_pretty_printer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/changed_choices.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/choice.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/comma_separated_dep_parser.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/comma_separated_dep_pretty_printer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/command_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/common_sets.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/contents.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/create_output_manager_info.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_label.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_annotations.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_data.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_spec_flattener.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/distribution.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_linkage_checker.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_blocker.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_choices.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_dep_parser.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_conditional_dep_spec.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_package_dep_spec.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_slot_requirement.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elike_use_requirement.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment_factory.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/environment_implementation.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/file_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filter.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filter_handler.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/filtered_generator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/format_messages_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/formatted_pretty_printer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/forward_at_finish_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_merger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fuzzy_finder.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/generator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/generator_handler.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hook.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hooker.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ipc_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/libtool_linkage_checker.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/linkage_checker.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/literal_metadata_key.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/maintainer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask_utils.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/match_package.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/merger_entry_type.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_key.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_key_holder.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/name.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam_merger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ndbam_unmerger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/notifier_callback.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager_factory.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_manager_from_environment.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_dep_spec_collection.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_dep_spec_properties.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_id.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/paludis.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludislike_options_conf.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/partially_made_package_dep_spec.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/partitioning.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/permitted_choice_value_parameter_values.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_print_options.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_printer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_factory.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_name_cache.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/selection.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/selection_handler.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/serialise.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/set_file.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/slot.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/slot_requirement.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/spec_tree.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/standard_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/stripper.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/syncer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tar_merger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tee_output_manager.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unchoices_key.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unformatted_pretty_printer.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unmerger.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/user_dep_spec.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_operator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_requirements.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/version_spec.hh"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis")
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/hooker.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis")
+
+if(ENABLE_PYTHON)
+ install(TARGETS
+ libpaludispythonhooks
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+endif()
+if(ENABLE_PBINS)
+ install(TARGETS
+ libpaludistarextras
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+endif()
+if(ENABLE_STRIPPER)
+ install(TARGETS
+ libpaludisstripperextras
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+endif()
+
diff --git a/paludis/args/CMakeLists.txt b/paludis/args/CMakeLists.txt
new file mode 100644
index 000000000..e29472847
--- /dev/null
+++ b/paludis/args/CMakeLists.txt
@@ -0,0 +1,43 @@
+
+paludis_add_library(libpaludisargs
+ "${CMAKE_CURRENT_SOURCE_DIR}/args.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_error.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_group.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_option.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_section.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/bad_argument.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_dumper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/escape.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/log_level_arg.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/man.cc"
+ SE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.se")
+
+paludis_add_test(args_TEST GTEST
+ LINK_LIBRARIES
+ libpaludisargs)
+
+install(TARGETS
+ libpaludisargs
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_dumper.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_error.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_group.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/args_handler-se.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_option.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_section.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/args_visitor.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/bad_argument.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_help.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/escape.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/log_level_arg.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/man.hh"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/args")
+
diff --git a/paludis/distributions/CMakeLists.txt b/paludis/distributions/CMakeLists.txt
new file mode 100644
index 000000000..a048fd67e
--- /dev/null
+++ b/paludis/distributions/CMakeLists.txt
@@ -0,0 +1,10 @@
+
+add_subdirectory(exherbo)
+add_subdirectory(gentoo)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/exherbo.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gentoo.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/distributions")
+
diff --git a/paludis/distributions/exherbo/CMakeLists.txt b/paludis/distributions/exherbo/CMakeLists.txt
new file mode 100644
index 000000000..ca647d546
--- /dev/null
+++ b/paludis/distributions/exherbo/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/e.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gems.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_blacklist.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/distributions/exherbo")
+
diff --git a/paludis/distributions/gentoo/CMakeLists.txt b/paludis/distributions/gentoo/CMakeLists.txt
new file mode 100644
index 000000000..99bce738a
--- /dev/null
+++ b/paludis/distributions/gentoo/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/e.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gems.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_blacklist.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/distributions/gentoo")
+
diff --git a/paludis/environments/CMakeLists.txt b/paludis/environments/CMakeLists.txt
new file mode 100644
index 000000000..58ec959ec
--- /dev/null
+++ b/paludis/environments/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+foreach(environment ${PALUDIS_ALL_ENVIRONMENTS})
+ string(TOUPPER ${environment} uc_environment)
+ if(ENABLE_${uc_environment}_ENVIRONMENT)
+ add_subdirectory(${environment})
+ endif()
+endforeach()
+
diff --git a/paludis/environments/paludis/CMakeLists.txt b/paludis/environments/paludis/CMakeLists.txt
new file mode 100644
index 000000000..b56bacd88
--- /dev/null
+++ b/paludis/environments/paludis/CMakeLists.txt
@@ -0,0 +1,29 @@
+
+paludis_add_library(libpaludispaludisenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/bashable_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extra_distribution_data.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/keywords_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/licenses_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mirrors_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_mask_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_config.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/suggestions_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/world.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+target_compile_definitions(libpaludispaludisenvironment
+ PRIVATE
+ -DSHAREDIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}")
+add_dependencies(libpaludispaludisenvironment libpaludisutil_SE)
+
+paludis_add_test(paludis_environment GTEST)
+paludis_add_test(world GTEST)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/default_output.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATAROOTDIR}/paludis/environments/paludis")
+
diff --git a/paludis/environments/portage/CMakeLists.txt b/paludis/environments/portage/CMakeLists.txt
new file mode 100644
index 000000000..179426b73
--- /dev/null
+++ b/paludis/environments/portage/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+paludis_add_library(libpaludisportageenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/portage_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_test(portage_environment GTEST)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/bashrc"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/environments/portage")
+
diff --git a/paludis/environments/test/CMakeLists.txt b/paludis/environments/test/CMakeLists.txt
new file mode 100644
index 000000000..07db29b0d
--- /dev/null
+++ b/paludis/environments/test/CMakeLists.txt
@@ -0,0 +1,12 @@
+
+paludis_add_library(libpaludistestenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/test_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+add_dependencies(libpaludistestenvironment libpaludis_SE libpaludisutil_SE)
+
+install(FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_environment.hh
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/environments/test")
+
diff --git a/paludis/fetchers/CMakeLists.txt b/paludis/fetchers/CMakeLists.txt
new file mode 100644
index 000000000..ec35b4082
--- /dev/null
+++ b/paludis/fetchers/CMakeLists.txt
@@ -0,0 +1,31 @@
+
+foreach(scheme http;https;ftp)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dowget.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+
+add_custom_command(OUTPUT
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep"
+ COMMAND
+ "${CMAKE_COMMAND}" -E touch "${CMAKE_CURRENT_BINARY_DIR}/.keep")
+# FIXME(compnerd) auto-generate the target
+add_custom_target(fetchers-keep
+ ALL
+ DEPENDS
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep")
+
+add_subdirectory(demos)
+
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/dohttp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohttps"
+ "${CMAKE_CURRENT_BINARY_DIR}/doftp"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dofile"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/fetchers")
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/fetchers")
+
diff --git a/paludis/fetchers/demos/CMakeLists.txt b/paludis/fetchers/demos/CMakeLists.txt
new file mode 100644
index 000000000..c1749f7ff
--- /dev/null
+++ b/paludis/fetchers/demos/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/docurl"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/fetchers/demos")
+
diff --git a/paludis/repositories/CMakeLists.txt b/paludis/repositories/CMakeLists.txt
new file mode 100644
index 000000000..1198e3412
--- /dev/null
+++ b/paludis/repositories/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+foreach(repository ${PALUDIS_ALL_REPOSITORIES})
+ string(TOUPPER ${repository} repository_uppercase)
+ if(ENABLE_${repository_uppercase}_REPOSITORY)
+ add_subdirectory(${repository})
+ endif()
+endforeach()
+
diff --git a/paludis/repositories/accounts/CMakeLists.txt b/paludis/repositories/accounts/CMakeLists.txt
new file mode 100644
index 000000000..0f38ccf35
--- /dev/null
+++ b/paludis/repositories/accounts/CMakeLists.txt
@@ -0,0 +1,17 @@
+
+paludis_add_library(libpaludisaccountsrepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_exceptions.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_repository_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_dep_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/accounts_installed_mask.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/installed_accounts_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dummy_accounts_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/passwd_accounts_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_test(accounts_repository GTEST)
+
diff --git a/paludis/repositories/e/CMakeLists.txt b/paludis/repositories/e/CMakeLists.txt
new file mode 100644
index 000000000..65a3d44a2
--- /dev/null
+++ b/paludis/repositories/e/CMakeLists.txt
@@ -0,0 +1,158 @@
+
+add_subdirectory(eapis)
+add_subdirectory(ebuild)
+
+if(ENABLE_XML)
+ add_definitions(-DENABLE_XML)
+
+ paludis_add_library(libpaludiserepositoryxmlthings
+ "${CMAKE_CURRENT_SOURCE_DIR}/xml_things.cc")
+ target_include_directories(libpaludiserepositoryxmlthings
+ PRIVATE
+ ${LIBXML2_INCLUDE_DIR})
+ target_link_libraries(libpaludiserepositoryxmlthings
+ PRIVATE
+ ${LIBXML2_LIBRARIES})
+endif()
+
+paludis_add_library(libpaludiserepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/a_finder.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/aa_visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/can_skip_phase.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/check_fetched_files_visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/check_userpriv.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_parser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_fetch_action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_info_action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_install_action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_pretend_action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/do_pretend_fetch_action.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_choice_value.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_installed_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_installed_repository_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_choices_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_keywords_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_mask.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_exceptions.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_news.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_params.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_sets.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_slot_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_string_set_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_stripper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/eapi.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/eapi_phase.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ebuild.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ebuild_flat_metadata_cache.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ebuild_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/eclass_mtimes.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exndbam_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exndbam_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exheres_layout.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exheres_mask_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exheres_profile.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extra_distribution_data.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fetch_visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/file_suffixes.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/info_metadata_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/iuse.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretend_fetch_visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fix_locked_dependencies.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/glsa.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/layout.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/licence_groups.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_archive_strings.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_use.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/manifest2_reader.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mask_info.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/memoised_hashes.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/metadata_xml.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/myoption.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/myoptions_requirements_verifier.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/parse_annotations.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/parse_dependency_label.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/parse_plain_text_label.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/parse_uri_label.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin_merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/permitted_directories.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pipe_command_handler.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/profile.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/required_use_verifier.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/source_uri_finder.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/spec_tree_pretty_printer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional_layout.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional_mask_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional_mask_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional_profile.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional_profile_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_desc.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/xml_things_handle.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/vdb_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/vdb_merger.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/vdb_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/vdb_unmerger.cc"
+ SE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_parser.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/iuse.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/e_repository_params.se")
+
+foreach(test
+ aa_visitor
+ dep_parser
+ fix_locked_dependencies
+ source_uri_finder)
+ paludis_add_test(${test} GTEST)
+endforeach()
+foreach(test
+ vdb_repository
+ vdb_repository_TEST_eapis
+ vdb_repository_TEST_cache
+ e_repository
+ e_repository_TEST_0
+ e_repository_TEST_1
+ e_repository_TEST_2
+ e_repository_TEST_3
+ e_repository_TEST_4
+ e_repository_TEST_5
+ e_repository_TEST_6
+ e_repository_TEST_ever
+ e_repository_TEST_exheres_0
+ e_repository_TEST_exlibs
+ e_repository_TEST_phases
+ e_repository_TEST_replacing
+ e_repository_TEST_symlink_rewriting
+ exndbam_repository
+ depend_rdepend
+ e_repository_sets
+ ebuild_flat_metadata_cache
+ fetch_visitor
+ vdb_merger
+ vdb_unmerger)
+ paludis_add_test(${test} GTEST)
+endforeach()
+
+if(ENABLE_XML)
+ paludis_add_test(xml_things GTEST)
+endif()
+
+if(ENABLE_PBINS)
+ paludis_add_test(e_repository_TEST_pbin GTEST)
+endif()
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/traditional.exclude"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ebuild_entries_suffixes.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis")
+if(ENABLE_XML)
+ install(TARGETS
+ libpaludiserepositoryxmlthings
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+endif()
+
diff --git a/paludis/repositories/e/eapis/CMakeLists.txt b/paludis/repositories/e/eapis/CMakeLists.txt
new file mode 100644
index 000000000..2b818d6b8
--- /dev/null
+++ b/paludis/repositories/e/eapis/CMakeLists.txt
@@ -0,0 +1,23 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/0.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/1.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/2.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/3.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/4.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/5.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/6.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exheres-0.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis-1.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+0.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+1.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+2.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+3.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+4.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+5.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+6.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+exheres-0.conf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pbin-1+paludis-1.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/eapis")
+
diff --git a/paludis/repositories/e/ebuild/0/CMakeLists.txt b/paludis/repositories/e/ebuild/0/CMakeLists.txt
new file mode 100644
index 000000000..dba97c2e2
--- /dev/null
+++ b/paludis/repositories/e/ebuild/0/CMakeLists.txt
@@ -0,0 +1,39 @@
+
+paludis_add_test(conditional_functions BASH EBUILD_MODULE_SUFFIXES 0)
+paludis_add_test(list_functions BASH EBUILD_MODULE_SUFFIXES 0)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/build_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_infovars.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_init.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_initrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_initmisc.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_loadenv.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_metadata.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_killold.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_killoldrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_saveenv.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_tidyup.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_tidyuprm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_variable.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/conditional_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/eclass_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/list_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_config.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_info.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_nofetch.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_postinst.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_postrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_preinst.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_prerm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_pretend.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_setup.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/portage_stubs.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_compile.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_install.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_test.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_unpack.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/0")
+
diff --git a/paludis/repositories/e/ebuild/1/CMakeLists.txt b/paludis/repositories/e/ebuild/1/CMakeLists.txt
new file mode 100644
index 000000000..124992bbd
--- /dev/null
+++ b/paludis/repositories/e/ebuild/1/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_compile.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/1")
+
diff --git a/paludis/repositories/e/ebuild/2/CMakeLists.txt b/paludis/repositories/e/ebuild/2/CMakeLists.txt
new file mode 100644
index 000000000..4e2987b58
--- /dev/null
+++ b/paludis/repositories/e/ebuild/2/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/eclass_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_nofetch.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_compile.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_configure.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_install.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_prepare.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_test.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_unpack.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/2")
+
diff --git a/paludis/repositories/e/ebuild/3/CMakeLists.txt b/paludis/repositories/e/ebuild/3/CMakeLists.txt
new file mode 100644
index 000000000..0cf81f5a8
--- /dev/null
+++ b/paludis/repositories/e/ebuild/3/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/3")
+
diff --git a/paludis/repositories/e/ebuild/4/CMakeLists.txt b/paludis/repositories/e/ebuild/4/CMakeLists.txt
new file mode 100644
index 000000000..1523c4690
--- /dev/null
+++ b/paludis/repositories/e/ebuild/4/CMakeLists.txt
@@ -0,0 +1,10 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_bad_required_use.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_pretend.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_install.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/die_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/4")
+
diff --git a/paludis/repositories/e/ebuild/5/CMakeLists.txt b/paludis/repositories/e/ebuild/5/CMakeLists.txt
new file mode 100644
index 000000000..767dc4efa
--- /dev/null
+++ b/paludis/repositories/e/ebuild/5/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_test.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/usex.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/list_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/5")
+
diff --git a/paludis/repositories/e/ebuild/6/CMakeLists.txt b/paludis/repositories/e/ebuild/6/CMakeLists.txt
new file mode 100644
index 000000000..8693c86b6
--- /dev/null
+++ b/paludis/repositories/e/ebuild/6/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/build_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/list_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/multilib_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_install.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_prepare.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/6")
+
diff --git a/paludis/repositories/e/ebuild/CMakeLists.txt b/paludis/repositories/e/ebuild/CMakeLists.txt
new file mode 100644
index 000000000..f30533451
--- /dev/null
+++ b/paludis/repositories/e/ebuild/CMakeLists.txt
@@ -0,0 +1,35 @@
+
+add_subdirectory(0)
+add_subdirectory(1)
+add_subdirectory(2)
+add_subdirectory(3)
+add_subdirectory(4)
+add_subdirectory(5)
+add_subdirectory(6)
+add_subdirectory(exheres-0)
+add_subdirectory(paludis-1)
+add_subdirectory(pbin-1)
+add_subdirectory(utils)
+
+paludis_add_test(kernel_functions BASH
+ EBUILD_MODULE_SUFFIXES 0
+ TEST_RUNNER "${CMAKE_CURRENT_SOURCE_DIR}/run_test.bash")
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/binary_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/die_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ebuild.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/kernel_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/install_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/multilib_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pipe_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sandbox.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sydbox.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/source_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/usage_error.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/write_vdb_entry.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/write_binary_ebuild.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis")
+
diff --git a/paludis/repositories/e/ebuild/exheres-0/CMakeLists.txt b/paludis/repositories/e/ebuild/exheres-0/CMakeLists.txt
new file mode 100644
index 000000000..4d114d474
--- /dev/null
+++ b/paludis/repositories/e/ebuild/exheres-0/CMakeLists.txt
@@ -0,0 +1,43 @@
+
+paludis_add_test(conditional_functions BASH EBUILD_MODULE_SUFFIXES exheres-0)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/build_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_infovars.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_init.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_initrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_initmisc.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_loadenv.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_metadata.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_killold.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_killoldrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_saveenv.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_tidyup.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_variable.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/conditional_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ever_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exlib_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/list_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_bad_options.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_config.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_info.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_nofetch.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_postinst.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_postrm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_preinst.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_prerm.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_pretend.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pkg_setup.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/portage_stubs.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_compile.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_configure.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_fetch_extra.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_install.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_test.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_test_expensive.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_prepare.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/src_unpack.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/exheres-0")
+
diff --git a/paludis/repositories/e/ebuild/paludis-1/CMakeLists.txt b/paludis/repositories/e/ebuild/paludis-1/CMakeLists.txt
new file mode 100644
index 000000000..101a0b5b0
--- /dev/null
+++ b/paludis/repositories/e/ebuild/paludis-1/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/paludis-1")
+
diff --git a/paludis/repositories/e/ebuild/pbin-1/CMakeLists.txt b/paludis/repositories/e/ebuild/pbin-1/CMakeLists.txt
new file mode 100644
index 000000000..4d4dc44a2
--- /dev/null
+++ b/paludis/repositories/e/ebuild/pbin-1/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_installbin.bash"
+ "${CMAKE_CURRENT_SOURCE_DIR}/builtin_pivotbin.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/pbin-1")
+
diff --git a/paludis/repositories/e/ebuild/utils/4/CMakeLists.txt b/paludis/repositories/e/ebuild/utils/4/CMakeLists.txt
new file mode 100644
index 000000000..9fedda764
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/4/CMakeLists.txt
@@ -0,0 +1,17 @@
+
+foreach(bannedscript
+ dohard
+ dosed)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/banned_in_eapi_4"
+ "${CMAKE_CURRENT_BINARY_DIR}/${bannedscript}"
+ @ONLY)
+endforeach()
+
+install(PROGRAMS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docompress"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohard"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosed"
+ "${CMAKE_CURRENT_SOURCE_DIR}/banned_in_eapi_4"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils/4")
+
diff --git a/paludis/repositories/e/ebuild/utils/5/CMakeLists.txt b/paludis/repositories/e/ebuild/utils/5/CMakeLists.txt
new file mode 100644
index 000000000..29a19c70e
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/5/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/doheader"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newheader"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils/5")
+
diff --git a/paludis/repositories/e/ebuild/utils/CMakeLists.txt b/paludis/repositories/e/ebuild/utils/CMakeLists.txt
new file mode 100644
index 000000000..9b34bedf1
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/CMakeLists.txt
@@ -0,0 +1,97 @@
+
+add_subdirectory(4)
+add_subdirectory(5)
+add_subdirectory(exheres-0)
+
+foreach(prep all;allstrip;allman;allinfo;strip;man;info;docs;alldocs)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/prep.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/prep${prep}"
+ @ONLY)
+endforeach()
+
+if(ENABLE_PBINS)
+ add_executable(unpaxinate
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpaxinate.cc")
+ target_link_libraries(unpaxinate
+ PRIVATE
+ ${LibArchive_LIBRARIES})
+endif()
+
+add_executable(print_exports
+ "${CMAKE_CURRENT_SOURCE_DIR}/print_exports.cc")
+add_executable(locked_pipe_command
+ "${CMAKE_CURRENT_SOURCE_DIR}/locked_pipe_command.cc")
+add_executable(strip_tar_corruption
+ "${CMAKE_CURRENT_SOURCE_DIR}/strip_tar_corruption.cc")
+
+paludis_add_test(wrapped_getfsize BASH
+ EBUILD_MODULE_SUFFIXES 0
+ TEST_RUNNER "${CMAKE_CURRENT_SOURCE_DIR}/run_test.bash")
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/canonicalise"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dobin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doconfd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dodir"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dodoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doenvd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doexe"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dohard"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dohtml"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doinfo"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doinitd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doins"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dolib"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dolib.a"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dolib.so"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doman"
+ "${CMAKE_CURRENT_SOURCE_DIR}/domo"
+ "${CMAKE_CURRENT_SOURCE_DIR}/donewins"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dosbin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dosed"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dosym"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ecompress"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ecompressdir"
+ "${CMAKE_CURRENT_SOURCE_DIR}/emake"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fowners"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fperms"
+ "${CMAKE_CURRENT_SOURCE_DIR}/keepdir"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newbin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newconfd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newdoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newenvd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newexe"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newinitd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newins"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newlib.a"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newlib.so"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newman"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newsbin"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepall"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallstrip"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepstrip"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallman"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepman"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallinfo"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepinfo"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepdocs"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepalldocs"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpack"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_ldconfig"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_getfsize"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_getmtime"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils")
+install(TARGETS
+ print_exports
+ locked_pipe_command
+ strip_tar_corruption
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils")
+if(ENABLE_PBINS)
+ install(TARGETS
+ unpaxinate
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils")
+endif()
+
diff --git a/paludis/repositories/e/ebuild/utils/exheres-0/CMakeLists.txt b/paludis/repositories/e/ebuild/utils/exheres-0/CMakeLists.txt
new file mode 100644
index 000000000..ca219ec2d
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/exheres-0/CMakeLists.txt
@@ -0,0 +1,58 @@
+
+foreach(bannedscript
+ prepall
+ prepallstrip
+ prepstrip
+ prepallman
+ prepman
+ prepallinfo
+ prepinfo
+ prepdocs
+ prepalldocs
+ dohard
+ donewins
+ dosed
+ dohtml
+ ecompress
+ ecompressdir
+ fperms
+ fowners)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/banned_in_eapi_exheres-0"
+ "${CMAKE_CURRENT_BINARY_DIR}/${bannedscript}"
+ @ONLY)
+endforeach()
+
+install(PROGRAMS
+ "${CMAKE_CURRENT_BINARY_DIR}/dohard"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohtml"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dolib"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dosbin"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosed"
+ "${CMAKE_CURRENT_BINARY_DIR}/donewins"
+ "${CMAKE_CURRENT_SOURCE_DIR}/emake"
+ "${CMAKE_CURRENT_BINARY_DIR}/fperms"
+ "${CMAKE_CURRENT_BINARY_DIR}/fowners"
+ "${CMAKE_CURRENT_SOURCE_DIR}/herebin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hereconfd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hereenvd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hereinitd"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hereins"
+ "${CMAKE_CURRENT_SOURCE_DIR}/heresbin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/newsbin"
+ "${CMAKE_CURRENT_SOURCE_DIR}/nonfatal"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepall"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallstrip"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepstrip"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallman"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepman"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepallinfo"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepinfo"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepdocs"
+ "${CMAKE_CURRENT_BINARY_DIR}/prepalldocs"
+ "${CMAKE_CURRENT_BINARY_DIR}/ecompress"
+ "${CMAKE_CURRENT_BINARY_DIR}/ecompressdir"
+ "${CMAKE_CURRENT_SOURCE_DIR}/strip"
+ "${CMAKE_CURRENT_SOURCE_DIR}/banned_in_eapi_exheres-0"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils/exheres-0")
+
diff --git a/paludis/repositories/fake/CMakeLists.txt b/paludis/repositories/fake/CMakeLists.txt
new file mode 100644
index 000000000..2dfbc9f1e
--- /dev/null
+++ b/paludis/repositories/fake/CMakeLists.txt
@@ -0,0 +1,24 @@
+
+paludis_add_library(libpaludisfakerepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_parser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_repository_base.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_installed_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_package_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+add_dependencies(libpaludisfakerepository libpaludisutil_SE)
+
+paludis_add_test(fake_repository GTEST)
+paludis_add_test(fake_installed_repository GTEST)
+# paludis_add_test(dep_parser)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/dep_parser.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_repository.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_repository_base.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_installed_repository.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fake_package_id.hh"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/repositories/fake")
+
diff --git a/paludis/repositories/gemcutter/CMakeLists.txt b/paludis/repositories/gemcutter/CMakeLists.txt
new file mode 100644
index 000000000..cca527b8f
--- /dev/null
+++ b/paludis/repositories/gemcutter/CMakeLists.txt
@@ -0,0 +1,25 @@
+
+paludis_add_library(libpaludisgemcutterrepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_dependencies_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_uri_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_repository_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/json_common.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/json_things_handle.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_library(libpaludisgemcutterrepositoryjsonthings
+ json_things.cc)
+target_include_directories(libpaludisgemcutterrepositoryjsonthings
+ PRIVATE
+ ${Jansson_INCLUDE_DIRS})
+target_link_libraries(libpaludisgemcutterrepositoryjsonthings
+ PRIVATE
+ ${Jansson_LIBRARIES})
+
+install(TARGETS
+ libpaludisgemcutterrepositoryjsonthings
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
diff --git a/paludis/repositories/repository/CMakeLists.txt b/paludis/repositories/repository/CMakeLists.txt
new file mode 100644
index 000000000..b8cff913d
--- /dev/null
+++ b/paludis/repositories/repository/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+paludis_add_library(libpaludisrepositoryrepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/repository_repository_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
diff --git a/paludis/repositories/unavailable/CMakeLists.txt b/paludis/repositories/unavailable/CMakeLists.txt
new file mode 100644
index 000000000..6fad5cc7b
--- /dev/null
+++ b/paludis/repositories/unavailable/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+paludis_add_library(libpaludisunavailablerepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_package_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_repository_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_repository_dependencies_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_mask.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_repository_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unavailable_repository_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_test(unavailable_repository GTEST)
+
diff --git a/paludis/repositories/unpackaged/CMakeLists.txt b/paludis/repositories/unpackaged/CMakeLists.txt
new file mode 100644
index 000000000..e2361f45d
--- /dev/null
+++ b/paludis/repositories/unpackaged/CMakeLists.txt
@@ -0,0 +1,15 @@
+
+paludis_add_library(libpaludisunpackagedrepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/exceptions.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpackaged_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpackaged_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpackaged_key.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unpackaged_stripper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/installed_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/installed_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_test(unpackaged_repository GTEST)
+paludis_add_test(installed_repository GTEST)
+
diff --git a/paludis/repositories/unwritten/CMakeLists.txt b/paludis/repositories/unwritten/CMakeLists.txt
new file mode 100644
index 000000000..61d223ae3
--- /dev/null
+++ b/paludis/repositories/unwritten/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+paludis_add_library(libpaludisunwrittenrepository
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/unwritten_repository.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unwritten_id.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unwritten_mask.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unwritten_repository_store.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unwritten_repository_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+add_dependencies(libpaludisunwrittenrepository libpaludisutil_SE)
+
+paludis_add_test(unwritten_repository GTEST)
+
diff --git a/paludis/resolver/CMakeLists.txt b/paludis/resolver/CMakeLists.txt
new file mode 100644
index 000000000..c7980257b
--- /dev/null
+++ b/paludis/resolver/CMakeLists.txt
@@ -0,0 +1,126 @@
+
+paludis_add_library(libpaludisresolver
+ STATIC_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/accumulate_deps.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/allow_choice_changes_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/allowed_to_remove_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/allowed_to_restart_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/always_via_binary_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/any_child_score.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/can_use_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/change_by_resolvent.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/change_type.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/collect_depped_upon.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/collect_installed.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/collect_purges.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/collect_world.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/confirm_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/constraint.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/decider.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/decision.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/decision_utils.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/decisions.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destination.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destination_types.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destination_utils.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/find_replacing_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/find_repository_for_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_constraints_for_dependent_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_constraints_for_purge_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_constraints_for_via_binary_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_destination_types_for_blocker_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_destination_types_for_error_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_initial_constraints_for_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_resolvents_for_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_sameness.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/get_use_existing_nothing_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/has_behaviour.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/interest_in_spec_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job_list.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job_lists.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job_requirements.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job_state.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/labels_classifier.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_destination_filtered_generator_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_origin_filtered_generator_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_uninstall_blocker.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_unmaskable_filter_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/match_qpns.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/nag.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/order_early_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/orderer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/orderer_notes.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_id_comparator_with_promotion.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_or_block_dep_spec.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/prefer_or_avoid_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/promote_binaries.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/promote_binaries_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/reason.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/reason_utils.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/remove_hidden_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/remove_if_dependent_helper.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/required_confirmations.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolution.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolutions_by_resolvent.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolved.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolvent.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolver.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolver_functions.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/same_slot.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sanitised_dependencies.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/selection_with_promotion.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/slot_name_or_null.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/strongly_connected_component.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/suggest_restart.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/unsuitable_candidates.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_existing.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/why_changed_choices.cc"
+ SE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/any_child_score.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/change_type.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/decision.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destination_types.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/job_requirements.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/nag.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/promote_binaries.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolver_functions.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_existing.se")
+target_link_libraries(libpaludisresolver
+ INTERFACE
+ ${CMAKE_THREAD_LIBS_INIT})
+
+paludis_add_library(libpaludisresolvertest
+ STATIC
+ "${CMAKE_CURRENT_SOURCE_DIR}/resolver_test.cc")
+# TODO(compnerd) create an object library for the SE_SOURCES that we can depend
+# on instead
+add_dependencies(libpaludisresolvertest libpaludisresolver_SE)
+
+foreach(test
+ any
+ binaries
+ continue_on_failure
+ errors
+ fetches
+ purges
+ blockers
+ cycles
+ serialisation
+ simple
+ subslots
+ suggestions
+ uninstalls)
+ paludis_add_test(resolver_TEST_${test} GTEST
+ LINK_LIBRARIES
+ libpaludisresolvertest
+ libpaludisresolver)
+endforeach()
+if(ENABLE_PBINS)
+ paludis_add_test(resolver_TEST_promote_binaries GTEST)
+ target_link_libraries(resolver_TEST_promote_binaries
+ PRIVATE
+ libpaludisresolvertest
+ libpaludisresolver)
+endif()
+
diff --git a/paludis/selinux/CMakeLists.txt b/paludis/selinux/CMakeLists.txt
new file mode 100644
index 000000000..64fc9939e
--- /dev/null
+++ b/paludis/selinux/CMakeLists.txt
@@ -0,0 +1,16 @@
+
+paludis_add_library(libpaludisselinux
+ "${CMAKE_CURRENT_SOURCE_DIR}/security_context.cc")
+target_link_libraries(libpaludisselinux
+ PRIVATE
+ ${CMAKE_DL_LIBS})
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/security_context.hh"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/selinux")
+install(TARGETS
+ libpaludisselinux
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+
diff --git a/paludis/syncers/CMakeLists.txt b/paludis/syncers/CMakeLists.txt
new file mode 100644
index 000000000..e13cc67e6
--- /dev/null
+++ b/paludis/syncers/CMakeLists.txt
@@ -0,0 +1,100 @@
+
+foreach(scheme bzr;bzr+aftp;bzr+file;bzr+ftp;bzr+http;bzr+https;bzr+lp;bzr+sftp;bzr+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dobzr.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme cvs+ext;cvs+pserver;cvs+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/docvs.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme darcs+file;darcs+http;darcs+https;darcs+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dodarcs.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme git;git+file;git+http;git+https;git+rsync;git+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dogit.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme hg+file;hg+http;hg+https;hg+ssh;hg+static-http)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dohg.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme file;rsync;rsync+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dorsync.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme svn;svn+file;svn+http;svn+https;svn+ssh)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dosvn.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+foreach(scheme tar+file;tar+ftp;tar+http;tar+https)
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dotar.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/do${scheme}"
+ @ONLY)
+endforeach()
+
+add_custom_command(OUTPUT
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep"
+ COMMAND
+ "${CMAKE_COMMAND}" -E touch "${CMAKE_CURRENT_BINARY_DIR}/.keep")
+# FIXME(compnerd) auto-generate the target
+add_custom_target(syncers-keep
+ ALL
+ DEPENDS
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep")
+
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+aftp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+ftp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+https"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+lp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+sftp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dobzr+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/docvs+ext"
+ "${CMAKE_CURRENT_BINARY_DIR}/docvs+pserver"
+ "${CMAKE_CURRENT_BINARY_DIR}/docvs+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dodarcs+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dodarcs+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dodarcs+https"
+ "${CMAKE_CURRENT_BINARY_DIR}/dodarcs+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dofile"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit+https"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit+rsync"
+ "${CMAKE_CURRENT_BINARY_DIR}/dogit+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohg+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohg+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohg+https"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohg+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dohg+static-http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dorsync"
+ "${CMAKE_CURRENT_BINARY_DIR}/dorsync+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosvn"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosvn+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosvn+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosvn+https"
+ "${CMAKE_CURRENT_BINARY_DIR}/dosvn+ssh"
+ "${CMAKE_CURRENT_BINARY_DIR}/dotar+file"
+ "${CMAKE_CURRENT_BINARY_DIR}/dotar+ftp"
+ "${CMAKE_CURRENT_BINARY_DIR}/dotar+http"
+ "${CMAKE_CURRENT_BINARY_DIR}/dotar+https"
+ "${CMAKE_CURRENT_SOURCE_DIR}/dodummy"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/syncers")
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/.keep"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATADIR}/paludis/syncers")
+
diff --git a/paludis/util/CMakeLists.txt b/paludis/util/CMakeLists.txt
new file mode 100644
index 000000000..c8b109324
--- /dev/null
+++ b/paludis/util/CMakeLists.txt
@@ -0,0 +1,263 @@
+
+paludis_m4process(${CMAKE_CURRENT_SOURCE_DIR}/util.hh.m4
+ paludis_util_hh_TARGET)
+
+paludis_add_library(libpaludisutil
+ "${CMAKE_CURRENT_SOURCE_DIR}/active_object_ptr.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/buffer_output_stream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/channel.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/config_file.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/cookie.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/damerau_levenshtein.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destringify.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/deferred_construction_ptr.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/digest_registry.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/discard_output_stream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_dynamic_section.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_relocation_section.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_sections.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_symbol_section.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/enum_iterator.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/env_var_names.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exception.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/executor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extract_host_from_url.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_iterator.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_error.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_path.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_stat.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/graph.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hashes.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/is_file_with_extension.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/log.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_named_values.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/map.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/md5.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/named_value.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/options.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/persona.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pipe.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pool.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_print.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/process.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pty.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/realpath.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/return_literal_function.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/rmd160.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/safe_ifstream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/safe_ofstream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sequence.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/set.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha1.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha256.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha512.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/simple_parser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/string_list_stream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/strip.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/system.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tail_output_stream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tee_output_stream.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/thread_pool.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/timestamp.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tokeniser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tribool.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/type_list.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/upper_lower.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/visitor.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/visitor_cast.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/whirlpool.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wildcard_expander.cc"
+ SE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/config_file.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_iterator.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_path.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/is_file_with_extension.se"
+ "${CMAKE_CURRENT_SOURCE_DIR}/log.se")
+add_dependencies(libpaludisutil ${paludis_util_hh_TARGET})
+target_link_libraries(libpaludisutil
+ PRIVATE
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${CMAKE_DL_LIBS})
+
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/echo_functions.bash.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/echo_functions.bash"
+ @ONLY)
+
+add_executable(outputwrapper
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_wrapper.cc")
+
+foreach(test
+ active_object_ptr
+ byte_swap
+ create_iterator
+ damerau_levenshtein
+ destringify
+ deferred_construction_ptr
+ enum_iterator
+ extract_host_from_url
+ graph
+ hashes
+ iterator_funcs
+ indirect_iterator
+ join
+ log
+ member_iterator
+ md5
+ options
+ pool
+ pretty_print
+ pty
+ return_literal_function
+ rmd160
+ save
+ sha1
+ sha256
+ sha512
+ simple_parser
+ singleton
+ stream_holder
+ stringify
+ strip
+ system
+ tail_output_stream
+ thread_pool
+ tokeniser
+ tribool
+ whirlpool
+ wrapped_forward_iterator
+ wrapped_value)
+ paludis_add_test(${test} GTEST)
+endforeach()
+
+foreach(test
+ config_file
+ fs_iterator
+ fs_path
+ fs_stat
+ is_file_with_extension
+ process
+ realpath
+ safe_ifstream
+ safe_ofstream
+ wildcard_expander)
+ paludis_add_test(${test} GTEST)
+endforeach()
+
+foreach(test buffer_output_stream;string_list_stream)
+ paludis_add_test(${test} GTEST
+ LINK_LIBRARIES
+ ${CMAKE_THREAD_LIBS_INIT})
+endforeach()
+
+install(TARGETS
+ libpaludisutil
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}")
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/active_object_ptr.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/attributes.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/buffer_output_stream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/byte_swap.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/channel.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/checked_delete.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/clone.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/config_file.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/cookie.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/create_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/damerau_levenshtein.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/destringify.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/deferred_construction_ptr.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/digest_registry.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/discard_output_stream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_dynamic_section.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_relocation_section.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_sections.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_symbol_section.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/elf_types.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/enum_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/env_var_names.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/exception.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/executor.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extract_host_from_url.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fd_holder.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_error.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_path.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/fs_stat.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/graph.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/hashes.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/iterator_funcs.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/iterator_range.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/indirect_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/is_file_with_extension.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/join.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/log.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_named_values.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/make_shared_copy.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/map.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/member_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/md5.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/named_value.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/no_type.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/operators.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/options.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/persona.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pimp.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pipe.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pool.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pretty_print.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/process.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/pty.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/realpath.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/remove_shared_ptr.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/return_literal_function.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/rmd160.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/safe_ifstream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/safe_ofstream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/save.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sequence.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/set.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha1.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha256.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/sha512.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/simple_parser.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/singleton.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/stream_holder.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/stringify.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/string_list_stream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/strip.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/system.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tail_output_stream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tee_output_stream.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/thread_pool.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/timestamp.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tokeniser.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/tribool.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/type_list.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/upper_lower.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/util.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/visitor.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/visitor_cast.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/whirlpool.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wildcard_expander.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_forward_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_output_iterator.hh"
+ "${CMAKE_CURRENT_SOURCE_DIR}/wrapped_value.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/config_file-se.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/fs_iterator-se.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/fs_path-se.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/is_file_with_extension-se.hh"
+ "${CMAKE_CURRENT_BINARY_DIR}/log-se.hh"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/util")
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/echo_functions.bash"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis")
+install(TARGETS
+ outputwrapper
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/utils")
+