$OpenBSD: patch-calendar_base_moz_build,v 1.1 2017/11/14 20:46:57 landry Exp $

Revert https://bug1402645.bmoattachments.org/attachment.cgi?id=8912293
Index: calendar/base/moz.build
--- calendar/base/moz.build.orig
+++ calendar/base/moz.build
@@ -7,5 +7,56 @@ DIRS = [
     'public',
     'backend',
     'src',
+    'modules',
 ]
 
+JAR_MANIFESTS += ['jar.mn']
+
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+    DEFINES['THEME'] = 'windows'
+elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+    DEFINES['THEME'] = 'osx'
+else:
+    DEFINES['THEME'] = 'linux'
+
+# Window icons are not needed on mac
+if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'):
+    icon_path = 'themes/common/icons/'
+    window_icons = [
+        'calendar-alarm-dialog',
+        'calendar-event-dialog',
+        'calendar-event-summary-dialog',
+        'calendar-task-dialog',
+        'calendar-task-summary-dialog',
+    ]
+
+    # Set up the icon suffix to differ between windows and linux
+    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+        icon_suffix = '.ico'
+    else:
+        icon_suffix = '.png'
+
+    FINAL_TARGET_FILES.chrome.icons.default += [
+        '%s%s%s' % (icon_path, icon, icon_suffix) for icon in window_icons
+    ]
+
+with Files('content/**'):
+    BUG_COMPONENT = ('Calendar', 'Calendar Views')
+
+with Files('content/preferences/**'):
+    BUG_COMPONENT = ('Calendar', 'Preferences')
+
+with Files('content/dialogs/**'):
+    BUG_COMPONENT = ('Calendar', 'Dialogs')
+
+with Files('content/*task*'):
+    BUG_COMPONENT = ('Calendar', 'Tasks')
+
+with Files('content/dialogs/*alarm*'):
+    BUG_COMPONENT = ('Calendar', 'Alarms')
+
+with Files('content/widgets/*alarm*'):
+    BUG_COMPONENT = ('Calendar', 'Alarms')
+
+with Files('themes/**'):
+    BUG_COMPONENT = ('Calendar', 'Calendar Views')
