# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.utils import shell class Recipe(recipe.Recipe): name = 'gnome-vfs' version = '2.24.4' licenses = [License.LGPL] stype = SourceType.TARBALL url = 'http://ftp.gnome.org/pub/GNOME/sources/gnome-vfs/2.24/gnome-vfs-2.24.4.tar.bz2' deps = ['libxml', 'zlib', 'glib', 'gconf', 'gnome-mime-data', 'dbus'] files_bins = [ 'gnomevfs-cat', 'gnomevfs-copy', 'gnomevfs-df', 'gnomevfs-info', 'gnomevfs-ls', 'gnomevfs-mkdir', 'gnomevfs-monitor', 'gnomevfs-mv', 'gnomevfs-rm', ] files_lang = ['gnome-vfs-2.0'] files_libs = ['libgnomevfs-2'] files_devel = [ 'lib/pkgconfig/gnome-vfs-2.0.pc', 'lib/pkgconfig/gnome-vfs-module-2.0.pc', 'include/gnome-vfs-2.0/', 'include/gnome-vfs-module-2.0/', ] files_dbus = ['share/dbus-1/services/gnome-vfs-daemon.service'] files_daemon = ['libexec/gnome-vfs-daemon%(bext)s'] files_modules = [ 'lib/gnome-vfs-2.0/modules/libbzip2.so', 'lib/gnome-vfs-2.0/modules/libcomputer.so', 'lib/gnome-vfs-2.0/modules/libdns-sd.so', 'lib/gnome-vfs-2.0/modules/libfile.so', 'lib/gnome-vfs-2.0/modules/libftp.so', 'lib/gnome-vfs-2.0/modules/libgzip.so', 'lib/gnome-vfs-2.0/modules/libhttp.so', 'lib/gnome-vfs-2.0/modules/libnetwork.so', 'lib/gnome-vfs-2.0/modules/libnntp.so', 'lib/gnome-vfs-2.0/modules/libsftp.so', 'lib/gnome-vfs-2.0/modules/libtar.so', 'lib/gnome-vfs-2.0/modules/libvfs-test.so', ] files_etc = [ 'etc/gconf/schemas/desktop_default_applications.schemas', 'etc/gconf/schemas/desktop_gnome_url_handlers.schemas', 'etc/gconf/schemas/system_dns_sd.schemas', 'etc/gconf/schemas/system_http_proxy.schemas', 'etc/gconf/schemas/system_smb.schemas', 'etc/gnome-vfs-2.0/modules/default-modules.conf', ] def configure(self): super(recipe.Recipe, self).configure() for f in ['programs/Makefile', 'daemon/Makefile', 'modules/Makefile', 'libgnomevfs/Makefile', 'test/Makefile']: shell.replace(os.path.join(self.build_dir, f), {'-DG_DISABLE_DEPRECATED': ''})