pantry/projects/gnu.org/gettext/package.yml
Jacob Heider 8d8db785c7
fix(gettext,autopoint)
it needs `xz` to unpack its archive.
2023-11-29 14:55:26 -05:00

56 lines
1.1 KiB
YAML

distributable:
url: https://ftp.gnu.org/gnu/gettext/gettext-{{version.raw}}.tar.gz
strip-components: 1
dependencies:
gnome.org/libxml2: 2
#TODO ncurses
tukaani.org/xz: 5 # autopoint needs this to unpack archives
versions:
github: autotools-mirror/gettext/tags
strip: /v/
build:
script: |
./configure \
--prefix={{ prefix }} \
--disable-debug \
--with-included-debug \
--with-included-libcroco \
--with-included-libunistring \
--without-included-libxml \
--disable-java \
--disable-csharp
make --jobs {{ hw.concurrency }}
make install
cd {{prefix}}/bin
sed -i.bak 's|{{prefix}}|"$(cd "$(dirname "$0")/.." \&\& pwd)"|' gettextize autopoint
rm gettextize.bak autopoint.bak
test: gettext test
provides:
- bin/autopoint
- bin/envsubst
- bin/gettext
- bin/gettext.sh
- bin/gettextize
- bin/msgattrib
- bin/msgcat
- bin/msgcmp
- bin/msgcomm
- bin/msgconv
- bin/msgen
- bin/msgexec
- bin/msgfilter
- bin/msgfmt
- bin/msggrep
- bin/msginit
- bin/msgmerge
- bin/msgunfmt
- bin/msguniq
- bin/ngettext
- bin/recode-sr-latin
- bin/xgettext