debian/0000755000000000000000000000000012246421252007166 5ustar debian/opentoken.gpr0000644000000000000000000000306012246413035011701 0ustar -- Build the OpenToken package -- Copyright (c) 2009 Stephen Leake -- Copyright (c) 2013 Nicolas Boulenguez -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . project OpenToken is type Library_Kind is ("dynamic", "static"); Kind : Library_Kind := External ("KIND"); for Library_Name use Project'Name; case Kind is when "dynamic" => for Library_Version use "lib" & Project'Library_Name & ".so." & External ("SOVERSION"); for Library_Options use External_As_List ("LDFLAGS", " "); when "static" => null; end case; for Library_Kind use Kind; for Library_Dir use Project'Name & "-lib-" & Kind; for Object_Dir use Project'Name & "-obj-" & Kind; package Compiler is for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " "); end Compiler; for Source_Dirs use ("../", "../Language_Lexers"); end OpenToken; debian/control0000644000000000000000000000503112246413444010574 0ustar Source: opentoken Section: libs Priority: optional Maintainer: Nicolas Boulenguez Build-Depends: dpkg-dev (>= 1.16.1), debhelper (>= 9), gnat, gnat-4.6, dh-ada-library Standards-Version: 3.9.5 Homepage: http://www.stephe-leake.org/ada/opentoken.html Vcs-Mtn: www.ada-france.org org.debian.libopentoken Vcs-Browser: http://www.ada-france.org:8081/branch/changes/org.debian.libopentoken XS-Testsuite: autopkgtest Package: libopentoken3-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, ${ada:Depends} Conflicts: libopentoken-dev, libopentoken1-dev, libopentoken2-dev Replaces: libopentoken-dev, libopentoken1-dev, libopentoken2-dev Description: OpenToken lexical analysis library for Ada (development) OpenToken is a facility for performing token analysis within the Ada language. It is designed to provide all the functionality of a traditional lexical analyzer generator, such as lex. But due to the magic of inheritance and runtime polymorphism it is implemented entirely in Ada as withed-in code. No precompilation step is required, and no messy tool-generated source code is created. . This package contains the development files and associated documentation. Package: libopentoken-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: ${misc:Depends}, ${ada:Depends} Recommends: ${ada:Recommends} Suggests: ${ada:Suggests} Description: OpenToken lexical analysis library for Ada (debug) OpenToken is a facility for performing token analysis within the Ada language. It is designed to provide all the functionality of a traditional lexical analyzer generator, such as lex. But due to the magic of inheritance and runtime polymorphism it is implemented entirely in Ada as withed-in code. No precompilation step is required, and no messy tool-generated source code is created. . This package contains the debug symbols. Package: libopentoken6 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: OpenToken lexical analysis library for Ada (runtime) OpenToken is a facility for performing token analysis within the Ada language. It is designed to provide all the functionality of a traditional lexical analyzer generator, such as lex. But due to the magic of inheritance and runtime polymorphism it is implemented entirely in Ada as withed-in code. No precompilation step is required, and no messy tool-generated source code is created. . This package contains the runtime shared library for programs that use OpenToken. debian/copyright0000644000000000000000000000365412246414071011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OpenToken Upstream-Contact: Stephen Leake Source: http://www.stephe-leake.org/ada/opentoken.html Files: * Copyright: 2009-2013 Stephen Leake 1999 Ted Dennison License: GPL-3+ with generic exception The OpenToken package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. The OpenToken package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License distributed with the OpenToken package; see file GPL.txt. If not, write to the Free Software Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . As a special exception, if other files instantiate generics from this unit, or you link this unit with other files to produce an executable, this unit does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file. Files: debian/* Copyright: 2004-2008 Ludovic Brenta 2008 Reto Buerki 2009-2013 Stephen Leake 2013 Nicolas Boulenguez License: GPL-3+ GNU GPL v3 or later, see /usr/share/common-licenses/GPL-3. debian/source/0000755000000000000000000000000012246372754010502 5ustar debian/source/format0000644000000000000000000000001412246372754011710 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001424512246421010011036 0ustar opentoken (4.0b-4) unstable; urgency=low * Adopting the package. Closes: #73753. * Switch to debhelper 9, dpkg-dev and dh-ada-library helpers. * Build-Depends: gnat in addition to gnat-4.6 to ensure default compiler. * Vcs-*: correct field names and values. * Stop depending on inexistant ada-compiler virtual package. * Mark lib and -dev packages as Multiarch: same. * copyright: update, machine-readable format 1.0. * Move runtime tests to debian/tests. XS-Testsuite field accordingly. * rules: inherit hardening flags. Do not compress examples. Implement clean. * Standards-Version: 3.9.5. * source.lintian overrides: -lib does Depend on -dbg. -- Nicolas Boulenguez Sat, 30 Nov 2013 15:29:08 +0100 opentoken (4.0b-3) unstable; urgency=low * upgrade to gnat-4.6; bump aliversion -- Stephen Leake Sun, 10 Jul 2011 15:28:15 -0400 opentoken (4.0b-2) unstable; urgency=low * new upstream version 4.0b; packaging changes only * debian/control (Architecture): change to 'any', matching gnat-4.4. Closes: #568450 -- Stephen Leake Tue, 29 Jun 2010 03:37:18 -0400 opentoken (4.0a-1) unstable; urgency=low [Stephen Leake] * update to upstream version 4.0a; mtn tag "version_4.0a". Requires soversion and aliversion changes. [Ludovic Brenta] * debian/control (DM-Upload-Allowed): new. (Uploaders): remove myself. -- Stephen Leake Sat, 27 Feb 2010 14:14:22 -0500 opentoken (3.1a-1) unstable; urgency=low * update to upstream version 3.1a; mtn tag "version_3.1a". Requires an soversion change. * control: add aliversion to dev package name, reorder packages, update Suggests, Conflicts, Replaces. (Build-Depends): update to gnat-4.4 (Maintainer): change to Stephen Leake (Uploaders): add Ludovic Brenta (XS-Vcs-Mtn, XS-Vcs-Browser): new (* Architecture): update to current gnat list * copyright: add Stephen Leake, update to GPL 3 * .*: delete; easier to maintain in rules file. * patches: delete; no longer needed. * rules: rewrite, using gnat project files more extensively. -- Stephen Leake Wed, 18 Nov 2009 05:42:42 -0500 opentoken (3.0b-11) unstable; urgency=low * Include missing language lexer code. * Update to Standards-Version 3.8.2 (no changes). -- Reto Buerki Fri, 19 Jun 2009 00:54:05 +0200 opentoken (3.0b-10) unstable; urgency=low * Fix wrong-section-according-to-package-name warning. - opentoken-dbg: devel -> debug. * Tighten dependency to gnat-4.3 (Closes: #533156). * Remove unused opentoken-dbg lintian override. * Update to Standards-Version 3.8.1 (no changes). * Update Debian specific OpenToken project file. -- Reto Buerki Mon, 15 Jun 2009 22:02:36 +0200 opentoken (3.0b-9) unstable; urgency=low * Update maintainer e-mail address. * Remove "section" field from binary package libopentoken4. -- Reto Buerki Sat, 07 Feb 2009 12:26:58 +0100 opentoken (3.0b-8) unstable; urgency=low * Updated to Standards-Version: 3.8.0 * Added mips and mipsel to 'Architecture' (Closes: #495239). -- Reto Buerki Sat, 16 Aug 2008 18:11:21 +0200 opentoken (3.0b-7) unstable; urgency=low * Fix compilation issues in ASU_Example_5_10 parser examples (Closes: #249915, #249916). -- Reto Buerki Tue, 13 May 2008 14:04:32 +0000 opentoken (3.0b-6) unstable; urgency=low * Taking over package from Ludovic Brenta (Closes: #477322). * Renamed source package to its upstream name. * Added debug package opentoken-dbg. * Placed DH_COMPAT in debian/compat (removed export from debian/rules). * Upgrading package to debhelper 7. * Using dpatch for patch management. * Changed SONAME to libopentoken.so.4 because of ABI change (transition to gnat-4.3) - no other packages affected. * Cleanup of debian/rules. -- Reto Buerki Sat, 3 May 2008 10:32:08 +0200 libopentoken (3.0b-5) unstable; urgency=medium * debian/control (libopentoken3.0b): conflict with, and replace libopentoken3. Closes: #388147. Thanks, Bill, for reporting this. -- Ludovic Brenta Tue, 19 Sep 2006 23:40:42 +0200 libopentoken (3.0b-4) unstable; urgency=low [Felipe Augusto van de Wiel (faw) ] * Transition to GCC 4.1. Closes: #378715. - Bump SONAME to 3.0b: + changes in debian/rules to allow the use of another SONAME and to properly handle the libs - Dependency changes in debian/control + libopentoken build-depends on gnat (>= 4.1) + libopentoken-dev depends on gnat-4.1 + depends on libopentoken3.0b (to match the new SONAME) - rename package libopentoken3 to libopentoken3.0b * Changed maintainer e-mail address (requested by him). * Removed Uploaders fields (requested by the maintainer). * Bump Standards-Version to 3.7.2 (no changes required). * Adding architectures supported by gnat-4.1: - New arches: amd64 hppa ia64 [Ludovic Brenta] * Many thanks to Felipe for all the hard work. * Add alpha and s390, libgnat has just been enabled on these archs. * Update the FSF's address in the copyright file. -- Ludovic Brenta Sun, 6 Aug 2006 22:44:15 +0200 libopentoken (3.0b-3) unstable; urgency=low * debian/rules (regexp): accept any character in the Debian upload number. Closes: #359898. -- Ludovic Brenta Sat, 1 Apr 2006 13:46:26 +0200 libopentoken (3.0b-2) unstable; urgency=low * debian/control: add support for GNU/kFreeBSD, per request from Aurélien Jarno. Build-depend on gnat (>= 3.15p-19). Closes: #345191. * debian/control: update standards-version to 3.6.2 with no changes. * debian/control: update maintainer's email address. * debian/libopentoken-dev.postinst: remove, no longer needed. -- Ludovic Brenta Thu, 9 Feb 2006 18:20:39 +0100 libopentoken (3.0b-1) unstable; urgency=low * Initial Release. Closes: #342473. -- Ludovic Brenta Fri, 13 Feb 2004 02:39:47 +0100 debian/rules0000755000000000000000000000537712246420113010255 0ustar #!/usr/bin/make -f # # Debian Makefile for OpenToken # Copyright (c) 2009-2010 Stephen Leake # Copyright (c) 2013 Nicolas Boulenguez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # include /usr/share/dpkg/default.mk include /usr/share/ada/debian_packaging.mk ADAFLAGS += -gnatfno -gnatwa -gnatVa LIB_NAME := $(patsubst lib%,%,$(DEB_SOURCE)) SOVERSION := $(shell sed -n -e "s/^Package: lib$(LIB_NAME)\([[:digit:]]\+\)$$/\1/p" debian/control) ifndef SOVERSION $(warning Could not guess SOVERSION from debian/control) # Not error. Policy defines targets that may be run from outside build dir. endif ###################################################################### POLICY_TARGETS := binary binary-arch binary-indep build build-arch \ build-indep clean .PHONY: $(POLICY_TARGETS) $(POLICY_TARGETS): dh $@ --with ada-library PROJECT := debian/opentoken.gpr override_dh_auto_build-arch: gnatmake $(BUILDER_OPTIONS) -P$(PROJECT) -XKIND=static \ $(foreach var,ADAFLAGS,-X$(var)="$($(var))") gnatmake $(BUILDER_OPTIONS) -P$(PROJECT) -XKIND=dynamic \ $(foreach var,ADAFLAGS LDFLAGS SOVERSION,-X$(var)="$($(var))") override_dh_auto_clean: rm -f $(foreach k, dynamic static \ ,$(foreach d, lib obj \ ,debian/opentoken-$(d)-$(k)/*)) # First package is -dev, but we avoid depending on the aliversion. override_dh_compress: dh_compress --exclude=-dev/examples/ dh_compress --remaining-packages ###################################################################### RUN_TESTS_TMP := lib$(LIB_NAME)-run-tests-XXXXXXXXXX # The plural is a lie: only link-with-shared is executed. # You may run the other test with a manual modification. # TODO: use adttest and remove all this. run-tests: ADTTMP=`mktemp --tmpdir --directory $(RUN_TESTS_TMP)` && \ ADTTMP=$$ADTTMP sh debian/tests/link-with-shared 2> $$ADTTMP/stderr; \ status=$$?; cat $$ADTTMP/stderr; \ if test $$status != 0; then \ echo "Test failed: non zero exit status ($$status)."; \ elif test -s $$ADTTMP/stderr; then \ echo "Test failed: activity on stderr."; \ fi; \ rm -f -r $$ADTTMP debian/source.lintian-overrides0000644000000000000000000000033212246413312014042 0ustar # This dependency has a versioned name per debian-ada-policy, so we # generate it at build time via deb-substvars. This causes a lintian # false positive. opentoken source: dbg-package-missing-depends libopentoken-dbg debian/README.source0000644000000000000000000000036712246372754011367 0ustar See copyright for location of upstream source. See comments in rules for how to checkout this package from mtn in the upstream source tree, and how to build it. -- Stephen Leake , Tue, 12 Jul 2011 18:21:27 -0400 debian/opentoken-obj-dynamic/0000755000000000000000000000000012246414123013361 5ustar debian/docs0000644000000000000000000000020312246376002010036 0ustar # The name of this file does not mention the aliversion. # Instead we use that -dev is the first package in debian/control. Docs/* debian/README.Debian0000644000000000000000000000033412246372754011243 0ustar libopentoken for Debian ----------------------- See the Debian Ada policy at http://people.debian.org/~lbrenta/debian-ada-policy.html -- Stephen Leake , Tue, 29 Jun 2010 03:36:25 -0400 debian/opentoken-lib-dynamic/0000755000000000000000000000000012246414123013355 5ustar debian/examples0000644000000000000000000000020712246376033010734 0ustar # The name of this file does not mention the aliversion. # Instead we use that -dev is the first package in debian/control. Examples/* debian/tests/0000755000000000000000000000000012246416401010330 5ustar debian/tests/control0000644000000000000000000000011112246403301011717 0ustar Tests: link-with-shared Tests: upstream-tests Depends: @, libaunit2-dev debian/tests/link-with-shared0000644000000000000000000000055112246416272013434 0ustar #!/bin/sh set -C -e -f -u TOP_SOURCE_DIR="`pwd`" cd "$ADTTMP" SOURCES="$TOP_SOURCE_DIR/Examples/ASU_Example_3_6" MAIN=asu_example_3_6-run cat > p.gpr < p.gpr <