From 83bb5fee79c91fdb595526f9cd03a1c1c76af9a3 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 17 Aug 2023 21:44:25 +0300 Subject: [PATCH] gnu.org/help2man (#2947) * gnu.org/help2man * remove .bak --------- Co-authored-by: Jacob Heider --- projects/gnu.org/help2man/package.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 projects/gnu.org/help2man/package.yml diff --git a/projects/gnu.org/help2man/package.yml b/projects/gnu.org/help2man/package.yml new file mode 100644 index 00000000..37dad935 --- /dev/null +++ b/projects/gnu.org/help2man/package.yml @@ -0,0 +1,41 @@ +distributable: + url: https://ftp.gnu.org/gnu/help2man/help2man-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://ftp.gnu.org/gnu/help2man/ + match: /help2man-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^help2man-/ + - /\.tar\.xz/ +dependencies: + gnu.org/gettext: '*' + perl.org: '*' +runtime: + env: + PERL5LIB: "{{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB" +build: + dependencies: + tea.xyz/gx/cc: c99 + gnu.org/make: '*' + cpanmin.us: '*' + script: + - cpanm -l {{prefix}} Locale::gettext + - ./configure $CONFIGURE_ARGS + - make install + - run: | + sed -i.bak '1s|.*|#!/usr/bin/env perl|' help2man + rm help2man.bak + working-directory: ${{prefix}}/bin + env: + PERL5LIB: "{{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB" + CONFIGURE_ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" +provides: + - bin/help2man +test: + script: + - help2man --version | grep {{version}} + - help2man --locale=en_US.UTF-8 help2man | grep {{version}}