--- psignifit-2.5.6.orig/runexampledata +++ psignifit-2.5.6/runexampledata @@ -0,0 +1,15 @@ +#!/bin/sh +# This little script will try to run psignifit +# with the provided example dataset. + + +BIN=/usr/bin/psignifit +EXAMPLEDIR=/usr/share/doc/psignifit/examples + +if test -x $BIN ; then + $BIN $EXAMPLEDIR/dat $EXAMPLEDIR/prefs +else + echo 1>&2 "$PROG not found" + exit 1 +fi + --- psignifit-2.5.6.orig/psig-src/Makefile +++ psignifit-2.5.6/psig-src/Makefile @@ -6,16 +6,19 @@ # mixed in with the source, and are given the same names even irrespective of # CYGFLAG and DBFLAG. -CYGFLAG = +# configure paths for Debian GNU/Linux +BINPATH=$(DESTDIR)/usr/bin + +CYGFLAG = DBFLAG = -g -OUTDIR = ~/bin CC = gcc CFLAGS = $(CYGFLAG) $(DBFLAG) CXX = g++ CXXFLAGS = $(CYGFLAG) $(DBFLAG) LD = gcc $(CYGFLAG) $(DBFLAG) -LDFLAGS = +# add '-lm' flag for Debian GNU/Linux +LIBS = -lm DEPEND_FLAG = -MM # GNU compilers support -MM, others may only support -M csource = $(wildcard *.c) @@ -31,7 +34,7 @@ .PHONY: clean gnu dos mex gnu-db mex-db dos-db -gnu : $(OUTDIR)/psignifit +gnu : psignifit # gnu, gnu-db # win, win-db @@ -42,8 +45,8 @@ # easily be forced to update using a flag to make -$(OUTDIR)/psignifit : $(objects) - $(LD) $(LDFLAGS) -o $@ $(objects) +psignifit : $(objects) + $(LD) $(LDFLAGS) -o $@ $(objects) $(LIBS) %.d : %.c @ set -e; $(CC) $(DEPEND_FLAG) $(CFLAGS) $< \ @@ -58,10 +61,15 @@ include $(dependencies) %.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< -o $@ clean : @ -rm $(objects) $(dependencies) + @ -rm psignifit +# added install target for Debian GNU/Linux +install: psignifit + install -d $(BINPATH) + install ./psignifit $(BINPATH) --- psignifit-2.5.6.orig/debian/repackage.sh +++ psignifit-2.5.6/debian/repackage.sh @@ -0,0 +1,153 @@ +#!/bin/bash +#-------------------------- =+- Shell script -+= -------------------------- +# +# @file repackage.sh +# @date Tue Jun 20 12:13:04 2006 +# +# Yaroslav Halchenko CS@UNM, CS@NJIT +# web: http://www.onerussian.com & PSYCH@RUTGERS +# e-mail: debian@onerussian.com ICQ#: 60653192 +# +# DESCRIPTION (NOTES): +# +# Simple script to repackage upstream removing unwanted material and +# then feeding to specified command. Just to automate uscan invocation +# of svn-upgrade... lazy me I know +# +#-----------------\____________________________________/------------------ +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### +# SVN version control block - do not edit manually +RPT_SVN_ID='$Id: $' +RPT_SVN_REV='$Rev: 1 $' +RPT_SVN_DATE='$Date: $' +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### + +############ +# Defaults # +############ + +# repackage version +rpt_version=0.1.${RPT_SVN_REV//[A-Za-z :\$]/} + +delete_files='' +post_command= + +upstream_version= + +#suffixes +suffix_pristine=pristine +suffix_out=dfsg +suffix_version_out=.${suffix_out}.1 + +print_help() +{ +print_version +cat << EOT + +Repackage Debian packages by removing specified unwanted material +(usually Non-DFSG compliant) and calling specified command (if any). + +Usage: + repackage [OPTIONS] + + Where is a tarball fetched from online. + +Options: + -h, --help + Print this help and exit. + + -V, --version + Print version information and exit. + + -d , --delete-files + Space separated list of files to be removed. + + -c , --command + Command to execute on generated file. + + --upstream-version + Just to pass to command +EOT +} + +print_version() +{ +cat << EOT +repackage $rpt_version +Copyright (C) 2006 Yaroslav Halchenko +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +EOT +} + +################################ +# Commandline options handling # +################################ + +# Parse commandline options (taken from the getopt examples from the +# Debian util-linux package). +# Note that we use `"$@"' to let each command-line parameter expand to +# a separate word. The quotes around `$@' are essential! We need +# CLOPTS as the `eval set --' would nuke the return value of getopt. + +CLOPTS=`getopt -o h,V,d:,c: --long help,version,upstream-version:,delete-files:,command: -n '$0' -- "$@"` + +if [ $? != 0 ] ; then + echo "Terminating..." >&2 + exit 1 +fi + +# Note the quotes around `$CLOPTS': they are essential! +eval set -- "$CLOPTS" + +while true ; do + case "$1" in + --version) print_version; exit 0;; + -c|--command) shift; post_command=$1; shift;; + -d|--delete-files) shift; delete_files="$1 $delete_files"; shift;; + --upstream-version) shift; upstream_version="$1"; shift;; + --) shift ; break ;; + *) echo "Internal error! ($1)"; exit 1;; + esac +done + +if [ $# -lt 1 ]; then + printf "Too few arguments: $@.\n\n" + print_help + exit 1 +fi + +if [ $# -gt 1 ]; then + printf "Too many arguments: $@.\n\n" + print_help + exit 1 +fi + +if [ -z "$delete_files" ]; then + echo "No files to delete were provided, assuming that it is called by uscan: sourcing debian/repackage.params" + [ -f debian/repackage.params ] && source debian/repackage.params +fi + +fname="$1" +if [ ! -f $fname ]; then + echo "Can't read $fname" + exit 1 +fi + +full_fname=`readlink -f $1` +pristine_full_fname="${full_fname%t[argz.]*}${suffix_pristine}.tar.gz" +output_full_fname="${full_fname%t[argz.]*}${suffix_out}.tar.gz" + +# move original (pristine) tarball aside +mv "$full_fname" "$pristine_full_fname" + +zcat $pristine_full_fname \ + | tar --delete $delete_files | gzip -9 \ + >| $output_full_fname + +if [ ! -z "$post_command" ]; then + params="" + [ -z "$upstream_version" ] || params="--upstream-version $upstream_version$suffix_version_out" + $post_command $params $output_full_fname +fi --- psignifit-2.5.6.orig/debian/compat +++ psignifit-2.5.6/debian/compat @@ -0,0 +1 @@ +4 --- psignifit-2.5.6.orig/debian/dirs +++ psignifit-2.5.6/debian/dirs @@ -0,0 +1,2 @@ +/usr/share/doc/psignifit/tests + --- psignifit-2.5.6.orig/debian/README.Debian +++ psignifit-2.5.6/debian/README.Debian @@ -0,0 +1,11 @@ +psignifit for Debian +-------------------- + +The original source tarball contained binaries of this program for several +operating systems and platforms. Those binaries were stripped off from the tarball, +since they are not useful for this Debian package and and only waste diskspace. + +A regression test for the program is included in this package (thanks to +Rafael Laboissiere) and can be found in /usr/share/doc/psignifit/tests. + +-- Michael Hanke , Wed, 31 Aug 2005 12:56:28 +0200 --- psignifit-2.5.6.orig/debian/repackage.params +++ psignifit-2.5.6/debian/repackage.params @@ -0,0 +1 @@ +delete_files='psignifit-standalone/bin/*' --- psignifit-2.5.6.orig/debian/manpages +++ psignifit-2.5.6/debian/manpages @@ -0,0 +1 @@ +debian/psignifit.1 --- psignifit-2.5.6.orig/debian/psignifit.examples +++ psignifit-2.5.6/debian/psignifit.examples @@ -0,0 +1,3 @@ +prefs +dat + --- psignifit-2.5.6.orig/debian/rules +++ psignifit-2.5.6/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + cd psig-src && $(MAKE) + cd .. + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -cd psig-src && $(MAKE) clean + cd .. + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cd psig-src && $(MAKE) install DESTDIR=$(CURDIR)/debian/psignifit + cd .. + + +binary-indep: build install +# We have nothing to do by default. + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman + dh_install runexampledata usr/share/doc/psignifit/tests + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- psignifit-2.5.6.orig/debian/control +++ psignifit-2.5.6/debian/control @@ -0,0 +1,23 @@ +Source: psignifit +Section: math +Priority: optional +Maintainer: Experimental Psychology Maintainers +Uploaders: Michael Hanke +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.7.2 +Homepage: http://www.bootstrap-software.org +Vcs-Browser: http://svn.debian.org/wsvn/pkg-exppsy/psignifit/?rev=0&sc=0 +Vcs-Svn: svn://svn.debian.org/pkg-exppsy/psignifit + +Package: psignifit +Architecture: any +Depends: ${shlibs:Depends} +Description: Fitting and testing hypotheses about psychometric functions + Psignifit allows fitting of psychometric functions to datasets while + maintaining full control over a large number of parameters. Data + can either be read from text files or passed through a pipe. + . + Psignifit performs the calculation of confidence intervals as well as + goodness-of-fit tests. + . + This is the command line version. --- psignifit-2.5.6.orig/debian/copyright +++ psignifit-2.5.6/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Michael Hanke on +Sun, 7 Aug 2005 11:44:55 +0200. + +It was downloaded from +http://www.bootstrap-software.org/psignifit/distrib-2-5-6/psignifit-2-5-6-bin.tar.gz + +Copyright Holder: Jeremy Hill + +License: + + This package 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 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301 USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- psignifit-2.5.6.orig/debian/docs +++ psignifit-2.5.6/debian/docs @@ -0,0 +1,7 @@ +batch_strings.txt +Legal.txt +psych_gloss.txt +psych_options.txt +standalone-quickstart.html +History.html + --- psignifit-2.5.6.orig/debian/psignifit.1 +++ psignifit-2.5.6/debian/psignifit.1 @@ -0,0 +1,46 @@ +.TH "PSIGNIFIT" "1" "August 26, 2005" "Michael Hanke" "" +.SH "NAME" +\fBPsignifit\fR \- A program for fitting and testing hypotheses about psychometric functions. +.SH "DESCRIPTION" +\fBPsignifit\fR allows fitting of psychometric functions to datasets while +maintaining full control over a large number of parameters. Data +can either be read from text files or passed through a pipe. +.br +\fBPsignifit\fR performs the calculation of confidence intervals as well as +goodness\-of\-fit tests. +\fBPsignifit\fR accepts input in a number of different ways: +.IP "From named text files:" +\fBpsignifit\fR +.PP +.IP "Entirely from the console:" +\fBpsignifit\fR (...) +.br +(enter data and preferences from the console and then send an EOF character \- Ctrl\-D in most UNIX shells) +.PP +.IP "Partly from named text files, partly from the console:" +\fBpsignifit\fR \- +.PP +.IP "Through a pipe:" +\fBcat\fR | \fBpsignifit\fR +.PP +.IP "Or via a mixture of piped input on stdin and files named on the command line:" +\fBecho\fR "#random_seed 12345" | +\fBcat\fR | \fBpsignifit\fR \- +.PP +For more documentation see the files in the +.I /usr/share/doc/psignifit +directory or visit +.I http://bootstrap\-software.org/psignifit/ +.SH "EXAMPLES" +An example dataset and fitting preferences can be found in +.I /usr/share/doc/psignifit/examples + +.SH "TEST" +A regression test for \fBpsignifit\fR can be found in +.I /usr/share/doc/psignifit/tests +. +.SH "AUTHOR" +\fBPsignifit\fR was written by Jeremy Hill. +.PP +This manual page was written by Michael Hanke , +for the Debian project (but may be used by others). --- psignifit-2.5.6.orig/debian/changelog +++ psignifit-2.5.6/debian/changelog @@ -0,0 +1,32 @@ +psignifit (2.5.6-3ubuntu1) oneiric; urgency=low + + * Fix FTBFS with ld --as-needed. LP: #771008. + + -- Matthias Klose Tue, 13 Sep 2011 23:59:59 +0200 + +psignifit (2.5.6-3) unstable; urgency=low + + * Use new-style homepage field in debian/control (Closes: #438805). + * Mention VCS info in debian/control. + + -- Michael Hanke Mon, 26 Nov 2007 09:45:53 +0100 + +psignifit (2.5.6-2) unstable; urgency=low + + * Updated the FSF address in the copyright file. + * Added debian/watch file. + * Added debian/repackage.sh script to facilitate repackaging (Thanks to + Yaroslav Halchenko). + * Bumped Standard-Version to 3.7.2; no changes necessary. + + -- Michael Hanke Tue, 27 Jun 2006 20:01:57 +0200 + +psignifit (2.5.6-1) unstable; urgency=low + + * Initial Release. (closes: bug#325671) + * Adjusted the Makefile to fix $DESTDIR problem. This included adding + a proper 'install' target. + * Added a simple manpage. + + -- Michael Hanke Sun, 7 Aug 2005 14:32:56 +0200 + --- psignifit-2.5.6.orig/debian/watch +++ psignifit-2.5.6/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=downloadurlmangle=s/download.php// \ + http://www.bootstrap-software.org/psignifit/download.php/ distrib-.*/psignifit-(\d+)-(\d+)-(\d+)-bin\.tar\.gz debian debian/repackage.sh + +