summaryrefslogtreecommitdiff
blob: b9dc249f6407c82ecdcef39482c2c8b6574b29a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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";
-    }
 
 <<EOT;
 $update_mo