[52117] trunk/dports/devel

mww at macports.org mww at macports.org
Wed Jun 10 04:37:36 PDT 2009


Revision: 52117
          http://trac.macports.org/changeset/52117
Author:   mww at macports.org
Date:     2009-06-10 04:37:35 -0700 (Wed, 10 Jun 2009)
Log Message:
-----------
new port devel/dparser

Modified Paths:
--------------
    trunk/dports/devel/dparser/Portfile

Added Paths:
-----------
    trunk/dports/devel/dparser/
    trunk/dports/devel/dparser/files/
    trunk/dports/devel/dparser/files/patch-Makefile

Modified: trunk/dports/devel/dparser/Portfile
===================================================================
--- trunk/dports/devel/bison/Portfile	2009-05-29 07:03:18 UTC (rev 51605)
+++ trunk/dports/devel/dparser/Portfile	2009-06-10 11:37:35 UTC (rev 52117)
@@ -2,59 +2,37 @@
 
 PortSystem 1.0
 
-name            bison
-version         2.4.1
+name            dparser
+version         1.19
 categories      devel
 maintainers     mww
+platforms       darwin
 description     general-purpose parser generator
 long_description \
-    Bison is a general-purpose parser generator that converts a grammar \
-    description for an LALR context-free grammar into a C program to    \
-    parse that grammar. Once you are proficient with Bison, you can use \
-    it to develop a wide range of language parsers, from those used in  \
-    simple desk calculators to complex programming languages.
+	DParser is an simple but powerful tool for parsing.  You can specify \
+	the form of the text to be parsed using a combination of regular \
+	expressions and grammar productions. Because of the parsing technique \
+	(technically a scannerless GLR parser based on the Tomita algorithm) \
+	there are no restrictions. The grammar can be ambiguous, right or \
+	left recursive, have any number of null productions, and because there \
+	is no seperate tokenizer, can include whitespace in terminals and have \
+	terminals which are prefixes of other terminals. DParser handles not \
+	just well formed computer languages and data files, but just about any \
+	wacky situation that occurs in the real world.
 
-homepage        http://www.gnu.org/software/bison/
-platforms       darwin
-master_sites    gnu
-checksums       md5 84e80a2a192c1a4c02d43fbf2bcc4ca4 \
-                sha1 fc96b28ee4a6a914b18cb1eddb68177d94b83361 \
-                rmd160 d194a6e0f586cab2aab137d215d0138336be367c
-use_bzip2       yes
+homepage        http://dparser.sourceforge.net/
+master_sites    sourceforge
+checksums           md5     2d897700b9deabd0de4e25e122ed727c \
+                    sha1    30205b01691b850b78ced0e013f88a6ce79df2bb \
+                    rmd160  394ce68e15f1c632d96c0767cd8aefbbc0255ad8
+distname	d-${version}-src
+patchfiles	patch-Makefile
 
-depends_lib     port:gettext port:m4 port:libiconv
+worksrcdir	d
 
-configure.args  --infodir=${prefix}/share/info \
-                --mandir=${prefix}/share/man \
-                --disable-yacc
+use_configure	no
 
-test.run        yes
-test.target     check
+build.args-append	CC="${configure.cc} ${configure.cflags}" PREFIX=${prefix}
 
-post-destroot {
-	set docdir ${prefix}/share/doc/${name}
-	xinstall -d ${destroot}${docdir}/examples/calc++
-	xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
-		THANKS TODO ${destroot}${docdir}
-	xinstall -m 444 -W ${worksrcpath}/examples/calc++  \
-		calc++-driver.cc calc++-driver.hh calc++-parser.cc \
-		calc++-parser.hh calc++-parser.stamp calc++-parser.yy \
-		calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \
-		position.hh stack.hh test \
-		${destroot}${docdir}/examples/calc++
-	delete ${destroot}${prefix}/lib/charset.alias
-	# yacc manpage gets installed even with '--disable-yacc'
-	if {! [variant_isset yacc]} {
-		delete ${destroot}${prefix}/share/man/man1/yacc.1
-	}
-}
+destroot.destdir	PREFIX=${destroot}${prefix}
 
-livecheck.check regex
-livecheck.url   http://ftp.gnu.org/gnu/bison/?C=M&O=D
-livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
-
-variant yacc description "enable yacc compatibility" {
-    configure.args-delete   --disable-yacc
-}
-
-

Added: trunk/dports/devel/dparser/files/patch-Makefile
===================================================================
--- trunk/dports/devel/dparser/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/devel/dparser/files/patch-Makefile	2009-06-10 11:37:35 UTC (rev 52117)
@@ -0,0 +1,21 @@
+--- Makefile	2008-03-19 21:48:51.000000000 +0100
++++ Makefile	2009-06-10 13:33:52.000000000 +0200
+@@ -1,7 +1,6 @@
+ # Makefile for D_Parser
+ 
+ #D_DEBUG=1
+-D_OPTIMIZE=1
+ #D_PROFILE=1
+ #D_USE_GC=1
+ #D_LEAK_DETECT=1
+@@ -150,8 +149,8 @@
+ 	cp -f $(INCLUDES) $(PREFIX)/include
+ 	mkdir -p $(PREFIX)/lib
+ 	cp -f $(INSTALL_LIBRARIES) $(PREFIX)/lib
+-	mkdir -p $(PREFIX)/man/man1
+-	cp -f $(MANPAGES) $(PREFIX)/man/man1
++	mkdir -p $(PREFIX)/share/man/man1
++	cp -f $(MANPAGES) $(PREFIX)/share/man/man1
+ 
+ deinstall:
+ 	rm $(EXECUTABLES:%=$(PREFIX)/bin/%)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090610/b8349f50/attachment.html>


More information about the macports-changes mailing list