--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Yash, yet another shell, is a POSIX-compliant command line shell
+ written in C99 (ISO/IEC 9899:1999). Yash is intended to be the most
+ POSIX-compliant shell in the world while supporting features for daily
+ interactive and scripting use. Notable features are:
+
+ * Global aliases
+ * Arrays
+ * Socket redirection, pipeline redirection, and process redirection
+ * Brace expansion and extended globbing
+ * Fractional numbers in arithmetic expansion
+ * Prompt command and command-not-found handler
+ * Command line completion with predefined completion scripts for more than 100 commands
+ * Command line prediction based on command history
+ </longdescription>
+ <upstream>
+ <remote-id type="github">magicant/yash</remote-id>
+ <remote-id type="sourceforge-jp">yash</remote-id>
+ </upstream>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PLOCALES="en ja"
+
+inherit flag-o-matic l10n toolchain-funcs
+
+DESCRIPTION="Yash is a POSIX-compliant command line shell"
+HOMEPAGE="https://yash.osnd.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/69353/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls test"
+
+RDEPEND="sys-libs/ncurses:=
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ test? ( sys-apps/ed )"
+
+src_configure() {
+ append-cflags -std=c99
+
+ sh ./configure \
+ --prefix="${EPREFIX}"/usr \
+ $(use_enable nls) \
+ CC=$(tc-getCC) \
+ LINGUAS="$(l10n_get_locales | sed "s/en/en@quot en@boldquot/")" \
+ || die
+}