recipes: tools/qi: bump to version 1.0-rc55
[dragora.git] / recipes / tools / moe / recipe
blobc4b0494c6001b41068fe0e88b54ca27f770d4433
1 # Build recipe for moe.
3 # Copyright (c) 2016-2017 Matias Fonzo, <selk@dragora.org>.
4 # Copyright (c) 2019 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #    http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 program=moe
19 version=1.10
20 release=1
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/tools"
25 tarname=${program}-${version}.tar.lz
27 # Remote source(s)
28 fetch=http://download.savannah.gnu.org/releases/moe/$tarname
30 homepage=http://www.gnu.org/software/moe
31 license=GPLv2+
33 description="
34 The GNU moe editor.
36 GNU moe is a powerful, 8-bit clean, console text editor for ISO-8859
37 and ASCII character encodings.  It has a modeless, user-friendly
38 interface, online help, multiple windows, unlimited undo/redo
39 capability, unlimited line length, global search/replace (on all
40 buffers at once), block operations, automatic indentation, word
41 wrapping, file name completion, directory browser, duplicate removal
42 from prompt histories, delimiter matching, text conversion from/to
43 UTF-8, romanization, etc.
45 For more information, visit: $homepage
48 # Source documentation
49 docs="AUTHORS COPYING ChangeLog NEWS README"
50 docsdir="${docdir}/${program}-${version}"
52 build()
54     set -e
56     unpack "${tardir}/$tarname"
58     cd "$srcdir"
60     # Set sane permissions
61     chmod -R u+w,go-w,a+rX-s .
63     ./configure CXXFLAGS="-Wall -W $QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
64      $configure_args \
65      --infodir=$infodir \
66      --mandir=$mandir \
67      --build="$(cc -dumpmachine)"
69     make -j${jobs}
70     make -j${jobs} DESTDIR="$destdir" install
72     # To manage dot new config file
73     touch "${destdir}/etc/.graft-config"
75     # Compress documentation deleting redundancy
77     lzip -9 "${destdir}/${infodir}/moe.info" \
78             "${destdir}/${mandir}/man1/moe.1"
80     rm -f "${destdir}/${infodir}/dir"
82     # Copy documentation
83     mkdir -p "${destdir}${docsdir}"
85     for file in $docs
86     do
87         cp -p $file "${destdir}${docsdir}"
88     done