--- mendexk-2.6e.orig/kp.c +++ mendexk-2.6e/kp.c @@ -8,7 +8,7 @@ extern char *getenv(); /* Functions in kpathsea lib. */ -extern kpse_set_progname(); +extern kpse_set_program_name(); extern char *kpse_cnf_get(); extern char *kpse_path_expand(); extern char *kpse_expand_default(); @@ -23,7 +23,7 @@ KP_init(prog) char *prog; { - kpse_set_progname(prog); + kpse_set_program_name(prog); return 0; } --- mendexk-2.6e.orig/Makefile +++ mendexk-2.6e/Makefile @@ -0,0 +1,40 @@ +# Makefile for mendex +# Prepared for Debian GNU/Linux by mhatta@debian.org, 2005. + +# Program name +PROGRAM = mendex + +# Destination +DESTDIR = /usr/bin + +# Default Kanji code, can be EUC, JIS or SJIS +KANJI = EUC + +# for Debian's libkpathsea-dev +CFLAGS = -O -DKPATHSEA -DKPATHSEA3 -D$(KANJI) +PROGLINK = $(CC) $(OBJS) -o $(PROGRAM) -lkpathsea + +OBJS = main.o convert.o sort.o fread.o fwrite.o styfile.o pageread.o kp.o + +link_command = $(CC) -o $(PROGRAM) $(LDFLAGS) + +$(PROGRAM): $(OBJS) $(kpathsea) + $(PROGLINK) + +main.o:main.c var.h kana.h kp.h +convert.o:convert.c exvar.h exkana.h ktable.h kp.h +sort.o:sort.c exvar.h exkana.h +fread.o:fread.c exvar.h exkana.h +fwrite.o:fwrite.c exvar.h exkana.h +styfile.o:styfile.c exvar.h kp.h +pageread.o:pageread.c +kp.o: kp.c kp.h + +install: $(PROGRAM) + install -m 755 $? $(DESTDIR) + +clean: + rm -f *.o mendex + +distclean: + rm -f *.o *.core *.idx *.ind *.sty *.ist *.tex *.log *.aux *.dvi *.dic *.ilg $(PROGRAM) Makefile config.sed --- mendexk-2.6e.orig/mendex.1 +++ mendexk-2.6e/mendex.1 @@ -1,6 +1,6 @@ .if t .ds TX "T\h'-.15m'\v'.2v'E\v'-.2v'\h'-.12m'X .if t .ds LX L\v'-.22m'a\v'.22m'T\h'-.1667m'\v'.22m'E\h'-.125m'\v'-.22m'X -.TH MENDEX L +.TH MENDEX 1 .SH 名称 mendex \- 索引整形ツール .SH 使用法 --- mendexk-2.6e.orig/debian/changelog +++ mendexk-2.6e/debian/changelog @@ -0,0 +1,195 @@ +mendexk (2.6e-3.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix static link of libkpathsea. (Closes: #666148) + + -- Nobuhiro Iwamatsu Wed, 11 Jul 2012 05:37:59 +0900 + +mendexk (2.6e-3.1) unstable; urgency=low + + * Non-maintainer upload. + * kp.c: Replace deprecated fuction kpse_set_progname with + newer kpse_set_program_name, fixes FTBFS. (Closes: #666300) + + -- Artur Rona Sun, 06 May 2012 17:02:08 +0200 + +mendexk (2.6e-3) unstable; urgency=low + + * Bumped to Standards-Version: 3.8.0. + + -- Masayuki Hatta (mhatta) Sat, 19 Jul 2008 15:18:52 +0900 + +mendexk (2.6e-2) unstable; urgency=low + + * Bumped to Standards-Version: 3.7.3. + * Fixed various lintian warnings. + + -- Masayuki Hatta (mhatta) Fri, 07 Dec 2007 10:45:37 +0900 + +mendexk (2.6e-1) unstable; urgency=low + + * New upstream release + + -- Masayuki Hatta (mhatta) Wed, 05 Dec 2007 01:21:35 +0900 + +mendexk (2.6d-1) unstable; urgency=low + + * New upstream release - closes: #354570 + * Bumped to Standards-Version: 3.7.2. + + -- Masayuki Hatta (mhatta) Fri, 13 Oct 2006 22:51:59 +0900 + +mendexk (2.6a-1) unstable; urgency=low + + * New upstream release. + * The upstream now uses a phony "configure" script, but it is not really suitable for Debian packaging. Thus I forged a Makefile by myself. + + -- Masayuki Hatta (mhatta) Sat, 12 Mar 2005 04:20:44 +0900 + +mendexk (2.5+0-2) unstable; urgency=low + + * [control] changed Maintainer field. + * Bumped to Standards-Version: 3.6.1. + + -- Masayuki Hatta (mhatta) Sun, 15 Feb 2004 00:45:58 +0900 + +mendexk (2.5+0-1) unstable; urgency=high + + * Not really a new upstream version, but the license has changed so this + package can go into main now. + + -- Masayuki Hatta Fri, 12 Apr 2002 13:42:13 +0900 + +mendexk (2.5-3) unstable; urgency=high + + * Seems 2.5-2 has been rejected...this is second try. This package should + go into main now. + + -- Masayuki Hatta Fri, 5 Apr 2002 17:11:50 +0900 + +mendexk (2.5-2) unstable; urgency=low + + * The upstream has changed their license (but not incremented the version + number...). Anyway, now it's DFSG-free, so should go into main. + + -- Masayuki Hatta Tue, 22 Jan 2002 18:28:51 +0900 + +mendexk (2.5-1) unstable; urgency=low + + * New upstream release + + -- Masayuki Hatta Fri, 18 Jan 2002 22:10:17 +0900 + +mendexk (2.4f-5) unstable; urgency=low + + * Fixed typo in description - closes: #125127 + + -- Masayuki Hatta Sat, 22 Dec 2001 13:53:20 +0900 + +mendexk (2.4f-4) unstable; urgency=low + + * Bumped up to Standards-Version: 3.5.2. + + -- Masayuki Hatta Tue, 9 Oct 2001 08:06:29 +0900 + +mendexk (2.4f-3) unstable; urgency=low + + * Oops, Build-Depends should've been libkpathsea-dev. Fixed. + + -- Masayuki Hatta Wed, 20 Dec 2000 18:50:43 +0900 + +mendexk (2.4f-2) unstable; urgency=low + + * Removed Recommends: platex. + + -- Masayuki Hatta Wed, 20 Dec 2000 09:57:33 +0900 + +mendexk (2.4f-1) unstable; urgency=low + + * Initial Release for Debian Project. + * New upstream release + + -- Masayuki Hatta Sat, 28 Oct 2000 08:45:35 +0900 + +mendexk (2.4e-1) unstable; urgency=low + + * New upstream release + + -- Masayuki Hatta Mon, 29 May 2000 11:34:05 +0900 + +mendexk (2.4d-2) unstable; urgency=low + + * Signed with GNUPG. + + -- Masayuki Hatta Sun, 2 Apr 2000 17:51:42 +0900 + +mendexk (2.4d-1) unstable; urgency=low + + * New upstream release + * Updated to Standards-Version: 3.1.0. + * Added Build-Depends. + + -- Masayuki Hatta Fri, 11 Feb 2000 21:21:29 +0900 + +mendexk (2.4c-5) unstable; urgency=low + + * Uploaded again. + + -- Masayuki Hatta Sat, 8 Jan 2000 00:31:07 +0900 + +mendexk (2.4c-4) unstable; urgency=low + + * Compliant with Policy 3.0.1. + * Added copyright.ja. + + -- Masayuki Hatta Fri, 7 Jan 2000 05:45:58 +0900 + +mendexk (2.4c-3) unstable; urgency=low + + * New Maintainer. + * Re-packaged. + + -- Masayuki Hatta Tue, 7 Sep 1999 20:29:59 +0900 + +mendexk (2.4c-2) unstable; urgency=low + + * (control): Section: changed to non-free/tex. + + -- Takao KAWAMURA Thu, 3 Sep 1998 12:39:13 +0900 + +mendexk (2.4c-1) unstable; urgency=low + + * New upstream release. + * Updated to Standards-Version 2.4.1.3. + + -- Takao KAWAMURA Thu, 3 Sep 1998 10:16:15 +0900 + +mendexk (2.4b-1) frozen-jp unstable-jp; urgency=low + + * New maintainer. + * Updated to Standards-Version 2.4.1.0. + * Built with libc6. + + -- Takao KAWAMURA Thu, 11 Jun 1998 17:16:50 +0900 + +mendexk (2.3g-3) unstable; urgency=low + + * Fixed permission problem. + + -- Atsushi KAMOSHIDA Tue, 9 Sep 1997 01:27:08 +0900 + +mendexk (2.3g-2) unstable; urgency=low + + * Remaked for tetex. + + -- Atsushi KAMOSHIDA Thu, 17 Jul 1997 06:05:00 +0900 + +mendexk (2.3g-1) unstable; urgency=low + + * Initial Release. + + -- Atsushi KAMOSHIDA Mon, 28 Apr 1997 02:21:31 +0900 + +Local variables: +mode: debian-changelog +End: --- mendexk-2.6e.orig/debian/copyright.ja +++ mendexk-2.6e/debian/copyright.ja @@ -0,0 +1,29 @@ +($BCm(B) $B0J2<$OF|K\8l$NJ}$,J,$+$j$d$9$$?M$N$?$a$K!"1Q8l$NCx:n8"I=<($rLu$7(B +$B$?J8>O$G$"$k!#@5<0$JCx:n8"$O!"1Q8l$N86K\$K=>$&!#(B + +Copyright (C) 1995 ASCII Corporation. +All rights reserved. + +$BJQ99$NM-L5$K$+$+$o$i$:!"%=!<%9$*$h$S%P%$%J%j7A<0$N:FG[I[$*$h$SMxMQ$O!"(B +$B0J2<$N>r7o$rK~$?$7$F$$$l$P!"$3$l$r5v2D$9$k!#(B + +1. $B%=!<%9!&%3!<%I$N:FG[I[$O!">e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 +README +mendex.doc +debian/copyright.ja --- mendexk-2.6e.orig/debian/copyright +++ mendexk-2.6e/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Masayuki Hatta on +Tue, 7 Sep 1999 20:29:59 +0900. + +It was downloaded from + ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/ + +Upstream Author: ASCII Co., Ltd. + +Copyright: + +Copyright (C) 1995 ASCII Corporation. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the author may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- mendexk-2.6e.orig/debian/compat +++ mendexk-2.6e/debian/compat @@ -0,0 +1 @@ +4 --- mendexk-2.6e.orig/debian/mendex.1 +++ mendexk-2.6e/debian/mendex.1 @@ -0,0 +1,42 @@ +.TH MENDEXK 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +mendexk \- programs to do something +.SH SYNOPSIS +.B mendexk +.I "[options] files ..." +.br +.B bar +.I "[options] files ..." +.SH "DESCRIPTION" +This manual page documents briefly the +.BR mendexk , +and +.B bar +commands. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +(Actually it has its own manual page, but written in Japanese.) +Instead, it has documentation in the GNU Info format; see below. +.PP +.B mendexk +is a program that... +.SH OPTIONS +The programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options are included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH "SEE ALSO" +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Masayuki Hatta , +for the Debian GNU/Linux system (but may be used by others). --- mendexk-2.6e.orig/debian/dirs +++ mendexk-2.6e/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 +usr/share/man/ja/man1 --- mendexk-2.6e.orig/debian/control +++ mendexk-2.6e/debian/control @@ -0,0 +1,14 @@ +Source: mendexk +Section: tex +Priority: optional +Maintainer: Masayuki Hatta (mhatta) +Standards-Version: 3.8.0 +Build-Depends: libkpathsea-dev, debhelper (>> 4.0.0) + +Package: mendexk +Architecture: any +Depends: ${shlibs:Depends} +Description: a replacement for makeindex with many enhancements + This is an upper-compatible(but slow) substitute for the makeindex program + which forms part of standard TeX distribution. Mendex features better + Japanese(EUC) support and more. --- mendexk-2.6e.orig/debian/rules +++ mendexk-2.6e/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Christoph Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/mendexk. + #$(MAKE) install DESTDIR=`pwd`/debian/mendexk + install mendex `pwd`/debian/mendexk/usr/bin + + install debian/mendex.1 `pwd`/debian/mendexk/usr/share/man/man1 + install -m 644 mendex.1 `pwd`/debian/mendexk/usr/share/man/ja/man1 + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- mendexk-2.6e.orig/debian/watch +++ mendexk-2.6e/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=3 +ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk(.*)\.tar\.gz debian uupdate