[47203] trunk/dports/emulators/free42
krischik at macports.org
krischik at macports.org
Mon Feb 23 05:26:08 PST 2009
Revision: 47203
http://trac.macports.org/changeset/47203
Author: krischik at macports.org
Date: 2009-02-23 05:26:06 -0800 (Mon, 23 Feb 2009)
Log Message:
-----------
Using application bundles to start the program.
Modified Paths:
--------------
trunk/dports/emulators/free42/Portfile
Added Paths:
-----------
trunk/dports/emulators/free42/files/Free42-Binary.app/
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Info.plist
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/Free42-Binary.command
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Resources/
trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Resources/Free42-Binary.icns
trunk/dports/emulators/free42/files/Free42-Decimal.app/
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Info.plist
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Resources/
trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Resources/Free42-Decimal.icns
Removed Paths:
-------------
trunk/dports/emulators/free42/files/Free42-Binary.command.in
trunk/dports/emulators/free42/files/Free42-Decimal.command.in
Modified: trunk/dports/emulators/free42/Portfile
===================================================================
--- trunk/dports/emulators/free42/Portfile 2009-02-23 11:52:02 UTC (rev 47202)
+++ trunk/dports/emulators/free42/Portfile 2009-02-23 13:26:06 UTC (rev 47203)
@@ -1,46 +1,46 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4; -*-
+# vim: set fileencoding=utf-8 tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name free42
-version 1.4.44
-revision 1
-platforms darwin
-categories emulators
-maintainers krischik:macports.org
-description a HP-42s Simulator
-long_description Free42 is a complete re-implementation of the HP-42S \
- calculator and the HP-82240 printer. Free42 was written \
- from scratch, without using any HP code. You do not \
- need any ROM images in order to use it, yet it is fully \
- HP-42S compatible.
+name free42
+version 1.4.44
+revision 2
+platforms darwin
+categories emulators
+maintainers krischik:macports.org
+description a HP-42s Simulator
+long_description Free42 is a complete re-implementation of the HP-42S \
+ calculator and the HP-82240 printer. Free42 was written \
+ from scratch, without using any HP code. You do not \
+ need any ROM images in order to use it, yet it is fully \
+ HP-42S compatible.
-homepage http://free42.sourceforge.net/
-master_sites sourceforge
+homepage http://free42.sourceforge.net/
+master_sites sourceforge
-set prog free42.${version}.tgz
-set skin Free42Skins.zip
+set prog free42.${version}.tgz
+set skin Free42Skins.zip
-distfiles ${prog} \
- ${skin}
+distfiles ${prog} \
+ ${skin}
-extract.only ${prog}
+extract.only ${prog}
-checksums ${prog} sha1 a116ab15c3d7faef0bfd9b1e59426964248b4242 \
- ${skin} sha1 db0c327224fa163423003e287bee58e7f906f7b8
+checksums ${prog} sha1 a116ab15c3d7faef0bfd9b1e59426964248b4242 \
+ ${skin} sha1 db0c327224fa163423003e287bee58e7f906f7b8
-depends_lib port:gtk2
-depends_run path:${prefix}/bin/zsh:zsh
+depends_lib port:gtk2
-build.env-append LIBS="-lm -lXm -lXpm -lXp -lXmu -lXt -lX11"
+build.env-append LIBS="-lm -lXm -lXpm -lXp -lXmu -lXt -lX11"
-worksrcdir ${name}
-use_parallel_build yes
-use_configure no
+worksrcdir ${name}
+use_parallel_build yes
+use_configure no
post-extract {
- system "unzip -q ${distpath}/${skin} -d ${workpath}/skin"
+ system "unzip -q ${distpath}/${skin} -d ${workpath}/skin"
}
build {
@@ -57,65 +57,60 @@
xinstall -m 775 -d ${destroot}${prefix}/share/free42
xinstall -m 775 -d ${destroot}${applications_dir}
- xinstall -m 444 \
- -W ${workpath}/skin \
- 42ck.gif \
- 42ck.layout \
- 42ct.gif \
- 42ct.layout \
- Ehrling42sl.gif \
- Ehrling42sl.layout \
- Ehrling42sm.gif \
- Ehrling42sm.layout \
- HP42S.gif \
- HP42S.layout \
- KR.gif \
- KR.layout \
- Khor.gif \
- Khor.layout \
- "Michaels HP.gif" \
- "Michaels HP.layout" \
- Original.gif \
- Original.layout \
- README.txt \
- SemiAuto42.gif \
- SemiAuto42.layout \
- SemiAuto42b.gif \
- SemiAuto42b.layout \
- SemiReal42.gif \
- SemiReal42.layout \
- Standard.gif \
- Standard.layout \
- Voyager42.gif \
- Voyager42.layout \
- Widgi42.gif \
- Widgi42.layout \
+ eval xinstall -m 444 \
+ [glob ${workpath}/skin/*.gif] \
+ [glob ${workpath}/skin/*.layout] \
+ ${workpath}/skin/README.txt \
${destroot}${prefix}/share/free42
- xinstall -m 775 \
- -W ${workpath}/free42/gtk \
- free42bin \
- free42dec \
+ xinstall -m 775 \
+ -W ${workpath}/free42/gtk \
+ free42bin \
+ free42dec \
${destroot}${prefix}/bin
+}
- xinstall -m 755 \
- -W ${filespath} \
- Free42-Decimal.command.in \
- ${destroot}${applications_dir}/Free42-Decimal.command
- reinplace \
- s|@PREFIX@|${prefix}|g \
- ${destroot}${applications_dir}/Free42-Decimal.command
- system "SetFile -a E ${destroot}${applications_dir}/Free42-Decimal.command"
- xinstall -m 755 \
- -W ${filespath} \
- Free42-Binary.command.in \
- ${destroot}${applications_dir}/Free42-Binary.command
- reinplace \
- s|@PREFIX@|${prefix}|g \
- ${destroot}${applications_dir}/Free42-Binary.command
- system "SetFile -a E ${destroot}${applications_dir}/Free42-Binary.command"
+platform macosx {
+ post-destroot {
+ xinstall -m 775 -d ${destroot}${applications_dir}
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Binary.app
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Binary.app/Contents
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Binary.app/Contents/MacOS
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Binary.app/Contents/Resources
+
+ xinstall -m 644 -W ${filespath} \
+ Free42-Binary.app/Contents/Info.plist \
+ ${destroot}${applications_dir}/Free42-Binary.app/Contents/Info.plist
+ xinstall -m 644 -W ${filespath} \
+ Free42-Binary.app/Contents/Resources/Free42-Binary.icns \
+ ${destroot}${applications_dir}/Free42-Binary.app/Contents/Resources/Free42-Binary.icns
+ xinstall -m 755 -W ${filespath} \
+ Free42-Binary.app/Contents/MacOS/Free42-Binary.command \
+ ${destroot}${applications_dir}/Free42-Binary.app/Contents/MacOS/Free42-Binary.command
+
+ reinplace \
+ s|@PREFIX@|${prefix}|g \
+ ${destroot}${applications_dir}/Free42-Binary.app/Contents/MacOS/Free42-Binary.command
+
+ xinstall -m 775 -d ${destroot}${applications_dir}
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Decimal.app
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Decimal.app/Contents
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Decimal.app/Contents/MacOS
+ xinstall -m 755 -d ${destroot}${applications_dir}/Free42-Decimal.app/Contents/Resources
+
+ xinstall -m 644 -W ${filespath} \
+ Free42-Decimal.app/Contents/Info.plist \
+ ${destroot}${applications_dir}/Free42-Decimal.app/Contents/Info.plist
+ xinstall -m 644 -W ${filespath} \
+ Free42-Decimal.app/Contents/Resources/Free42-Decimal.icns \
+ ${destroot}${applications_dir}/Free42-Decimal.app/Contents/Resources/Free42-Decimal.icns
+ xinstall -m 755 -W ${filespath} \
+ Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command \
+ ${destroot}${applications_dir}/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command
+
+ reinplace \
+ s|@PREFIX@|${prefix}|g \
+ ${destroot}${applications_dir}/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command
+ }
}
-############################################################ {{{1 ###########
-# vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :
-# vim: set textwidth=0 filetype=tcl foldmethod=marker nospell :
Property changes on: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents
___________________________________________________________________
Added: svn:ignore
+ .backups
Added: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Info.plist
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Info.plist (rev 0)
+++ trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Info.plist 2009-02-23 13:26:06 UTC (rev 47203)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>Free42 Binary</string>
+ <key>CFBundleExecutable</key>
+ <string>Free42-Binary.command</string>
+ <key>CFBundleIconFile</key>
+ <string>Free42-Binary.icns</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>Free42</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>hp42</string>
+ <key>LSRequiresCarbon</key>
+ <true/>
+</dict>
+</plist>
Property changes on: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS
___________________________________________________________________
Added: svn:ignore
+ .backups
Copied: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/Free42-Binary.command (from rev 47111, trunk/dports/emulators/free42/files/Free42-Binary.command.in)
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/Free42-Binary.command (rev 0)
+++ trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/Free42-Binary.command 2009-02-23 13:26:06 UTC (rev 47203)
@@ -0,0 +1,21 @@
+#!/bin/zsh
+############################################################## {{{1 ##########
+# $Author$
+# $Revision$
+# $Date$
+# $HeadURL$
+############################################################## }}}1 ##########
+
+local User_Data="${HOME}/.free42"
+local System_Data="@PREFIX@/share/free42";
+
+if test ! -d "${User_Data}"; then
+ mkdir "${User_Data}";
+ ln -s "${System_Data}"/* "${User_Data}/";
+fi;
+
+ at PREFIX@/bin/free42bin &
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Property changes on: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/MacOS/Free42-Binary.command
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-shellscript
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:mergeinfo
+
Added: svn:eol-style
+ LF
Added: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Resources/Free42-Binary.icns
===================================================================
(Binary files differ)
Property changes on: trunk/dports/emulators/free42/files/Free42-Binary.app/Contents/Resources/Free42-Binary.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: trunk/dports/emulators/free42/files/Free42-Binary.command.in
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Binary.command.in 2009-02-23 11:52:02 UTC (rev 47202)
+++ trunk/dports/emulators/free42/files/Free42-Binary.command.in 2009-02-23 13:26:06 UTC (rev 47203)
@@ -1,21 +0,0 @@
-#!@PREFIX@/bin/zsh
-############################################################## {{{1 ##########
-# $Author$
-# $Revision$
-# $Date$
-# $HeadURL$
-############################################################## }}}1 ##########
-
-local User_Data="${HOME}/.free42"
-local System_Data="@PREFIX@/share/free42";
-
-if test ! -d "${User_Data}"; then
- mkdir "${User_Data}";
- ln -s "${System_Data}"/* "${User_Data}/";
-fi;
-
- at PREFIX@/bin/free42bin &
-
-############################################################ {{{1 ###########
-# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
-# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Added: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Info.plist
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Info.plist (rev 0)
+++ trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Info.plist 2009-02-23 13:26:06 UTC (rev 47203)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>Free42 Decimal</string>
+ <key>CFBundleExecutable</key>
+ <string>Free42-Decimal.command</string>
+ <key>CFBundleIconFile</key>
+ <string>Free42-Decimal.icns</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>Free42</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>hp42</string>
+ <key>LSRequiresCarbon</key>
+ <true/>
+</dict>
+</plist>
Property changes on: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS
___________________________________________________________________
Added: svn:ignore
+ .backups
Copied: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command (from rev 47111, trunk/dports/emulators/free42/files/Free42-Decimal.command.in)
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command (rev 0)
+++ trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command 2009-02-23 13:26:06 UTC (rev 47203)
@@ -0,0 +1,21 @@
+#!/bin/zsh
+############################################################## {{{1 ##########
+# $Author$
+# $Revision$
+# $Date$
+# $HeadURL$
+############################################################## }}}1 ##########
+
+local User_Data="${HOME}/.free42"
+local System_Data="@PREFIX@/share/free42";
+
+if test ! -d "${User_Data}"; then
+ mkdir "${User_Data}";
+ ln -s "${System_Data}"/* "${User_Data}/";
+fi;
+
+ at PREFIX@/bin/free42dec &
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Property changes on: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/MacOS/Free42-Decimal.command
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-shellscript
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:mergeinfo
+
Added: svn:eol-style
+ LF
Added: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Resources/Free42-Decimal.icns
===================================================================
(Binary files differ)
Property changes on: trunk/dports/emulators/free42/files/Free42-Decimal.app/Contents/Resources/Free42-Decimal.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: trunk/dports/emulators/free42/files/Free42-Decimal.command.in
===================================================================
--- trunk/dports/emulators/free42/files/Free42-Decimal.command.in 2009-02-23 11:52:02 UTC (rev 47202)
+++ trunk/dports/emulators/free42/files/Free42-Decimal.command.in 2009-02-23 13:26:06 UTC (rev 47203)
@@ -1,21 +0,0 @@
-#!@PREFIX@/bin/zsh
-############################################################## {{{1 ##########
-# $Author$
-# $Revision$
-# $Date$
-# $HeadURL$
-############################################################## }}}1 ##########
-
-local User_Data="${HOME}/.free42"
-local System_Data="@PREFIX@/share/free42";
-
-if test ! -d "${User_Data}"; then
- mkdir "${User_Data}";
- ln -s "${System_Data}"/* "${User_Data}/";
-fi;
-
- at PREFIX@/bin/free42dec &
-
-############################################################ {{{1 ###########
-# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
-# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090223/b0116ead/attachment-0001.html>
More information about the macports-changes
mailing list