debian/0000755000000000000000000000000011767400604007173 5ustar debian/patches/0000755000000000000000000000000011767400147010624 5ustar debian/patches/README0000644000000000000000000000021111767365462011510 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/1001_tidy_GNU_Makefile.patch0000644000000000000000000000226011767400147015565 0ustar Description: Fix use C++ compiler and simplify using GNU extensions Author: Jonas Smedegaard Last-Update: 2006-07-16 --- a/Makefile.gcc +++ b/Makefile.gcc @@ -1,22 +1,22 @@ # Makefile for pcf2bdf (gcc) -*- makefile -*- -CC = gcc -CFLAGS = -Wall -O2 -CXX = $(CC) -CXXFLAGS = $(CFLAGS) -PREFIX = /usr/local -BINPATH = $(PREFIX)/bin -MANPATH = $(PREFIX)/man/man1 +CFLAGS ?= -Wall -O2 +CXXFLAGS ?= -Wall -O2 +PREFIX ?= /usr/local +BINPATH ?= $(PREFIX)/bin +MANPATH ?= $(PREFIX)/share/man/man1 +INSTALL ?= install +INSTALL_PROGRAM ?= $(INSTALL) +INSTALL_DATA ?= $(INSTALL) -m 644 +INSTALL_DIR ?= $(INSTALL) -d -all: pcf2bdf - -pcf2bdf: pcf2bdf.o +all: pcf2bdf clean: - -$(RM) pcf2bdf pcf2bdf.exe pcf2bdf.o *~ + rm -f pcf2bdf pcf2bdf.exe pcf2bdf.o *~ -install: all - -@if [ ! -d $(BINPATH) ]; then mkdir -p $(BINPATH); fi - install -m 755 pcf2bdf $(BINPATH) - -@if [ ! -d $(MANPATH) ]; then mkdir -p $(MANPATH); fi - install -m 644 pcf2bdf.man $(MANPATH)/pcf2bdf.1 +install: all + $(INSTALL_DIR) $(DESTDIR)$(BINPATH) + $(INSTALL_PROGRAM) pcf2bdf $(DESTDIR)$(BINPATH) + $(INSTALL_DIR) $(DESTDIR)$(MANPATH) + $(INSTALL_DATA) pcf2bdf.man $(DESTDIR)$(MANPATH)/pcf2bdf.1 debian/patches/1002_popen_type.patch0000644000000000000000000000065411767365462014510 0ustar Description: Fix support gzipped source. Author: Colin Watson Last-Update: 2008-02-04 Bug-Debian: http://bugs.debian.org/463927 --- a/pcf2bdf.cc +++ b/pcf2bdf.cc @@ -595,7 +595,7 @@ fclose(ifp); char buf[1024]; sprintf(buf, "gzip -dc %s", ifilename); // TODO - ifp = popen(buf, "rb"); + ifp = popen(buf, "r"); _setmode(fileno(ifp), O_BINARY); read_bytes = 0; if (!ifp) debian/patches/1003_compressed_metrics_overflow.patch0000644000000000000000000000171411767365462020142 0ustar Description: Fix avoid crash with large compressed metrics tables. Author: Colin Watson Last-Update: 2008-02-04 Bug-Debian: http://bugs.debian.org/463928 --- a/pcf2bdf.cc +++ b/pcf2bdf.cc @@ -262,26 +262,29 @@ } -int16 make_int16(int a, int b) +/* These all return int rather than int16 in order to handle values + * between 32768 and 65535 more gracefully. + */ +int make_int16(int a, int b) { - int16 value; - value = (int16)(a & 0xff) << 8; - value |= (int16)(b & 0xff); + int value; + value = (a & 0xff) << 8; + value |= (b & 0xff); return value; } -int16 read_int16_big(void) +int read_int16_big(void) { int a = read8(); int b = read8(); return make_int16(a, b); } -int16 read_int16_little(void) +int read_int16_little(void) { int a = read8(); int b = read8(); return make_int16(b, a); } -int16 read_int16(void) +int read_int16(void) { if (format.is_little_endien()) return read_int16_little(); debian/patches/series0000644000000000000000000000013211767365462012047 0ustar 1001_tidy_GNU_Makefile.patch 1002_popen_type.patch 1003_compressed_metrics_overflow.patch debian/control0000644000000000000000000000132111767400671010577 0ustar Source: pcf2bdf Section: x11 Priority: optional Maintainer: Jonas Smedegaard Build-Depends: cdbs (>= 0.4.70~), devscripts, debhelper, dh-buildinfo Standards-Version: 3.9.3 Homepage: https://github.com/ganaware/pcf2bdf Vcs-Git: git://git.debian.org/git/collab-maint/pcf2bdf Vcs-Browser: http://git.debian.org/?p=collab-maint/pcf2bdf.git Package: pcf2bdf Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: convert X11 font from PCF to BDF format Pcf2bdf is a font de-compiler. It converts an X11 font from Portable Compiled Format (PCF) to Bitmap Distribution Format (BDF). . FONTBOUNDINGBOX in a BDF file is not used by bdftopcf, so pcf2bdf generates irresponsible values. debian/source/0000755000000000000000000000000011767365462010507 5ustar debian/source/format0000644000000000000000000000001411767365462011715 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000477411767400604011061 0ustar pcf2bdf (1.04-4) unstable; urgency=low * Add/update Homepage, watch file and source URLs: Upstream moved to github.com. * Update patch 1001: + Fix declare INSTALL commands, recommended by Make documentation. + Fix adjust manpage path. + Drop RM abstraction: Discouraged by Make documentation. * Set PREFIX and DESTDIR, and install using upstream Makefile target. -- Jonas Smedegaard Sun, 17 Jun 2012 18:06:38 +0200 pcf2bdf (1.04-3) unstable; urgency=low * Modernize CDBS usage: + Drop local snippets (all included upstream now). + Add README.source (and drop custom CDBS README. Closes: bug##673316. Thanks to Samuel Thibault. * Use source format 3.0 (quilt) (and stop including quilt snippet or explicitly build-depending on quilt-related packages). * Git-ignore quilt .pc subdir. * Rewrite copyright file using format 1.0. * Bump standards-version to 3.9.3. * Add Vcs-* hints: Packaging now maintained in Git at Alioth. * Extend patch 1001 to simplify Makefile using GNU extension. * Add patch 1002 to fix support gzipped source. Closes: bug#463927. Thanks to Colin Watson. * Add patch 1003 to fix avoid crash with large compressed metrics tables. Closes: bug#463928. Thanks to Colin Watson. * Update package relations: + Tighten build-dependency on cdbs, and build-depend on devscripts: Needed for modernized CDBS routines. + Relax build-depend unversioned on debhelper: Needed versions satisfied even in oldstable. * Depend on ${misc:Depends}. -- Jonas Smedegaard Sun, 17 Jun 2012 14:51:09 +0200 pcf2bdf (1.04-2) unstable; urgency=low * Update local cdbs snippets: + Replace auto-update.mk with (overload of) buildcore.mk. + Add upstream-tarball.mk adding get-orig-source rule and more. + Update buildinfo.mk: Fix touchfile to run only once. + Look also for "(c)" in copyright-check.mk, and avoid non-printable characters. + Check copyrights in prebuild (in clean it may choke on not yet cleaned stuff), and make sure it runs only once. + List non-binary files affected if discovering new copyrights. + Add README.cdbs-tweaks documenting the added tweaks. + Advertise README.cdbs-tweaks in debian/rules. * Fix watch file to use suffix tgz (not tar.gz). -- Jonas Smedegaard Sun, 22 Apr 2007 20:26:02 +0200 pcf2bdf (1.04-1) unstable; urgency=low * Initial release. Closes: bug#368309. -- Jonas Smedegaard Sun, 16 Jul 2006 20:01:26 +0200 debian/README.source0000644000000000000000000000361311767365462011371 0ustar Building this package for Debian -------------------------------- This source package need no special handling for normal package builds. Developing this package for Debian ---------------------------------- The source of this package is developed using git and the helper tool git-buildpackage, with all official releases tagged and signed and binary diffs of tarballs stored using pristine-tar. This is documented below /usr/share/doc/git-buildpackage/manual-html/ . A custom build target shows current upstream and packaging versions: debian/rules print-version Current upstream tarball can be prepared using this other build target: debian/rules get-orig-source To switch to newer upstream source, first add a dummy changelog entry and comment out DEB_UPSTREAM_TARBALL_MD5 before getting the source: dch -v ${new_upstream_version}-1 "Dummy changelog entry" sed -i -e 's/^\(DEB_UPSTREAM_TARBALL_MD5\b\)/#\1/' debian/rules debian/rules get-orig-source Store new md5sum to help ensure identical source is received later. Setting DEB_MAINTAINER_MODE=1 enables additional build routines helpful during development of the package, but unfit for normal builds. This typically includes the CDBS feature of auto-updating debian/control with CDBS-related build-dependencies, which is forbidden by Debian Policy as build environment must not change during automated builds. Maintaining packaging build routines ------------------------------------ This source package wraps debhelper commands and other tedious parts of the build routines using the CDBS framework. Please refer to the actual makefile snippets included from debian/rules for details on their purpose and ways to override defaults. Additionally, makefile snippets included from below /usr/share/cdbs may also be documented in /usr/share/doc/cdbs/cdbs-doc.pdf.gz . -- Jonas Smedegaard Thu, 26 Feb 2009 21:28:29 +0100 debian/compat0000644000000000000000000000000211767365462010405 0ustar 7 debian/watch0000644000000000000000000000021611767373422010232 0ustar # run the "uscan" command to check for upstream updates and more. version=3 https://github.com/ganaware/pcf2bdf/tags .*/tarball/v?(\d[\d\.]+) debian/copyright_hints0000644000000000000000000000150411767365462012347 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: Makefile.gcc Makefile.vc debian/README.source debian/compat debian/control debian/control.in debian/patches/1001_tidy_GNU_Makefile.patch debian/patches/1002_popen_type.patch debian/patches/1003_compressed_metrics_overflow.patch debian/patches/README debian/patches/series debian/source/format debian/watch pcf.txt pcf2bdf.cc pcf2bdf.man Copyright: *No copyright* License: UNKNOWN FIXME Files: debian/rules Copyright: 2006-2007, 2012 Jonas Smedegaard License: GPL-2+ FIXME Files: README.txt Copyright: 2002, TAGA Nayuta HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER License: MIT/X11 (BSD like) FIXME debian/copyright0000644000000000000000000000424711767373613011146 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pcf2bdf Upstream-Contact: https://github.com/ganaware/pcf2bdf/issues/ TAGA Nayuta Source: https://github.com/ganaware/pcf2bdf Files: * Copyright: 2002, TAGA Nayuta License: Expat Files: debian/* Copyright: 2006-2007, 2012, Jonas Smedegaard License: GPL-2+ License: Expat 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. License: GPL-2+ This program 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. . This program 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. Comment: On Debian systems the 'GNU General Public License' version 2 is located in '/usr/share/common-licenses/GPL-2'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . debian/rules0000755000000000000000000000262211767377253010272 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright 2006, 2007, 2012 Jonas Smedegaard # Description: Main Debian packaging script for pcf2bdf # # This program 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. # # This program 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. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/rules/debhelper.mk DEB_UPSTREAM_URL = https://github.com/ganaware/pcf2bdf/tarball DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION) DEB_UPSTREAM_TARBALL_DELIMITER = DEB_UPSTREAM_TARBALL_EXTENSION = DEB_UPSTREAM_RECEIVED_EXTENSION = tar.gz DEB_UPSTREAM_WGET_OPTS += --no-check-certificate DEB_UPSTREAM_TARBALL_MD5 = DEB_MAKE_MAKEFILE = Makefile.gcc DEB_MAKE_EXTRA_ARGS += PREFIX=/usr DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(cdbs_make_curdestdir) debian/control.in0000644000000000000000000000123611767365313011214 0ustar Source: pcf2bdf Section: x11 Priority: optional Maintainer: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.3 Homepage: https://github.com/ganaware/pcf2bdf Vcs-Git: git://git.debian.org/git/collab-maint/pcf2bdf Vcs-Browser: http://git.debian.org/?p=collab-maint/pcf2bdf.git Package: pcf2bdf Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: convert X11 font from PCF to BDF format Pcf2bdf is a font de-compiler. It converts an X11 font from Portable Compiled Format (PCF) to Bitmap Distribution Format (BDF). . FONTBOUNDINGBOX in a BDF file is not used by bdftopcf, so pcf2bdf generates irresponsible values.