debian/0000755000000000000000000000000012203075732007167 5ustar debian/control0000644000000000000000000000261612203075732010577 0ustar Source: colortest-python Section: utils Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), python | python-all | python-dev | python-all-dev Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/colortest-python.git Vcs-Git: git://anonscm.debian.org/collab-maint/colortest-python.git Homepage: http://freshmeat.net/projects/terminal_colors Package: colortest-python Suggests: colortest Architecture: all Depends: ${misc:Depends}, ${python:Depends} Description: utility to test color capabilities of terminal Most terminals are capable of displaying 16 colors; 8 colors and 2 different brightness values, some (like xterm) can display more, even 256 colors. . The program automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and displays the appropriate color charts. Program can display the colors as blocks or 2d cubes optionally with color values overlaid in int or hex values, it can show the full rgb text string and show the display with a vertical (default) or horizontal orientation. . In addition to the color charts it can also convert between 256 and 88 color values. This can be useful when converting various terminals like between urxvt and xterm-256. . The goal of this program was to provide the functionality of all the various Perl and sh scripts in one place with some bells and whistles. debian/watch0000644000000000000000000000014212147171166010222 0ustar # There is no package to download. # See README and command: make -f debian/rules get-orig-source debian/source/0000755000000000000000000000000012147171166010474 5ustar debian/source/format0000644000000000000000000000001412147171166011702 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000001312152025610010157 0ustar debian/*.1 debian/copyright0000644000000000000000000000303612147171166011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: colortest-python Source: http://freshmeat.net/projects/terminal_colors X-Source: http://zhar.net/projects/shell Upstream-Contact: John Eikenberry Comment: Note: This is Python implementation of 256colors2.pl . Program detects and displays colors for 8, 16, 88, and 256 color terminals. It has 3 display modes, and provides a handy 88<->256 color value conversion utility. . It is written in python (2.5+) and uses curses for terminal detection. It has no dependencies on any non-core python modules. Files: terminal-colors Copyright: 2009-2013 John Eikenberry License: GPL-3+ Files: debian/* Copyright: 2010-2013 Jari Aalto License: GPL-3+ License: GPL-3+ 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 3 of the License, or (at your option) any later version. . This package 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 . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-3". debian/rules0000755000000000000000000000207012152025610010237 0ustar #!/usr/bin/make -f PACKAGE = colortest-python PKGDIR = $(shell pwd)/debian/$(PACKAGE) BINDIR = $(PKGDIR)/usr/bin ORIG = terminal-colors URL = http://zhar.net/projects/shell/$(ORIG) DIR = ../tmp SAVE = $(DIR)/$(ORIG) get-orig-source: install -d -m 755 $(DIR) rm -f $(SAVE) wget -q -O $(SAVE) http://zhar.net/projects/shell/terminal-colors @cmp $(SAVE) $(ORIG); \ status=$$? ; \ if [ "$$status" = "1" ] ; then \ echo "New upstream release downloaded: $(SAVE)"; \ ver=$$(python $(SAVE) --version | awk '{print $$1}') ; \ rm -vrf $(DIR)/$(PACKAGE)-$$ver && \ mkdir -v $(DIR)/$(PACKAGE)-$$ver && \ cp -v $(SAVE) $(DIR)/$(PACKAGE)-$$ver && \ (cd $(DIR) && tar -zcvf $(PACKAGE)-$$ver.tar.gz $(PACKAGE)-$$ver ); \ echo "Done $(DIR)/$(PACKAGE)-$$ver.tar.gz"; \ else \ echo "Up to date"; \ fi man: $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman override_dh_auto_install: man install -m 755 -D $(ORIG) $(BINDIR)/$(PACKAGE) %: dh $@ --with python2 .PHONY: man get-orig-source build build-indep build-arch # End of file debian/colortest-python.1.pod0000644000000000000000000000655012177660417013407 0ustar # Copyright # # Copyright (C) 2010-2013 Jari Aalto # # License # # 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 3 of the License, 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 . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "Utility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less =pod =head1 NAME colortest-python - Display color test chart and convert between color values =head1 SYNOPSIS colortest-python [options] =head1 DESCRIPTION Displays 256, 88 and 16 color tables depending on what the terminal supports. Also provides for conversion between 256 and 88 color values. The program automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and displays the appropriate color charts. Program can display the colors as blocks or 2d cubes optionally with color values overlaid in int or hex values, it can show the full rgb text string and show the display with a vertical (default) or horizontal orientation. In addition to the color charts it can also convert between 256 and 88 color values. This can be useful when converting various terminals like between urxvt and xterm-256. The goal of this program was to provide the functionality of all the various Perl and sh scripts in one place with some bells and whistles. =head1 OPTIONS =over 4 =item B<-b, --block> Display as block format (vs cube) [default]. =item B<-c, --cube-slice> Display as cube slices (vs block). =item B<-e N, --88to256=N> Convert (expand) 88 color value N to an 256 color value. =item B<-f, --foreground> Use color for foreground text. =item B<-l, --rgb> Long format. RGB values as text. =item B<-n, --numbers> Include color escape numbers on chart. =item B<-p, --padding> Add extra padding (helps discern colors). =item B<-r N, --256to88=N> Convert (reduce) 256 color value N to an 88 color value. =item B<-v, --vertical> Display with vertical orientation [default]. =item B<-x, --hex> Include hex color numbers on chart. =item B<-z, --horizontal> Display with horizontal orientation. =item B<--version> Show program's version number and exit =item B<-h, --help> Display short help and exit. =back =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO colortest-8(1) colortest-16(1) colortest-16b(1) colortest-16b(1) =head1 AUTHORS Program was written by Thomas John Eikenberry This manual page was written by Jari Aalto . Released under license GNU GPL version 3 or (at your option) any later version. For more information about license, visit . =cut debian/manpages0000644000000000000000000000001312147171166010704 0ustar debian/*.1 debian/pod2man.mk0000644000000000000000000000345312147171166011072 0ustar # pod2man.mk -- Makefile portion to convert *.pod files to manual pages # # Copyright information # # Copyright (C) 2008-2010 Jari Aalto # # License # # 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 of the License, 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 . # # Description # # Convert *.pod files to manual pages. Add this to Makefile: # # PACKAGE = package # # man: # make -f pod2man.mk PACKAGE=$(PACKAGE) makeman # # build: man ifneq (,) This makefile requires GNU Make. endif # This variable *must* be set when called PACKAGE ?= package # Optional variables to set MANSECT ?= 1 PODCENTER ?= User Commands PODDATE ?= $$(date "+%Y-%m-%d") # Directories MANSRC ?= MANDEST ?= $(MANSRC) MANPOD ?= $(MANSRC)$(PACKAGE).$(MANSECT).pod MANPAGE ?= $(MANDEST)$(PACKAGE).$(MANSECT) POD2MAN ?= pod2man POD2MAN_FLAGS ?= --utf8 makeman: $(MANPAGE) $(MANPAGE): $(MANPOD) # make target - create manual page from a *.pod page podchecker $(MANPOD) LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \ --center="$(PODCENTER)" \ --date="$(PODDATE)" \ --name="$(PACKAGE)" \ --section="$(MANSECT)" \ $(MANPOD) \ | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \ > $(MANPAGE) && \ rm -f pod*.tmp # End of of Makefile part debian/compat0000644000000000000000000000000212147171166010372 0ustar 9 debian/changelog0000644000000000000000000000545312203075542011047 0ustar colortest-python (2.2-1) unstable; urgency=low * New upstream release -- Jari Aalto Thu, 15 Aug 2013 09:55:30 +0300 colortest-python (2.0-1) unstable; urgency=low * New upstream release (Closes: #718752). * debian/control - (Vcs-*): Update to anonscm.debian.org. * debian/colortest-python.1.pod - (OPTIONS): Update to current release. -- Jari Aalto Mon, 05 Aug 2013 11:30:05 +0300 colortest-python (1.5-3) unstable; urgency=low * debian/control - (Build-Depends): Move python from Build-Depends-Indep due to use of dh clean --with python2 (Closes: #710445). Thanks to Jakub Wilk . - (Build-Depends-Indep): Remove. - (XB-Python-Version): Remove. Not needed with debhelper python2. -- Jari Aalto Fri, 31 May 2013 08:00:50 +0300 colortest-python (1.5-2) unstable; urgency=low * debian/control - (Build-Depends-Indep): Remove python-support (Closes: #709285). No python used at build time. -- Jari Aalto Wed, 22 May 2013 19:39:50 +0300 colortest-python (1.5-1) unstable; urgency=low * New upstream release (Closes: #704954). * debian/control - (Standards-Version): Update to 3.9.4. * debian/copyright - (Comment, X-Source): New. - Update years. -- Jari Aalto Mon, 08 Apr 2013 21:07:49 +0300 colortest-python (1.4-2) unstable; urgency=low * debian/control - (XS-*, XB-*): Remove. Not needed; all Python versions are supported (Closes: #673066). -- Jari Aalto Fri, 15 Jun 2012 13:34:43 +0300 colortest-python (1.4-1) unstable; urgency=low * New upstream release (Closes: #661640). - Fixes a minor bug using the -cpz, horizontal cube with padding, display. * debian/compat - Update to 8. * debian/control - (Build-Depends): Update to debhelper 9. - (Build-Depends-Indep): Add python dependencies (Lintian). - (Standards-Version): Update to 3.9.3. * debian/copyright - Update headers to newest DEP5. Minor indentation an layout changes. - Correct upstream copyright from GPL-3 to GPL-3+. * debian/rules: - Use --with python2. * debian/*.mk - Update. -- Jari Aalto Tue, 28 Feb 2012 16:35:03 -0500 colortest-python (1.3-2) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): Update to debhelper 8. - (Standards-Version): Update to 3.9.1. * debian/rules - (get-orig-source): New target * debian/watch - Point to debian/rules -- Jari Aalto Sun, 07 Nov 2010 12:01:18 +0200 colortest-python (1.3-1) unstable; urgency=low * Initial release (Closes: #583680). -- Jari Aalto Sat, 29 May 2010 17:48:33 +0300