let portage handle the packaging details --- Makefile.PL +++ Makefile.PL @@ -232,9 +232,7 @@ ########################################### ## Install Free Desktop files - my $INSTALL_DIRS = ''; - if (exists $ENV{XDG_DATA_DIRS}) { $INSTALL_DIRS = '$(XDG_DATA_DIRS)' } - else { $INSTALL_DIRS = '$(DESTDIR)$(PREFIX)/share' } + my $INSTALL_DIRS = '$(DESTDIR)$(PREFIX)/share'; ## Install gwine.desktop my $desktop_install = "\tinstall -d $INSTALL_DIRS/applications/\n"; @@ -244,21 +242,16 @@ ## Install gwine.xml my $mime_install = "\tinstall -d $INSTALL_DIRS/mime/packages/\n"; $mime_install .= "\tinstall -m 644 gwine.xml $INSTALL_DIRS/mime/packages/gwine.xml\n"; - $mime_install .= "\tupdate-mime-database $INSTALL_DIRS/mime\n" unless $::deb_pkg; my $mime_uninstall = "\trm -f $INSTALL_DIRS/mime/packages/gwine.xml\n"; ########################################### ## Install gconf schemas my $gconf_install = ''; my $gconf_uninstall = ''; - if ($::install_gconf_schema) { - $gconf_install = "\tgconftool --install-schema-file=gwine.schemas\n" - } elsif ($::deb_pkg) { # Place schema in /etc/gconf/schemas (it seems dh_gconf searches here) $gconf_install = "\tinstall -d \$(DESTDIR)/etc/gconf/schemas\n"; $gconf_install .= "\tinstall -m 644 gwine.schemas \$(DESTDIR)/etc/gconf/schemas\n"; - $gconf_uninstall = "\trm \$(DESTDIR)/etc/gconf/schemas\n" + $gconf_uninstall = "\trm \$(DESTDIR)/etc/gconf/schemas\n"; - } <