File: packages

package info (click to toggle)
ipolish 1.0.990914-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,832 kB
  • sloc: perl: 1,363; sh: 4
file content (143 lines) | stat: -rw-r--r-- 5,729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Source: ipolish
Section: text
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.0.1
Upstream-Source: <URL:ftp://ftp.ds14.agh.edu.pl/pub/ispell/slownik/>
Description: the polish dictionary
Packaged-For: Debian
Copyright: LGPL
     This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Library General Public
     License as published by the Free Software Foundation; either
     version 2 of the License, or (at your option) any later version.
Major-Changes:
 * README.devel copied from devel directory on source site
 * polish(5) adaptated from wenglish package
 * update-ipolish-hash script
 * update-ipolish-hash(1)
 * polish.desc
Build-Depends: ispell, debhelper (>= 2.0)
Patches: *.dpatch
Build: sh
 mkdir tmp
 cat $(cat polish.desc | grep "Dictionary:" | cut -d' ' -f2) | \
     grep -v "^/" | sort | icombine polish.aff > tmp/polish.dict
 buildhash tmp/polish.dict polish.aff tmp/polish.hash
 cat tmp/polish.dict | ispell -d tmp/polish -e | tr '\040' '\012' | \
     sort -u > tmp/polish.words
Clean: sh
 rm -rf tmp || true

Package: ipolish
Architecture: all
Depends: ${perl:Depends} | perl, ispell
Provides: ispell-dictionary
Description: The polish dictionary for ispell.
 This is the polish dictionary, to be used with the ispell program,
 version 3.1.04 and following. The dictionary contains roughly
 140,000 roots, which expand to about 1,400,000 words.
Install: sh
 yada install -script -into /usr/sbin -as update-ipolish-hash update-ispell-hash
 yada install -data -into /usr/lib/ispell polish.aff
 yada install -dir /var/lib/ispell
 dh_link -p$PACKAGE -P$ROOT /var/lib/ispell/polish.hash /usr/lib/ispell/polish.hash
 yada install -data -into /usr/share/ispell polish.desc
 for i in $(cat polish.desc | grep "Dictionary:" | cut -d' ' -f2); do
     test -d $ROOT/usr/share/ispell/polish/$(dirname $i) || \
         yada install -dir /usr/share/ispell/polish/$(dirname $i)
     cat $i | gzip -9 > $ROOT/usr/share/ispell/polish/$i.gz
 done
 yada install -man -as update-ipolish-hash.1 update-ispell-hash.1
 yada install -doc -subdir pl -as readme CZYTAJ.TO
 yada install -doc -subdir pl -as readme.devel README.devel
 dh_link -p$PACKAGE -P$ROOT /usr/share/doc/$PACKAGE/pl/readme /usr/share/doc/$PACKAGE/readme
 dh_link -p$PACKAGE -P$ROOT /usr/share/doc/$PACKAGE/pl/readme.devel /usr/share/doc/$PACKAGE/readme.devel
 dh_perl -p$PACKAGE -P$ROOT
 dh_shlibdeps -p$PACKAGE -P$ROOT
Finalise: sh
 dh_md5sums -p$PACKAGE -P$ROOT
#Alternatives:
# /usr/lib/ispell/default.hash -> ispell-dictionary.hash -> /usr/lib/ispell/polish.hash (10)
# >> /usr/lib/ispell/default.aff -> ispell-dictionary.aff -> /usr/lib/ispell/polish.aff
Postinst: sh
 PACKAGE=ipolish
 if [ "$1" = "configure" ]; then
     if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE -a -d /usr/share/doc/$PACKAGE ]; then
         ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE
     fi
 fi
 if ! ( update-alternatives --display ispell-dictionary.hash | grep /usr/lib/ispell/polish.hash >/dev/null); then
     update-alternatives --install /usr/lib/ispell/default.hash ispell-dictionary.hash /usr/lib/ispell/polish.hash 10 \
                         --slave /usr/lib/ispell/default.aff ispell-dictionary.aff /usr/lib/ispell/polish.aff
 fi
 if [ "$1" = "configure" ]; then
     update-ipolish-hash -d polish >/dev/null
     echo ""
     echo "Please note that you can run '/usr/sbin/update-ipolish-hash'" 
     echo "to rebuild hash for ispell dictionary."
     echo ""
     if [ -z "$2" -o "$2" = "<unknown>" ]; then 
         update-ispell-dictionary
     fi
     echo "Please note that you can run '/usr/sbin/update-ispell-dictionary'" 
     echo "to change the default ispell dictionary."
     echo ""
     echo "KONTAKT Z AUTORAMI SOWNIKA"
     echo ""
     echo "Wszelkie uwagi dotyczce niniejszego sownika naley kierowa na list"
     echo "slownik@ia.pw.edu.pl lub Miroslaw.Prywata@fuw.edu.pl, MACEWICZ@ia.pw.edu.pl"
     echo "gacek@ds14.agh.edu.pl"
     echo ""
 fi
Prerm: sh
 PACKAGE=ipolish
 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PACKAGE ]; then
     rm -f /usr/doc/$PACKAGE
 fi
 if [ "$1" != "upgrade" ]; then
     update-alternatives --remove ispell-dictionary.hash /usr/lib/ispell/polish.hash
 fi
 if [ "$1" = "remove" ]; then
     if [ -n "`update-alternatives --display ispell-dictionary.hash  \
         | grep polish | grep 999`" ]; then
         update-ispell-dictionary
     fi 
 fi
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -f /var/lib/ispell/polish.hash
 fi

Package: wpolish
Architecture: all
Provides: wordlist
Description: Polish dictionary words for /usr/dict
 This package provides the file /usr/share/dict/polish containing a list
 of Polish words.  This list can be used by spelling checkers, and by
 programs such as look(1).
Install: sh
 yada install -data tmp/polish.words -into /usr/share/dict -as polish
 yada install -man polish.5
Finalise: sh
 dh_md5sums -p$PACKAGE -P$ROOT
#Alternatives:
# /usr/share/dict/words -> dictionary -> /usr/share/dict/polish (50)
Postinst: sh
 PACKAGE=wpolish
 if [ "$1" = "configure" ]; then
     if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE -a -d /usr/share/doc/$PACKAGE ]; then
         ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE
     fi
 fi
 if ! ( update-alternatives --display dictionary | grep /usr/share/dict/polish >/dev/null); then
     update-alternatives --install /usr/share/dict/words dictionary /usr/share/dict/polish 50
 fi
Prerm: sh
 PACKAGE=wpolish
 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PACKAGE ]; then
     rm -f /usr/doc/$PACKAGE
 fi
 if [ "$1" != "upgrade" ]; then
     update-alternatives --remove dictionary /usr/share/dict/polish
 fi