config BR2_PACKAGE_GIT_CRYPT
	bool "git-crypt"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
	depends on BR2_USE_MMU # git
	select BR2_PACKAGE_GIT # runtime
	select BR2_PACKAGE_OPENSSL
	help
	  git-crypt enables transparent encryption and decryption of
	  files in a git repository.

	  https://www.agwa.name/projects/git-crypt/

comment "git-crypt needs a toolchain w/ C++, gcc >= 4.9"
	depends on !BR2_INSTALL_LIBSTDCPP \
		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
	depends on BR2_USE_MMU

comment "git-crypt needs a toolchain not affected by GCC bug 64735"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
