--- /dev/null
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=0
+
+inherit git-2
+
+DESCRIPTION="Converts FIG files (xfig) to XML files (Ipe)"
+HOMEPAGE="https://github.com/otfried/ipe-tools/tree/master/figtoipe"
+EGIT_REPO_URI="https://github.com/otfried/ipe-tools.git"
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-gfx/ipe-7.0.0"
+RDEPEND="${DEPEND}"
+
+BASEDIR="${WORKDIR}/${P}/figtoipe"
+
+src_compile() {
+ cd ${BASEDIR}
+ emake
+}
+
+src_install() {
+ cd ${BASEDIR}
+ exeinto /usr/bin/
+ doexe figtoipe
+ doman figtoipe.1
+}
+
+