Dragora GNU/Linux-Libre

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:213e68433972695fb6c6b55870ec1aa52e53b99a
Date: 2017-10-12 18:10:01
User: selk
Comment:add gettext-tiny 0.2.0, this will be the replacement for GNU gettext
Tags And Properties
Context
2018-01-21
20:07
[4b6aede6c8] THE DEVELOPMENT CONTINUES ON http://git.savannah.nongnu.org/cgit/dragora.git (user: selk, tags: trunk)
2017-10-12
18:10
[213e684339] add gettext-tiny 0.2.0, this will be the replacement for GNU gettext (user: selk, tags: trunk)
17:57
[468a9238db] qi: adjust mechanism for replace declared packages via recipe, create TMPDIR if does not exist, minor enhancements (user: selk, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added recipes/tools/gettext-tiny/recipe.











































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Build recipe for gettext-tiny.
#
# Copyright (C) 2017 Matias A. Fonzo, selk@dragora.org.
#
# This recipe is free software: you have unlimited permission
# to copy, distribute and modify it.

program=gettext-tiny
version=0.2.0
release=1

# The installation of this package replaces
replace=gettext

tarname=${program}-${version}.tar.xz

# Remote source(s)
fetch=http://ftp.barfooze.de/pub/sabotage/tarballs/$tarname

description="
Lightweight replacements for tools used in the GNU gettext.

gettext-tiny provides lightweight replacements for tools typically used
from the GNU gettext suite, which is incredibly bloated and takes a lot
of time to build (in the order of an hour on slow devices).  The most
notable component is msgfmt which is used to create binary translation
files in the .mo format out of textual input files in .po format.
This is the most important tool for building software from source,
because it is used from the build processes of many software packages.
"

homepage=http://github.com/sabotage-linux/gettext-tiny
license=MIT

# Source documentation
docs="LICENSE README.md"
docsdir="${docdir}/${program}-${version}"

build()
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"

    make -j${jobs} V=1 \
     CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" LIBINTL=MUSL \
     prefix=/usr libdir=/usr/lib${libSuffix} DESTDIR="$destdir" install

    # 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}"
}