diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gettext/rel_path.patch | |
Diffstat (limited to 'vcpkg/ports/gettext/rel_path.patch')
| -rw-r--r-- | vcpkg/ports/gettext/rel_path.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/gettext/rel_path.patch b/vcpkg/ports/gettext/rel_path.patch new file mode 100644 index 0000000..c0301cc --- /dev/null +++ b/vcpkg/ports/gettext/rel_path.patch @@ -0,0 +1,31 @@ +diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in +index 3a24eee5d..56b36d5ff 100644 +--- a/gettext-tools/misc/autopoint.in ++++ b/gettext-tools/misc/autopoint.in +@@ -27,8 +27,9 @@ archive_version=@ARCHIVE_VERSION@ + + # Set variables + # - gettext_datadir directory where the data files are stored. +-prefix="@prefix@" +-datarootdir="@datarootdir@" ++ ++prefix="$(dirname "$0")/../../../" ++datarootdir="${prefix}/share/gettext" + : ${gettext_datadir="@datadir@/gettext"} + : ${AUTOM4TE=autom4te} + +diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in +index c78c308bf..175ad57e7 100644 +--- a/gettext-tools/misc/gettextize.in ++++ b/gettext-tools/misc/gettextize.in +@@ -27,8 +27,8 @@ archive_version=@ARCHIVE_VERSION@ + + # Set variables + # - gettext_datadir directory where the data files are stored. +-prefix="@prefix@" +-datarootdir="@datarootdir@" ++prefix="$(dirname "$0")/../../../" ++datarootdir="${prefix}/share/gettext" + : ${gettext_datadir="@datadir@/gettext"} + : ${AUTOM4TE=autom4te} + |