From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D78ED158089 for ; Wed, 4 Oct 2023 17:43:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27F4A2BC02F; Wed, 4 Oct 2023 17:43:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12FFE2BC02F for ; Wed, 4 Oct 2023 17:43:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A0E6335D17 for ; Wed, 4 Oct 2023 17:43:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C28D3994 for ; Wed, 4 Oct 2023 17:43:26 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1696441380.d69aefd0db5222a02fad47fd40ce106c4cf13ccf.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/ne/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/ne/Manifest app-editors/ne/ne-3.3.2.ebuild X-VCS-Directories: app-editors/ne/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d69aefd0db5222a02fad47fd40ce106c4cf13ccf X-VCS-Branch: master Date: Wed, 4 Oct 2023 17:43:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 060b620f-685a-43b2-8148-79d124176404 X-Archives-Hash: 34393c7f05e7a10039e1b8a398d0dfd9 commit: d69aefd0db5222a02fad47fd40ce106c4cf13ccf Author: Sam James gentoo org> AuthorDate: Wed Oct 4 17:29:34 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Oct 4 17:43:00 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d69aefd0 app-editors/ne: don't redefine _FORTIFY_SOURCE Closes: https://bugs.gentoo.org/892958 Signed-off-by: Sam James gentoo.org> app-editors/ne/Manifest | 1 + app-editors/ne/ne-3.3.2.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/app-editors/ne/Manifest b/app-editors/ne/Manifest index 6b735d790750..3fdacc2f64f0 100644 --- a/app-editors/ne/Manifest +++ b/app-editors/ne/Manifest @@ -1 +1,2 @@ DIST ne-3.3.1.tar.gz 1138072 BLAKE2B 8494ff955b456bbac2e82823ee155980f8fab5a1071d0bfd6a987f1ed0724129ab2ecb70737547836b592369b45daf5e499d50d7230b04c5eabfd1536a56271f SHA512 d8c1d8cd9bbafcc7c8c485ca4454d6979be3d33ae918139865ce5f76e428f165043707c95c2e440bd9bccd00c67ce81a41f87f94b85cae3518c4749233718123 +DIST ne-3.3.2.tar.gz 1154326 BLAKE2B 8c11abac9a960a41de2faed9b2e948cca9ca7f8345757796fb7daa112e62d565096b1cd3a4ca2e76cfb1616ee8c0dad01bb2fe5306bac6f0aadca0644b91eb6d SHA512 6c4fabb0ecade31322d5f96203f3bba3316264d8f98a46188796ce88f4b7fd17af8569832ae2638770f8ceb59138b0395b0e03817db961bfe94c917fa390ebf3 diff --git a/app-editors/ne/ne-3.3.2.ebuild b/app-editors/ne/ne-3.3.2.ebuild new file mode 100644 index 000000000000..4743055eb679 --- /dev/null +++ b/app-editors/ne/ne-3.3.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="The nice editor, easy to use for the beginner and powerful for the wizard" +HOMEPAGE="https://ne.di.unimi.it/" +SRC_URI="https://ne.di.unimi.it/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos" + +DEPEND="sys-libs/ncurses:=" +RDEPEND=" + ${DEPEND} + dev-lang/perl +" +BDEPEND="virtual/pkgconfig" + +HTML_DOCS=( doc/html/. ) + +PATCHES=( + "${FILESDIR}"/${PN}-3.3.1-respect-CFLAGS.patch +) + +src_prepare() { + default + + sed -i \ + -e 's/-O3//' \ + -e 's/-Wp,-D_FORTIFY_SOURCE=2//' \ + src/makefile || die +} + +src_configure() { + # bug #776799 + sed -i -e "s/-lcurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" src/makefile || die +} + +src_compile() { + append-cflags -std=c11 + + emake -C src CC="$(tc-getCC)" \ + NE_GLOBAL_DIR="/usr/share/${PN}" \ + OPTS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + "${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.* +}