diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2005-11-17 16:50:39 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2005-11-17 16:50:39 +0000 |
commit | cd85791b7b48b91a307a76dadc7b5a787db03a9c (patch) | |
tree | 06f945503c8a232e47b51ee9549d5086811f999d /dev-python/python-fuse/python-fuse-2.3.ebuild | |
parent | Typo (diff) | |
download | overlay-cd85791b7b48b91a307a76dadc7b5a787db03a9c.tar.gz overlay-cd85791b7b48b91a307a76dadc7b5a787db03a9c.tar.bz2 overlay-cd85791b7b48b91a307a76dadc7b5a787db03a9c.zip |
Fixes to the dependencies
svn path=/; revision=529
Diffstat (limited to 'dev-python/python-fuse/python-fuse-2.3.ebuild')
-rw-r--r-- | dev-python/python-fuse/python-fuse-2.3.ebuild | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/dev-python/python-fuse/python-fuse-2.3.ebuild b/dev-python/python-fuse/python-fuse-2.3.ebuild index 644d0f5..bf55aaf 100644 --- a/dev-python/python-fuse/python-fuse-2.3.ebuild +++ b/dev-python/python-fuse/python-fuse-2.3.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit distutils +inherit distutils linux-info eutils DESCRIPTION="Python bindings for FUSE (Filesystem in Userspace)" HOMEPAGE="http://fuse.sourceforge.net/" @@ -13,10 +13,37 @@ SLOT="0" KEYWORDS="~x86" IUSE="" -DEPEND="sys-fs/fuse" +DEPEND="|| (sys-fs/fuse >=virtual/linux-sources-2.6.14)" S=${WORKDIR}/${PN} +pkg_setup() { + linux-info_pkg_setup + + CURRENT=$(($((${KV_MAJOR}*10000))+$((${KV_MINOR}*100))+$((${KV_PATCH})))) + + if [ ${CURRENT -ge 20614 ]; then + + ebegin "Checking for kernel FUSE support" + linux_chkconfig_present CONFIG_FUSE_FS + eend $? + + if [[ $? -ne 0 ]] ; then + ewarn "python-fuse requires FUSE support!" + ewarn "Please enable FUSE support in your kernel config, found at:" + ewarn "(for 2.6 kernels)" + ewarn + ewarn " Device Drivers" + ewarn " File systems" + ewarn " <*> Filesystem in Userspace support" + ewarn + ewarn "and recompile your kernel if you want this package to work with this kernel" + epause 5 + fi + + fi +} + src_install() { distutils_src_install |