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.
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/tools"
25 tarname=${program}-${version}.tar.lz
28 fetch=http://download.savannah.gnu.org/releases/moe/$tarname
30 homepage=http://www.gnu.org/software/moe
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}"
56 unpack "${tardir}/$tarname"
60 # Set sane permissions
61 chmod -R u+w,go-w,a+rX-s .
63 ./configure CXXFLAGS="-Wall -W $QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
67 --build="$(cc -dumpmachine)"
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"
83 mkdir -p "${destdir}${docsdir}"
87 cp -p $file "${destdir}${docsdir}"