--- libmoe-1.5.8.orig/mbconv.man +++ libmoe-1.5.8/mbconv.man @@ -0,0 +1,333 @@ +.\" Automatically generated by Pod::Man v1.3, Pod::Parser v1.13 +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sh \" Subsection heading +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R + +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. | will give a +.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to +.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' +.\" expand to `' in nroff, nothing in troff, for use with C<>. +.tr \(*W-|\(bv\*(Tr +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.\" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.hy 0 +.if n .na +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "MBCONV 1" +.TH MBCONV 1 "2001-03-12" "perl v5.6.1" " " +.UC +.SH "NAME" +\&\fBmbconv\fR \- Character encoding scheme converter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& mbconv [options] ... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an application of +a library +to handle multiple octets character encoding: +.PP +.Vb 1 +\& http://pub.ks-and-ks.ne.jp/prog/libmoe/ +.Ve +mainly written for debugging of the library. +.PP +It reads octet by octet from files given on command line +(or standard input if no file is specified), +converts character encoding scheme (\s-1CES\s0) as specified by command line options +(described below), +and output to standard output +(or a file specified by \fB\-t\fR option or \fB\-a\fR option). +.Sh "Options" +.IX Subsection "Options" +.IP "\fB\-?\fR, \fB\-h\fR, \fB\-\-help\fR" 4 +.IX Item "-?, -h, --help" +display summary of options and exits. +.IP "\fB\-a\fR \fIfile\fR, \fB\-\-append\-to\fR=\fIfile\fR" 4 +.IX Item "-a file, --append-to=file" +output is appended to \fIfile\fR. +.IP "\fB\-c\fR \fIconverters\fR, \fB\-\-convert\-to\fR=\fIconverters\fR" 4 +.IX Item "-c converters, --convert-to=converters" +specifies character encoding conversion. +\&\fIconverters\fR must be comma separated list of +words described in \*(L"Conversion specifiers\*(R". +.IP "\fB\-f\fR \fIflags\fR, \fB\-\-flag\fR=\fIflags\fR" 4 +.IX Item "-f flags, --flag=flags" +specifies flags to change behavior of conversion. +\&\fIflags\fR must be comma separated list of +words describe in \*(L"Flag specifiers\*(R". +.IP "\fB\-i\fR, \fB\-\-input\fR" 4 +.IX Item "-i, --input" +succeeding options apply to input stream. +.IP "\fB\-m\fR \fIstring\fR, \fB\-\-mime\-charset\fR=\fIstring\fR" 4 +.IX Item "-m string, --mime-charset=string" +mime encoding conforming to \s-1RFC2047\s0 is performed. + is used as charset name. +.IP "\fB\-n\fR, \fB\-\-line\-number\fR" 4 +.IX Item "-n, --line-number" +line number (>= 1) is inserted to beginning of each line. +.IP "\fB\-o\fR, \fB\-\-output\fR" 4 +.IX Item "-o, --output" +succeeding options apply to output stream. +.IP "\fB\-t\fR \fIfile\fR, \fB\-\-to\fR=\fIfile\fR" 4 +.IX Item "-t file, --to=file" +output to file (truncated). +.IP "\fB\-w\fR, \fB\-\-width\fR" 4 +.IX Item "-w, --width" +output width of each line. +.IP "\fB\-cs\fR , \fB\-\-charset\fR=\fIstring\fR" 4 +.IX Item "-cs , --charset=string" +specifies charset name. +Some language specifications are also accepted as well as \s-1MIME\s0 charset names, +which are used to restrict candidates of encoding scheme of input stream. +Acceptable languages are listed in \*(L"Acceptable languages\*(R". +.IP "\fB\-\-format\fR=\fIstring\fR" 4 +.IX Item "--format=string" +specifies output format +.IP "\fB\-\-which\fR" 4 +.IX Item "--which" +output charset name of each input stream to stderr, +in the form +.Sp +\&\fIfile name\fR\f(CW\*(C`:\*(C'\fR \fIcharset name\fR +.Sp +if two or more files are specifed on the command line, or +.Sp +\&\fIcharset name\fR +.Sp +otherwise. +.IP "\fB\-\-regex\fR=\fIregular expression\fR" 4 +.IX Item "--regex=regular expression" +specifies regeular expression to filter output. +Character encoding of \fIregular expression\fR can be specified +by putting string of the form +.Sp +\&\f(CW\*(C`*\*(C'\fR\fIcharset name\fR\f(CW\*(C`*\*(C'\fR +.Sp +at the beginning of the regular expression, +otherwise \fB\s-1UTF\-8\s0\fR. +Character encoding of the expression +is converted to that of output stream +before matching. +.Sh "Conversion specifiers" +.IX Subsection "Conversion specifiers" +Conversion is applied +just before each character is output to stream. +Conversion setup is automatically performed +based on \s-1CES\s0. +So in most cases, +yo need not to specify converters explicitly. +.IP "\fBascii\fR" 4 +.IX Item "ascii" +domestic \s-1ASCII\s0 converted to \s-1US\-ASCII\s0, +.IP "\fBces\fR" 4 +.IX Item "ces" +converted appropriately according to +the \s-1CES\s0 bound to input/output stream, +.IP "\fBto-ucs\fR" 4 +.IX Item "to-ucs" +converted to Unicode, +.IP "\fBf2h\fR, \fBfull-to-half\fR" 4 +.IX Item "f2h, full-to-half" +Fullwidth compatibility characters are converted to +corresponding halfwidth ones, +.IP "\fBh2f\fR, \fBhalf-to-full\fR" 4 +.IX Item "h2f, half-to-full" +Halfwidth compatibility characters are converted to +corresponding fullwidth ones, +.IP "\fBjisx0213\fR" 4 +.IX Item "jisx0213" +Codepoints in \s-1JIS\s0 C 6226 or in \s-1JIS\s0 X 0208 which are bound to no +character are converted into \s-1JIS\s0 X 0213 plane 1, +.IP "\fBjisx0213\-aggressive\fR" 4 +.IX Item "jisx0213-aggressive" +All codepoints in \s-1JIS\s0 C 6226 or in \s-1JIS\s0 X 0208 are converted into \s-1JIS\s0 X +0213 plane 1, +.IP "\fBms\-latin1\fR" 4 +.IX Item "ms-latin1" +Unicode characters of code point between 0x80 and +0x9F (both inclusive) are converted to other +Unicode characters as if they are characters of those +code point in Microsoft Windows Codepage 1252. +.IP "\fBucs\-to\-jis0208\-extra\fR, \fBjis0208\-to\-ucs\-extra\fR" 4 +.IX Item "ucs-to-jis0208-extra, jis0208-to-ucs-extra" +Converters between some \s-1JIS\s0 X 0208 and Unicode characters having similar glyphs +(by the courtesy of Ambrose Li ). +.Sh "Flag specifiers" +.IX Subsection "Flag specifiers" +.IP "\fBuse\-0x28\-for\-94x94inG0\fR, \fB28\fR" 4 +.IX Item "use-0x28-for-94x94inG0, 28" +use \*(L"1/11 2/4 2/8 F\*(R" +instead of \*(L"1/11 2/4 F\*(R" +to designate charsets with final octet +4/0, 4/1, or 4/2 to G0, +.IP "\fBac\fR, \fBascii-at-control\fR" 4 +.IX Item "ac, ascii-at-control" +escape sequence \*(L"1/11 2/8 4/2\*(R" is +output before every control character, +.IP "\fBnossl\fR, \fBignore\-7bit\-single\-shift\fR" 4 +.IX Item "nossl, ignore-7bit-single-shift" +escape sequence for 7 bit single shift +is ignored, +.IP "\fBdnc\fR, \fBdiscard-notprefered-char\fR" 4 +.IX Item "dnc, discard-notprefered-char" +discard characters which \s-1CES\s0 bound +to output stream can not decode. +.Sh "Acceptable languages" +.IX Subsection "Acceptable languages" +The following words may be given instead of \s-1MIME\s0 charset name for input stream. +In that case, +encoding scheme +is automatically detected +(hopefully) +among +succeeding ones. +.IP "\fBc\fR, \fBcn\fR, \fBchina\fR, \fBchinese\fR" 4 +.IX Item "c, cn, china, chinese" +x\-gb\-18030\-2000, cn\-big5, utf\-8, or x\-euc\-tw. +.IP "\fBj\fR, \fBja\fR, \fBjp\fR, \fBjapan\fR, \fBjapanese\fR" 4 +.IX Item "j, ja, jp, japan, japanese" +euc\-jp, shift_jis, or utf\-8. +.IP "\fBk\fR, \fBko\fR, \fBkr\fR, \fBkorea\fR, \fBkorean\fR" 4 +.IX Item "k, ko, kr, korea, korean" +euc\-kr, x\-johab, utf\-8, or x\-unified\-hangul. +.IP "\fBcjk\fR" 4 +.IX Item "cjk" +iso\-8859\-1, +x\-gb\-18030\-2000, +cn\-big5, +x\-euc\-tw, +euc\-jp, +shift_jis, +euc\-kr, +x\-johab, +x\-unified\-hangul, +or utf\-8. +.SH "AUTHOR" +.IX Header "AUTHOR" +Kiyokazu \s-1SUTO\s0 +.SH "DISCLAIMER etc." +.IX Header "DISCLAIMER etc." +This program is distributed with +absolutely no warranty. +.PP +Anyone can use, modify, and re-distibute this program +without any restriction. --- libmoe-1.5.8.orig/mbversion.h +++ libmoe-1.5.8/mbversion.h @@ -0,0 +1,2 @@ +#define MB_VERSION_STRING "1.5.0" +#define MB_VERSION (1*10000+5*100+0) --- libmoe-1.5.8.orig/debian/changelog +++ libmoe-1.5.8/debian/changelog @@ -0,0 +1,112 @@ +libmoe (1.5.8-1) unstable; urgency=low + + * New maintainer (Closes: #541045) + * New upstream release + * update policy 3.8.3. + * debian/control: change section to libdevel from devel + * debian/control: depends debhelper(>= 7.0.0) + * debian/rules: remove DH_COMPAT + + -- TANIGUCHI Takaki Sat, 21 Nov 2009 14:46:36 +0900 + +libmoe (1.5.7-1) unstable; urgency=low + + * New upstream release + * fix FTBFS with gcc-3.4: label at end of compound statement + closes: Bug#260430. + + -- Fumitoshi UKAI Sat, 30 Oct 2004 01:46:47 +0900 + +libmoe (1.5.6-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Mon, 22 Mar 2004 02:15:10 +0900 + +libmoe (1.5.3-2) unstable; urgency=low + + * mbconv move from libmoe-dev to libmoe1.5, closes: Bug#171576 + + -- Fumitoshi UKAI Wed, 4 Dec 2002 01:14:08 +0900 + +libmoe (1.5.3-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Sun, 21 Apr 2002 01:42:56 +0900 + +libmoe (1.5.2-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Wed, 20 Feb 2002 00:01:55 +0900 + +libmoe (1.5.1-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Tue, 19 Feb 2002 12:12:40 +0900 + +libmoe (1.5.0-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Wed, 6 Feb 2002 01:25:29 +0900 + +libmoe (1.4.1-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Fri, 21 Dec 2001 00:49:41 +0900 + +libmoe (1.4.0-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Tue, 4 Dec 2001 01:36:23 +0900 + +libmoe (1.3.9-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Sun, 3 Jun 2001 03:01:40 +0900 + +libmoe (1.3.6-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Wed, 23 May 2001 00:25:19 +0900 + +libmoe (1.3.3-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Sat, 21 Apr 2001 03:32:05 +0900 + +libmoe (1.3.2-2) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Fri, 23 Mar 2001 15:13:11 +0900 + +libmoe (1.2.2-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Wed, 28 Feb 2001 00:20:32 +0900 + +libmoe (1.2.1-2) unstable; urgency=low + + * fix build fails on alpha, closes: Bug#87712 + + -- Fumitoshi UKAI Mon, 26 Feb 2001 22:51:55 +0900 + +libmoe (1.2.1-1) unstable; urgency=low + + * Initial Release, closes: Bug#86530 + + -- Fumitoshi UKAI Mon, 19 Feb 2001 22:20:11 +0900 + +Local variables: +mode: debian-changelog +End: --- libmoe-1.5.8.orig/debian/compat +++ libmoe-1.5.8/debian/compat @@ -0,0 +1 @@ +7 --- libmoe-1.5.8.orig/debian/control +++ libmoe-1.5.8/debian/control @@ -0,0 +1,28 @@ +Source: libmoe +Section: libdevel +Priority: optional +Maintainer: TANIGUCHI Takaki +Standards-Version: 3.8.3 +Build-Depends: debhelper(>= 7.0.0), perl + +Package: libmoe-dev +Architecture: any +Depends: libmoe1.5 (= ${binary:Version}), libc6-dev +Conflicts: libiso2mb-dev +Replaces: libiso2mb-dev +Description: library to handle multiple octets character encoding scheme (devel files) + libmoe is a collection of routines to handle sequence of characters + consisting of multiple octets. The main functionalities are to convert + the encoding of a character from ISO 2022 to "fake" UTF-8, and vice versa. + . + This development package contains include files for the interface. + It includes also a static lib for particular cases. + +Package: libmoe1.5 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: library to handle multiple octets character encoding scheme + libmoe is a collection of routines to handle sequence of characters + consisting of multiple octets. The main functionalities are to convert + the encoding of a character from ISO 2022 to "fake" UTF-8, and vice versa. --- libmoe-1.5.8.orig/debian/control.in +++ libmoe-1.5.8/debian/control.in @@ -0,0 +1,28 @@ +Source: libmoe +Section: devel +Priority: optional +Maintainer: Fumitoshi UKAI +Standards-Version: 3.2.1 +Build-Depends: debhelper, perl + +Package: libmoe-dev +Architecture: any +Depends: libmoe$(VER).$(RELEASE) (= ${Source-Version}), libc6-dev +Conflicts: libiso2mb-dev +Replaces: libiso2mb-dev +Description: library to handle multiple octets character encoding scheme (devel files) + libmoe is a collection of routines to handle sequence of characters + consisting of multiple octets. The main functionalities are to convert + the encoding of a character from ISO 2022 to "fake" UTF-8, and vice versa. + . + This development package contains include files for the interface. + It includes also a static lib for particular cases. + +Package: libmoe$(VER).$(RELEASE) +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: library to handle multiple octets character encoding scheme + libmoe is a collection of routines to handle sequence of characters + consisting of multiple octets. The main functionalities are to convert + the encoding of a character from ISO 2022 to "fake" UTF-8, and vice versa. --- libmoe-1.5.8.orig/debian/copyright +++ libmoe-1.5.8/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by Fumitoshi UKAI on +Mon, 19 Feb 2001 22:23:24 +0900. + +It was downloaded from http://pub.ks-and-ks.ne.jp/prog/libmoe/ + +Upstream Author: Kiyokazu SUTO + +Copyright: Public Domain + +cite from his page: + +Almost all contents in this site are written by Kiyokazu SUTO (i.e. me) unless +especially noted. I want to put all of them into the PUBLIC DOMAIN, even though +some lawyers mention that it is impossible in my country. + --- libmoe-1.5.8.orig/debian/dirs +++ libmoe-1.5.8/debian/dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/bin --- libmoe-1.5.8.orig/debian/docs +++ libmoe-1.5.8/debian/docs @@ -0,0 +1 @@ +libmoe.shtml --- libmoe-1.5.8.orig/debian/libmoe.postinst +++ libmoe-1.5.8/debian/libmoe.postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for libmoe +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + ldconfig + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- libmoe-1.5.8.orig/debian/libmoe1.5.postinst +++ libmoe-1.5.8/debian/libmoe1.5.postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for libmoe +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + ldconfig + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- libmoe-1.5.8.orig/debian/rules +++ libmoe-1.5.8/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# shared library versions +include ./version.mak +# VER= +# RELEASE= +# LEVEL= + +debian/control: version.mak debian/control.in + sed -e 's/$$(VER)/$(VER)/' -e 's/$$(RELEASE)/$(RELEASE)/' \ + debian/control.in > debian/control + for i in debian/libmoe.*; \ + do \ + cp $$i `echo $$i | sed -e 's/\./$(VER).$(RELEASE)./'` ; \ + done + echo "libmoe $(VER).$(RELEASE)" > debian/shlibs.local + +build: build-stamp +build-stamp: debian/control + dh_testdir + # Add here commands to compile the package. + $(MAKE) PREFIX=/usr \ + LIBEXECDIR='$${PREFIX}/lib/moe' \ + DEBUG=-g CF='$${DEBUG} $${UC} -O2 -Wall -fPIC -I. -D_REENTRANT' + touch build-stamp + +clean: debian/control + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install \ + DESTDIR=`pwd`/debian/tmp \ + PREFIX=/usr \ + LIBEXECDIR='$${PREFIX}/lib/moe' \ + MANDIR=/usr/share/man + +# 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 + # + # build libmoe${major} package by moving files from libmoe-dev + # + dh_movefiles -plibmoe$(VER).$(RELEASE) \ + usr/lib/libmoe.so.$(VER).$(RELEASE) \ + usr/lib/libmoe.so.$(VER).$(RELEASE).$(LEVEL) \ + usr/bin/mbconv \ + usr/share/man/man1/mbconv.1.gz +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister + dh_makeshlibs -m$(VER).$(RELEASE) + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libmoe-1.5.8.orig/debian/shlibs.local +++ libmoe-1.5.8/debian/shlibs.local @@ -0,0 +1 @@ +libmoe 1.5