Continue with the upgrades...
[dragora.git] / recipes / tools / moe / recipe
blobba8a2a200146a8d6298cb73dccfb45274f1bcd36
1 # Build recipe for moe.
3 # Copyright (c) 2016-2017 Matias Fonzo, <selk@dragora.org>.
4 # Copyright (c) 2019-2022 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 # Exit immediately on any error
19 set -e
21 program=moe
22 version=1.12
23 release=1
25 # Define a category for the output of the package name
26 pkgcategory=tools
28 tarname=${program}-${version}.tar.lz
30 # Remote source(s)
31 fetch=https://download.savannah.gnu.org/releases/moe/$tarname
33 homepage=https://www.gnu.org/software/moe
34 license=GPLv2+
36 description="
37 The GNU moe editor.
39 GNU moe is a powerful, 8-bit clean, console text editor for ISO-8859
40 and ASCII character encodings.  It has a modeless, user-friendly
41 interface, online help, multiple windows, unlimited undo/redo
42 capability, unlimited line length, global search/replace (on all
43 buffers at once), block operations, automatic indentation, word
44 wrapping, file name completion, directory browser, duplicate removal
45 from prompt histories, delimiter matching, text conversion from/to
46 UTF-8, romanization, etc.
48 For more information, visit: $homepage
51 # Source documentation
52 docs="AUTHORS COPYING ChangeLog NEWS README"
53 docsdir="${docdir}/${program}-${version}"
55 build()
57     unpack "${tardir}/$tarname"
59     cd "$srcdir"
61     # Set sane permissions
62     chmod -R u+w,go-w,a+rX-s .
64     ./configure CXXFLAGS="$QICXXFLAGS -Wall -W" LDFLAGS="$QILDFLAGS" \
65      $configure_args \
66      --infodir=$infodir \
67      --mandir=$mandir \
68      --build="$(gcc -dumpmachine)"
70     make -j${jobs} V=1
71     make -j${jobs} DESTDIR="$destdir" install
73     # To manage dot new config file
74     touch "${destdir}/etc/.graft-config"
76     # Compress documentation deleting redundancy
78     lzip -9 "${destdir}/${infodir}/moe.info" \
79             "${destdir}/${mandir}/man1/moe.1"
81     rm -f "${destdir}/${infodir}/dir"
83     # Copy documentation
84     mkdir -p "${destdir}${docsdir}"
85     cp -p $docs "${destdir}${docsdir}"