update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / bleachbit / patches / patch-ab
1 $NetBSD$
2
3 --- ./bleachbit/Common.py.orig  2009-08-27 13:03:52.000000000 +0000
4 +++ ./bleachbit/Common.py       2009-08-28 23:25:57.000000000 +0000
5 @@ -59,8 +59,8 @@
6      # openSUSE 1.11
7      license_filename = "/usr/share/doc/packages/bleachbit/COPYING"
8  if not os.path.exists(license_filename):
9 -    # Mandriva
10 -    license_filename = "/usr/share/doc/bleachbit/COPYING"
11 +    # Mandriva and NetBSD
12 +    license_filename = "/usr/pkg/share/doc/bleachbit/COPYING"
13  if not os.path.exists(license_filename):
14      # CentOS, Fedora, RHEL
15      license_filename = "/usr/share/doc/bleachbit-" + APP_VERSION + "/COPYING"
16 @@ -69,8 +69,8 @@
17      license_filename = os.path.join(bleachbit_exe_path, 'COPYING')
18  
19  # configuration
20 -options_dir = None
21 -if sys.platform == 'linux2':
22 +options_dir = None   
23 +if sys.platform >= 'netbsd5' or 'linux2':
24      options_dir = os.path.expanduser("~/.config/bleachbit/")
25  if sys.platform == 'win32':
26      options_dir = os.path.expandvars("${APPDATA}\\BleachBit\\")
27 @@ -83,6 +83,8 @@
28  system_cleaners_dir = None
29  if sys.platform == 'linux2':
30      system_cleaners_dir = '/usr/share/bleachbit/cleaners'
31 +if sys.platform >= 'netbsd5':
32 +    system_cleaners_dir = '/usr/pkg/share/bleachbit/cleaners'
33  if sys.platform == 'win32':
34      system_cleaners_dir = os.path.join(bleachbit_exe_path, 'share\\cleaners\\')
35  
36 @@ -93,6 +95,8 @@
37  else:
38      if sys.platform == 'linux2':
39          appicon_path = "/usr/share/pixmaps/bleachbit.png"
40 +    if sys.platform >= 'netbsd5':
41 +        appicon_path = "/usr/pkg/share/pixmaps/bleachbit.png"
42      if sys.platform == 'win32':
43          appicon_path = os.path.join(bleachbit_exe_path, 'share\\bleachbit.png')
44  
45 @@ -105,6 +109,8 @@
46      # installed locale
47      if sys.platform == 'linux2':
48          locale_dir = "/usr/share/locale/"
49 +    if sys.platform >= 'netbsd5':
50 +        locale_dir = "/usr/pkg/share/locale/"
51      if sys.platform == 'win32':
52          locale_dir = os.path.join(bleachbit_exe_path, 'share\\locale\\')
53