--- cup-0.10k.orig/debian/cup +++ cup-0.10k/debian/cup @@ -0,0 +1,6 @@ +#! /bin/sh + +CLASSPATH="$CLASSPATH:/usr/share/java/cup.jar" +export CLASSPATH + +exec java java_cup.Main "$@" --- cup-0.10k.orig/debian/control +++ cup-0.10k/debian/control @@ -0,0 +1,21 @@ +Source: cup +Section: devel +Priority: optional +Maintainer: Takashi Okamoto +Build-Depends-Indep: debhelper (>= 2.1.0), kaffe (>= 1.0.7-1), jikes, fastjar (>= 3.0.4-7) +Standards-Version: 3.5.8 + +Package: cup +Architecture: all +Section: devel +Depends: kaffe (>= 1.0.7-1) | java-virtual-machine, kaffe | java1-runtime | java2-runtime +Suggests: java-compiler +Conflicts: java-cup +Replaces: java-cup +Description: LALR parser generator for Java(tm) + CUP is the "Constructor of Useful Parsers", a system for generating + parsers from simple LALR specifications. It serves the same role as the + widely used program YACC and in fact offers most of the features of YACC. + However, CUP is written in Java, uses specifications including embedded + Java code, and produces parsers which are implemented in Java. + --- cup-0.10k.orig/debian/menu +++ cup-0.10k/debian/menu @@ -0,0 +1,4 @@ +?package(cup):needs="dwww" section="Apps/Programming" \ + title="CUP Manual" longtitle="CUP" \ + description="An LALR parser generator for Java" \ + command="/usr/doc/cup/manual.html" --- cup-0.10k.orig/debian/Makefile +++ cup-0.10k/debian/Makefile @@ -0,0 +1,11 @@ +export CLASSPATH=/usr/share/kaffe:/usr/share/kaffe/Klasses.jar:. +export JAVA_HOME=/usr/lib/kaffe +export JAR=fastjar + +cup.jar: + jikes -d classes java_cup/*.java java_cup/*/*.java + ${JAR} mcvf debian/manifest cup.jar -C classes java_cup + +clean: + rm -fr cup.jar classes/* + --- cup-0.10k.orig/debian/cup.1 +++ cup-0.10k/debian/cup.1 @@ -0,0 +1,70 @@ +.TH CUP 1 +.SH NAME +cup \- LALR parser generator for Java(tm) +.SH SYNOPSIS +.B cup +.RI [ options ] +.RI < file +.SH DESCRIPTION +This manual page documents briefly the +.B cup +command. +This manual page was written for the Debian GNU/Linux distribution +(but may be used by others), because the original program does not +have a manual page. +Instead, it has documentation in HTML format; see +.IR /usr/doc/cup/manual.html . +.SH OPTIONS +.TP +.B \-package name +specify package generated classes go in [default none]. +.TP +.B \-parser name +specify parser class name [default "parser"]. +.TP +.B \-symbols name +specify name for symbol constant class [default "sym"] +.TP +.B \-nonterms +put non terminals in symbol constant class. +.TP +.B \-expect # +number of conflicts expected/allowed [default 0]. +.TP +.B \-compact_red +compact tables by defaulting to most frequent reduce. +.TP +.B \-nowarn +don't warn about useless productions, etc. +.TP +.B \-nosummary +don't print the usual summary of parse states, etc. +.TP +.B \-nopositions +don't propagate the left and right token position values. +.TP +.B \-progress +print messages to indicate progress of the system. +.TP +.B \-time +print time usage summary. +.TP +.B \-dump_grammar +produce a human readable dump of the symbols and grammar. +.TP +.B \-dump_states +produce a dump of parse state machine. +.TP +.B \-dump_tables +produce a dump of the parse tables +.TP +.B \-dump +produce a dump of all of the above. +.SH "SEE ALSO" +.BR jlex (1), +.BR javac (1). +.SH AUTHORS +The author of CUP is Scott E. Hudson +. +This manual page was written by Vincent Renardias , +for the Debian GNU/Linux system. --- cup-0.10k.orig/debian/rules +++ cup-0.10k/debian/rules @@ -0,0 +1,71 @@ +#! /usr/bin/make -f +# Generic debian/rules +# Written by Charles Briscoe-Smith, 1997-8 +# Contributed to the public domain +# $Id: rules,v 1.11 1998/08/18 13:43:05 cpb4 Exp $ + +LIBRARY=cup +VERSION=0.10k + +build: + $(checkdir) + make -f debian/Makefile + touch build + +# Build the package and prepare the install tree + +# Build package files + + + +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-indep: checkroot build + $(checkdir) +# dh_testdir +# dh_testroot +# dh_clean -k + dh_installdirs usr/share/java usr/bin +# install -d debian/tmp + + install -m644 ${LIBRARY}.jar debian/tmp/usr/share/java/${LIBRARY}-${VERSION}.jar + dh_installdocs manual.html cup_logo.gif + dh_installchangelogs CHANGELOG + dh_installman debian/cup.1 + install -m755 debian/cup debian/tmp/usr/bin/cup + dh_link + dh_fixperms + dh_strip + dh_compress + dh_installdeb +# dh_shlibdeps + dh_gencontrol + dh_md5sums + chown -R root.root debian/tmp + chmod -R go=rX debian/tmp + dpkg --build debian/tmp .. + +binary-arch: checkroot +define checkdir + test -f debian/rules +endef + +binary: binary-arch binary-indep + + +# Clean up afterwards + +clean: + $(checkdir) + dh_clean + make -f debian/Makefile clean + rm -f build +# -rm -rf debian/tmp + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- cup-0.10k.orig/debian/changelog +++ cup-0.10k/debian/changelog @@ -0,0 +1,80 @@ +cup (0.10k-3) unstable; urgency=low + + * Fixed dependency. (closes:#177751) + + -- Takashi Okamoto Sun, 18 Jan 2004 03:10:20 +0900 + +cup (0.10k-2) unstable; urgency=low + + * Fixed FTBFS (closes:#162864) + * modify dependency for new Java Policy. + + -- Takashi Okamoto Sun, 29 Dec 2002 09:50:01 +0900 + +cup (0.10k-1) unstable; urgency=low + + * New upstream release + * closes: #153921 (request new upstream) + + -- Takashi Okamoto Sat, 27 Jul 2002 07:43:20 +0900 + +cup (0.10j-3) unstable; urgency=low + + * rename cup.jar to cup-0.10j.jar for new Java Policy. + cup.jar is linked from cup-0.10j.jar. + + -- Takashi Okamoto Sat, 16 Feb 2002 17:04:24 +0900 + +cup (0.10j-2) unstable; urgency=low + + * New Maintainer (closes: #77528, #91137, #91422, #44468, #63166) + + -- Takashi Okamoto Fri, 15 Jun 2001 22:58:00 +0900 + +cup (0.10j-1.1) unstable; urgency=low + + * modify for debian java policy + + -- Takashi Okamoto Sat, 2 Jun 2001 22:45:41 +0900 + +cup (0.10g-2) unstable; urgency=low + + * Removed useless "icon=none" from menu file. + + -- Takashi Okamoto Sat, 2 Jun 2001 22:45:36 +0900 + +cup (0.10g-1) unstable; urgency=low + + * New maintainer. + * New upstream source. + * Filled in copyright file. + * Changed package name to avoid using SUN's "Java" trademark. + * Register manual with dwww. + * Install simple_calc example. + * Conflict and replace "java-cup". + * Depend on "jdk1.1 | jdk1.1-runtime", for maximal compatibility. + + * Changed wrapper script to pass options as-is -- you can now pass + options to cup as described in its HTML manual. + + * Use generic debian/rules; rewrote old rules into debian/process. + * Updated standards-version to 2.4.1. + * Other minor titivation to Debian-specific files. + + -- Charles Briscoe-Smith Fri, 2 Oct 1998 21:51:09 +0100 + +java-cup (0.10b-2) unstable; urgency=low + + * New Maintainer + + -- Michael Fletcher Thu, 27 Mar 1997 22:52:46 -0600 + +java-cup (0.10b-1) unstable; urgency=low + + * Initial Release. + + -- Vincent Renardias Sun, 2 Feb 1997 07:03:45 +0100 + +Local variables: +mode: debian-changelog +End: --- cup-0.10k.orig/debian/manifest +++ cup-0.10k/debian/manifest @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +Main-Class: java_cup/Main --- cup-0.10k.orig/debian/cup.links +++ cup-0.10k/debian/cup.links @@ -0,0 +1 @@ +usr/share/java/cup-0.10k.jar usr/share/java/cup.jar --- cup-0.10k.orig/debian/copyright +++ cup-0.10k/debian/copyright @@ -0,0 +1,28 @@ +This is the Debian GNU/Linux prepackaged version of CUP, a +parser generator for Java. It was debianized by Vincent Renardias + on Sun, 2 Feb 1997 07:03:45 +0100. It is currently +maintained by Charles Briscoe-Smith . + +It was downloaded from the CUP web page at +. + + CUP PARSER GENERATOR COPYRIGHT NOTICE, LICENSE AND DISCLAIMER. + + Copyright 1996 by Scott Hudson, Frank Flannery, C. Scott Ananian + + Permission to use, copy, modify, and distribute this software and + its documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and + that both the copyright notice and this permission notice and warranty + disclaimer appear in supporting documentation, and that the names of + the authors or their employers not be used in advertising or publicity + pertaining to distribution of the software without specific, written + prior permission. + + The authors and their employers disclaim all warranties with regard to + this software, including all implied warranties of merchantability and + fitness. In no event shall the authors or their employers be liable + for any special, indirect or consequential damages or any damages + whatsoever resulting from loss of use, data or profits, whether in an + action of contract, negligence or other tortious action, arising out + of or in connection with the use or performance of this software. --- cup-0.10k.orig/debian/process +++ cup-0.10k/debian/process @@ -0,0 +1,30 @@ +#! /usr/bin/make -f + +build: + ./INSTALL + +clean: + rm -f java_cup/*.class java_cup/*/*.class + +install-cup: + install -d $(ROOT)/usr/share/CUP/java_cup/runtime + install -m 644 java_cup/*.class $(ROOT)/usr/share/CUP/java_cup + install -m 644 java_cup/runtime/*.class \ + $(ROOT)/usr/share/CUP/java_cup/runtime + install -d $(ROOT)/usr/bin + install -m 755 debian/cup $(ROOT)/usr/bin/cup + install -d $(ROOT)/usr/lib/menu + install -m 644 debian/menu $(ROOT)/usr/lib/menu/cup + install -d $(ROOT)/usr/doc/cup + install -m 644 debian/changelog $(ROOT)/usr/doc/cup/changelog.Debian + install -m 644 CHANGELOG $(ROOT)/usr/doc/cup/changelog + install -d $(ROOT)/usr/man/man1 + install -m 644 debian/cup.1 $(ROOT)/usr/man/man1 + gzip -9n $(ROOT)/usr/doc/*/* $(ROOT)/usr/man/man1/* + install -d $(ROOT)/usr/doc/cup/examples + install -m 644 java_cup/simple_calc/* $(ROOT)/usr/doc/cup/examples + install -m 644 debian/copyright $(ROOT)/usr/doc/cup + install -m 644 manual.html cup_logo.gif $(ROOT)/usr/doc/cup + install -m 755 debian/postinst debian/postrm $(CONTROL) + +finalise-cup: