[56907] trunk/dports/emulators/nonpareil

krischik at macports.org krischik at macports.org
Thu Sep 3 06:10:50 PDT 2009


Revision: 56907
          http://trac.macports.org/changeset/56907
Author:   krischik at macports.org
Date:     2009-09-03 06:10:50 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
Use Python 2.5

Modified Paths:
--------------
    trunk/dports/emulators/nonpareil/Portfile

Added Paths:
-----------
    trunk/dports/emulators/nonpareil/files/osx.patch

Modified: trunk/dports/emulators/nonpareil/Portfile
===================================================================
--- trunk/dports/emulators/nonpareil/Portfile	2009-09-03 13:08:25 UTC (rev 56906)
+++ trunk/dports/emulators/nonpareil/Portfile	2009-09-03 13:10:50 UTC (rev 56907)
@@ -6,10 +6,10 @@
 
 name				nonpareil
 version				0.79
-revision			1
+revision			3
 platforms			darwin
 categories			emulators
-maintainers			me.com:krischik
+maintainers			krischik
 description			a high-fidelity simulator for calculators.
 long_description	Nonpareil is a high-fidelity simulator for calculators. \
 					It currently supports many HP calculators models		\
@@ -22,10 +22,11 @@
 					algorithms from the calculator.
 
 homepage			http://nonpareil.brouhaha.com/
-master_sites		http://nonpareil.brouhaha.com/download:prog \
+master_sites		http://nonpareil.brouhaha.com/download:prog	\
 					macports:nonpareil:appbundles				\
+					http://pagesperso-orange.fr/kdntl/hp41:hpil	\
 					macports:nonpareil:voyager
-				
+
 set patchversion	47826
 set prog			nonpareil-${version}.tar.gz
 set appbundles		nonpareil-appbundles-r${patchversion}.tar.gz
@@ -42,15 +43,19 @@
 					sha1	4798b1ae8a56275a4c2eb4df54f352c457f1ff0a \
 					rmd160	f0aa0eea748297f652f08c239fe1922b9f61e31d \
 
+extract.only		${prog}									\
+					${appbundles}							
+
 depends_lib			port:glib2								\
 					port:gtk2								\
 					port:libxml2							\
+					port:libsdl_sound						\
 					port:netpbm
 
 depends_build		port:bison								\
 					port:flex								\
 					port:pkgconfig							\
-					port:python23							\
+					port:python25							\
 					port:scons
 
 patchfiles			patch-src-util.diff
@@ -94,6 +99,8 @@
 							sha1	8a51f656a523c5739d82a35ad933f8c448be58e6 \
 							rmd160	4f7fec5af3b387fd6a7df44ce0a7b019eeb4a253
 
+	extract.only-append		${voyager}
+
 	depends_build-append	port:p7zip	\
 							port:netpbm
 
@@ -123,5 +130,64 @@
 variant debugger						\
 	description "Include Debugger!"		{
 	build.args-append			debug=yes has_debugger_gui=yes
-	destroot.args-append 		debug=yes has_debugger_gui=yes
+	destroot.args-append		debug=yes has_debugger_gui=yes
 }
+
+variant hpil												\
+	description "Include HP-Interface-Loop emulation!"		{
+	set hpil1 nonpareil-patch-20090131.diff
+	set hpil2 nonpareil-patch-20090201.diff
+	set hpil3 nonpareil-patch-20090202.diff
+	set hpil4 nonpareil-patch-20090208.diff
+	set hpil5 nonpareil-patch-20090210.diff
+
+	distfiles-append		${hpil1}.gz:hpil	\
+							${hpil2}.gz:hpil	\
+							${hpil3}.gz:hpil	\
+							${hpil4}.gz:hpil	\
+							${hpil5}.gz:hpil	
+
+	checksums-append		${hpil1}.gz \
+							md5		6c5e2b38172794c9d4e15fc0e6a3d0bf \
+							sha1	d46f6f3e35c82b160929f15390bc62c5add6cc45 \
+							rmd160	332fde37754e081c1f83c3386f4047d13aadb83c \
+							${hpil2}.gz \
+							md5		cdcfe2b495c9a53478924d9ca2079b62 \
+							sha1	40c4edae934f5b0c23c3f6dc28646d6b38f8ab47 \
+							rmd160	ef90137f54b99850e1ff32d9546e237010bdf188 \
+							${hpil3}.gz \
+							md5		ae9fb42887c73ab13e07083da2796a69 \
+							sha1	426d34b403444aa7c6d1666ce3de44ae2e849812 \
+							rmd160	f6c96fa350c5ba45ddf11428f125765175fcea1b \
+							${hpil4}.gz \
+							md5		d277908b12033bbe371eca4f1d13c19d \
+							sha1	3c202f7a0f30bbed6f07de88e409bb43357a7e6c \
+							rmd160	ab86c58b223db93ae39c4c5392b6ed64df965f57 \
+							${hpil5}.gz \
+							md5		c1acee0f07bac5b995d2f4a4e0ba992c \
+							sha1	345b8666ac6f7999fcb4e785fbb50e1e1d40b6e4 \
+							rmd160	9cc19d32e7712819a16ae61d44c0fe311ad8137f
+
+	#patchfiles-append		osx.patch
+	patchfiles-delete		patch-src-util.diff
+	build.cmd				"scons"
+	destroot.cmd			"scons"
+
+	post-extract {
+		foreach patch { nonpareil-patch-20090131.diff nonpareil-patch-20090201.diff nonpareil-patch-20090202.diff nonpareil-patch-20090208.diff nonpareil-patch-20090210.diff } {
+			system "
+				gzip --verbose --decompress --stdout ${distpath}/${patch}.gz >${workpath}/${patch};
+			"
+		}
+	}
+	post-patch {
+		foreach patch { nonpareil-patch-20090131.diff nonpareil-patch-20090201.diff nonpareil-patch-20090202.diff nonpareil-patch-20090208.diff nonpareil-patch-20090210.diff } {
+			system "
+				pushd ${workpath};
+					patch -p0 < ${workpath}/${patch}
+				popd;
+			"
+		}
+	}
+}
+

Added: trunk/dports/emulators/nonpareil/files/osx.patch
===================================================================
--- trunk/dports/emulators/nonpareil/files/osx.patch	                        (rev 0)
+++ trunk/dports/emulators/nonpareil/files/osx.patch	2009-09-03 13:10:50 UTC (rev 56907)
@@ -0,0 +1,25 @@
+*** src/SConscript.ORIG	Sun Feb  1 20:27:38 2009
+--- src/SConscript	Sun Feb  1 20:27:53 2009
+***************
+*** 34,43 ****
+  if cross and ming and build_target_only:
+      pkg_config_cmd = 'PKG_CONFIG_PATH=/usr/local/gtkwin/lib/pkgconfig pkg-config --define-variable=includedir=/usr/local/gtkwin/include --define-variable=libdir=/usr/local/gtkwin/lib'
+  else:
+!     pkg_config_cmd = 'pkg-config'
+  pkg_config_cmd += ' --cflags --libs '
+  
+! sdl_pkg_config_cmd = 'sdl-config --cflags --libs'
+  
+  build_env.Append (CPPPATH = ['.'])
+  build_env.Append (CPPPATH = ['#/build/common'])  # generated includes
+--- 34,43 ----
+  if cross and ming and build_target_only:
+      pkg_config_cmd = 'PKG_CONFIG_PATH=/usr/local/gtkwin/lib/pkgconfig pkg-config --define-variable=includedir=/usr/local/gtkwin/include --define-variable=libdir=/usr/local/gtkwin/lib'
+  else:
+!     pkg_config_cmd = '/opt/local/bin/pkg-config'
+  pkg_config_cmd += ' --cflags --libs '
+  
+! sdl_pkg_config_cmd = '/opt/local/bin/sdl-config --cflags --libs'
+  
+  build_env.Append (CPPPATH = ['.'])
+  build_env.Append (CPPPATH = ['#/build/common'])  # generated includes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090903/8e4ac4ef/attachment.html>


More information about the macports-changes mailing list