Commit 2b4462df authored by Torsten Landschoff's avatar Torsten Landschoff

Copied debian folder from the swig 2.0 package as baseline.

parent d5dad25c
This is SWIG 1.3 (Simplified Wrapper and Interface Generator)
packaged for Debian GNU/Linux.
This package is compiled with support for Tcl, Python, Perl5,
PHP4, Mzscheme, Java, CHICKEN, Ocaml, Pike, C#, Ruby, and Guile. The
package also contains the runtime libraries needed for larger packages.
Compiler options
----------------
Note that you'll have to take care of good compiler options for yourself
when building swig modules. We got a number of bug reports about build
failures of "hello world" class perl modules. This is usually because
the wrong compiler options are used. For Perl you should use the output
of "perl -V:ccflags" into your compiler options.
-- Torsten Landschoff <torsten@debian.org> Sat, 13 Nov 2004 01:55:27 +0100
This diff is collapsed.
Source: swig2.0
Section: interpreters
Priority: optional
Maintainer: Torsten Landschoff <torsten@debian.org>
Standards-Version: 3.9.3
Vcs-Svn: svn://svn.debian.org/svn/pkg-swig/branches/swig2.0
Vcs-Browser: http://svn.debian.org/wsvn/pkg-swig/branches/swig2.0
Homepage: http://www.swig.org/
Build-Depends: dpkg-dev (>= 1.16.1~),
bison,
debhelper (>= 7.0),
dh-autoreconf,
default-jdk [!hppa !mips !mipsel !alpha !arm !hurd-i386],
guile-2.0-dev,
libchicken-dev [!m68k !mips !mipsel],
libperl-dev,
libpcre3-dev,
php5-cgi,
php5-dev,
python-dev,
ruby,
ruby-dev,
tcl-dev,
tk-dev
Package: swig
Architecture: any
Depends: swig2.0 (>= ${source:Version}), ${misc:Depends}
Suggests: swig-doc, swig-examples
Conflicts: swig1.3
Replaces: swig1.3
Description: Generate scripting interfaces to C/C++ code
SWIG is a compiler that makes it easy to integrate C and C++ code
with other languages including Perl, PHP, Tcl, Ruby, Python, Java,
Guile, Mzscheme, Chicken, OCaml, Pike, and C#.
.
Swig takes a set of ANSI C/C++ declarations and generates an
interface for them to your favorite scripting language.
.
This is a dependency package providing the stable version of SWIG.
Package: swig2.0
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Suggests: swig2.0-examples, swig2.0-doc
Breaks: swig (<< 2.0.4-3.1)
Replaces: swig (<< 2.0.4-3.1)
Description: Generate scripting interfaces to C/C++ code
SWIG is a compiler that makes it easy to integrate C and C++ code
with other languages including Perl, PHP, Tcl, Ruby, Python, Java,
Guile, Mzscheme, Chicken, OCaml, Pike, and C#.
.
Swig takes a set of ANSI C/C++ declarations and generates an
interface for them to your favorite scripting language.
Package: swig-examples
Architecture: all
Depends: swig2.0-examples (>= 2.0.0-1), ${misc:Depends}
Conflicts: swig1.3-examples
Replaces: swig1.3-examples
Description: Examples for applications of SWIG
This is a dependency package providing the examples of the default
version of SWIG in Debian.
Package: swig2.0-examples
Architecture: all
Depends: swig2.0, ${misc:Depends}
Description: Examples for applications of SWIG
Contains examples for applications of SWIG, a wrapper interface
generator to integrate C code into scripting languages.
Package: swig-doc
Architecture: all
Depends: swig2.0-doc (>= 2.0.0-1), ${misc:Depends}
Section: doc
Conflicts: swig1.3-doc
Replaces: swig1.3-doc
Description: HTML documentation for SWIG
This is a dependency package providing the documentation of the default
version of SWIG in Debian.
Package: swig2.0-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}
Description: HTML documentation for SWIG
Contains the users' and developers' manuals for SWIG (Simplified
Wrapper Interface Generator) 2.0 in HTML format.
The swig package was assembled by Klee Dienes <klee@debian.org>
and later maintained by Gregor Hoffleit. The current maintainer is
Torsten Landschoff <torsten@debian.org>.
The sources were obtained from
ftp://ftp.swig.org/pub/
and as you might have guessed the homepage is at
http://www.swig.org/
-- Torsten Landschoff <torsten@debian.org> Wed, 11 Aug 2010 22:44:57 +0200
SWIG 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.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License is in `/usr/share/common-licenses/GPL', version 3 of this
license in `/usr/share/common-licenses/GPL-3'.
Portions of SWIG are also licensed under different licenses, which
you must observe as well. These licenses are reproduced at the end
of this file in the section "Additional licenses".
The SWIG library and examples, under the Lib and Examples top level
directories, are distributed under the following terms:
You may copy, modify, distribute, and make derivative works based on
this software, in source code or object code form, without
restriction. If you distribute the software to others, you may do
so according to the terms of your choice. This software is offered as
is, without warranty of any kind.
See the COPYRIGHT file for a list of contributors to SWIG and their
copyright notices.
Additional licenses:
--------------------
I.
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.
II.
This software includes contributions that are Copyright (c) 1998-2005
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.
III.
This software includes contributions that are Copyright (c) 2005-2006
Arizona Board of Regents (University of Arizona).
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.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF ARIZONA 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
ARIZONA 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.
usr/bin/swig2.0 usr/bin/swig
usr/bin/ccache-swig2.0 usr/bin/ccache-swig
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Support building from Subversion repository
export DH_ALWAYS_EXCLUDE=.svn
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
# XXX: patch to pike detection submitted upstream, need to adapt
# configure args
MAKEOPTS =
CONFIGURE_ARGS := \
--prefix=/usr --mandir=/usr/share/man \
--with-tclconfig=/usr/lib \
--with-python=/usr/bin/python \
--with-ruby=/usr/bin/ruby \
--with-pike=/usr/bin/pike7.6 \
--with-pikeincl=/usr/include/pike/7.6.24 \
--with-swiglibdir=/usr/share/swig2.0 \
--without-mzscheme \
--program-suffix=2.0
DEB_TARGET_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
with_java := yes
no_java_archs := hppa hurd-i386 mips mipsel netbsd-i386
ifneq ($(DEB_TARGET_ARCH),i386)
ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(no_java_archs)))
with_java := disabled for architecture $(DEB_TARGET_ARCH)
NO_PACKAGES +=
endif
endif
with_chicken := yes
no_chicken_archs := m68k mips mipsel
ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(no_chicken_archs)))
with_chicken := disabled for architecture $(DEB_TARGET_ARCH)
endif
NO_PACKAGES_ARGS = $(foreach p,$(NO_PACKAGES),-N$(p))
ifeq ($(with_java),yes)
CONFIGURE_ARGS += \
--with-java=/usr/bin/java \
--with-javac=/usr/bin/javac
else
CONFIGURE_ARGS += --without-java
MAKEOPTS += skip-java=true
endif
ifeq ($(with_chicken),yes)
CONFIGURE_ARGS += \
--with-chicken=/usr/bin/chicken \
--with-chickencfg=/usr/bin/chicken-config
else
CONFIGURE_ARGS += --without-chicken
MAKEOPTS += skip-chicken=true
endif
configure-stamp: $(QUILT_STAMPFN)
dh_testdir
dh_autoreconf ./autogen.sh
mkdir -p builddir
PHP4INC="`php-config --includes`" \
cd builddir && ../configure $(CONFIGURE_ARGS)
touch configure-stamp
build: build-indep build-arch
build-indep: build-stamp
build-arch: build-stamp
build-stamp: configure-stamp
dh_testdir
cd builddir && $(MAKE) $(MAKEOPTS)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f configure-stamp build-stamp install-stamp
rm -rf builddir
dh_autoreconf_clean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_prep
dh_installdirs
cd builddir && $(MAKE) $(MAKEOPTS) DESTDIR=$(CURDIR)/debian/swig2.0 install
touch install-stamp
# Build architecture-independent files here.
# We don't need a dependency on build or install since these are the plain
# documentation files as included in the distribution.
binary-indep:
dh_testdir
dh_testroot
dh_prep -i
dh_installdirs -i
dh_installdocs -i
dh_installexamples -i
cd debian/swig2.0-examples/usr/share/doc/swig2.0-examples && mv examples/* . && rmdir examples
cp debian/swig2.0-examples.override debian/swig2.0-examples/usr/share/lintian/overrides/swig2.0-examples
perl -pi -e 's,^SWIG.*=.*$$,SWIG = swig,' \
`find debian/swig2.0-examples/usr/share/doc/swig2.0-examples -name Makefile`
dh_installchangelogs -i
dh_link -i
dh_compress -i -X.pdf
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs -a $(NO_PACKAGES_ARGS) README
dh_installexamples -a $(NO_PACKAGES_ARGS)
dh_installmenu -a $(NO_PACKAGES_ARGS)
# dh_installemacsen -a $(NO_PACKAGES_ARGS)
# dh_installinit -a $(NO_PACKAGES_ARGS)
dh_installcron -a $(NO_PACKAGES_ARGS)
dh_installman -p swig2.0 debian/swig2.0.1
dh_install -a --sourcedir=$(CURDIR)
# dh_undocumented
dh_installchangelogs -a -Nswig2.0 $(NO_PACKAGES_ARGS) CHANGES
dh_installchangelogs -pswig2.0 $(NO_PACKAGES_ARGS)
dh_compress -a $(NO_PACKAGES_ARGS) -X.pdf
dh_link -a $(NO_PACKAGES_ARGS)
dh_strip -a $(NO_PACKAGES_ARGS)
dh_fixperms -a $(NO_PACKAGES_ARGS)
dh_makeshlibs -a $(NO_PACKAGES_ARGS)
dh_installdeb -a $(NO_PACKAGES_ARGS)
dh_shlibdeps -a $(NO_PACKAGES_ARGS)
dh_gencontrol -a $(NO_PACKAGES_ARGS)
dh_md5sums -a $(NO_PACKAGES_ARGS)
dh_builddeb -a $(NO_PACKAGES_ARGS)
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
Document: swig2.0-manual
Title: SWIG (Simplified Wrapper and Interface Generator) 2.0 User Manual
Abstract: SWIG (Simplified Wrapper and Interface Generator) is a software
development tool for building scripting language interfaces to C and C++
programs.
Author: SWIG Development Team
Section: Programming
Format: HTML
Index: /usr/share/doc/swig2.0-doc/Manual/index.html
Files: /usr/share/doc/swig2.0-doc/Manual/*.html
Format: PDF
Files: /usr/share/doc/swig2.0-doc/Manual/SWIGDocumentation.pdf
Doc/Devel
Doc/Manual
Doc/README
usr/share/lintian/overrides
Examples/Makefile.in
Examples/README
Examples/chicken
Examples/contract
Examples/csharp
Examples/guile
Examples/index.html
Examples/java
Examples/mzscheme
Examples/ocaml
Examples/perl5
Examples/php
Examples/pike
Examples/python
Examples/ruby
Examples/s-exp
Examples/tcl
Examples/test-suite
Examples/xml
Examples/lua
Examples/modula3
Examples/octave
Examples/r
usr/share/doc/swig2.0-examples usr/share/doc/swig2.0/examples
swig2.0-examples: extra-license-file usr/share/doc/swig2.0-examples/GIFPlot/LICENSE
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH SWIG 1 2004-05-22
.\" Please adjust this date whenever revising the manpage.
.SH NAME
swig \- Simplified Wrapper and Interface Generator
.SH SYNOPSIS
.B swig
.RI [ options ] " file"
.SH DESCRIPTION
The swig command is used to create wrapper code to connect C and
C++ code to scripting languages like Perl, Python, etc. from the
definition of the interface. For detailed information on writing
those interface definitions please refer to
/usr/share/doc/swig-doc/Manual/index.html from the swig-doc package.
This manpage concentrates on explaining the invocation of the swig
command.
.SH OPTIONS
.SS Target Language Options:
.TP
.B \-chicken
Generate CHICKEN wrappers
.TP
.B \-csharp
Generate C# wrappers
.TP
.B \-guile
Generate Guile wrappers
.TP
.B \-java
Generate Java wrappers
.TP
.B \-mzscheme
Generate Mzscheme wrappers
.TP
.B \-ocaml
Generate Ocaml wrappers
.TP
.B \-perl
Generate Perl wrappers.
.TP
.B \-php
Generate PHP wrappers
.TP
.B \-pike
Generate Pike wrappers
.TP
.B \-python
Generate Python wrappers
.TP
.B \-ruby
Generate Ruby wrappers
.TP
.B \-sexp
Generate Lisp S-Expressions wrappers
.TP
.B \-tcl
Generate Tcl wrappers
.TP
.B \-xml
Generate XML wrappers.
.SS General Options
.TP
.B \-c++
Enable C++ processing
.TP
.B \-co
Check a file out of the SWIG library
.TP
.B \-dirprot
Turn on wrapping of protected members for director classes
.TP
.BI \-D symbol
Define a symbol \fIsymbol\fR (for conditional compilation)
.TP
.B \-E
Preprocess only, does not generate wrapper code
.TP
.B \-fcompact
Compile in compact mode
.TP
.B \-fvirtual
Compile in virtual elimination mode
.TP
.B \-Fstandard
Display error/warning messages in commonly used format
.TP
.B \-Fmicrosoft
Display error/warning messages in Microsoft format
.TP
.B \-help
Show a summary of supported options and especially of supported
options for the selected language.
.TP
.BI \-I dir
Look for SWIG files in \fIdir\fR
.TP
.B \-ignoremissing
Ignore missing include files
.TP
.B \-importall
Follow all #include statements as imports
.TP
.B \-includeall
Follow all #include statements
.TP
.BI \-l ifile
Include SWIG library file \fIifile\fR
.TP
.B \-M
List all dependencies
.TP
.B \-MM
List dependencies, but omit files in SWIG library
.TP
.B \-makedefault
Create default constructors/destructors (the default)
.TP
.BI "\-module " name
Set module name to \fIname\fR
.TP
.B \-nocontract
Turn off contract checking
.TP
.B \-nodefault
Do not generate constructors/destructors
.TP
.B \-nodirprot
Do not wrap director protected members
.TP
.B \-noexcept
Do not wrap exception specifiers
.TP
.B \-noextern
Do not generate extern declarations
.TP
.B \-noruntime
Do not include SWIG runtime code
.TP
.BI "\-o " outfile
Set name of the output file to \fIoutfile\fR
.TP
.BI "\-outdir " dir
Set language specific files output directory
.TP
.B \-runtime
Make the runtime support code globally visible.
.TP
.B \-small
Compile in virtual elimination & compact mode
.TP
.B \-swiglib
Report location of SWIG library and exit
.TP
.B \-v
Run in verbose mode
.TP
.B \-version
Print SWIG version number
.TP
.B \-Wall
Enable all warning messages
.TP
.B \-Wallkw
Enable warning messages for all the languages keywords
.TP
.B \-Werror
Force to treat the warnings as errors
.TP
.BI "\-w " n
Suppress warning number \fIn\fR
.SH AUTHOR
SWIG was originally created by David Beazley. For up-to-date information
about authors and contributors please check http://www.swig.org/guilty.html.
This manual page was written by Torsten Landschoff <torsten@debian.org>
for the Debian project (but may be used by others).
usr/bin
usr/share/man/man1
usr/share/swig2.0
usr/share/doc
CHANGES.current
builddir/Lib/ocaml/swigp4.ml usr/share/swig2.0/ocaml/
version=3
http://sf.net/swig/swig-(.+)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment