--- styx-1.7.orig/debian/README +++ styx-1.7/debian/README @@ -0,0 +1,19 @@ +styx for Debian +--------------- + +As mentioned in "The Styx Handbook", upstream authors use a programming +style where .h files are automatically generated from the corresponding +.c sources. Styx generated C code adheres to the same conventions, hence +ctoh has to be run after styx. + +In order to avoid conflicts, header files coming with styx are +installed under /usr/include/styx. For generated sources to compile, +with gcc, you must specify "-I /usr/include/styx". + +Upstream decided to only release threading versions of the libraries. +This means that when linking statically, you have to append +"-ldl -lrt -lpthread" to your linker command line (cf. comment in +/usr/share/doc/styx-doc/examples/example*/mx). When linking dynamically +this happens under the hood. + + -- Siggy Brentrup , Tue, 10 Jun 2003 08:17:19 +0200 --- styx-1.7.orig/debian/styx-xml.README +++ styx-1.7/debian/styx-xml.README @@ -0,0 +1,24 @@ +styx-xml for Debian +------------------- + +While upstream installs a shared library libdxml.so providing XML +support based on styx's own tree traversal functions, we use the +XML/DTD parser to give a full blown example for application +development with styx. + +In order to build the example application, install prerequisite +packages using + + apt-get install styx libcurl3-gnutls-dev + +automatically drawing in dependent packages libdstyx, libxstyx and +libcurl3-gnutls if they are not yet installed. + + # Unpack the example in your working directory + tar xzf /usr/share/doc/styx-doc/examples/styx-xml.tar.gz + cd styx-xml + # As with other styx examples, the mx script builds the application + sh mx + + -- Bernd S. Brentrup , Sat Jan 10 18:20:00 2004 + -- Matej Vela , Wed Oct 19 18:50:02 CEST 2005 --- styx-1.7.orig/debian/styx-doc.examples +++ styx-1.7/debian/styx-doc.examples @@ -0,0 +1,2 @@ +debian/styx-xml.README +debian/styx-xml.tar.gz --- styx-1.7.orig/debian/watch +++ styx-1.7/debian/watch @@ -0,0 +1,4 @@ +# watch control file for uscan +# Site Directory Pattern Version Script +version=2 +http://www.speculate.de/styx/en/download.html .*/styx-(.*)\.tar\.gz debian uupdate --- styx-1.7.orig/debian/copyright +++ styx-1.7/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Siggy Brentrup on +Tue, 3 Dec 2002 21:59:34 +0100. + +It was downloaded from http://speculate.de/styx/styx-1.6.1.tar.gz + +Upstream authors: Heike Manns + Lars Doelle + +Styx comes with two licenses, GPL and LGPL. Overall, +the GPL v2 applies to the whole project. To enable the +use of the basic runtime library for commercial purposes, +libdstyx.so fall under LGPL. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'; +the complete text of the GNU Lesser General Public License can be +found in `/usr/share/common-licenses/LGPL'. + +More explicitly, the sources of both the parser and the +scanner generators ( in the source directory 'libstyx' ) +fall under GPL and are not released under LGPL. --- styx-1.7.orig/debian/changelog +++ styx-1.7/debian/changelog @@ -0,0 +1,92 @@ +styx (1.7-1) unstable; urgency=low + + * New Maintainer. Closes: #298369 + * New upstream version. + * Added lintian override for libstyx2. + + -- Frederik Schüler Sat, 19 Nov 2005 22:26:05 +0100 + +styx (1.6.1-3) unstable; urgency=low + + * QA upload. + * Rebuild as a non-native package. + * libdstyx and libxstyx lack a soname in their name, have no external + reverse dependencies, and total ~230 KB, so merge them into libstyx2. + * Put the styx-xml example in a tarball; a normal user can't compile it in + /usr/share/doc anyway, and this makes the instructions simpler. + * Add a list of supported languages to the description. Closes: #302768. + * Switch to cdbs to simplify package-specific rules. + * Use `dh_makeshlibs -V' rather than a static shlibs.local. + * Remove unnecessary build dependencies on automake1.4 and autoconf. + * Remove {pre,post}{inst,rm} templates. + * debian/libdstyx.copyright: Merge into debian/copyright. + * debian/styx-doc.doc-base: Change section to Apps/Programming. + * debian/watch: Update. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Wed, 19 Oct 2005 18:54:03 +0200 + +styx (1.6.1-2) unstable; urgency=low + + * QA Group upload orphaning this package + * debian/control: fixed typo in package description (closes: #268545, + #277246) + + -- Andrew Pollock Thu, 24 Mar 2005 13:02:32 +1100 + +styx (1.6.1-1) unstable; urgency=low + + * New upstream release. + * Folded styx-xml into styx-doc where other examples reside. + * Bumped Standards version to 3.6.1. + + -- Siggy Brentrup Sat, 10 Jan 2004 20:56:21 +0100 + +styx (1.6-0) unstable; urgency=low + + * Sorry, this release never made it into the archives. + * New upstream version. + * New example package styx-xml. + * debian/styx.sgml: Fixed synopsis for lim_test, plus minor tweaks in + wording. + * Change maintainer email address. + + -- Siggy Brentrup Sat, 10 Jan 2004 18:03:19 +0100 + +styx (1.5.1-3) unstable; urgency=low + + * Revamp va_list usage portably, patch forwarded upstream. Package + should build on any arch now (Closes: #174393). + + -- Siggy Brentrup Sun, 29 Dec 2002 02:22:42 +0100 + +styx (1.5.1-2) unstable; urgency=low + + * libbase/sink.c(Sink_vprintf): Fixed va_arg calls to use self-promoting + type int instead of char/short (Closes: #174255). + + -- Siggy Brentrup Thu, 26 Dec 2002 18:28:47 +0100 + +styx (1.5.1-1) unstable; urgency=low + + * First upload (Closes: #172037). + * debian/control: capitalize "Unicode" per request by Martin Michlmayer. + * pgm/styx.{c,cmd}, gen/styx_cim.c: upstream added -makeANT flag to the + effect that win-only files _ant.c are no longer generated when + -makeINT is specified. These files didn't compile on Linux. + * tutorial/tutorial0[1-4]/mx.in: added comments how to make static + linking work and rewrote gcc commands accordingly. + * tutorial/tutorial0[1-4]/readme: removed note on setting $STYXDIR and + $LD_LIBRARY_PATH that don't apply to Debian. + + -- Siggy Brentrup Thu, 12 Dec 2002 20:34:19 +0100 + +styx (1.5.1-0) experimental; urgency=low + + * Initial Release. + * Added manpage since upstream uses HTML documentation. + * libbase/symbols.c: bugfix by Heike Manns (upstream). + * tutorial/tutorial04/calc.cpp: bugfix by Heike Manns (upstream). + + -- Siggy Brentrup Fri, 6 Dec 2002 11:26:52 +0100 + --- styx-1.7.orig/debian/compat +++ styx-1.7/debian/compat @@ -0,0 +1 @@ +4 --- styx-1.7.orig/debian/control +++ styx-1.7/debian/control @@ -0,0 +1,58 @@ +Source: styx +Section: devel +Priority: optional +Maintainer: Frederik Schüler +Build-Depends: cdbs, autotools-dev, debhelper (>= 4.1.0), docbook-to-man +Standards-Version: 3.6.2 + +Package: styx +Architecture: any +Depends: ${shlibs:Depends} +Recommends: styx-dev (= ${Source-Version}) +Suggests: styx-doc (= ${Source-Version}) +Description: combined parser/scanner generator for C/C++ + The package facilitates application development including + user-defined context free languages. + . + Its development model deviates from the traditional lex/yacc pair + (flex/bison in Debian) by automating tedious tasks which are + commonly implemented in yacc's actions. + . + Styx automatically derives a depth grammar, generates reentrant + parsers that support persistent derivation trees, preserve full + source information, support Unicode and are thread safe. + +Package: libstyx2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Provides: libdstyx, libxstyx +Conflicts: libdstyx, libxstyx +Replaces: libdstyx, libxstyx +Description: runtime libraries for styx + Dynamically linked programs containing lexical scanners or parsers + developed with styx depend on this library. + . + It implements abstract grammar, LALR(1) parser and lexical scanner + interfaces, hashed symbol tables and supporting data types. + +Package: styx-dev +Architecture: any +Depends: styx (= ${Source-Version}) +Suggests: styx-doc (= ${Source-Version}) +Description: combined parser/scanner generator development files + Static libraries and headers needed for development with styx. + . + cf. styx for features. + +Package: styx-doc +Architecture: all +Section: doc +Description: combined parser/scanner generator documentation + "The Styx Handbook" describes application development with styx and + contains HTML reference documentation for the styx API. + . + Contains a full blown example showing how to build an XML parser + with styx. + . + cf. styx for features. --- styx-1.7.orig/debian/styx.manpages +++ styx-1.7/debian/styx.manpages @@ -0,0 +1 @@ +debian/styx.1 --- styx-1.7.orig/debian/styx.sgml +++ styx-1.7/debian/styx.sgml @@ -0,0 +1,273 @@ +Siggy"> + Brentrup"> + + May 20, 2003"> + 1"> + bsb@debian.org"> + + STYX"> + + + Debian GNU/Linux"> + GNU"> +]> + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2002 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + A combined parser and scanner generator + + + + styx + + + + + + + directory + directory + directory + language + + + + + stypp + string + + string + string + string + string + + + string + string + string + path + srclang + tgtlang + filename + + + + stydoc + path + path + string + + + string + string + string + string + path + grammarfile + outfile + + + + ctoh + + + path + path + path + path + path + + + + ptm_img + path + string + string + + + string + string + string + string + + + string + string + path + language + image + + + + lim_test + string + + + string + string + string + + + path + language + filename + + + + pim_test + string + + + string + string + string + string + + + string + string + + path + language + filename + + + + DESCRIPTION + + This manual page documents briefly the + styx, + stypp, + stydoc, + ctoh, + lim_test and + pim_test + commands. + It was written for the &debian; distribution because the + original programs don't have manual pages, but have + documentation in HTML format (see below). + + styx translates token and syntax + descriptions contained in + $SPESTYX/language.sty yielding scanner and + parser tables as well as a functional interface to the abstract + derivation tree. + + stypp is sort of a pretty + printer for source files written in a styx-defined + language. Furthermore it can be used to port source files, + provided source and target languages have equivalent abstract + syntax. + + stydoc generates HTML reference + documentation for a grammar specified in grammarfile using a + template. + + ctoh is used to create header files from + C sources generated by styx. It is taken from + the upstream author's own project development environment where + source files are written in a manner allowing interface + definitions to be automatically generated. + + ptm_img translates a source file + specified by the FileName option to a binary image. If the + FileName option is omitted, the image file + must exist and the program writes the derivation tree to + stdout. + + lim_test uses a scanner image file for + language to scan the source in + filename writing the token stream to + stdout. + + pim_test uses scanner and parser image files for + language to parse the source in + filename writing the derivation tree to + stdout. + + + + ENVIRONMENT + + Upstream authors use non-standard conventions for command-line + options and environment variables, to the effect that the latter are + best viewed as options which default to the value of the + identically named environment variable if not specified. + + For styx, SPESTYX is + the search path for language specifications + (language.sty), scanner and parser image + files are located using BINSTYX while the + location of generated C code is determined by + GENSTYX. + + stypp, stydoc, + ptm_img, lim_test and + pim_test use BINSTYX to + locate scanner and parser image files + language.lim and + language.pim. + + + + SEE ALSO + + The programs are documented fully in The Styx + Handbook available in the source distribution in + LinuxDoc and HTML format. On + &debian; systems the documentation is contained in the + styx-doc package. + + + + AUTHOR + + This manual page was written by &dhusername; + <&dhemail;> for the &debian; system (but may be used by + others). Permission is granted to copy, distribute and/or modify + this document under the terms of the GNU Free + Documentation License, Version 1.1 or any later version published + by the Free Software Foundation; with no Invariant Sections, no + Front-Cover Texts and no Back-Cover Texts. + + +
+ + --- styx-1.7.orig/debian/styx-xml.mx +++ styx-1.7/debian/styx-xml.mx @@ -0,0 +1,23 @@ +#!/bin/sh +set -e + +SPESTYX=$PWD/spe +BINSTYX=$PWD/gen +GENSTYX=$PWD/gen + +export SPESTYX BINSTYX GENSTYX + +[ -d inc ] || mkdir inc + +for lang in xmllit dtd xml ; do + styx -makeINT -makeC ${lang} +done + +ctoh -ct -CPATH=.:lib:gen -HPATH=inc + +gcc -I ./inc -I ./lib -I /usr/include/styx -c *.c +for d in gen lib ; do + ( cd ${d} && gcc -I ../inc -I ../lib -I /usr/include/styx -c *.c ) +done + +gcc -o xml_test *.o gen/*.o lib/*.o -lxstyx -lcurl --- styx-1.7.orig/debian/libstyx2.lintian +++ styx-1.7/debian/libstyx2.lintian @@ -0,0 +1 @@ +libstyx2 binary: package-name-doesnt-match-sonames libdstyx2 libxstyx2 --- styx-1.7.orig/debian/styx.links +++ styx-1.7/debian/styx.links @@ -0,0 +1,6 @@ +usr/share/man/man1/styx.1 usr/share/man/man1/stypp.1 +usr/share/man/man1/styx.1 usr/share/man/man1/stydoc.1 +usr/share/man/man1/styx.1 usr/share/man/man1/ctoh.1 +usr/share/man/man1/styx.1 usr/share/man/man1/lim_test.1 +usr/share/man/man1/styx.1 usr/share/man/man1/pim_test.1 +usr/share/man/man1/styx.1 usr/share/man/man1/ptm_img.1 --- styx-1.7.orig/debian/styx.install +++ styx-1.7/debian/styx.install @@ -0,0 +1,7 @@ +debian/tmp/usr/bin/styx +debian/tmp/usr/bin/stydoc +debian/tmp/usr/bin/stypp +debian/tmp/usr/bin/ctoh +debian/tmp/usr/bin/lim_test +debian/tmp/usr/bin/pim_test +debian/tmp/usr/bin/ptm_img --- styx-1.7.orig/debian/libstyx2.install +++ styx-1.7/debian/libstyx2.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/lib[dx]styx*.so.* --- styx-1.7.orig/debian/TODO +++ styx-1.7/debian/TODO @@ -0,0 +1,5 @@ +* Meaningful long descriptions for all binary packages except styx. + +* Development manpages. + +* Fix abstract in styx-doc.doc-base. --- styx-1.7.orig/debian/styx-doc.doc-base +++ styx-1.7/debian/styx-doc.doc-base @@ -0,0 +1,15 @@ +Document: styx-handbook +Title: The Styx Handbook +Author: Heike Manns, Lars Doelle +Abstract: This manual describes application development + with the combined parser/scanner generator styx and + includes reference documentation for programs and the + styx API. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/styx-doc/html/styx.html +Files: /usr/share/doc/styx-doc/html/*.html /usr/share/doc/styx-doc/html/*.htm + +Format: linuxdoc-sgml +Files: /usr/share/doc/styx-doc/sgml/styx.sgml.gz --- styx-1.7.orig/debian/styx-dev.install +++ styx-1.7/debian/styx-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/lib[dx]styx*.so +debian/tmp/usr/lib/lib[dx]styx*.la +debian/tmp/usr/lib/lib[dx]styx*.a --- styx-1.7.orig/debian/rules +++ styx-1.7/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_CONFIGURE_INCLUDEDIR := /usr/include/styx +DEB_CONFIGURE_EXTRA_FLAGS := --datadir=/usr/share/doc/styx-doc \ + ac_cv_htmldir=/usr/share/doc/styx-doc/html \ + ac_cv_sgmldir=/usr/share/doc/styx-doc/sgml + +build/styx:: debian/styx.1 +debian/styx.1: debian/styx.sgml + docbook-to-man $< > $@ + +clean:: + rm -f debian/styx.1 + +build/styx-doc:: debian/styx-xml.tar.gz +debian/styx-xml.tar.gz: + set -e; \ + for args in "pgmxml/*.c debian/styx-xml" \ + "spexml/*.sty spexml/*.lex debian/styx-xml/spe" \ + "genxml/xml_test_cim.c debian/styx-xml/gen" \ + "libxml/*.[ch] debian/styx-xml/lib"; do \ + install -d $${args##*[[:space:]]}; \ + install -m 644 -p $$args; \ + done + install -m 755 debian/styx-xml.mx debian/styx-xml/mx + GZIP=-9 tar -czf $@ --owner=root --group=root -C debian styx-xml + +clean:: + rm -rf debian/styx-xml debian/styx-xml.tar.gz + +# Disable default target since we want to do install-{exec,data} separately. +DEB_MAKE_INSTALL_TARGET := + +common-install-arch:: + $(MAKE) install-exec DESTDIR=$(DEB_DESTDIR) + mkdir -p debian/libstyx2/usr/share/lintian/overrides/ + install -o root -g root -m 0644 debian/libstyx2.lintian \ + debian/libstyx2/usr/share/lintian/overrides/libstyx2 + + + +install/styx-dev:: + set -e; \ + for dir in libbase modstd pgm inc; do \ + $(MAKE) -C $$dir install-data DESTDIR=$(CURDIR)/debian/styx-dev; \ + done + +install/styx-doc:: debian/styx-xml.tar.gz + set -e; \ + for dir in doc examples spe pat; do \ + $(MAKE) -C $$dir install-data DESTDIR=$(CURDIR)/debian/styx-doc; \ + done + find debian/styx-doc -size 0 | xargs rm -f + +DEB_DH_MAKESHLIBS_ARGS_ALL := -V +DEB_SHLIBDEPS_INCLUDE := debian/libstyx2/usr/lib