--- tolua-5.2.0.orig/Makefile +++ tolua-5.2.0/Makefile @@ -1,17 +1,16 @@ # makefile for tolua hierarchy tolua: - cd src/lib; make all - cd src/bin; make all + $(MAKE) -C src/lib all + $(MAKE) -C src/bin all -tests: - cd src/tests; make all +test tests: + $(MAKE) -C src/tests all all clean klean: - cd src/lib; make $@ - cd src/bin; make $@ - cd src/tests; make $@ + $(MAKE) -C src/lib $@ + $(MAKE) -C src/bin $@ + $(MAKE) -C src/tests $@ debug: - cd src/bin; make debug - + $(MAKE) -C src/bin debug --- tolua-5.2.0.orig/config +++ tolua-5.2.0/config @@ -5,7 +5,7 @@ # you need an ANSI C compiler. gcc is a popular one. CC= gcc CCPP = g++ -WARN= -ansi -Wall -g +WARN= -ansi -Wall # on SGI's, cc is ANSI. #CC= cc @@ -21,16 +21,20 @@ AR= ar rcu # set lua path -LUA=/usr/local -LUAINC=$(LUA)/include +LUA=/usr +LUAINC=$(LUA)/include/lua5.2 LUALIB=$(LUA)/lib # == END OF USER SETTINGS. DO NOT CHANGE ANYTHING BELOW THIS LINE ============ INC= -I$(TOLUA)/include -I$(LUAINC) -LIB= -L$(TOLUA)/lib -L$(LUALIB) +LIB= $(shell dpkg-buildflags --get LDFLAGS) -L$(TOLUA)/lib -L$(LUALIB) #CFLAGS= -O2 $(WARN) $(INC) #CPPFLAGS= -O2 $(WARN) $(INC) -CFLAGS= -g $(WARN) $(INC) -CPPFLAGS= -g $(WARN) $(INC) +CFLAGS= $(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CFLAGS) \ + $(WARN) $(INC) +CPPFLAGS= $(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CXXFLAGS) \ + $(WARN) $(INC) --- tolua-5.2.0.orig/debian/README.source +++ tolua-5.2.0/debian/README.source @@ -0,0 +1,22 @@ +My current workflow for this package involves the git-buildpackage and cowbuilder packages, and the following ~/.gbp.conf: + +[DEFAULT] +# tell git-buildpackage howto clean the source tree +cleaner = fakeroot debian/rules clean +# this is how we invoke pbuilder, arguments passed to git-buildpackage will be +# passed to dpkg-buildpackge in the chroot +builder = /usr/bin/git-pbuilder +sign-tags = False +pristine-tar = True + +[git-import-orig] +postimport = git-dch -N%(version)s -S -a --debian-branch=$GBP_BRANCH +import-msg = New upstream version %(version)s + +[git-dch] +git-author = True +meta = True + +The rest just uses the git-buildpackage workflow. + +-- Jimmy Kaplowitz , Wed, 27 Jun 2012 00:59:47 -0400 --- tolua-5.2.0.orig/debian/changelog +++ tolua-5.2.0/debian/changelog @@ -0,0 +1,110 @@ +tolua (5.2.0-1build1) bionic; urgency=high + + * No change rebuild to pick up -fPIE compiler default + + -- Balint Reczey Tue, 03 Apr 2018 12:47:40 +0000 + +tolua (5.2.0-1) unstable; urgency=low + + * New upstream version 5.2.0 + * Bump Standards-Version to 3.9.3.0. No changes necessary. + * Added Vcs-* fields for newly published git repo + * Specified source package format 1.0. This package is too simple to + warrant conversion right now. + * Documented development workflow in README.source + * Bump Lua (build-)dependency to liblua5.2-dev + * Update include path to /usr/include/lua5.2 + * Update linker flag -llua5.1->llua5.2 + * Add hardening support via dpkg-buildflags, also subsuming -g + * Add 'test' make target alias to satisfy dh_auto_test + + -- Jimmy Kaplowitz Thu, 28 Jun 2012 00:41:41 -0400 + +tolua (5.1.3-1) unstable; urgency=low + + * Adopted usage of git-buildpackage + * Switched debian/watch to use HTTP since upstream's FTP no longer + works + * New upstream version 5.1.3 + * Updated Standards-Version to 3.9.1.0. No changes necessary. + + -- Jimmy Kaplowitz Mon, 23 Aug 2010 02:45:45 -0400 + +tolua (5.1.2-1) unstable; urgency=low + + * New upstream release + * Switched to debhelper 7 with minimal rules file format + * Made clean target a little more complete + + -- Jimmy Kaplowitz Thu, 16 Jul 2009 06:01:05 +0200 + +tolua (5.1b-3) unstable; urgency=low + + * Converted debian/watch to format 3 (fixes tolua DEHS page) + * Removed maintainer scripts, none of which did anything + * Install MANIFEST file as documentation along with README, and + reference it from debian/copyright as containing the date and time + of upstream publication + + -- Jimmy Kaplowitz Mon, 28 Apr 2008 01:42:42 -0400 + +tolua (5.1b-2) unstable; urgency=low + + * Fixed missing quotes in make invocation in debian/rules (Closes: + #476062) + * Turned on -D_REENTRANT as per Lenny RC policy + * Moved the setting of -g from config to debian/rules + + -- Jimmy Kaplowitz Mon, 14 Apr 2008 18:20:54 -0400 + +tolua (5.1b-1) unstable; urgency=low + + * New upstream release (Closes: #288324) + * Dropped shared library package libtolua0; upstream seems not to have + added a shared library despite acknowledging my shared library patch + well before releasing the current version + * Updated to current format of debian/watch file + * Added support for noopt DEB_BUILD_OPTIONS keyword + * Properly removed static library in make clean target even though + upstream Makefiles don't + * Updated to Standards-Version 3.7.3.0 + * Removed references to dh_undocumented + * Switched from DH_COMPAT variable to debian/compat file + * Unignored errors from $(MAKE) clean in debian/rules + * Added override for spurious lintian warning about copyright notice + * Fixed section to match Debian override (devel -> libdevel) + + -- Jimmy Kaplowitz Sun, 17 Feb 2008 00:47:16 -0500 + +tolua (4.0a-3) unstable; urgency=low + + * Changed -Wl,-shared to -shared in src/lib/Makefile to fix building + on hppa (Closes: #155688) + + -- Jimmy Kaplowitz Wed, 07 Aug 2002 01:38:44 -0400 + +tolua (4.0a-2) unstable; urgency=low + + * Add a runtime library package. (Closes: #148721) + * Do add an extra dependency as per #146983 ;-) + * Move the tolua binary to the -dev package. + * Rename the binary packages to libtolua*; set a Conflicts: in the -dev + package. + * Write a small manpage. + * Bump debhelper build-depends and set DH_COMPAT=4, to be able to use the new + dh_makeshlibs behaviour. Use dh_install instead of dh_movefiles. + * All of the above changes are due to Filip Van Raemdonck. Thanks very much. + * Expand Filip's man page by adapting tolua's built-in help output. + * Add Provides: and Replaces: to the -dev package as well, to ensure that + upgrades work as expected. + * Make the libtolua-dev package depend on the same version of the libtolua0 + package. + + -- Jimmy Kaplowitz Mon, 5 Aug 2002 03:26:18 -0400 + +tolua (4.0a-1) unstable; urgency=low + + * Initial Release. + + -- Jimmy Kaplowitz Tue, 30 Apr 2002 01:37:09 -0400 + --- tolua-5.2.0.orig/debian/compat +++ tolua-5.2.0/debian/compat @@ -0,0 +1 @@ +7 --- tolua-5.2.0.orig/debian/control +++ tolua-5.2.0/debian/control @@ -0,0 +1,21 @@ +Source: tolua +Priority: optional +Section: libdevel +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Jimmy Kaplowitz +Build-Depends: debhelper (>= 7), liblua5.2-dev +Standards-Version: 3.9.3.0 +Homepage: http://www.tecgraf.puc-rio.br/~celes/tolua/ +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/jimmy/tolua.git +Vcs-Git: git://anonscm.debian.org/users/jimmy/tolua.git + +Package: libtolua-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, liblua5.2-dev +Description: Tool to integrate C/C++ code with Lua - development files + tolua is a tool that greatly simplifies the integration of C/C++ code with + Lua. Based on a cleaned header file, tolua automatically generates the + binding code to access C/C++ features from Lua. Using Lua API and tag + method facilities, tolua maps C/C++ constants, external variables, + functions, classes, and methods to Lua. --- tolua-5.2.0.orig/debian/copyright +++ tolua-5.2.0/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Jimmy Kaplowitz on +Tue, 30 Apr 2002 01:37:09 -0400. + +It was downloaded from ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ + +Upstream Author: Waldemar Celes + +Copyright: + +Quoted from the README file accompanying tolua: + + 'tolua is freely available; you can redistribute it and/or modify it. + The software provided hereunder is on an "as is" basis, and + the author has no obligation to provide maintenance, support, + updates, enhancements, or modifications.' + +The date and time of publication of the upstream tolua version corresponding to +this Debian package are included in the accompanying MANIFEST file, along with +a listing of files in the upstream tarball. --- tolua-5.2.0.orig/debian/libtolua-dev.dirs +++ tolua-5.2.0/debian/libtolua-dev.dirs @@ -0,0 +1,5 @@ +usr/bin +usr/include +usr/lib +usr/share/man/man1 +usr/share/lintian/overrides --- tolua-5.2.0.orig/debian/libtolua-dev.docs +++ tolua-5.2.0/debian/libtolua-dev.docs @@ -0,0 +1,2 @@ +README +MANIFEST --- tolua-5.2.0.orig/debian/libtolua-dev.install +++ tolua-5.2.0/debian/libtolua-dev.install @@ -0,0 +1,3 @@ +bin/tolua usr/bin +include/* usr/include +lib/* usr/lib --- tolua-5.2.0.orig/debian/libtolua-dev.lintian-overrides +++ tolua-5.2.0/debian/libtolua-dev.lintian-overrides @@ -0,0 +1,4 @@ +# The upstream source contains no copyright notice, so I didn't add one. The +# authorship and license are clear from the copyright file, and the source +# package's MANIFEST file and timestamps make the date of publication clear. +libtolua-dev binary: copyright-without-copyright-notice --- tolua-5.2.0.orig/debian/libtolua-dev.manpages +++ tolua-5.2.0/debian/libtolua-dev.manpages @@ -0,0 +1 @@ +debian/tolua.1 --- tolua-5.2.0.orig/debian/rules +++ tolua-5.2.0/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --- tolua-5.2.0.orig/debian/source/format +++ tolua-5.2.0/debian/source/format @@ -0,0 +1 @@ +1.0 --- tolua-5.2.0.orig/debian/tolua.1 +++ tolua-5.2.0/debian/tolua.1 @@ -0,0 +1,44 @@ +.\" Hey, Emacs! This is an -*- nroff -*- source file. +.\" +.\" This manpage is in the public domain. +.\" + +.TH tolua 1 "04 Aug 2002" "" "Tolua" + +.SH NAME +tolua \- lua language binding development helper program + +.SH SYNOPSIS +tolua +[ \fBoptions\fP ] +.I file + +.SH DESCRIPTION +.I tolua +is a program to help in building applications using the tolua 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 "-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 written by Filip Van Raemdonck and +Jimmy Kaplowitz for the Debian GNU/Linux system (but may be +used by others). --- tolua-5.2.0.orig/debian/watch +++ tolua-5.2.0/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.tecgraf.puc-rio.br/~celes/tolua/tolua-(.*)\.tar\.gz debian uupdate --- tolua-5.2.0.orig/src/bin/Makefile +++ tolua-5.2.0/src/bin/Makefile @@ -17,20 +17,19 @@ all: $(T) $(T): $(OBJS) - $(CC) -o $@ $(OBJS) $(LIB) -ltolua -llua -lm + $(CC) -o $@ $(OBJS) $(LIB) -ltolua -llua5.2 toluabind.c: $(T_D) $(T_D) -o toluabind.c tolua.pkg $(T_D): $(OBJS_D) - $(CC) -o $@ $(OBJS_D) $(LIB) -ltolua -llua -lm + $(CC) -o $@ $(OBJS_D) $(LIB) -ltolua -llua5.2 tolua_lua.o: tolua.c $(CC) -c -DLUA_SOURCE $(INC) -o $@ $< clean: - rm -f tolua_lua.o $(OBJS) -$(OBJS_D) $(T) $(T_D) + rm -f $(OBJS) $(OBJS_D) $(T) $(T_D) toluabind.c klean: - rm -f tolua_lua.o $(OBJS) -$(OBJS_D) $(T_D) - + rm -f $(OBJS) $(OBJS_D) $(T_D) --- tolua-5.2.0.orig/src/lib/Makefile +++ tolua-5.2.0/src/lib/Makefile @@ -20,8 +20,7 @@ $(RANLIB) $@ clean: - rm -f $(OBJS) + rm -f $(OBJS) $T klean: rm -f $T - --- tolua-5.2.0.orig/src/tests/Makefile +++ tolua-5.2.0/src/tests/Makefile @@ -5,7 +5,7 @@ include $(TOLUA)/config -LIBS = -ltolua -llua +LIBS = -ltolua -llua5.2 EXE = tmodule tnamespace tclass tinheritance tconstant tvariable tfunction tarray tdirective tenum tvararg