[65939] trunk/dports/gnome/gpodder
elelay at macports.org
elelay at macports.org
Sat Apr 3 04:36:23 PDT 2010
Revision: 65939
http://trac.macports.org/changeset/65939
Author: elelay at macports.org
Date: 2010-04-03 04:36:20 -0700 (Sat, 03 Apr 2010)
Log Message:
-----------
new goodnesses of gPodder 2.4 : build an application, native menus for the quartz variant
Modified Paths:
--------------
trunk/dports/gnome/gpodder/Portfile
Added Paths:
-----------
trunk/dports/gnome/gpodder/files/
trunk/dports/gnome/gpodder/files/leopard_workarround.diff
Modified: trunk/dports/gnome/gpodder/Portfile
===================================================================
--- trunk/dports/gnome/gpodder/Portfile 2010-04-03 11:22:58 UTC (rev 65938)
+++ trunk/dports/gnome/gpodder/Portfile 2010-04-03 11:36:20 UTC (rev 65939)
@@ -7,7 +7,7 @@
version 2.4
categories gnome audio
license GPLv3
-maintainers elelay openmaintainer
+maintainers elelay
platforms darwin
description A media aggregator and podcast client
@@ -29,6 +29,10 @@
depends_lib port:vorbis-tools\
port:lame
+#temporary patchfile until it's committed to the gPodder repo
+patchfiles leopard_workarround.diff
+patch.pre_args -p1
+
variant python25 conflicts python26 description {Use Python 2.5} {
depends_lib-append port:py25-feedparser\
port:py25-pil\
@@ -36,7 +40,7 @@
port:gnome-python-extras\
port:py25-mygpoclient
- patch {
+ post-patch {
reinplace s|python|${prefix}/bin/python2.5|g ${worksrcpath}/Makefile
}
@@ -53,7 +57,7 @@
port:gnome-python26-extras\
port:py26-mygpoclient
- patch {
+ post-patch {
reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
}
@@ -73,11 +77,37 @@
default_variants +python26
}
+variant quartz {
+
+ # leverage ige-mac-integration to have a native menu for gPodder
+ # TODO: python26 variant for ige-mac-integration instead of a different port
+ if {[variant_isset python25]} {
+ depends_lib-append port:ige-mac-integration\
+ } else {
+ depends_lib-append port:py26-ige-mac-integration\
+ }
+}
+
use_configure no
build {}
+post-destroot {
+ # build a MacOS X application
+ if {[variant_isset python26]} {
+ set install_path "${my_python}"
+ } else {
+ set install_path "${prefix}"
+ }
+
+ system "cd ${worksrcpath}/data/osx && make \
+ GPODDERSCRIPT=\"${install_path}/bin/gpodder\"\
+ APPLICATIONSDIR=\"${destroot}${applications_dir}\"\
+ VERSION=\"${version}\"\
+ OSXVERSION=\"${os.platform}${os.major}\" all"
+}
+
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Added: trunk/dports/gnome/gpodder/files/leopard_workarround.diff
===================================================================
--- trunk/dports/gnome/gpodder/files/leopard_workarround.diff (rev 0)
+++ trunk/dports/gnome/gpodder/files/leopard_workarround.diff 2010-04-03 11:36:20 UTC (rev 65939)
@@ -0,0 +1,87 @@
+diff --git a/data/osx/Info-10.4.plist b/data/osx/Info-10.4.plist
+new file mode 100644
+index 0000000..f7eac7e
+--- /dev/null
++++ b/data/osx/Info-10.4.plist
+@@ -0,0 +1,36 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
++ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
++<plist version="1.0">
++ <dict>
++ <key>CFBundleName</key>
++ <string>gPodder</string>
++ <key>CFBundleShortVersionString</key>
++ <string>__VERSION__</string>
++ <key>CFBundleGetInfoString</key>
++ <string>gPodder v__VERSION__</string>
++ <key>CFBundleAllowMixedLocalizations</key>
++ <string>false</string>
++ <key>CFBundleInfoDictionaryVersion</key>
++ <string>6.0</string>
++ <key>CFBundleExecutable</key>
++ <string>gpodder</string>
++ <key>CFBundleDevelopmentRegion</key>
++ <string>English</string>
++ <key>CFBundlePackageType</key>
++ <string>APPL</string>
++ <key>CFBundleSignature</key>
++ <string>GPOD</string>
++ <key>CFBundleVersion</key>
++ <string>__VERSION__</string>
++ <key>CFBundleIconFile</key>
++ <string>icon.icns</string>
++ <key>CFBundleIdentifier</key>
++ <string>org.gpodder.gpodder</string>
++ <key>LSEnvironment</key>
++ <dict>
++ <key>DISPLAY</key>
++ <string>:0</string>
++ </dict>
++ </dict>
++</plist>
+diff -u a/data/osx/Info.plist b/data/osx/Info.plist
+--- a/data/osx/Info.plist 2010-04-03 12:51:57.000000000 +0200
++++ b/data/osx/Info.plist 2010-04-03 12:52:19.000000000 +0200
+@@ -27,10 +27,5 @@
+ <string>icon.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.gpodder.gpodder</string>
+- <key>LSEnvironment</key>
+- <dict>
+- <key>DISPLAY</key>
+- <string>:0</string>
+- </dict>
+ </dict>
+ </plist>
+diff --git a/data/osx/Makefile b/data/osx/Makefile
+index dacd306..1695972 100644
+--- a/data/osx/Makefile
++++ b/data/osx/Makefile
+@@ -26,6 +26,14 @@ RESOURCESDIR=$(APPDIR)/Contents/Resources
+ # current version of gPodder
+ VERSION=2.3
+
++# set OSXVERSION to darwin8 to get the Mac OS X Tiger version of the plist.
++OSXVERSION=darwin8
++ifeq ($(OSXVERSION),darwin8)
++PLIST=Info-10.4.plist
++else
++PLIST=Info.plist
++endif
++
+ all:$(BINDIR)/gpodder\
+ $(RESOURCESDIR)/icon.icns\
+ $(APPDIR)/Contents/PkgInfo\
+@@ -46,7 +54,7 @@ $(RESOURCESDIR)/icon.icns: icon.icns $(RESOURCESDIR)
+ $(APPDIR)/Contents/PkgInfo: PkgInfo $(RESOURCESDIR)
+ install $< $@
+
+-$(APPDIR)/Contents/Info.plist: Info.plist $(APPDIR)/Contents
++$(APPDIR)/Contents/Info.plist: $(PLIST) $(APPDIR)/Contents
+ sed "s|__VERSION__|$(VERSION)|g" $< > $@
+
+ clean:
+--
+1.7.0.2
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100403/a372d441/attachment.html>
More information about the macports-changes
mailing list