Commit: 9d16ca08ae5819022c626ce3660e273b3ef3ce6d Parent: bc81e008e38afcc9453801ea19c91d661ae9f4a5 Author: opask Date: Tue, 5 Feb 2019 17:17:19 -0700 add app-editors/hyx Diffstat:
A | app-editors/hyx/Manifest | | | 1 | + |
A | app-editors/hyx/hyx-0.1.5.ebuild | | | 22 | ++++++++++++++++++++++ |
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/app-editors/hyx/Manifest b/app-editors/hyx/Manifest @@ -0,0 +1 @@ +DIST hyx-0.1.5.tar.xz 12636 BLAKE2B ff08ea294ee4c17cee464138b7d5b16495bb9692066197ca0ccb9aa2048365b48530e679bd1d9214b86070834c8f01d935b0eeffa9fc54ba71e7bf45401d0a50 SHA512 79c45c7b3007af4009c356d3b4c7c8b29e241f07311ef62ffea09e0d31e58741093b1375e352800e6f6d9c1d67095b16c68ce3d58d79b05817513130dbfb1b1e diff --git a/app-editors/hyx/hyx-0.1.5.ebuild b/app-editors/hyx/hyx-0.1.5.ebuild @@ -0,0 +1,22 @@ +EAPI=7 + +DESCRIPTION="A minimal Linux console hex editor" +HOMEPAGE="https://yx7.cc/code" +SRC_URI="https://yx7.cc/code/hyx/${P}.tar.xz" + +SLOT=0 +IUSE="+static" + +src_configure() { + default + + if use static; then + export CFLAGS="${CFLAGS} -static" + fi +} + +src_install() { + emake DESTDIR="${D}" + into ${EPREFIX}${LOCAL_PREFIX} + dobin hyx +}