| 6 |
6 |
EAPI=8
|
| 7 |
7 |
|
| 8 |
8 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gettext.asc
|
| 9 |
|
inherit java-pkg-opt-2 libtool multilib-minimal verify-sig toolchain-funcs
|
| 10 |
|
inherit flag-o-matic
|
|
9 |
inherit flag-o-matic java-pkg-opt-2 libtool multilib-minimal verify-sig toolchain-funcs
|
| 11 |
10 |
|
| 12 |
11 |
DESCRIPTION="GNU locale utilities"
|
| 13 |
12 |
HOMEPAGE="https://www.gnu.org/software/gettext/"
|
| ... | ... | |
| 23 |
22 |
mirror://gnu/${PN}/${P}.tar.xz
|
| 24 |
23 |
verify-sig? ( mirror://gnu/${PN}/${P}.tar.xz.sig )
|
| 25 |
24 |
"
|
| 26 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
|
25 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
| 27 |
26 |
fi
|
| 28 |
27 |
|
| 29 |
28 |
# Only libasprintf is under the LGPL (and libintl is in a sep package),
|
| ... | ... | |
| 50 |
49 |
${DEPEND}
|
| 51 |
50 |
git? ( dev-vcs/git )
|
| 52 |
51 |
java? ( >=virtual/jre-1.8:* )
|
|
52 |
nls? ( app-i18n/gnulib-l10n )
|
| 53 |
53 |
"
|
| 54 |
54 |
BDEPEND="
|
| 55 |
55 |
git? ( dev-vcs/git )
|
| 56 |
|
verify-sig? ( sec-keys/openpgp-keys-gettext )
|
|
56 |
verify-sig? ( >=sec-keys/openpgp-keys-gettext-20250608 )
|
| 57 |
57 |
"
|
| 58 |
58 |
PDEPEND="emacs? ( app-emacs/po-mode )"
|
| 59 |
59 |
|
| ... | ... | |
| 88 |
88 |
|
| 89 |
89 |
default
|
| 90 |
90 |
|
| 91 |
|
# gettext-0.21.1-java-autoconf.patch changes
|
| 92 |
|
# gettext-{runtime,tools}/configure.ac and the corresponding
|
| 93 |
|
# configure scripts. Avoid regenerating other autotools output.
|
| 94 |
|
#touch -c gettext-{runtime,tools}/{aclocal.m4,Makefile.in,config.h.in,configure} || die
|
| 95 |
|
# Makefile.am adds a dependency on gettext-{runtime,tools}/configure.ac
|
|
91 |
# gettext-0.23-no-nls.patch changes gettext-tools/configure.ac and the
|
|
92 |
# corresponding configure scripts. Avoid regenerating other autotools output.
|
|
93 |
#touch -c gettext-tools/{aclocal.m4,Makefile.in,config.h.in,configure} || die
|
|
94 |
# Makefile.am adds a dependency on gettext-tools/configure.ac
|
| 96 |
95 |
#touch -c configure || die
|
| 97 |
96 |
|
|
97 |
# TOOD: Investigate why this fails
|
|
98 |
cat <<-EOF > gettext-tools/tests/autopoint-3 || die
|
|
99 |
#!/bin/sh
|
|
100 |
exit 77
|
|
101 |
EOF
|
|
102 |
chmod +x gettext-tools/tests/autopoint-3 || die
|
|
103 |
|
| 98 |
104 |
elibtoolize
|
| 99 |
105 |
|
| 100 |
106 |
if use elibc_musl || use elibc_Darwin; then
|
| 101 |
|
eapply "${FILESDIR}"/${PN}-0.21-musl-omit_setlocale_lock.patch
|
|
107 |
eapply "${FILESDIR}"/${PN}-0.25-musl-omit_setlocale_lock.patch
|
| 102 |
108 |
fi
|
| 103 |
109 |
}
|
| 104 |
110 |
|
| 105 |
111 |
multilib_src_configure() {
|
|
112 |
# see https://bugs.gentoo.org/955689
|
|
113 |
append-flags -Wno-error=format-security
|
|
114 |
|
| 106 |
115 |
local myconf=(
|
| 107 |
116 |
# switches common to runtime and top-level
|
| 108 |
117 |
--cache-file="${BUILD_DIR}"/config.cache
|
| ... | ... | |
| 126 |
135 |
--disable-csharp
|
| 127 |
136 |
--without-cvs
|
| 128 |
137 |
|
|
138 |
# TODO: needs help finding our libm2pim.so (finds 32-bit version)
|
|
139 |
--disable-modula2
|
|
140 |
# Tests try to access the network
|
|
141 |
--disable-go
|
|
142 |
|
| 129 |
143 |
$(use_enable acl)
|
| 130 |
144 |
$(use_enable cxx c++)
|
| 131 |
145 |
$(use_enable cxx libasprintf)
|
| ... | ... | |
| 144 |
158 |
ECONF_SOURCE+=/gettext-runtime
|
| 145 |
159 |
fi
|
| 146 |
160 |
|
| 147 |
|
# should be gone on next release, for memset_s breakage
|
| 148 |
|
[[ ${CHOST} == *-solaris* ]] && append-cppflags -D__STDC_WANT_LIB_EXT1__=1
|
| 149 |
|
|
| 150 |
161 |
econf "${myconf[@]}"
|
| 151 |
162 |
}
|
| 152 |
163 |
|