Ticket #22684: growl13-portfile.patch

File growl13-portfile.patch, 7.5 KB (added by neverpanic (Clemens Lang), 12 years ago)

Patch against an empty directory for a growl13 port

  • new file Portfile

    - +  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2# $Id: Portfile 86786 2011-11-04 05:20:35Z boeyms@macports.org $
     3
     4PortSystem              1.0
     5PortGroup               xcode 1.0
     6
     7name                    Growl13
     8version                 1.3.3
     9platforms               darwin
     10maintainers             cal openmaintainer
     11license                 BSD
     12description             global notification system for Mac OS X
     13long_description        \
     14    Growl is a global notification system for Mac OS X. Any application can\
     15    send a notification to Growl, which will display an attractive message on\
     16    your screen.
     17
     18homepage                http://growl.info/
     19
     20fetch.type              hg
     21hg.url                  https://code.google.com/p/growl/
     22hg.tag                  Growl.app ${version}
     23
     24patchfiles              \
     25    patch-Core_Source_GrowlApplicationController__m.inlineHgRevision.diff \
     26    patch-Core_Source_GrowlMenu__h.mismatched-method-attributes.diff \
     27    patch-GrowlVersion__h.inlineHgRevision.diff \
     28    patch-Growl__xcodeproject_project__pbxproj.no-gcov.diff \
     29    patch-Growl__xcodeproject_project__pbxproj.no-unittests.diff \
     30    patch-no_newline_at_end_of_file.diff
     31
     32depends_build-append    bin:hg:mercurial
     33
     34build.target            Growl.app
     35xcode.configuration     Release
     36xcode.build.settings    CODE_SIGN_IDENTITY=
     37xcode.destroot.settings CODE_SIGN_IDENTITY=
     38
     39pre-fetch {
     40    if {${os.major} < 11} {
     41        error "Growl 1.3 does not support Snow Leopard or earlier"
     42    }
     43}
     44
  • new file files/patch-Core_Source_GrowlApplicationController__m.inlineHgRevision.diff

    - +  
     1--- Core/Source/GrowlApplicationController.m.orig       2012-06-01 23:47:49.000000000 +0200
     2+++ Core/Source/GrowlApplicationController.m    2012-06-01 23:48:07.000000000 +0200
     3@@ -27,7 +27,8 @@
     4 #import "GrowlDefines.h"
     5 #import "GrowlVersionUtilities.h"
     6 #import "GrowlMenu.h"
     7-#import "HgRevision.h"
     8+#define HG_REVISION 5768
     9+#define HG_REVISION_STRING "5768"
     10 #import "GrowlLog.h"
     11 #import "GrowlNotificationCenter.h"
     12 #import "GrowlImageAdditions.h"
  • new file files/patch-Core_Source_GrowlMenu__h.mismatched-method-attributes.diff

    - +  
     1--- Core/Source/GrowlMenu.h.orig        2012-06-02 00:15:57.000000000 +0200
     2+++ Core/Source/GrowlMenu.h     2012-06-02 00:16:17.000000000 +0200
     3@@ -32,8 +32,8 @@
     4 - (void)stopPulse;
     5 - (void)pulseStatusItem;
     6 
     7-- (void) openGrowlPreferences:(id)sender;
     8-- (void) startStopGrowl:(id)sender;
     9+- (IBAction) openGrowlPreferences:(id)sender;
     10+- (IBAction) startStopGrowl:(id)sender;
     11 - (NSMenu *) createMenu:(BOOL)forDock;
     12 - (void) setImage:(NSNumber*)state;
     13 - (BOOL) validateMenuItem:(NSMenuItem *)item;
  • new file files/patch-GrowlVersion__h.inlineHgRevision.diff

    - +  
     1--- GrowlVersion.h.orig 2012-06-01 23:44:20.000000000 +0200
     2+++ GrowlVersion.h      2012-06-01 23:44:32.000000000 +0200
     3@@ -4,7 +4,8 @@
     4 #define GROWL_VERSION 1.3.3
     5 #define GROWL_VERSION_STRING "1.3.3"
     6 
     7-#include "HgRevision.h"
     8+#define HG_REVISION 5768
     9+#define HG_REVISION_STRING "5768"
     10 
     11 #undef COMMENT_1
     12 #undef COMMENT_2
  • new file files/patch-Growl__xcodeproject_project__pbxproj.no-gcov.diff

    - +  
     1--- Growl.xcodeproj/project.pbxproj.orig        2012-06-02 00:30:38.000000000 +0200
     2+++ Growl.xcodeproj/project.pbxproj     2012-06-02 00:30:52.000000000 +0200
     3@@ -4352,7 +4352,7 @@
     4                                GCC_PREFIX_HEADER = "$(SRCROOT)/Unit tests/UnitTests-Prefix.pch";
     5                                INFOPLIST_FILE = "$(SRCROOT)/Unit tests/Unit tests-Info.plist";
     6                                INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
     7-                               OTHER_LDFLAGS = "-lgcov";
     8+                               OTHER_LDFLAGS = "";
     9                                PRODUCT_NAME = "Unit tests";
     10                                WRAPPER_EXTENSION = octest;
     11                        };
     12@@ -4375,7 +4375,7 @@
     13                                GCC_PREFIX_HEADER = "$(SRCROOT)/Unit tests/UnitTests-Prefix.pch";
     14                                INFOPLIST_FILE = "$(SRCROOT)/Unit tests/Unit tests-Info.plist";
     15                                INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
     16-                               OTHER_LDFLAGS = "-lgcov";
     17+                               OTHER_LDFLAGS = "";
     18                                PRODUCT_NAME = "Unit tests";
     19                                WRAPPER_EXTENSION = octest;
     20                        };
     21@@ -4399,7 +4399,7 @@
     22                                GCC_PREFIX_HEADER = "$(SRCROOT)/Unit tests/UnitTests-Prefix.pch";
     23                                INFOPLIST_FILE = "$(SRCROOT)/Unit tests/Unit tests-Info.plist";
     24                                INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
     25-                               OTHER_LDFLAGS = "-lgcov";
     26+                               OTHER_LDFLAGS = "";
     27                                PRODUCT_NAME = "Unit tests";
     28                                WRAPPER_EXTENSION = octest;
     29                        };
  • new file files/patch-Growl__xcodeproject_project__pbxproj.no-unittests.diff

    - +  
     1--- Growl.xcodeproj/project.pbxproj.orig        2012-06-02 00:30:38.000000000 +0200
     2+++ Growl.xcodeproj/project.pbxproj     2012-06-02 00:33:28.000000000 +0200
     3@@ -2619,26 +2619,6 @@
     4                        productReference = 0AB508B30767C87B006EA5CB /* MusicVideo.growlView */;
     5                        productType = "com.apple.product-type.bundle";
     6                };
     7-               31E184D51084628D0011C78B /* Unit tests */ = {
     8-                       isa = PBXNativeTarget;
     9-                       buildConfigurationList = 31E184DB1084628E0011C78B /* Build configuration list for PBXNativeTarget "Unit tests" */;
     10-                       buildPhases = (
     11-                               31E184D11084628D0011C78B /* Resources */,
     12-                               31E184D21084628D0011C78B /* Sources */,
     13-                               31E184D31084628D0011C78B /* Frameworks */,
     14-                               31E1856C10846F800011C78B /* Set bundle bit */,
     15-                               31E184D41084628D0011C78B /* Run tests */,
     16-                       );
     17-                       buildRules = (
     18-                       );
     19-                       dependencies = (
     20-                               31CDCFF610882EF400984B53 /* PBXTargetDependency */,
     21-                       );
     22-                       name = "Unit tests";
     23-                       productName = "Unit tests";
     24-                       productReference = 31E184D61084628D0011C78B /* Unit tests.octest */;
     25-                       productType = "com.apple.product-type.bundle";
     26-               };
     27                34F60EAA078E1CD500CECA86 /* Growl.framework */ = {
     28                        isa = PBXNativeTarget;
     29                        buildConfigurationList = 95EE27870855AA6C0045DB39 /* Build configuration list for PBXNativeTarget "Growl.framework" */;
     30@@ -2848,7 +2828,6 @@
     31                                0A7F5FE80767C7B300E1C1E4 /* MusicVideo */,
     32                                DD4939CB084BACA700D1CCCB /* SMS */,
     33                                95E17B8F085E216A00990AB3 /* hg revision */,
     34-                               31E184D51084628D0011C78B /* Unit tests */,
     35                                FF93C8E214218EB3007EAC43 /* GNTPClientService */,
     36                        );
     37                };
  • new file files/patch-no_newline_at_end_of_file.diff

    - +  
     1--- Common/Source/GrowlVersionUtilities.m.orig  2012-06-02 00:02:24.000000000 +0200
     2+++ Common/Source/GrowlVersionUtilities.m       2012-06-02 00:02:28.000000000 +0200
     3@@ -251,4 +251,4 @@
     4        }
     5 
     6        return compareVersions(v_a, v_b);
     7-}
     8\ No newline at end of file
     9+}
     10--- Common/Source/NSStringAdditions.m.orig      2012-06-02 00:05:52.000000000 +0200
     11+++ Common/Source/NSStringAdditions.m   2012-06-02 00:05:55.000000000 +0200
     12@@ -122,4 +122,4 @@
     13     return [[[self mutableCopy] autorelease] escapeForHTML];
     14 }
     15 
     16-@end
     17\ No newline at end of file
     18+@end
     19--- Core/Source/GrowlNotificationRowView.h.orig 2012-06-02 00:07:41.000000000 +0200
     20+++ Core/Source/GrowlNotificationRowView.h      2012-06-02 00:07:44.000000000 +0200
     21@@ -16,4 +16,4 @@
     22 
     23 -(void)drawRoundedRectInRect:(NSRect)rect;
     24 
     25-@end
     26\ No newline at end of file
     27+@end