Commits

Laurent Bachelier  committed 25e563e

bedup: Add kernel checks

  • Participants
  • Parent commits ed89a6a

Comments (0)

Files changed (1)

File sys-fs/bedup/bedup-0.0.5.ebuild

 PYTHON_DEPEND="2:2.6 3:3.2"
 SUPPORT_PYTHON_ABIS="1"
 
-inherit base distutils
+inherit base linux-info distutils
 
 DESCRIPTION="Deduplication for Btrfs filesystems"
 HOMEPAGE="http://pypi.python.org/pypi/bedup https://github.com/g2p/bedup"
 dev-python/sqlalchemy"
 
 DOCS="COPYING README.rst"
+
+MINKV="3.3"
+
+distutils_src_compile_pre_hook() {
+	local CONFIG_CHECK="~BTRFS_FS"
+	kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
+	check_extra_config
+}