[117510] trunk/dports/devel
cal at macports.org
cal at macports.org
Sat Mar 1 10:47:56 PST 2014
Revision: 117510
https://trac.macports.org/changeset/117510
Author: cal at macports.org
Date: 2014-03-01 10:47:56 -0800 (Sat, 01 Mar 2014)
Log Message:
-----------
new port: gtk-mac-bundler, see #41905
Added Paths:
-----------
trunk/dports/devel/gtk-mac-bundler/
trunk/dports/devel/gtk-mac-bundler/Portfile
trunk/dports/devel/gtk-mac-bundler/files/
trunk/dports/devel/gtk-mac-bundler/files/patch-bundler_py.diff
trunk/dports/devel/gtk-mac-bundler/files/patch-launcher_sh.diff
Added: trunk/dports/devel/gtk-mac-bundler/Portfile
===================================================================
--- trunk/dports/devel/gtk-mac-bundler/Portfile (rev 0)
+++ trunk/dports/devel/gtk-mac-bundler/Portfile 2014-03-01 18:47:56 UTC (rev 117510)
@@ -0,0 +1,64 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name gtk-mac-bundler
+version 0.7.3
+set branch 0.7
+categories devel
+license GPL-2
+platforms darwin
+maintainers nomaintainer
+supported_archs noarch
+
+description Mac OS X application bundle utility
+
+long_description A utility that aids in the creation of Mac OS X \
+ application bundles
+
+homepage http://sourceforge.net/projects/gtk-osx
+
+#---------
+# FETCHING
+#---------
+master_sites ftp://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}
+
+distfiles ${name}-${version}.tar.xz
+
+#----------------------------
+# EXTRACTION AND CHECKSUMMING
+#----------------------------
+use_xz yes
+
+checksums rmd160 05837f17ce94fe6822c0896007419b9b5ae4bc2c \
+ sha256 799d8d2bbd747ddddba55d32b7c9f08116e5f2b349358175b05544a4baa91365
+
+#---------
+# PATCHING
+#---------
+patchfiles patch-bundler_py.diff \
+ patch-launcher_sh.diff
+
+#---------------------------
+# CONFIGURATION AND BUILDING
+#---------------------------
+use_configure no
+
+build {}
+
+#-----------
+# DEPLOYMENT
+#-----------
+pre-destroot {
+ reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|g" ${worksrcpath}/gtk-mac-bundler.in
+ reinplace "s|@PATH@|${prefix}/Library/Framework/Python.framework/Version/2.7/lib/site-packages|g" ${worksrcpath}/gtk-mac-bundler.in
+ xinstall -m 755 -d ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
+ copy ${worksrcpath}/bundler ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
+}
+destroot.args bindir=${destroot}${prefix}/bin
+
+#-----------
+# LIVECHECK
+#-----------
+livecheck.type gnome-with-unstable
Property changes on: trunk/dports/devel/gtk-mac-bundler/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/gtk-mac-bundler/files/patch-bundler_py.diff
===================================================================
--- trunk/dports/devel/gtk-mac-bundler/files/patch-bundler_py.diff (rev 0)
+++ trunk/dports/devel/gtk-mac-bundler/files/patch-bundler_py.diff 2014-03-01 18:47:56 UTC (rev 117510)
@@ -0,0 +1,11 @@
+--- bundler/bundler.py.orig 2011-03-18 20:38:27.000000000 -1000
++++ bundler/bundler.py 2011-03-20 11:17:59.000000000 -1000
+@@ -595,7 +595,7 @@
+ self.copy_plist()
+
+ # Note: could move this to xml file...
+- self.copy_path(Path("${prefix}/lib/charset.alias"))
++ self.copy_path(Path("/usr/lib/charset.alias", dest="${bundle}/Contents/Resources"))
+
+ # Launcher script, if necessary.
+ launcher_script = self.project.get_launcher_script()
Added: trunk/dports/devel/gtk-mac-bundler/files/patch-launcher_sh.diff
===================================================================
--- trunk/dports/devel/gtk-mac-bundler/files/patch-launcher_sh.diff (rev 0)
+++ trunk/dports/devel/gtk-mac-bundler/files/patch-launcher_sh.diff 2014-03-01 18:47:56 UTC (rev 117510)
@@ -0,0 +1,10 @@
+--- bundler/launcher.sh.orig 2011-03-20 11:12:26.000000000 -1000
++++ bundler/launcher.sh 2011-03-20 11:12:42.000000000 -1000
+@@ -15,6 +15,7 @@
+ tmp=`dirname "$tmp"`
+ tmp=`dirname "$tmp"`
+ bundle=`dirname "$tmp"`
++cd $bundle
+ bundle_contents="$bundle"/Contents
+ bundle_res="$bundle_contents"/Resources
+ bundle_lib="$bundle_res"/lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140301/f3ebb018/attachment.html>
More information about the macports-changes
mailing list