debian/0000755000000000000000000000000012100416150007154 5ustar debian/docs0000644000000000000000000000000711350674333010043 0ustar README debian/watch0000644000000000000000000000010612100414632010205 0ustar version=3 http://www.koguro.net/prog/c-wrapper/ ./c-wrapper-(.*)\.tgz debian/gauche-c-wrapper.info0000644000000000000000000000006611350703441013175 0ustar doc/c-wrapper-refe.info.gz doc/c-wrapper-refj.info.gz debian/source.lintian-overrides0000644000000000000000000000007111350705425014046 0ustar gauche-c-wrapper source: ancient-libtool libffi/ltconfig debian/source/0000755000000000000000000000000011350674333010473 5ustar debian/source/format0000644000000000000000000000001411350674333011701 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012100416136010607 5ustar debian/patches/03_target_gnu.patch0000644000000000000000000000127212100416074014274 0ustar Description: Care kfreebsd-i386, kfreebsd-amd64, and hurd-i386 Author: NIIBE Yutaka Reviewed-By: NIIBE Yutaka Last-Update: 2013-01-25 --- a/configure.ac +++ b/configure.ac @@ -98,6 +98,12 @@ LDCONFIG_CMD="$LDCONFIG -p | $SED -n '/^ /s/^.*=> //p'" fi ;; + *-*-gnu*|*-*-kfreebsd*-gnu) + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" + if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then + LDCONFIG_CMD="$LDCONFIG -p | $SED -n '/^ /s/^.*=> //p'" + fi + ;; *freebsd*) if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then LDCONFIG_CMD="$LDCONFIG -r | $SED -n '/^ /s/^.*=> //p'" debian/patches/02_multilib.patch0000644000000000000000000000122612100416013013745 0ustar Description: workaround for multilib on i486-pc-linux-gnu or sparc-unknown-linux-gnu Author: NIIBE Yutaka Reviewed-By: NIIBE Yutaka Last-Update: 2013-01-25 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,12 @@ enable_objc="yes" fi ;; + i?86-*-linux*|sparc*-*-linux*) + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" + if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then + LDCONFIG_CMD="$LDCONFIG -p | $SED -n -e '/lib64/n' -e '/^ /s/^.*=> //p'" + fi + ;; *linux*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then debian/patches/series0000644000000000000000000000013511356756730012046 0ustar 00_info_no_install.patch 01_use_installed_libffi.patch 02_multilib.patch 03_target_gnu.patch debian/patches/01_use_installed_libffi.patch0000644000000000000000000000143312100415763016304 0ustar Description: Use installed libffi_pic.a Author: NIIBE Yutaka Reviewed-By: NIIBE Yutaka Last-Update: 2013-01-25 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -20,9 +20,9 @@ GAUCHE_PACKAGE = @GAUCHE_PACKAGE@ INSTALL = @GAUCHE_INSTALL@ -CPPFLAGS = -I./libffi/include -DGAUCHE_API_0_8_8 @CPPFLAGS@ +CPPFLAGS = -DGAUCHE_API_0_8_8 @CPPFLAGS@ LDFLAGS = @LDFLAGS@ -LIBS = libffi/.libs/libffi.a @LIBS@ +LIBS = /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libffi_pic.a @LIBS@ YACC = @YACC@ @@ -38,7 +38,7 @@ SCMFILES = HEADERS = -TARGET = libffi/.libs/libffi.a $(ARCHFILES) +TARGET = $(ARCHFILES) GENERATED = libffi CONFIG_GENERATED = libffi/Makefile Makefile cwcompile debian/patches/00_info_no_install.patch0000644000000000000000000000075312100415744015315 0ustar Description: Don't invoke install under subdir 'doc' This is so, because we do that by dh_installinfo. Author: NIIBE Yutaka Reviewed-By: NIIBE Yutaka Last-Update: 2013-01-25 --- a/Makefile.in +++ b/Makefile.in @@ -49,7 +49,7 @@ cd src; $(MAKE) install cd lib; $(MAKE) install cd objc; $(MAKE) install - cd doc; $(MAKE) install +# cd doc; $(MAKE) install $(INSTALL) -m 444 -T $(DESTDIR)$(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd uninstall : debian/control0000644000000000000000000000153512100414653010571 0ustar Source: gauche-c-wrapper Section: lisp Priority: optional Maintainer: Debian Gauche Maintainers Uploaders: Hatta Shuzo , YAEGASHI Takeshi , NIIBE Yutaka , Jens Thiele Build-Depends: quilt (>= 0.46-7~), debhelper (>= 9), autotools-dev, gauche-dev (>= 0.9.3.3), texinfo, libffi-dev, autoconf, dpkg-dev (>= 1.16.0) Standards-Version: 3.9.3 Homepage: http://www.koguro.net/prog/c-wrapper/ Package: gauche-c-wrapper Architecture: any Depends: gauche, ${shlibs:Depends}, ${misc:Depends} Description: Foreign function interface for Gauche to C libraries c-wrapper is a foreign function interface for C and Objective-C libraries. It can parse C header files, so you don't need to define functions, global variables and constants to use libraries. debian/rules0000755000000000000000000000114112100415476010243 0ustar #!/usr/bin/make -f # -*- makefile-gmake -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DH_OPTIONS export GZIP=-9 %: dh $@ --with quilt override_dh_auto_clean: dh_auto_clean rm -f configure config.sub config.guess override_dh_auto_configure: ln -sf /usr/share/misc/config.sub . ln -sf /usr/share/misc/config.guess . autoconf # dh_auto_configure -v ./configure --prefix=/usr --includedir=/usr/include \ --mandir=/usr/share/man --infodir=/usr/share/info \ --sysconfdir=/etc --localstatedir=/var \ --libdir=/usr/lib --libexecdir=/usr/lib debian/compat0000644000000000000000000000000212100414054010353 0ustar 9 debian/README.source0000644000000000000000000000066611355274340011361 0ustar gauche-c-wrapper for Debian --------------------------- This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. -- NIIBE Yutaka , Fri, 2 Apr 2010 13:56:00 +0900 debian/copyright0000644000000000000000000001075211033266367011135 0ustar This package was debianized by NIIBE Yutaka on Mon, 18 Feb 2008 14:46:17 +0900. It was downloaded from http://homepage.mac.com/naoki.koguro/prog/c-wrapper/ Upstream Author: KOGURO, Naoki Copyright: c-wrapper: Copyright (c) 2006 KOGURO, Naoki (naoki@koguro.net) ggc.lang.tools: Copyright (c) 2001 Shigenobu Kimura libffi: Copyright (c) 1996-2003 Red Hat, Inc. Lalr: Copyright (C) 1996-2003 Dominique Boucher Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. License: c-wrapper: 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. ggc.lang.tools: 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. libffi: 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 CYGNUS SOLUTIONS 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. Lalr: lalr.scm 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, or (at your option) any later version. lalr.scm 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. The Debian packaging is (C) 2008, NIIBE Yutaka and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/gauche-c-wrapper.examples0000644000000000000000000000001311033266367014061 0ustar examples/* debian/changelog0000644000000000000000000001065112100415572011040 0ustar gauche-c-wrapper (0.6.1-5) unstable; urgency=low * debian/rules (DH_OPTIONS): Added. (override_dh_auto_configure): Don't call dh_auto_configure, but call configure by ourselves (because of multiarch badness). * debian/compat: Upgrade to 9. * debian/control (Standards-Version): Now, it follows 3.9.3. (Maintainer): Now, it's team maintained. (Uploaders): New (same as gauche). (Homepage): Update to new homepage. * debian/watch: Update. -- NIIBE Yutaka Fri, 25 Jan 2013 14:29:32 +0900 gauche-c-wrapper (0.6.1-4.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: gcc: error: /usr/lib/libffi_pic.a: No such file or directory": apply patch from Ubuntu / Matthias Klose, changing 01_use_installed_libffi.patch: - Search libffi_pic.a in the multiarch location. Closes: #634394. LP: #831289. * Explicitly build-depend on dpkg-dev (>= 1.16.0) to get dpkg-architecture's DEB_HOST_MULTIARCH variable. -- gregor herrmann Sun, 09 Oct 2011 14:53:27 +0200 gauche-c-wrapper (0.6.1-4) unstable; urgency=low * Build with new gauche 0.9-15. * debian/control (Depends): Added gauche. -- NIIBE Yutaka Mon, 10 May 2010 10:49:54 +0900 gauche-c-wrapper (0.6.1-3) unstable; urgency=low * debian/patches/03_target_gnu.patch: Renamed from 03_gnu_host.patch. * debian/patches/03_target_gnu.patch: Move kfreebsd case before freebsd. * debian/patches/02_multilib.patch: Care for i[567]86-linux-gnu. -- NIIBE Yutaka Wed, 07 Apr 2010 10:00:32 +0900 gauche-c-wrapper (0.6.1-2) unstable; urgency=low * debian/patches/03_gnu_host.patch: New file. * debian/patches/02_multilib.patch: Care for sparc*linux-gnu. -- NIIBE Yutaka Fri, 02 Apr 2010 13:57:01 +0900 gauche-c-wrapper (0.6.1-1) unstable; urgency=low * debian/source.lintian-overrides: New file. * debian/patches/00_info_no_install.patch: New file. * debian/patches/01_use_installed_libffi.patch: New file from diff of 0.5.4-2. * debian/patches/02_multilib.patch: New file. * debian/patches/series: New file. * debian/gauche-c-wrapper.info: Append "gz" suffix. * debian/{rules,source,README.source}: Use 3.0 (quilt) format. * debian/compat: Updated. * debian/control (Section): It's now lisp. (Homepage): New field. (Depends): Added ${misc:Depends}. (Build-Depends): This is for new gauche-dev (>= 0.9). Added autoconf. * New upstream. -- NIIBE Yutaka Fri, 19 Mar 2010 22:15:02 +0900 gauche-c-wrapper (0.5.4-2) unstable; urgency=low * debian/rules: Supply LDCONFIG for configure (Closes: #490717). Thanks to Jens Thiele. NOTE: This workaround should be removed when upstream incorporates fix to configure.ac. -- NIIBE Yutaka Wed, 16 Jul 2008 10:51:00 +0900 gauche-c-wrapper (0.5.4-1) unstable; urgency=low * New upstream release (DESTDIR change and _pic.a change has been incorporated into upstream). * debian/control (Build-Depends): Incorporate NMU change of 0.5.2-5.1. (Standards-Version): Conform to 3.8.0 (was: 3.7.3). * debian/watch: Fixed. -- NIIBE Yutaka Fri, 04 Jul 2008 09:21:12 +0900 gauche-c-wrapper (0.5.2-5.1) unstable; urgency=low * Non-maintainer upload. * Build depend on libffi-dev instead of libffi4-dev. Closes: #479722. -- Frans Pop Fri, 09 May 2008 23:21:28 +0200 gauche-c-wrapper (0.5.2-5) unstable; urgency=low * debian/gauche-c-wrapper.examples: New file (Closes: #470677). Thanks to Jens Thiele. -- NIIBE Yutaka Mon, 07 Apr 2008 09:15:03 +0900 gauche-c-wrapper (0.5.2-4) unstable; urgency=low * src/Makefile.in: Use libffi_pic.a instead of libffi.a. * debian/rules (clean): Remove config.sub and config.guess. * debian/control (Build-Depends): Added autotools-dev. -- NIIBE Yutaka Fri, 29 Feb 2008 16:07:29 +0900 gauche-c-wrapper (0.5.2-3) unstable; urgency=low * src/Makefile.in: Use installed libffi.a. * debian/control (Build-Depends): Added libffi4-dev. -- NIIBE Yutaka Thu, 28 Feb 2008 21:24:36 +0900 gauche-c-wrapper (0.5.2-2) unstable; urgency=low * debian/rules: Removed LDFLAGS="-Wl,-z,defs". -- NIIBE Yutaka Tue, 19 Feb 2008 13:04:47 +0900 gauche-c-wrapper (0.5.2-1) unstable; urgency=low * Initial release (Closes: #462492). -- NIIBE Yutaka Mon, 18 Feb 2008 14:46:17 +0900