--- tolua++-1.0.93+repack.orig/debian/README.source +++ tolua++-1.0.93+repack/debian/README.source @@ -0,0 +1,27 @@ +Building an updated version of the package +------------------------------------------ + +To update this package you need an internet connection and the devscripts +package installed. + +Run "make -f ./debian/rules get-orig-source" at the top of the old source +package tree to check for any new release from upstream and eventually update +the upstream tarball. + +The get-orig-source target will: + +1. Check if there is a new release from upstream, and in any case + download the current upstream tarball. + +2. Unpack the tarball and repack/recompress it as an .orig.tar.gz, at the + same time removing any debian directory being included upstream. The + tarball will be reversioned with a +repack suffix to mark that it + was repacked. + +3. Remove all used temporary files/directories. + +After which you may proceed with the usual steps of updating the package +(for instance with uupdate), checking the diff between the two releases and +manually making any necessary change, rebuilding and testing. + + -- Cesare Tirabassi Tue, 21 Jul 2009 16:13:54 +0200 --- tolua++-1.0.93+repack.orig/debian/README.Debian +++ tolua++-1.0.93+repack/debian/README.Debian @@ -0,0 +1,18 @@ +With reference to the Debian Policy Chapter 10.2 + +The reason for compiling with the -fPIC flag, even though the binary package +will only contain a static library, is that this static library will be used +to build shared libraries (lua modules, or with a terminology common with +other applications, plug-ins). +Without instructing the compiler to use position independent code in the +static library, when the compiler will attempt linking this library to make +the shared libraries relocation will fail. + +Alternatively, there is an option given upstream to build a shared library +instead of the static one. +However this is badly supported upstream, as a matter of fact this "shared" +library doesn't even have a soname. +Therefore I preferred to include a static library and compile it with position +independent code. + + -- Cesare Tirabassi Sat, 25 Jul 2009 22:08:28 +0200 --- tolua++-1.0.93+repack.orig/debian/copyright +++ tolua++-1.0.93+repack/debian/copyright @@ -0,0 +1,31 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Name: tolua++ +Maintainer: Ariel Manzur +Source: http://www.codenix.com/~tolua/ + +Files: * +Copyright: 1998 - 2003, Waldemar Celes + 2009, Ariel Manzur +License: MIT + +Files: debian/* +Copyright: 2009, Cesare Tirabassi +License: MIT + +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. --- tolua++-1.0.93+repack.orig/debian/watch +++ tolua++-1.0.93+repack/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.codenix.com/~tolua/tolua\+\+-([\d\.]+)\.tar\.bz2 --- tolua++-1.0.93+repack.orig/debian/docs +++ tolua++-1.0.93+repack/debian/docs @@ -0,0 +1,4 @@ +doc/index.html +doc/tolua++.html +doc/toluapp.gif +README-5.1 --- tolua++-1.0.93+repack.orig/debian/control +++ tolua++-1.0.93+repack/debian/control @@ -0,0 +1,22 @@ +Source: tolua++ +Section: devel +Priority: extra +Maintainer: Cesare Tirabassi +Build-Depends: debhelper (>= 4), scons, liblua5.1-dev +Homepage: http://www.codenix.com/~tolua/ +Standards-Version: 3.8.2 + +Package: libtolua++5.1-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, liblua5.1-dev +Description: Extended tool to integrate C/C++ code with Lua + tolua++5.1 is an extension of toLua, a tool to integrate C/C++ code with + Lua. tolua++5.1 includes new features oriented to c++, such as class + templates and is compiled with the newest lua 5.1. + . + Based on a "cleaned" header file, tolua++ automatically generates + the binding code to access C/C++ features from Lua. Using Lua-5.1 API and + metamethod facilities, the current version automatically maps C/C++ + constants, external variables, functions, namespace, classes, and methods + to Lua. It also provides facilities to create Lua modules. --- tolua++-1.0.93+repack.orig/debian/compat +++ tolua++-1.0.93+repack/debian/compat @@ -0,0 +1 @@ +4 --- tolua++-1.0.93+repack.orig/debian/tolua++5.1.1 +++ tolua++-1.0.93+repack/debian/tolua++5.1.1 @@ -0,0 +1,60 @@ +.\" Hey, Emacs! This is an -*- nroff -*- source file. + +.TH tolua++5.1 1 "20 Jul 2009" "" "Tolua++" + +.SH NAME +tolua++5.1 \- lua language binding development helper program + +.SH SYNOPSIS +tolua++5.1 +[ \fBoptions\fP ] +.I input_file + +.SH DESCRIPTION +.I tolua++5.1 +is a program to help in building applications using the tolua++5.1 library for +the Lua scripting language. + +.SH OPTIONS +Command line options are: +.IP "-v" +Print version information. +.IP "-o \fIfile\fP" +Set output file; default is stdout. +.IP "-H \fIfile\fP" +Create include file. +.IP "-n \fIname\fP" +Set package name; default is input file root name. +.IP "-p" +Parse only. +.IP "-P" +Parse and print structure information (for debugging). +.IP "-S" +disable support for c++ strings +.IP "-1" +substract 1 to operator[] index (for compatibility with tolua5) +.IP "-L \fIfile\fP" +run lua file (with dofile()) before doing anything +.IP "-D" +disable automatic exporting of destructors for classes that have +constructors (for compatibility with tolua5) +.IP "-W" +disable warnings for unsupported features (for compatibility +with tolua5) +.IP "-C" +disable cleanup of included lua code (for easier debugging) +.IP "-E \fIvalue\fP[=value]" +add extra values to the luastate +.IP "-t" +export a list of types asociates with the C++ typeid name +.IP "-q" +don't print warnings to the console +.IP "-h" +Print usage information. +.P +Should the input file be omitted, stdin is assumed; in that case, the package +name must be explicitly set. + +.SH AUTHOR +This manual page was originally written by Filip Van Raemdonck and Jimmy Kaplowitz for the Debian GNU/Linux system. +It was expanded for tolua++5.1 by Cesare Tirabassi for the Ubuntu GNU/Linux system (but may be used by others). --- tolua++-1.0.93+repack.orig/debian/rules +++ tolua++-1.0.93+repack/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +UPSTREAM_VERSION := $(shell uscan --force-download --dehs --no-symlink | \ + sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') + +get-orig-source: + tar xjf ../tolua++-$(UPSTREAM_VERSION).tar.bz2 + GZIP=-9 tar czf ../tolua++_$(UPSTREAM_VERSION)+repack.orig.tar.gz \ + --exclude debian tolua++-$(UPSTREAM_VERSION) + rm -r ../tolua++-$(UPSTREAM_VERSION).tar.bz2 tolua++-$(UPSTREAM_VERSION) + +configure: config-stamp + +config-stamp: + dh_testdir + + cp $(CURDIR)/debian/custom.py $(CURDIR) + + scons prefix=$(CURDIR)/debian/libtolua++5.1-dev/usr configure + + touch $@ + +build: build-stamp + +build-stamp: config-stamp + dh_testdir + + scons all + + touch $@ + +clean: + dh_testdir + dh_testroot + + rm -f build-stamp config-stamp + + scons -c all configure + + rm -f ./.sconsign.dblite ./src/bin/toluabind.h + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + + scons install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman debian/tolua++5.1.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: configure build clean binary-indep binary-arch binary install get-orig-source --- tolua++-1.0.93+repack.orig/debian/custom.py +++ tolua++-1.0.93+repack/debian/custom.py @@ -0,0 +1,9 @@ +CCFLAGS = ['-I/usr/include/lua5.1', '-O2', '-ansi', '-Wall', '-g', '-D_REENTRANT', '-fPIC'] +LIBPATH = ['/usr/lib'] +LIBS = ['lua5.1'] +prefix = '/usr' +build_dev = 1 +#shared = 1 +tolua_bin = 'tolua++5.1' +tolua_lib = 'tolua++5.1' +TOLUAPP = 'tolua++5.1' --- tolua++-1.0.93+repack.orig/debian/changelog +++ tolua++-1.0.93+repack/debian/changelog @@ -0,0 +1,8 @@ +tolua++ (1.0.93+repack-0ubuntu1) karmic; urgency=low + + * Initial release (LP: #401634): + - remove debian subdirectory from upstream tarball, + recompress it as .tar.gz and reversion as +repack. + - patch upstream version number to 1.0.93 + + -- Cesare Tirabassi Tue, 21 Jul 2009 16:13:54 +0200 --- tolua++-1.0.93+repack.orig/include/tolua++.h +++ tolua++-1.0.93+repack/include/tolua++.h @@ -20,7 +20,7 @@ #define TOLUA_API extern #endif -#define TOLUA_VERSION "tolua++-1.0.92" +#define TOLUA_VERSION "tolua++-1.0.93" #ifdef __cplusplus extern "C" {