Dumped some old mimetype files.

Added InstallEdeMimeFiles rule, which should install a new XDG
mime types and update mime database.
Added fluid mime until fd.o merge it into official mime distribution.
This commit is contained in:
Sanel Zukan
2008-02-11 13:55:58 +00:00
parent b9440e66be
commit 54fc91849c
6 changed files with 65 additions and 188 deletions

View File

@ -108,10 +108,47 @@ rule InstallEdeConfigFiles
InstallData $(EDECONFIGDIR) : $(<) ;
}
# InstallEdeMimeFiles [targets] ;
# Installs XDG mime files and run update-mime-database
rule InstallEdeMimeFiles
{
# First check if we have 'update-mime-database' command
# TODO: this should be set globaly
local matches = [ Glob $(PATH) : update-mime-database ] ;
if ! $(matches) {
return ;
} else {
local update_cmd pakdir ;
update_cmd = $(matches[1]) ;
# Files must be instaled in $(EDEMIMEDIR)/packages or
# update-mime-database will not see it
pakdir = [ FDirName $(EDEMIMEDIR) packages ] ;
InstallData $(pakdir) : $(<) ;
MIME_UPDATE_DATABASE = $(update_cmd) ;
# Shut up jam warning
NotFile $(EDEMIMEDIR) ;
# Call update-mime-database after install/uninstall
# Just hoping this will be executed after files are copied/removed...
MimeUpdater install : $(EDEMIMEDIR) ;
MimeUpdater uninstall : $(EDEMIMEDIR) ;
}
}
actions Install1
{
$(CP) "$(>)" "$(<)"
}
actions updated together MimeUpdater
{
$(MIME_UPDATE_DATABASE) "$(>)"
}
NotFile install uninstall ;
Always install uninstall ;