From 254bc59c4adab02ca0f27484a522248d7467b370 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Mon, 4 Feb 2019 20:20:03 -0300 Subject: [PATCH] recipes: devel/help2man: added version 1.47.8. Perl-locale-gettext pending (extra dependency) --- recipes/00-core.order | 1 + recipes/devel/help2man/recipe | 89 +++++++++++++++++++++++++++++++++++ sources/SOURCELIST.txt | 1 + sources/help2man-1.47.8.tar.xz.sha256 | 1 + 4 files changed, 92 insertions(+) create mode 100644 recipes/devel/help2man/recipe create mode 100644 sources/help2man-1.47.8.tar.xz.sha256 diff --git a/recipes/00-core.order b/recipes/00-core.order index 45e8c1da..2ab995e1 100644 --- a/recipes/00-core.order +++ b/recipes/00-core.order @@ -67,6 +67,7 @@ libs/readline: libs/ncurses devel/libtool: devel/perl: compressors/bzip2 db/berkeley-db db/gdbm devel/automake: devel/autoconf +devel/help2man: libs/libgcrypt: libs/libgpg-error # Compression commands and library diff --git a/recipes/devel/help2man/recipe b/recipes/devel/help2man/recipe new file mode 100644 index 00000000..ecf52c86 --- /dev/null +++ b/recipes/devel/help2man/recipe @@ -0,0 +1,89 @@ +# Build recipe for help2man. +# +# Copyright (c) 2019 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +program=help2man +version=1.47.8 +release=1 + +# Set 'outdir' for a nice and well-organized output directory +outdir="${outdir}/${arch}/devel" + +tarname=${program}-${version}.tar.xz + +# Remote source(s) +fetch=http://espejito.fder.edu.uy/gnu/help2man/$tarname + +description=" +A script to create simple man pages. + +help2man is a script to create simple man pages from the --help and +--version output of programs. +" + +homepage=http://www.gnu.org/software/help2man +license=GPLv3+ + +# Source documentation +docs="COPYING debian/changelog NEWS README THANKS" +docsdir="${docdir}/${program}-${version}" + +build() +{ + set -e + + unpack "${tardir}/$tarname" + + cd "$srcdir" + + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + ./configure $configure_args \ + --libdir=/usr/lib${libSuffix} \ + --infodir=$infodir \ + --mandir=$mandir \ + --docdir=$docsdir \ + --build="$(cc -dumpmachine)" + + make -j${jobs} V=1 + make -j${jobs} DESTDIR="$destdir" install + + # Compress info documents deleting index file for the package + if test -d "${destdir}/$infodir" + then + rm -f "${destdir}/${infodir}/dir" + lzip -9 "${destdir}/${infodir}"/* + fi + + # Compress and link man pages (if needed) + if test -d "${destdir}/$mandir" + then + ( + cd "${destdir}/$mandir" + find . -type f -exec lzip -9 '{}' + + find . -type l | while read -r file + do + ln -sf "$(readlink -- "$file").lz" "${file}.lz" + rm -- "$file" + done + ) + fi + + # Copy documentation + mkdir -p "${destdir}${docsdir}" + cp -p $docs "${destdir}${docsdir}" +} + diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index 16b737e5..8c7be9c5 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -467,3 +467,4 @@ http://xkbcommon.org/download/libxkbcommon-0.8.2.tar.xz http://xmlsoft.org/sources/libxml2-2.9.9.tar.gz http://xmlsoft.org/sources/libxslt-1.1.33.tar.gz http://download.savannah.gnu.org/releases/lzip/tarlz/tarlz-0.10a.tar.lz +http://espejito.fder.edu.uy/gnu/help2man/help2man-1.47.8.tar.xz diff --git a/sources/help2man-1.47.8.tar.xz.sha256 b/sources/help2man-1.47.8.tar.xz.sha256 new file mode 100644 index 00000000..e37117fb --- /dev/null +++ b/sources/help2man-1.47.8.tar.xz.sha256 @@ -0,0 +1 @@ +528f6a81ad34cbc76aa7dce5a82f8b3d2078ef065271ab81fda033842018a8dc help2man-1.47.8.tar.xz -- 2.11.4.GIT