[89048] trunk/dports/graphics/ipe

dports at macports.org dports at macports.org
Wed Jan 18 13:06:39 PST 2012


Revision: 89048
          http://trac.macports.org/changeset/89048
Author:   dports at macports.org
Date:     2012-01-18 13:06:39 -0800 (Wed, 18 Jan 2012)
Log Message:
-----------
ipe: update to v7.1.2 (#32926; approved by maintainer; supersedes #31153)
  * update app bundle to set PATH, include icons, and register
    extensions for supported files (see also #30540)
  * remove unnecessary patches; set appropriate env variables instead
  * license
  * set openmaintainer

Modified Paths:
--------------
    trunk/dports/graphics/ipe/Portfile
    trunk/dports/graphics/ipe/files/Info.plist.in

Removed Paths:
-------------
    trunk/dports/graphics/ipe/files/ipe.in
    trunk/dports/graphics/ipe/files/patch-common.mak.diff
    trunk/dports/graphics/ipe/files/patch-config.mak.diff
    trunk/dports/graphics/ipe/files/patch-ipe-lua-prefs.lua.diff

Modified: trunk/dports/graphics/ipe/Portfile
===================================================================
--- trunk/dports/graphics/ipe/Portfile	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/Portfile	2012-01-18 21:06:39 UTC (rev 89048)
@@ -1,3 +1,4 @@
+# -*- 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
@@ -4,10 +5,9 @@
 PortGroup               qt4 1.0
 
 name                    ipe
-version                 7.0.14
-revision                1
+version                 7.1.2
 categories              graphics
-maintainers             jacobs-university.de:m.thon
+maintainers             jacobs-university.de:m.thon openmaintainer
 description             The Ipe extensible drawing editor
 long_description        \
                         Ipe is a drawing editor for creating figures in PDF or \
@@ -15,29 +15,37 @@
                         figures for inclusion into LaTeX-documents as well as making \
                         multi-page PDF presentations that can be shown on-line with \
                         Acrobat Reader.
+license                 GPL-3+
 homepage                http://ipe7.sourceforge.net/
 platforms               darwin
 master_sites            sourceforge:ipe7
 distname                ${name}-${version}-src
 worksrcdir              ${name}-${version}/src
 
-checksums               sha1    a9b744120019248a405caab63e88664258242151 \
-                        rmd160  4f819bd7740e875170e66c4fa4431aad6cb4c835
+checksums               sha1    7c55d2b72bb256dc99b18145644ae27edc9a056c \
+                        rmd160  7ddf4f624be5d4c591096e85165cc6c5271e548b
 
 depends_lib-append      port:freetype \
                         path:lib/pkgconfig/cairo.pc:cairo \
                         port:lua \
                         port:zlib
 
-patchfiles              patch-common.mak.diff \
-                        patch-config.mak.diff \
-                        patch-ipe-lua-prefs.lua.diff
 use_configure           no
 
 build.env               CXXFLAGS="${configure.cxx_archflags}" \
                         LDFLAGS="${configure.ld_archflags}"
 
 build.args              IPEPREFIX=${prefix} \
+                        ZLIB_CFLAGS="`pkg-config --cflags zlib`" \
+                        ZLIB_LIBS="`pkg-config --libs zlib`" \
+                        FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \
+                        FREETYPE_LIBS="`pkg-config --libs freetype2`" \
+                        CAIRO_CFLAGS="`pkg-config --cflags cairo`" \
+                        CAIRO_LIBS="`pkg-config --libs cairo`" \
+                        LUA_CFLAGS="`pkg-config --cflags lua`" \
+                        LUA_LIBS="`pkg-config --libs lua`" \
+                        QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \
+                        QT_LIBS="`pkg-config --libs QtGui QtCore`" \
                         MOC=${qt_moc_cmd} \
                         CXX=${configure.cxx}
 
@@ -52,8 +60,8 @@
             ${destroot}${applications_dir}/${app}.app/Contents/Resources
         xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
         reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
-        xinstall -m 755 ${filespath}/${name}.in ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
-        reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
-        system "cd ${worksrcpath} && ${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns"
+        reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
+        system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}"
+        system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns"
     }
 }

Modified: trunk/dports/graphics/ipe/files/Info.plist.in
===================================================================
--- trunk/dports/graphics/ipe/files/Info.plist.in	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/files/Info.plist.in	2012-01-18 21:06:39 UTC (rev 89048)
@@ -2,6 +2,63 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+	<key>CFBundleDocumentTypes</key>
+	<array>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>Ipe figure</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Owner</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>ipe</string>
+				<string>IPE</string>
+			</array>
+		</dict>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>Postscript document</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Altpoernate</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>eps</string>
+				<string>EPS</string>
+			</array>
+		</dict>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>PDF document</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Alternate</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>pdf</string>
+				<string>PDF</string>
+			</array>
+			<key>CFBundleTypeMIMETypes</key>
+			<array>
+				<string>application/pdf</string>
+			</array>
+		</dict>
+	</array>
+	<key>LSEnvironment</key>
+	<dict>
+		<key>PATH</key>
+		<string>/usr/texbin:@PREFIX@/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
+	</dict>
 	<key>CFBundleDevelopmentRegion</key>
 	<string>English</string>
 	<key>CFBundleExecutable</key>
@@ -19,8 +76,10 @@
 	<key>CFBundleShortVersionString</key>
 	<string>@VERSION@</string>
 	<key>CFBundleSignature</key>
-	<string>????</string>
+	<string>Ipe7</string>
 	<key>CFBundleVersion</key>
 	<string>@VERSION@</string>
+	<key>NSHumanReadableCopyright</key>
+	<string>Copyright (C) 1993-2011  Otfried Cheong</string>
 </dict>
 </plist>

Deleted: trunk/dports/graphics/ipe/files/ipe.in
===================================================================
--- trunk/dports/graphics/ipe/files/ipe.in	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/files/ipe.in	2012-01-18 21:06:39 UTC (rev 89048)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-PATH="@PREFIX@/bin:$PATH" "@PREFIX@/bin/ipe"

Deleted: trunk/dports/graphics/ipe/files/patch-common.mak.diff
===================================================================
--- trunk/dports/graphics/ipe/files/patch-common.mak.diff	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/files/patch-common.mak.diff	2012-01-18 21:06:39 UTC (rev 89048)
@@ -1,11 +0,0 @@
---- common.mak.orig	2011-02-03 03:15:03.000000000 +0100
-+++ common.mak	2011-02-03 03:16:40.000000000 +0100
-@@ -99,7 +99,7 @@
-   CXXFLAGS	+= -g -O2
-   ifdef MACOS
-     DLL_LDFLAGS	+= -dynamiclib 
--    soname      = -Wl,-dylib_install_name,lib$1.so.$(IPEVERS)
-+    soname      = -Wl,-dylib_install_name,$(IPELIBDIR)/lib$1.so.$(IPEVERS)
-   else	
-     DLL_LDFLAGS	+= -shared 
-     soname      = -Wl,-soname,lib$1.so.$(IPEVERS)

Deleted: trunk/dports/graphics/ipe/files/patch-config.mak.diff
===================================================================
--- trunk/dports/graphics/ipe/files/patch-config.mak.diff	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/files/patch-config.mak.diff	2012-01-18 21:06:39 UTC (rev 89048)
@@ -1,18 +0,0 @@
---- config.mak.orig	2011-02-02 22:04:24.000000000 +0100
-+++ config.mak	2011-02-02 22:08:31.000000000 +0100
-@@ -52,12 +52,9 @@
- CONFIG     += x86_64
- LUA_CFLAGS = $(shell pkg-config --cflags lua)
- LUA_LIBS   = $(shell pkg-config --libs lua)
--QT_CFLAGS  = -I/Library/Frameworks/QtCore.framework/Versions/4/Headers \
--	     -I/Library/Frameworks/QtGui.framework/Versions/4/Headers
--QT_LIBS    = -F/Library/Frameworks -L/Library/Frameworks \
--	     -framework QtCore -framework ApplicationServices \
--	     -framework QtGui -framework AppKit -framework Cocoa -lz -lm
--MOC	   = moc
-+QT_CFLAGS  ?= $(shell pkg-config --cflags QtGui QtCore)
-+QT_LIBS	   ?= $(shell pkg-config --libs QtGui QtCore)
-+MOC	   ?= moc
- endif
- #
- # --------------------------------------------------------------------

Deleted: trunk/dports/graphics/ipe/files/patch-ipe-lua-prefs.lua.diff
===================================================================
--- trunk/dports/graphics/ipe/files/patch-ipe-lua-prefs.lua.diff	2012-01-18 19:29:34 UTC (rev 89047)
+++ trunk/dports/graphics/ipe/files/patch-ipe-lua-prefs.lua.diff	2012-01-18 21:06:39 UTC (rev 89048)
@@ -1,35 +0,0 @@
---- ipe/lua/prefs.lua.orig	2011-02-16 02:37:06.000000000 +0100
-+++ ipe/lua/prefs.lua	2011-02-16 08:11:25.000000000 +0100
-@@ -52,9 +52,6 @@
- -- DOS window will pop up when calling the editor
- if os.getenv("EDITOR") then
-   prefs.external_editor = os.getenv("EDITOR") .. " %s"
--elseif config.platform ~= "win" then
--  prefs.external_editor = "gedit %s"
--  -- prefs.external_editor = "emacsclient %s"
- else
-   prefs.external_editor = nil
- end
-@@ -115,20 +112,10 @@
- prefs.automatic_use_title = false
- 
- -- How to start browser to show Ipe manual
--if config.platform == "apple" then
--  prefs.browser = "open %s"
--else
--  -- 'sensible-browser' and 'gnome-open' both work on Linux
--  -- prefs.browser = "sensible-browser %s &"
--  prefs.browser = "gnome-open %s"
--end
-+prefs.browser = "open %s"
- 
- -- How to start onscreen keyboard
--if config.platform == "unix" then
--  prefs.keyboard = "onboard &"
--else
--  prefs.keyboard = nil
--end
-+prefs.keyboard = nil
- 
- -- format string for the coordinates in the status bar
- -- (x, unit, y, unit)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120118/effa01f2/attachment.html>


More information about the macports-changes mailing list