--- cableswig-0.1.0+cvs20111009.orig/debian/makeSource.sh +++ cableswig-0.1.0+cvs20111009/debian/makeSource.sh @@ -0,0 +1,25 @@ +#! /bin/sh + +set -e + +VERSION=0.1.0 +#ITKBRANCHARG="-r ITK-3-20" +ITKBRANCHARG= +DATE=20111009 + +dirname=cableswig-${VERSION}+cvs${DATE}.orig +tarname=cableswig_${VERSION}+cvs${DATE}.orig.tar.gz + +rm -rf ${dirname} +cvs -z3 export ${ITKBRANCHARG} -D ${DATE} -d ${dirname} CableSwig + +# Remove files with (a) no license, or (b) non-free license. +# +rm -rf ${dirname}/GCC +rm -rf ${dirname}/GCC_XML + + +# Build tarball +# +tar czf ../${tarname} ${dirname} +rm -rf ${dirname} --- cableswig-0.1.0+cvs20111009.orig/debian/cswig.1.in +++ cableswig-0.1.0+cvs20111009/debian/cswig.1.in @@ -0,0 +1,23 @@ +[NAME] +cswig \- generate Python and Tcl wrappers from C++ code. + +[SYNOPSIS] +.B cswig +.RI [ options ] " files" ... + +[DESCRIPTION] +CableSwig (cswig) is used to create interfaces (i.e. "wrappers") to +interpreted languages such as Tcl and Python. It was created to +produce wrappers for ITK because the toolkit uses C++ structures that +SWIG cannot parse (deeply nested template instantiations). CableSwig +is a combination tool that uses GCC_XML as the c++ parser. The input +files are Cable style input files. The XML produced from the +Cable/GCC_XML input files are then parsed and feed into a modified +version of SWIG. SWIG is a software development tool that connects +programs written in C and C++ with a variety of high-level programming +languages. It is used to generate the language bindings to the target +language. Currently, Tcl and Python are supported. + +[SEE ALSO] +.BR cableidx (1), +.BR gccxml (1). --- cableswig-0.1.0+cvs20111009.orig/debian/cswig.1 +++ cableswig-0.1.0+cvs20111009/debian/cswig.1 @@ -0,0 +1,162 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH CSWIG "1" "March 2006" "cswig " "User Commands" +.SH NAME +cswig \- generate Python and Tcl wrappers from C++ code. +.SH SYNOPSIS +.B cswig +.RI [ options ] " files" ... +.SH DESCRIPTION +CableSwig (cswig) is used to create interfaces (i.e. "wrappers") to +interpreted languages such as Tcl and Python. It was created to +produce wrappers for ITK because the toolkit uses C++ structures that +SWIG cannot parse (deeply nested template instantiations). CableSwig +is a combination tool that uses GCC_XML as the c++ parser. The input +files are Cable style input files. The XML produced from the +Cable/GCC_XML input files are then parsed and feed into a modified +version of SWIG. SWIG is a software development tool that connects +programs written in C and C++ with a variety of high-level programming +languages. It is used to generate the language bindings to the target +language. Currently, Tcl and Python are supported. +.SS "Target Language Options:" +.HP +\fB\-chicken\fR \- Generate CHICKEN wrappers +.HP +\fB\-csharp\fR \- Generate C# wrappers +.HP +\fB\-guile\fR \- Generate Guile wrappers +.HP +\fB\-java\fR \- Generate Java wrappers +.HP +\fB\-mzscheme\fR \- Generate Mzscheme wrappers +.HP +\fB\-ocaml\fR \- Generate Ocaml wrappers +.HP +\fB\-perl\fR \- Generate Perl wrappers +.HP +\fB\-php\fR \- Generate PHP wrappers +.HP +\fB\-pike\fR \- Generate Pike wrappers +.HP +\fB\-python\fR \- Generate Python wrappers +.HP +\fB\-ruby\fR \- Generate Ruby wrappers +.HP +\fB\-sexp\fR \- Generate Lisp S\-Expressions wrappers +.HP +\fB\-tcl\fR \- Generate Tcl wrappers +.HP +\fB\-xml\fR \- Generate XML wrappers +.PP +General Options +.HP +\fB\-nocable\fR \- Run in regular swig mode. +.HP +\fB\-Cindex\fR file.mdx \- Read a cable master index file +.HP +\fB\-depend\fR file.cmake \- Specify a cmake depend file +.HP +\fB\-c\fR++ \- Enable C++ processing +.HP +\fB\-co\fR \- Check a file out of the SWIG library +.HP +\fB\-dirprot\fR \- Turn on wrapping of protected members for director classes +.HP +\fB\-D\fR \- Define a symbol (for conditional compilation) +.HP +\fB\-E\fR \- Preprocess only, does not generate wrapper code +.HP +\fB\-fcompact\fR \- Compile in compact mode +.HP +\fB\-fvirtual\fR \- Compile in virtual elimination mode +.HP +\fB\-Fstandard\fR \- Display error/warning messages in commonly used format +.HP +\fB\-Fmicrosoft\fR \- Display error/warning messages in Microsoft format +.HP +\fB\-help\fR \- This output +.HP +\fB\-I\fR \- Look for SWIG files in +.HP +\fB\-ignoremissing\fR \- Ignore missing include files +.HP +\fB\-importall\fR \- Follow all #include statements as imports +.HP +\fB\-includeall\fR \- Follow all #include statements +.HP +\fB\-l\fR \- Include SWIG library file +.HP +\fB\-M\fR \- List all dependencies +.HP +\fB\-MM\fR \- List dependencies, but omit files in SWIG library +.HP +\fB\-makedefault\fR \- Create default constructors/destructors (the default) +.HP +\fB\-module\fR \- Set module name to +.HP +\fB\-nocontract\fR \- Turn off contract checking +.HP +\fB\-nodefault\fR \- Do not generate constructors/destructors +.HP +\fB\-nodirprot\fR \- Do not wrap director protected members +.HP +\fB\-noexcept\fR \- Do not wrap exception specifiers +.HP +\fB\-noextern\fR \- Do not generate extern declarations +.HP +\fB\-noruntime\fR \- Do not include SWIG runtime code +.HP +\fB\-o\fR \- Set name of the output file to +.HP +\fB\-outdir\fR \- Set language specific files output directory +.HP +\fB\-runtime\fR \- Make the runtime support code globally visible. +.HP +\fB\-small\fR \- Compile in virtual elimination & compact mode +.HP +\fB\-swiglib\fR \- Report location of SWIG library and exit +.HP +\fB\-v\fR \- Run in verbose mode +.HP +\fB\-version\fR \- Print SWIG version number +.HP +\fB\-Wall\fR \- Enable all warning messages +.HP +\fB\-Wallkw\fR \- Enable keyword warnings for all the supported languages +.HP +\fB\-Werror\fR \- Force to treat warnings as errors +.TP +\fB\-w\fR \- Suppress/add warning messages by code. +Use ',' as separator and the +/\- signs as follows +.IP +\fB\-w\fR+321,401,\-402 +.IP +where code 321(+) is added, and 401(no sign) and 402(\-) +are suppressed. See documentation for code meanings. +.PP +Tcl 8 Options (available with \fB\-tcl\fR) +.HP +\fB\-itcl\fR \- Enable ITcl support +.HP +\fB\-ldflags\fR \- Print runtime libraries to link with +.HP +\fB\-nosafe\fR \- Leave out SafeInit module function. +.HP +\fB\-prefix\fR \- Set a prefix to be prepended to all names +.HP +\fB\-namespace\fR \- Build module into a Tcl 8 namespace +.HP +\fB\-pkgversion\fR \- Set package version +.PP +Note: 'cswig \- \fB\-help\fR' displays options for a specific target language. +.PP +SWIG Version 1.3.20 +Copyright (c) 1995\-1998 +University of Utah and the Regents of the University of California +Copyright (c) 1998\-2003 +University of Chicago +Compiled with g++ [Linux\-2.6.15\-1\-k7\-gcc] +.PP +Please see http://www.swig.org for reporting bugs and further information +.SH "SEE ALSO" +.BR cableidx (1), +.BR gccxml (1). --- cableswig-0.1.0+cvs20111009.orig/debian/compat +++ cableswig-0.1.0+cvs20111009/debian/compat @@ -0,0 +1 @@ +8 --- cableswig-0.1.0+cvs20111009.orig/debian/Notes +++ cableswig-0.1.0+cvs20111009/debian/Notes @@ -0,0 +1,12 @@ +Build from upstream CVS snapshot along the ITK-2-4 branch. + + sh debian/makeSource.sh + +Build + + cd ../cableswig-0.1.0+cvs20060311 + debuild + + + + --- cableswig-0.1.0+cvs20111009.orig/debian/copyright +++ cableswig-0.1.0+cvs20111009/debian/copyright @@ -0,0 +1,150 @@ +This package was originally debianized by Gavin Baker . + +CableSwig may be downloaded from http://www.itk.org/HTML/Download.htm +Or via CVS :pserver:anonymous@public.kitware.com:/cvsroot/CableSwig + +Any changes to the source for the Debian packages are detailed in +the README.Debian and/or the changelog.Debian file included in this package. + +Upstream Authors: Brad King +CableSwig web site: http://www.itk.org/HTML/CableSwig.html + +Copyright: + +Copyright (c) 2005 Kitware Inc., Insight Software Consortium + +This package contains code from several projects, with different copyright +and licensing. Each of these is reproduced separately below, separated by a +line of dashes. + + +---------------------------------------------------------------------------- + +Copyright (c) 2000-2003 Kitware, Inc., Insight Consortium. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + + * Neither the name of Kitware nor the names of any contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + + * Modified source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------------------------------------------- + +Expat is distributed under the following terms: + +Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd + and Clark Cooper + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +---------------------------------------------------------------------------- + +SWIG is distributed under the following terms: + +I. + +This software includes contributions that are Copyright (c) 1998-2002 +University of Chicago. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. Redistributions +in binary form must reproduce the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. Neither the name of +the University of Chicago nor the names of its contributors may be +used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF CHICAGO AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF +CHICAGO OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +II. + +Copyright (c) 1995-1998 +The University of Utah and the Regents of the University of California +All Rights Reserved + +Permission is hereby granted, without written agreement and without +license or royalty fees, to use, copy, modify, and distribute this +software and its documentation for any purpose, provided that +(1) The above copyright notice and the following two paragraphs +appear in all copies of the source code and (2) redistributions +including binaries reproduces these notices in the supporting +documentation. Substantial modifications to this software may be +copyrighted by their authors and need not follow the licensing terms +described here, provided that the new terms are clearly indicated in +all files where they apply. + +IN NO EVENT SHALL THE AUTHOR, THE UNIVERSITY OF CALIFORNIA, THE +UNIVERSITY OF UTAH OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY +PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, +EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. + +THE AUTHOR, THE UNIVERSITY OF CALIFORNIA, AND THE UNIVERSITY OF UTAH +SPECIFICALLY DISCLAIM ANY WARRANTIES,INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND +THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, +SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +---------------------------------------------------------------------------- --- cableswig-0.1.0+cvs20111009.orig/debian/cableidx.1 +++ cableswig-0.1.0+cvs20111009/debian/cableidx.1 @@ -0,0 +1,15 @@ +.TH CABLEIDX "1" "March 2006" "cableidx " "User Commands" +.SH NAME +cableidx \- generate index files from gccxml xml files. +.SH SYNOPSIS +.B cableidx +.I "input.xml" "output.idx" +.SH DESCRIPTION +The command cableidx generates index files from gccxml xml files. The index +files tell cswig what classes are wrapped in which libraries. This is +important because swig needs to know if a class is not wrapped or +wrapped in another module, and if it is wrapped which module it is +wrapped in. +.SH "SEE ALSO" +.BR cswig (1), +.BR gccxml (1). --- cableswig-0.1.0+cvs20111009.orig/debian/control +++ cableswig-0.1.0+cvs20111009/debian/control @@ -0,0 +1,34 @@ +Source: cableswig +Homepage: http://www.itk.org/HTML/CableSwig.html +Section: devel +Priority: optional +Maintainer: Steve M. Robbins +Build-Depends: debhelper (>= 8), cmake (>= 2.6.3), gccxml, python-dev (>= 2.3), tcl8.4-dev (>= 8.4.11) +Standards-Version: 3.9.2 + +Package: cableswig +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, gccxml +Description: Generate wrappers for Python and Tcl from C++ code + CableSwig is used to create interfaces (i.e. "wrappers") to interpreted + languages such as Tcl and Python. It was created to produce wrappers for + ITK because the toolkit uses C++ structures that SWIG cannot parse (deeply + nested template instantiations). CableSwig is a combination tool that uses + GCC_XML as the c++ parser. The input files are Cable style input files. The + XML produced from the Cable/GCC_XML input files are then parsed and feed + into a modified version of SWIG. SWIG is a software development tool that + connects programs written in C and C++ with a variety of high-level + programming languages. It is used to generate the language bindings to the + target language. Currently, Tcl and Python are supported. + +Package: libcableswig-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Libraries for writing a C++ wrapper generator + The CableSwig development libraries provide facilities to write + an interface generator for C++ code. These libraries are particularly + suited for wrapping C++ code that SWIG cannot parse (deeply + nested template instantiations). + . + These libraries are part of the CableSwig tool. --- cableswig-0.1.0+cvs20111009.orig/debian/README.Debian +++ cableswig-0.1.0+cvs20111009/debian/README.Debian @@ -0,0 +1,6 @@ + CableSwig for Debian + -------------------- + +The upstream Cableswig source code includes a copy of gccxml sources +(a modified version of gcc's front end). The Debian build, however, +does not use it, but instead uses gccxml from the gccxml package. --- cableswig-0.1.0+cvs20111009.orig/debian/changelog +++ cableswig-0.1.0+cvs20111009/debian/changelog @@ -0,0 +1,86 @@ +cableswig (0.1.0+cvs20111009-1) unstable; urgency=low + + * New upstream, pulled from CVS HEAD. + - Includes patch (thanks, Mathieu Malaterre) to install development + files. Closes: #644596. + + * control: + * rules: New package libcableswig-dev, which contains headers and static + libs for building new wrapper generators (e.g. Kitware's mummy). + + * rules: build with dh. + + -- Steve M. Robbins Sun, 09 Oct 2011 12:19:33 -0500 + +cableswig (0.1.0+cvs20110226-1) unstable; urgency=low + + * New upstream, pulled from ITK-3-20 CVS branch. + + -- Steve M. Robbins Sat, 26 Feb 2011 18:25:46 -0600 + +cableswig (0.1.0+cvs20100501-1) unstable; urgency=low + + * New upstream, pulled from ITK-3-18 CVS branch. + + -- Steve M. Robbins Sat, 01 May 2010 15:19:45 -0500 + +cableswig (0.1.0+cvs20090916-1) unstable; urgency=low + + * New upstream, pulled from ITK-3-16 CVS branch. + + * control: Remove Gavin Baker as maintainer, as he has never uploaded. + Set debhelper dependency to version 7. Set Standards-Version to + 3.8.3.0. + + -- Steve M. Robbins Mon, 21 Sep 2009 22:12:13 -0500 + +cableswig (0.1.0+cvs20090701-1) unstable; urgency=low + + * New upstream, pulled from ITK-3-14 CVS branch. + - patches/01_SWIG-CMakeLists-SWIG_LIB_INSTALL.diff: Remove. Applied + upstream. + + -- Steve M. Robbins Wed, 01 Jul 2009 06:05:48 -0500 + +cableswig (0.1.0+cvs20080508-1) unstable; urgency=low + + * New upstream, pulled from ITK-3-6 CVS branch. + debian/patches/02_gcc-4.3.diff: Removed, patch incorporated upstream. + + -- Steve M. Robbins Thu, 08 May 2008 08:30:49 -0500 + +cableswig (0.1.0+cvs20080107-2) unstable; urgency=low + + * patches/02_gcc-4.3.diff: New. Fixes to build with GCC 4.3. Closes: #454888. + + * CMakeCache.txt.debian: Remove setting for prefix; already specified on + command line in debian/rules. + + -- Steve M. Robbins Mon, 28 Jan 2008 02:18:29 -0600 + +cableswig (0.1.0+cvs20080107-1) unstable; urgency=low + + * New upstream release. From ITK-3-4 CVS branch. All source patches + (CMakeLists.txt, Executables/cableSwigMain.cxx, and + Executables/cableidx.cxx) removed as they have already been + incorporated upstream. + + * rules: + * control: Rewrite using cdbs. Update Standards-Version to 3.7.3. + + * patches/01_SWIG-CMakeLists-SWIG_LIB_INSTALL.diff: Set variable + SWIG_LIB_INSTALL before using it to generate swigconfig.h. + + -- Steve M. Robbins Mon, 07 Jan 2008 23:09:01 -0600 + +cableswig (0.1.0+cvs20060311-1) unstable; urgency=low + + * Initial upload. Closes: #348156. + + * Started from Gavin Baker's debian package. Sources from CVS ITK-2-4 + branch, dated 2006-03-11. Remove directories GCC and GCC_XML. + + * Generated cswig manpage using help2man. Wrote cableidx manpage using + text from ITK website. + + -- Steve M. Robbins Sun, 12 Mar 2006 23:13:26 -0500 --- cableswig-0.1.0+cvs20111009.orig/debian/rules +++ cableswig-0.1.0+cvs20111009/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +DPKG_EXPORT_BUILDFLAGS = 1 +-include /usr/share/dpkg/buildflags.mk + +# This double-negative means "please install development files" +CMAKE_INSTALL_FLAG = -DCABLE_NO_INSTALL_FACILITIES:BOOL=OFF + +CMAKE_FLAGS = $(CMAKE_INSTALL_FLAG) \ + -DCMAKE_CXX_COMPILER:STRING=g++ \ + -DCMAKE_BUILD_TYPE:STRING=RELEASE \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON \ + -DGCCXML_PATH:FILEPATH=/usr/bin/gccxml + +pkg_run = cableswig +pkg_dev = libcableswig-dev + + +%: + dh $@ --buildsystem=cmake --parallel + +override_dh_auto_configure: + dh_auto_configure -- $(CMAKE_FLAGS) + +override_dh_install: + # Runtime Package + dh_install -p$(pkg_run) usr/bin + dh_install -p$(pkg_run) usr/lib/CableSwig + # Development Package + dh_install -p$(pkg_dev) usr/include + dh_install -p$(pkg_dev) --autodest usr/lib/lib*.a + +override_dh_installman: + dh_installman -p$(pkg_run) debian/cswig.1 debian/cableidx.1 + +# Note: for this to work, help2man has to be modified NOT to discard stderr +debian/cswig.1: debian/cswig.1.in + help2man --include=debian/cswig.1.in \ + --output=debian/cswig.1 --no-info \ + --help-option=-help --version-option=-version cswig +