public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2025-02-15 21:03 Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2025-02-15 21:03 UTC (permalink / raw
  To: gentoo-commits

commit:     a3d877d69accfa72664aa461b675253b29e33487
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 15 21:00:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 21:00:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3d877d6

app-editors/ng: build w/ -std=gnu89

In 279064ccf66cd76b4ef8f2fb7d03db3b41d79655, a bunch of -Wno-* were
added but that isn't sufficient for the C99 porting effort. Instead,
pass -std=gnu89 which handles not making these errors out of the box.

Bug: https://bugs.gentoo.org/729234
Closes: https://bugs.gentoo.org/880419
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-editors/ng/ng-1.5_beta1-r3.ebuild | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/app-editors/ng/ng-1.5_beta1-r3.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild
index 515e4a09db0d..1133173c0fad 100644
--- a/app-editors/ng/ng-1.5_beta1-r3.ebuild
+++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -34,10 +34,7 @@ src_prepare() {
 	cd - >/dev/null || die
 	cp sys/unix/configure . || die
 	# written in K&R C
-	append-flags \
-		-Wno-implicit-function-declaration \
-		-Wno-implicit-int \
-		-Wno-return-type
+	append-flags -std=gnu89
 }
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2021-10-08 12:33 Akinori Hattori
  0 siblings, 0 replies; 6+ messages in thread
From: Akinori Hattori @ 2021-10-08 12:33 UTC (permalink / raw
  To: gentoo-commits

commit:     1cddea63e92eb4d6acf7a633a84cfd17ad45dc26
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  8 12:31:31 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Fri Oct  8 12:31:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cddea63

app-editors/ng: update to EAPI 7

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-editors/ng/metadata.xml           |  8 ++++----
 app-editors/ng/ng-1.5_beta1-r3.ebuild | 33 ++++++++++++++++-----------------
 2 files changed, 20 insertions(+), 21 deletions(-)

diff --git a/app-editors/ng/metadata.xml b/app-editors/ng/metadata.xml
index 1d892a124fa..a94766977fa 100644
--- a/app-editors/ng/metadata.xml
+++ b/app-editors/ng/metadata.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="project">
-	<email>cjk@gentoo.org</email>
-	<name>Cjk</name>
-</maintainer>
+	<maintainer type="project">
+		<email>cjk@gentoo.org</email>
+		<name>Cjk</name>
+	</maintainer>
 </pkgmetadata>

diff --git a/app-editors/ng/ng-1.5_beta1-r3.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild
index 428dbda5a7d..9c71c540e8b 100644
--- a/app-editors/ng/ng-1.5_beta1-r3.ebuild
+++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI="7"
 
 inherit autotools toolchain-funcs
 
@@ -9,30 +9,29 @@ MY_P="${P/_beta/beta}"
 
 DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
 HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
-SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+SRC_URI="http://tt.sakura.ne.jp/~amura/archives/${PN}/${MY_P}.tar.gz"
 
 LICENSE="Emacs"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
 
-RDEPEND="
-	sys-libs/ncurses:0=
-	!dev-java/nailgun"
+RDEPEND="sys-libs/ncurses:0="
 DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
-	"${FILESDIR}/${MY_P}-ncurses.patch"
-	"${FILESDIR}/${MY_P}-configure.patch"
+	"${FILESDIR}"/${MY_P}-ncurses.patch
+	"${FILESDIR}"/${MY_P}-configure.patch
 )
 
 src_prepare() {
 	default
 
-	sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed"
-	pushd sys/unix > /dev/null || die
+	sed -i "/NO_BACKUP/s/undef/define/" config.h
+	cd sys/unix || die
+	mv configure.{in,ac} || die
 	eautoconf
-	popd > /dev/null || die
+	cd - >/dev/null || die
 	cp sys/unix/configure . || die
 }
 
@@ -45,20 +44,20 @@ src_compile() {
 }
 
 src_install() {
-	dobin ng
-	dodoc docs/* MANIFEST dot.ng
+	dobin ${PN}
+	dodoc docs/* MANIFEST dot.${PN}
 
-	insinto /usr/share/ng
+	insinto /usr/share/${PN}
 	doins bin/*
 
 	insinto /etc/skel
-	newins dot.ng .ng
+	newins {dot,}.${PN}
 }
 
 pkg_postinst() {
 	elog
 	elog "If you want to use user Config"
-	elog "cp /etc/skel/.ng ~/.ng"
-	elog "and edit your .ng configuration file."
+	elog "cp /etc/skel/.${PN} ~/.${PN}"
+	elog "and edit your .${PN} configuration file."
 	elog
 }


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2021-10-08 12:33 Akinori Hattori
  0 siblings, 0 replies; 6+ messages in thread
From: Akinori Hattori @ 2021-10-08 12:33 UTC (permalink / raw
  To: gentoo-commits

commit:     279064ccf66cd76b4ef8f2fb7d03db3b41d79655
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  8 12:33:10 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Fri Oct  8 12:33:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=279064cc

app-editors/ng: fix build with Clang

Closes: https://bugs.gentoo.org/729234
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-editors/ng/ng-1.5_beta1-r3.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-editors/ng/ng-1.5_beta1-r3.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild
index 9c71c540e8b..92a75d620f7 100644
--- a/app-editors/ng/ng-1.5_beta1-r3.ebuild
+++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="7"
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 MY_P="${P/_beta/beta}"
 
@@ -33,6 +33,11 @@ src_prepare() {
 	eautoconf
 	cd - >/dev/null || die
 	cp sys/unix/configure . || die
+	# written in K&R C
+	append-flags \
+		-Wno-implicit-function-declaration \
+		-Wno-implicit-int \
+		-Wno-return-type
 }
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2021-07-17 11:26 David Seifert
  0 siblings, 0 replies; 6+ messages in thread
From: David Seifert @ 2021-07-17 11:26 UTC (permalink / raw
  To: gentoo-commits

commit:     b4a092ae93c77cbc3aaa6071a326092abdab9a0e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 17 11:25:13 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jul 17 11:25:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a092ae

app-editors/ng: Remove app-i18n/canna

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../{ng-1.5_beta1-r2.ebuild => ng-1.5_beta1-r3.ebuild}   | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/app-editors/ng/ng-1.5_beta1-r2.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild
similarity index 86%
rename from app-editors/ng/ng-1.5_beta1-r2.ebuild
rename to app-editors/ng/ng-1.5_beta1-r3.ebuild
index f7b2c66ceb4..428dbda5a7d 100644
--- a/app-editors/ng/ng-1.5_beta1-r2.ebuild
+++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,22 +10,16 @@ MY_P="${P/_beta/beta}"
 DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
 HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
 SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="Emacs"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE="canna"
 
 RDEPEND="
 	sys-libs/ncurses:0=
-	!dev-java/nailgun
-	canna? ( app-i18n/canna )"
-
-DEPEND="
-	${RDEPEND}
-	sys-apps/sed"
-
-S="${WORKDIR}/${MY_P}"
+	!dev-java/nailgun"
+DEPEND="${RDEPEND}"
 
 PATCHES=(
 	"${FILESDIR}/${MY_P}-ncurses.patch"
@@ -43,7 +37,7 @@ src_prepare() {
 }
 
 src_configure() {
-	econf $(use_enable canna)
+	econf --disable-canna
 }
 
 src_compile() {


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2017-10-21 16:52 Patrice Clement
  0 siblings, 0 replies; 6+ messages in thread
From: Patrice Clement @ 2017-10-21 16:52 UTC (permalink / raw
  To: gentoo-commits

commit:     c0abfffd5b29c4197314b5ad9c5ad5df43823ed2
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 21 11:09:20 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Oct 21 16:51:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0abfffd

app-editors/ng: stable for amd64+x86.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 app-editors/ng/ng-1.5_beta1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-editors/ng/ng-1.5_beta1-r2.ebuild b/app-editors/ng/ng-1.5_beta1-r2.ebuild
index 637538b3379..fbb432af3cc 100644
--- a/app-editors/ng/ng-1.5_beta1-r2.ebuild
+++ b/app-editors/ng/ng-1.5_beta1-r2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
 
 LICENSE="Emacs"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="amd64 ppc x86"
 IUSE="canna"
 
 RDEPEND="


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/
@ 2017-10-21 16:52 Patrice Clement
  0 siblings, 0 replies; 6+ messages in thread
From: Patrice Clement @ 2017-10-21 16:52 UTC (permalink / raw
  To: gentoo-commits

commit:     e48ed28754c985523c9517d889570087fec22098
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 21 11:10:08 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Oct 21 16:51:33 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e48ed287

app-editors/ng: clean up old.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 app-editors/ng/ng-1.5_beta1-r1.ebuild | 63 -----------------------------------
 app-editors/ng/ng-1.5_beta1.ebuild    | 61 ---------------------------------
 2 files changed, 124 deletions(-)

diff --git a/app-editors/ng/ng-1.5_beta1-r1.ebuild b/app-editors/ng/ng-1.5_beta1-r1.ebuild
deleted file mode 100644
index 146cf88eda6..00000000000
--- a/app-editors/ng/ng-1.5_beta1-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils autotools
-
-MY_P="${P/_beta/beta}"
-
-DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
-HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
-SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
-
-LICENSE="Emacs"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="canna"
-
-RDEPEND=">=sys-libs/ncurses-5.0
-	!dev-java/nailgun
-	canna? ( app-i18n/canna )"
-DEPEND="${RDEPEND}
-	>=sys-apps/sed-4.0"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-	epatch "${FILESDIR}/${MY_P}-ncurses.patch"
-	epatch "${FILESDIR}/${MY_P}-configure.patch"
-	sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed"
-
-	pushd sys/unix || die
-	eautoconf
-	popd
-	cp sys/unix/configure . || die
-}
-
-src_configure() {
-	econf $(use_enable canna)
-}
-
-src_compile() {
-	emake CC="$(tc-getCC)"
-}
-
-src_install() {
-	dobin ng
-	dodoc docs/* MANIFEST dot.ng
-
-	insinto /usr/share/ng
-	doins bin/*
-
-	insinto /etc/skel
-	newins dot.ng .ng
-}
-
-pkg_postinst() {
-	elog
-	elog "If you want to use user Config"
-	elog "cp /etc/skel/.ng ~/.ng"
-	elog "and edit your .ng configuration file."
-	elog
-}

diff --git a/app-editors/ng/ng-1.5_beta1.ebuild b/app-editors/ng/ng-1.5_beta1.ebuild
deleted file mode 100644
index d2b72396575..00000000000
--- a/app-editors/ng/ng-1.5_beta1.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-inherit eutils toolchain-funcs
-
-MY_P=${P/_beta/beta}
-
-DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
-HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
-SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
-
-LICENSE="Emacs"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
-IUSE="canna"
-
-RDEPEND=">=sys-libs/ncurses-5.0
-	!dev-java/nailgun
-	canna? ( app-i18n/canna )"
-DEPEND="${RDEPEND}
-	>=sys-apps/sed-4.0"
-
-S="${WORKDIR}/${MY_P}"
-
-src_unpack() {
-	unpack ${A}
-	cd "${S}"
-	epatch "${FILESDIR}/${MY_P}-ncurses.patch"
-}
-
-src_compile() {
-	local myconf
-
-	if use canna; then
-		myconf="--enable-canna"
-	fi
-	econf ${myconf} || die
-	sed -i -e "s/^#undef NO_BACKUP/#define NO_BACKUP/" config.h \
-		|| die "sed failed"
-
-	emake CC=$(tc-getCC) || die
-}
-
-src_install() {
-	dobin ng || die
-	dodoc docs/* MANIFEST dot.ng
-
-	insinto /usr/share/ng
-	doins bin/*
-
-	insinto /etc/skel
-	newins dot.ng .ng
-}
-
-pkg_postinst() {
-	elog
-	elog "If you want to use user Config"
-	elog "cp /etc/skel/.ng ~/.ng"
-	elog "and edit your .ng configuration file."
-	elog
-}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-15 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-15 21:03 [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2021-10-08 12:33 Akinori Hattori
2021-10-08 12:33 Akinori Hattori
2021-07-17 11:26 David Seifert
2017-10-21 16:52 Patrice Clement
2017-10-21 16:52 Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox