mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 05:21:23 +02:00
sys-devel/gettext: Sync with Gentoo
It's from Gentoo commit 708a5eb5bbffb026c0e6097a20987797122aa07d.
This commit is contained in:
parent
7e06ebdc30
commit
987d23cee7
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# Note: Keep version bumps in sync with dev-libs/libintl.
|
# Note: Keep version bumps in sync with dev-libs/libintl.
|
||||||
@ -6,7 +6,7 @@
|
|||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc
|
||||||
inherit java-pkg-opt-2 libtool multilib-minimal verify-sig
|
inherit java-pkg-opt-2 libtool multilib-minimal verify-sig toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="GNU locale utilities"
|
DESCRIPTION="GNU locale utilities"
|
||||||
HOMEPAGE="https://www.gnu.org/software/gettext/"
|
HOMEPAGE="https://www.gnu.org/software/gettext/"
|
||||||
@ -17,13 +17,13 @@ if [[ ${PV} == *_rc* ]] ; then
|
|||||||
else
|
else
|
||||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
|
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
|
||||||
SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.xz.sig )"
|
SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.xz.sig )"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||||
fi
|
fi
|
||||||
# Only libasprintf is under the LGPL (and libintl is in a sep package),
|
# Only libasprintf is under the LGPL (and libintl is in a sep package),
|
||||||
# so put that license behind USE=cxx.
|
# so put that license behind USE=cxx.
|
||||||
LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
|
LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="acl cvs +cxx doc emacs git java ncurses nls openmp static-libs"
|
IUSE="acl +cxx doc emacs git java ncurses nls openmp static-libs"
|
||||||
|
|
||||||
# only runtime goes multilib
|
# only runtime goes multilib
|
||||||
# Note: The version of libxml2 corresponds to the version bundled via gnulib.
|
# Note: The version of libxml2 corresponds to the version bundled via gnulib.
|
||||||
@ -40,11 +40,9 @@ DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
|
|||||||
ncurses? ( sys-libs/ncurses:0= )
|
ncurses? ( sys-libs/ncurses:0= )
|
||||||
java? ( virtual/jdk:1.8 )"
|
java? ( virtual/jdk:1.8 )"
|
||||||
RDEPEND="${DEPEND}
|
RDEPEND="${DEPEND}
|
||||||
!git? ( cvs? ( dev-vcs/cvs ) )
|
|
||||||
git? ( dev-vcs/git )
|
git? ( dev-vcs/git )
|
||||||
java? ( virtual/jre:1.8 )"
|
java? ( virtual/jre:1.8 )"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
!git? ( cvs? ( dev-vcs/cvs ) )
|
|
||||||
git? ( dev-vcs/git )
|
git? ( dev-vcs/git )
|
||||||
verify-sig? ( sec-keys/openpgp-keys-gettext )"
|
verify-sig? ( sec-keys/openpgp-keys-gettext )"
|
||||||
PDEPEND="emacs? ( app-emacs/po-mode )"
|
PDEPEND="emacs? ( app-emacs/po-mode )"
|
||||||
@ -70,7 +68,12 @@ PATCHES=(
|
|||||||
|
|
||||||
QA_SONAME_NO_SYMLINK=".*/preloadable_libintl.so"
|
QA_SONAME_NO_SYMLINK=".*/preloadable_libintl.so"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
java-pkg-opt-2_pkg_setup
|
java-pkg-opt-2_pkg_setup
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +92,9 @@ src_prepare() {
|
|||||||
|
|
||||||
elibtoolize
|
elibtoolize
|
||||||
|
|
||||||
use elibc_musl && eapply "${FILESDIR}"/${PN}-0.21-musl-omit_setlocale_lock.patch
|
if use elibc_musl || use elibc_Darwin; then
|
||||||
|
eapply "${FILESDIR}"/${PN}-0.21-musl-omit_setlocale_lock.patch
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_configure() {
|
multilib_src_configure() {
|
||||||
@ -114,12 +119,12 @@ multilib_src_configure() {
|
|||||||
--without-included-libxml
|
--without-included-libxml
|
||||||
|
|
||||||
--disable-csharp
|
--disable-csharp
|
||||||
|
--without-cvs
|
||||||
|
|
||||||
$(use_enable acl)
|
$(use_enable acl)
|
||||||
$(use_enable cxx c++)
|
$(use_enable cxx c++)
|
||||||
$(use_enable cxx libasprintf)
|
$(use_enable cxx libasprintf)
|
||||||
$(use_with git)
|
$(use_with git)
|
||||||
$(usex git --without-cvs $(use_with cvs))
|
|
||||||
$(multilib_native_use_enable java)
|
$(multilib_native_use_enable java)
|
||||||
$(use_enable ncurses curses)
|
$(use_enable ncurses curses)
|
||||||
$(use_enable nls)
|
$(use_enable nls)
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>base-system@gentoo.org</email>
|
<email>base-system@gentoo.org</email>
|
||||||
<name>Gentoo Base System</name>
|
<name>Gentoo Base System</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
<flag name="cvs">
|
<flag name="git">When running `autopoint`, use git to store the internal development files; this requires git at runtime, but will be faster/smaller than raw archives</flag>
|
||||||
When running `autopoint`, use cvs to store the internal development files;
|
</use>
|
||||||
this requires cvs at runtime, but will be faster/smaller than raw archives
|
<upstream>
|
||||||
</flag>
|
|
||||||
<flag name="git">
|
|
||||||
When running `autopoint`, use git to store the internal development files;
|
|
||||||
this requires git at runtime, but will be faster/smaller than raw archives
|
|
||||||
</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="cpe">cpe:/a:gnu:gettext</remote-id>
|
<remote-id type="cpe">cpe:/a:gnu:gettext</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user