summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/fish/fish-2.5.0.ebuild')
-rw-r--r--app-shells/fish/fish-2.5.0.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/app-shells/fish/fish-2.5.0.ebuild b/app-shells/fish/fish-2.5.0.ebuild
index 5132a555abc..6d94ff16ddf 100644
--- a/app-shells/fish/fish-2.5.0.ebuild
+++ b/app-shells/fish/fish-2.5.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://fishshell.com/files/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
-IUSE=""
+IUSE="nls"
RDEPEND="
>=dev-libs/libpcre2-10.21[pcre32]
@@ -19,9 +19,11 @@ RDEPEND="
DEPEND="
${RDEPEND}
sys-devel/bc
- sys-devel/gettext
+ nls? ( sys-devel/gettext )
"
+PATCHES=( "${FILESDIR}/${P}-honor-linguas.patch" )
+
src_configure() {
# Set things up for fish to be a default shell.
# It has to be in /bin in case /usr is unavailable.
@@ -29,7 +31,8 @@ src_configure() {
econf \
docdir="${EPREFIX}"/usr/share/doc/${PF} \
--bindir="${EPREFIX}"/bin \
- --without-included-pcre2
+ --without-included-pcre2 \
+ $(use_with nls gettext)
}
src_test() {