--- opentoken-4.0a.orig/debian/README.Debian +++ opentoken-4.0a/debian/README.Debian @@ -0,0 +1,33 @@ +libopentoken for Debian +----------------------- + +The source files for the entire library are in +/usr/share/ada/adainclude/opentoken. + +The *.ali files are in /usr/lib/ada/adalib/opentoken. + +The object files are in the static library, /usr/lib/libopentoken.a, +and in the shared library, /usr/lib/libopentoken.so. + +There is a project file for use with GNAT (>= 3.15p) in +/usr/share/ada/adainclude/opentoken.gpr. To use it, you must first +write your own project file, starting with a line like this: + +with "/usr/share/ada/adainclude/opentoken.gpr"; +project My_Project is + [...] +end My_Project; + +(see the comments in the supplied project file for details). Then, +compile your program like this: + +gnatmake -Pmy_project + +Alternatively, you can also use OpenToken in your programs like this: + +gnatmake [other flags] \ + -aI/usr/share/ada/adainclude/opentoken \ + -aO/usr/lib/ada/adalib/opentoken \ + -largs -lopentoken + + -- Ludovic Brenta , Fri, 13 Feb 2004 02:39:47 +0100 --- opentoken-4.0a.orig/debian/README.source +++ opentoken-4.0a/debian/README.source @@ -0,0 +1,2 @@ +See comments in rules for how to checkout this package from mtn in the +upstream source tree, and how to build it. --- opentoken-4.0a.orig/debian/changelog +++ opentoken-4.0a/debian/changelog @@ -0,0 +1,144 @@ +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. + + * debian/control (Architecture): change to 'any', matching + gnat-4.4. Closes: #568450 + + [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 --- opentoken-4.0a.orig/debian/compat +++ opentoken-4.0a/debian/compat @@ -0,0 +1 @@ +7 --- opentoken-4.0a.orig/debian/control +++ opentoken-4.0a/debian/control @@ -0,0 +1,59 @@ +Source: opentoken +Section: libs +Priority: optional +Maintainer: Stephen Leake +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7), gnat-4.4 +Standards-Version: 3.8.4 +Homepage: http://www.stephe-leake.org/ada/opentoken.html +XS-Vcs-Mtn: www.ada-france.org org.opentoken +XS-Vcs-Browser: http://www.ada-france.org:8081/branch/changes/org.opentoken + +# integer is aliversion +Package: libopentoken2-dev +Section: libdevel +Architecture: any +Depends: gnat-4.4, libopentoken6 (= ${binary:Version}), ${misc:Depends} +Suggests: libopentoken-dbg +Conflicts: libopentoken-dev, libopentoken1-dev +Replaces: libopentoken-dev, libopentoken1-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 +Depends: libopentoken6 (= ${binary:Version}), ${misc:Depends} +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. + +# integer is soversion +Package: libopentoken6 +Section: libs +Architecture: any +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. --- opentoken-4.0a.orig/debian/copyright +++ opentoken-4.0a/debian/copyright @@ -0,0 +1,51 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Debianized-By: Ludovic Brenta +Debianized-Date: Fri, 13 Feb 2004 02:39:47 +0100 +Upstream-Author: Stephen Leake +Original-Source: http://www.stephe-leake.org/ada/opentoken.html + +Files: * +Copyright: + (C) 2009 Stephen Leake + (C) 1999 Ted Dennison +License: GPL-3+ + 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 Public License. + . + On Debian systems, the complete text of the GNU General Public License can be + found in /usr/share/common-licenses/GPL file. + +Files: debian/* +Copyright: + (C) 2004-2008 Ludovic Brenta + (C) 2008 Reto Buerki + (C) 2009 Stephen Leake +License: GPL-3+ + 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 . + . + On Debian systems, the complete text of the GNU General Public License can be + found in /usr/share/common-licenses/GPL file. --- opentoken-4.0a.orig/debian/opentoken.gpr +++ opentoken-4.0a/debian/opentoken.gpr @@ -0,0 +1,32 @@ +-- OpenToken project file for use with GCC 4.3 +-- Copyright (c) 2004, 2009 Ludovic Brenta +-- Copyright (c) 2009 Reto Buerki +-- +-- 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 2 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. +-- +-- This project file is designed to help build applications that use +-- OpenToken. Here is an example of how to use this project file: +-- +-- with "opentoken"; +-- project Example is +-- for Object_Dir use "obj"; +-- for Exec_Dir use "."; +-- for Main use ("example"); +-- end Example; + +project OpenToken is + for Library_Name use "opentoken"; + for Library_Dir use "/usr/lib"; + for Library_Kind use "dynamic"; + for Source_Dirs use ("/usr/share/ada/adainclude/opentoken"); + for Library_ALI_Dir use "/usr/lib/ada/adalib/opentoken"; + for Externally_Built use "true"; +end OpenToken; --- opentoken-4.0a.orig/debian/opentoken_build.gpr +++ opentoken-4.0a/debian/opentoken_build.gpr @@ -0,0 +1,46 @@ +-- Copyright (c) 2009 Stephen Leake +-- +-- 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 2 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. + +-- Build the OpenToken package +project OpenToken_Build is + + type Lib_Type is ("static", "dynamic"); + + Libtype : Lib_Type := external ("LIBTYPE"); + + for Languages use ("Ada"); + + for Source_Dirs use + ("../", + "../Language_Lexers"); + + for Library_Dir use "tmp"; + + for Object_Dir use "tmp/libopentoken-" & Libtype; + + for Library_Name use "opentoken"; + for Library_Kind use Libtype; + + -- Library_Version is not used when Library_Kind is "static" + for Library_Version use "libopentoken.so." & external ("soversion"); + + package Compiler is + for Default_Switches ("Ada") use + ("-g", + "-O2", + "-gnat05", + "-gnatfno", + "-gnatwa", + "-gnatVa"); + end Compiler; + +end OpenToken_Build; --- opentoken-4.0a.orig/debian/opentoken_test.gpr +++ opentoken-4.0a/debian/opentoken_test.gpr @@ -0,0 +1,43 @@ +-- Copyright (c) 2009, 2010 Stephen Leake +-- +-- 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. + +-- Test the installed OpenToken package + +-- WORKAROUND: if we use the pre-compiled libaunit.so.4, we get +-- bizarre behavior. So we compile the installed AUnit source. +with "opentoken"; +project OpenToken_Test is + + for Main use ("test_all_harness"); + + for Languages use ("Ada"); + + for Source_Dirs use + ("../Test", + "/usr/share/ada/adainclude/aunit"); + + for Object_Dir use "tmp/opentoken_test"; + + package Compiler is + for Default_Switches ("Ada") use + -- AUnit requires -fno-strict-aliasing + ("-g", + "-O2", + "-gnat05", + "-gnatfno", + "-gnatwa", + "-gnatVa", + "-fstack-check", + "-fno-strict-aliasing"); + end Compiler; + +end OpenToken_Test; --- opentoken-4.0a.orig/debian/rules +++ opentoken-4.0a/debian/rules @@ -0,0 +1,111 @@ +#!/usr/bin/make -f +# +# Debian Makefile for OpenToken +# Copyright (c) 2009, 2010 Stephen Leake +# +# 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, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# To setup for building this package from a new upstream release: +# cd /home/Projects/opentoken +# mkdir opentoken--current +# cd opentoken--current +# cp ../opentoken.main/Build/opentoken-.tar.gz opentoken_.orig.tar.gz +# mtn -d ~/monotone-dbs/ada-france.db checkout --branch org.debian.libopentoken opentoken-/debian +# +# To build this package in a chroot, from a new upstream release: +# sudo schroot -d `cd ..; pwd` --chroot=unstable -- dpkg-buildpackage -uc -us -i"_MTN|\\.mtn-ignore" +# +# To run lintian: +# schroot -d `cd ..; pwd` --chroot=unstable -- make -f debian/rules lint +# +# To install the packages and run the tests: +# sudo schroot --chroot=unstable -- ./test_installed.sh + +.SUFFIXES= + +# We use gnatmake, not make, for parallel builds. +.NOTPARALLEL: +CPUS := $(shell getconf _NPROCESSORS_ONLN) + +# get soversions, aliversions from debian/control +soversion := $(shell sed -n -e "s/^Package: libopentoken\([0123456789]\+\)$$/\1/p" debian/control) +aliversion := $(shell sed -n -e "s/^Package: libopentoken\(.\+\)-dev$$/\1/p" debian/control) + +verify-versions : + echo $(soversion) + echo $(aliversion) + +# Targets mandated by the Debian Policy + +.PHONY: build binary binary-arch binary-indep clean + +build: build-stamp + +build-stamp: + dh_testdir + gnatmake -p -j$(CPUS) -Pdebian/opentoken_build -XLIBTYPE=static -Xsoversion=$(soversion) + gnatmake -p -j$(CPUS) -Pdebian/opentoken_build -XLIBTYPE=dynamic -Xsoversion=$(soversion) + touch $@ + +clean: + dh_testdir + dh_testroot + dh_clean -a + rm -f *-stamp + +binary: binary-indep binary-arch + +binary-indep: + +# we don't use .[dirs | docs | examples | ...], because they +# would all have to be renamed and edited when the soversion or +# aliversion change. +binary-arch: build libopentoken-so libopentoken-dev + dh_shlibdeps -a + dh_installdeb -a + dh_installdocs -a + dh_installchangelogs -a + dh_compress -a + dh_fixperms -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +libopentoken-so: package := libopentoken$(soversion) +libopentoken-so: + dh_testdir + dh_testroot + dh_installdirs -p$(package) usr/lib + dh_install -p$(package) debian/tmp/libopentoken.so.$(soversion) usr/lib + dh_strip -p$(package) --dbg-package=libopentoken-dbg + dh_makeshlibs -p$(package) + +libopentoken-dev: source := $(shell ls *.ad[sb] Language_Lexers/*.ad[sb]) +libopentoken-dev: package := libopentoken$(aliversion)-dev +libopentoken-dev: + dh_testdir + dh_testroot + dh_install -p$(package) debian/tmp/libopentoken-dynamic/*.ali usr/lib/ada/adalib/opentoken + dh_install -p$(package) $(source) usr/share/ada/adainclude/opentoken + dh_install -p$(package) debian/opentoken.gpr usr/share/ada/adainclude + dh_install -p$(package) debian/tmp/libopentoken.a usr/lib + dh_link -p$(package) usr/lib/libopentoken.so.$(soversion) usr/lib/libopentoken.so + dh_installdocs -p$(package) Docs/* + dh_installexamples -p$(package) Examples/* + +lint: + cd ..; lintian -i opentoken*.changes + +# end of file --- opentoken-4.0a.orig/debian/test_installed.sh +++ opentoken-4.0a/debian/test_installed.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# install libopentoken package (normally in the chroot that just built it), +# and run test using it. + +# usage +# cd libopentoken-/debian +# sudo schroot ./test_installed.sh + +# This re-installs the latest version. +dpkg --install ../../libopentoken6_4.0a-1_i386.deb +dpkg --install ../../libopentoken2-dev_4.0a-1_i386.deb + +rm -rf tmp/opentoken_test + +gnatmake -p -P opentoken_test +tmp/opentoken_test/test_all_harness + +# end of file