Ticket #32926: ipe_7.1.2_port.patch
File ipe_7.1.2_port.patch, 6.2 KB (added by maehne (Torsten Maehne), 13 years ago) |
---|
-
Portfile
diff -u -r ipe_7.0.14/Portfile ipe/Portfile
old new 4 4 PortGroup qt4 1.0 5 5 6 6 name ipe 7 version 7.0.14 8 revision 1 7 version 7.1.2 9 8 categories graphics 10 maintainers jacobs-university.de:m.thon 9 maintainers jacobs-university.de:m.thon openmaintainer 11 10 description The Ipe extensible drawing editor 12 11 long_description \ 13 12 Ipe is a drawing editor for creating figures in PDF or \ … … 15 14 figures for inclusion into LaTeX-documents as well as making \ 16 15 multi-page PDF presentations that can be shown on-line with \ 17 16 Acrobat Reader. 17 license GPL-3 18 18 homepage http://ipe7.sourceforge.net/ 19 19 platforms darwin 20 20 master_sites sourceforge:ipe7 21 21 distname ${name}-${version}-src 22 22 worksrcdir ${name}-${version}/src 23 23 24 checksums sha1 a9b744120019248a405caab63e88664258242151\25 rmd160 4f819bd7740e875170e66c4fa4431aad6cb4c83524 checksums sha1 7c55d2b72bb256dc99b18145644ae27edc9a056c \ 25 rmd160 7ddf4f624be5d4c591096e85165cc6c5271e548b 26 26 27 27 depends_lib-append port:freetype \ 28 28 path:lib/pkgconfig/cairo.pc:cairo \ 29 29 port:lua \ 30 30 port:zlib 31 31 32 patchfiles patch-common.mak.diff \33 patch-config.mak.diff \34 patch-ipe-lua-prefs.lua.diff35 32 use_configure no 36 33 37 34 build.env CXXFLAGS="${configure.cxx_archflags}" \ 38 35 LDFLAGS="${configure.ld_archflags}" 39 36 40 37 build.args IPEPREFIX=${prefix} \ 38 ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ 39 ZLIB_LIBS="`pkg-config --libs zlib`" \ 40 FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ 41 FREETYPE_LIBS="`pkg-config --libs freetype2`" \ 42 CAIRO_CFLAGS="`pkg-config --cflags cairo`" \ 43 CAIRO_LIBS="`pkg-config --libs cairo`" \ 44 LUA_CFLAGS="`pkg-config --cflags lua`" \ 45 LUA_LIBS="`pkg-config --libs lua`" \ 46 QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \ 47 QT_LIBS="`pkg-config --libs QtGui QtCore`" \ 41 48 MOC=${qt_moc_cmd} \ 42 49 CXX=${configure.cxx} 43 50 … … 52 59 ${destroot}${applications_dir}/${app}.app/Contents/Resources 53 60 xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 54 61 reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 55 xinstall -m 755 ${filespath}/${name}.in ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}56 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}57 system " cd ${worksrcpath} &&${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns"62 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 63 system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}" 64 system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" 58 65 } 59 66 } -
files/Info.plist.in
diff -u -r ipe_7.0.14/files/Info.plist.in ipe/files/Info.plist.in
old new 2 2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 3 <plist version="1.0"> 4 4 <dict> 5 <key>CFBundleDocumentTypes</key> 6 <array> 7 <dict> 8 <key>CFBundleTypeName</key> 9 <string>Ipe figure</string> 10 <key>CFBundleTypeIconFile</key> 11 <string>ipe.icns</string> 12 <key>LSHandlerRank</key> 13 <string>Owner</string> 14 <key>CFBundleTypeRole</key> 15 <string>Editor</string> 16 <key>CFBundleTypeExtensions</key> 17 <array> 18 <string>ipe</string> 19 <string>IPE</string> 20 </array> 21 </dict> 22 <dict> 23 <key>CFBundleTypeName</key> 24 <string>Postscript document</string> 25 <key>CFBundleTypeIconFile</key> 26 <string>ipe.icns</string> 27 <key>LSHandlerRank</key> 28 <string>Altpoernate</string> 29 <key>CFBundleTypeRole</key> 30 <string>Editor</string> 31 <key>CFBundleTypeExtensions</key> 32 <array> 33 <string>eps</string> 34 <string>EPS</string> 35 </array> 36 </dict> 37 <dict> 38 <key>CFBundleTypeName</key> 39 <string>PDF document</string> 40 <key>CFBundleTypeIconFile</key> 41 <string>ipe.icns</string> 42 <key>LSHandlerRank</key> 43 <string>Alternate</string> 44 <key>CFBundleTypeRole</key> 45 <string>Editor</string> 46 <key>CFBundleTypeExtensions</key> 47 <array> 48 <string>pdf</string> 49 <string>PDF</string> 50 </array> 51 <key>CFBundleTypeMIMETypes</key> 52 <array> 53 <string>application/pdf</string> 54 </array> 55 </dict> 56 </array> 57 <key>LSEnvironment</key> 58 <dict> 59 <key>PATH</key> 60 <string>/usr/texbin:@PREFIX@/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string> 61 </dict> 5 62 <key>CFBundleDevelopmentRegion</key> 6 63 <string>English</string> 7 64 <key>CFBundleExecutable</key> … … 19 76 <key>CFBundleShortVersionString</key> 20 77 <string>@VERSION@</string> 21 78 <key>CFBundleSignature</key> 22 <string> ????</string>79 <string>Ipe7</string> 23 80 <key>CFBundleVersion</key> 24 81 <string>@VERSION@</string> 82 <key>NSHumanReadableCopyright</key> 83 <string>Copyright (C) 1993-2011 Otfried Cheong</string> 25 84 </dict> 26 85 </plist>