[28558] trunk/dports/lang

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 3 12:22:31 PDT 2007


Revision: 28558
          http://trac.macosforge.org/projects/macports/changeset/28558
Author:   mww at macports.org
Date:     2007-09-03 12:22:30 -0700 (Mon, 03 Sep 2007)

Log Message:
-----------
new port lang/objc - The Portable Object Compiler

Added Paths:
-----------
    trunk/dports/lang/objc/
    trunk/dports/lang/objc/Portfile
    trunk/dports/lang/objc/files/
    trunk/dports/lang/objc/files/patch-src-cakit-intmodp.m

Added: trunk/dports/lang/objc/Portfile
===================================================================
--- trunk/dports/lang/objc/Portfile	                        (rev 0)
+++ trunk/dports/lang/objc/Portfile	2007-09-03 19:22:30 UTC (rev 28558)
@@ -0,0 +1,55 @@
+# $Id: $
+
+PortSystem 1.0
+
+name			objc
+version			3.2.8
+categories		lang
+platforms		darwin
+maintainers		mww at macports.org
+description		The Portable Object Compiler is an Objective-C compiler
+long_description	\
+	This is an independent implementation of Objective C - independent of \
+	Stepstone\'s, NeXT's, GNU\'s (Free Software Foundation) or SunSoft\'s \
+	Objective C implementation. Like the GNU compiler, the "objc" grammar \
+	is written in YACC. The lexical ananlyzer is written in LEX, and the \
+	compiler itself in the Bourne shell and in Objective C. (the optional \
+	Objective C link editor is written in AWK).
+
+homepage		http://users.pandora.be/stes/compiler.html
+master_sites		http://users.pandora.be/stes/
+checksums		sha1 b315a9d68e975a5751b28b48bd44468df26509a1
+distfiles		objc-${version}.tar.gz objc-bootstrap-${version}.tar.gz
+checksums		objc-${version}.tar.gz sha1 b315a9d68e975a5751b28b48bd44468df26509a1 \
+			objc-bootstrap-${version}.tar.gz sha1 07558d72d314c14d66f3817297944db7512a1790
+patchfiles		patch-src-cakit-intmodp.m
+
+depends_lib		port:byacc
+
+set cc	/usr/bin/gcc
+platform darwin 8 {
+	set cc			/usr/bin/gcc-4.0
+	configure.compiler	gcc-4.0
+}
+
+pre-configure {
+	# bootstrap
+	file mkdir ${workpath}/bootstrap
+	system "cd ${workpath}/objc-bootstrap-${version} && \
+		CC=${cc} ./configure --prefix=${workpath}/bootstrap && \
+		make && \
+		make install"
+}
+
+configure.env	PATH=${workpath}/bootstrap/bin:$env(PATH)
+configure.args	--build=i386-apple-freebsd
+
+build.env	PATH=${workpath}/bootstrap/bin:$env(PATH)
+build.target
+
+destroot.destdir	INSTALLDIR=${destroot}${prefix}
+post-destroot {
+	file delete -force ${destroot}${prefix}/share/man
+	file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
+}
+

Added: trunk/dports/lang/objc/files/patch-src-cakit-intmodp.m
===================================================================
--- trunk/dports/lang/objc/files/patch-src-cakit-intmodp.m	                        (rev 0)
+++ trunk/dports/lang/objc/files/patch-src-cakit-intmodp.m	2007-09-03 19:22:30 UTC (rev 28558)
@@ -0,0 +1,23 @@
+--- src/cakit/intmodp.m	2001-07-09 20:38:07.000000000 +0200
++++ src/cakit/intmodp.m	2007-09-03 20:55:04.000000000 +0200
+@@ -220,10 +220,7 @@
+ 
+ static void modp_clear(modp_c *c,modp_args args)
+ {
+-    /* nothing to clear, but the following might help... */
+-    #ifndef DEBUG
+     *c = (modp_t)0xcafebabe;
+-    #endif
+ }
+ 
+ static void modp_copy(modp_c *c,modp_t a,modp_args args)
+@@ -239,9 +236,7 @@
+ static void modp_move(modp_c *c,modp_c *a,modp_args args)
+ {
+     *c = *a;
+-    #ifndef DEBUG
+     *a = (modp_t)0xcafebabe;
+-    #endif
+ }
+ 
+ #if !modp_isvalue

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070903/619df815/attachment.html


More information about the macports-changes mailing list