diff options
Diffstat (limited to 'app-editors/ne')
-rw-r--r-- | app-editors/ne/Manifest | 1 | ||||
-rw-r--r-- | app-editors/ne/ne-3.1.1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/app-editors/ne/Manifest b/app-editors/ne/Manifest index 23e3c2dcaf1f..2eca4ebd60e1 100644 --- a/app-editors/ne/Manifest +++ b/app-editors/ne/Manifest @@ -1 +1,2 @@ DIST ne-3.0.1.tar.gz 1193311 SHA256 92b646dd2ba64052e62deaa4239373821050a03e1b7d09d203ce04f2adfbd0e4 SHA512 3750140a49c7424e92e509137d5f31d305b81d41939a2578f6a26065216ebd1aa444b0e8d7e79dd09cc525e1055cda4d756f21ec810f860063d2eec861ea8273 WHIRLPOOL e0630f7e077400393ee5734989327369f2d646c88a32313f193b34e7f44d7962b368a5deb5876cfe997e34295078b44fba1672cfb257ef3dc08a8597a5708a5b +DIST ne-3.1.1.tar.gz 1219488 SHA256 ec4f5d919c38b1a5938b609a722d0d88a68c404b4564e3bb654b96b30582add9 SHA512 e572ca2a0cd39a59adaea911c80e083872103d90a586117efcabbc3881cf1a48d0c3d06f20eebcd9254177afafef15fd581778cd251b1b25b64ad68a5f8afc37 WHIRLPOOL 3ebfa725f5a85da6102fba3bf67678bf38380581d7b76df1e441d2825faed261089de2438525aa1e3fd90ad91ad75f460657b776b4c0b2f046d02a15f344434d diff --git a/app-editors/ne/ne-3.1.1.ebuild b/app-editors/ne/ne-3.1.1.ebuild new file mode 100644 index 000000000000..9d68adc0f1a0 --- /dev/null +++ b/app-editors/ne/ne-3.1.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="the nice editor, easy to use for the beginner and powerful for the wizard" +HOMEPAGE="http://ne.di.unimi.it/" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="tinfo" + +DEPEND="sys-libs/ncurses:0=[tinfo?]" + +RDEPEND=" + ${DEPEND} + dev-lang/perl +" + +HTML_DOCS=( doc/html/. ) + +src_prepare() { + default + sed -i -e 's/-O3//' src/makefile || die +} + +src_configure() { + local sedflags="s|-lcurses|-lncurses|g" + use tinfo && sedflags="s|-lcurses|-ltinfo|g" + sed -i -e "${sedflags}" src/makefile || die +} + +src_compile() { + append-cflags -std=c11 + emake -C src CC="$(tc-getCC)" \ + NE_GLOBAL_DIR="/usr/share/${PN}" \ + OPTS="${CFLAGS}" \ + "${PN}" +} + +src_install() { + dobin "src/${PN}" + + insinto "/usr/share/${PN}/syntax" + doins syntax/*.jsf + + doman "doc/${PN}.1" + dodoc CHANGES README.md NEWS doc/*.{txt,pdf,texinfo} doc/default.* +} |