* changed pyproject-metadata build priority (400.000 -> 109.007)
[t2sde.git] / package / dictionary / xjdic23 / xjdic23.conf
blob7c61b5d9898210284d0367e7127ae972185e6b56
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xjdic23/xjdic23.conf
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $prefix_auto = 1 ]; then
14         prefix="opt/xjdic"
15         set_confopt
18 srcdir="."
19 makeinstopt=
21 xjdic_pc() {
22         for x in edict kanjidic; do
23                 f=`match_source_file -p $x` 
24                 $(get_compressor $f) -d < $f > $x
25         done
27 hook_add preconf 5 xjdic_pc
29 xjdic_pm() {
30         ./xjdxgen edict
31         ./xjdxgen kanjidic
33         mv -v exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen edict edict.xjdx \
34                 kanjidic kanjidic.xjdx gnu_licence \
35                 kanjstroke radicals.tm vconj radkfile romkana.cnv $bindir/
36         cat > $bindir/xjdic << EOF
37 cd $bindir
38 ./xjdic_sa
39 EOF
40         cat > $bindir/xjdic_client << EOF
41 cd $bindir
42 ./xjdic_cl
43 EOF
44         cat > $bindir/xjdic_server << EOF
45 cd $bindir
46 ./xjdserver
47 EOF
48         cat > $bindir/xjdic_indexgen << EOF
49 cd $bindir
50 ./xjdxgen
51 EOF
52         chmod a+x $bindir/{xjdic,xjdic_client,xjdic_server,xjdic_indexgen}
54 hook_add postmake 5 xjdic_pm