[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2022-10-17 Thread Sam James
commit: 1c2a64e312456d610a78c1c0f7ed463488e06bb1
Author: Sam James  gentoo  org>
AuthorDate: Tue Oct 18 02:24:44 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Oct 18 02:28:00 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c2a64e3

app-editors/leafpad: add savannah-nongnu upstream metadata

Signed-off-by: Sam James  gentoo.org>

 app-editors/leafpad/metadata.xml | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/app-editors/leafpad/metadata.xml b/app-editors/leafpad/metadata.xml
index 29f6abd3c713..00dd62d025d7 100644
--- a/app-editors/leafpad/metadata.xml
+++ b/app-editors/leafpad/metadata.xml
@@ -1,8 +1,11 @@
 
 https://www.gentoo.org/dtd/metadata.dtd";>
 
-   
-   
-   Enable Emacs key theme
-   
+  
+  
+Enable Emacs key theme
+  
+  
+leafpad
+  
 



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2020-06-19 Thread Pacho Ramos
commit: 275e7ddc63402699711a1a625083e4317a5622c6
Author: Pacho Ramos  gentoo  org>
AuthorDate: Fri Jun 19 17:21:31 2020 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Fri Jun 19 17:21:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275e7ddc

app-editors/leafpad: Drop old

Closes: https://bugs.gentoo.org/726422
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Pacho Ramos  gentoo.org>

 app-editors/leafpad/leafpad-0.8.18.1.ebuild | 44 -
 1 file changed, 44 deletions(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
deleted file mode 100644
index 9497f53825f..000
--- a/app-editors/leafpad/leafpad-0.8.18.1.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit gnome2-utils xdg-utils
-
-DESCRIPTION="A simple GTK2 text editor"
-HOMEPAGE="http://tarot.freeshell.org/leafpad/";
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
-IUSE="emacs"
-
-RDEPEND="virtual/libintl
-   x11-libs/gtk+:2"
-DEPEND="${RDEPEND}
-   dev-util/intltool
-   sys-devel/gettext
-   virtual/pkgconfig"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-fdo.patch
-   "${FILESDIR}"/${P}-format-security.patch
-)
-
-src_configure() {
-   econf \
-   --enable-chooser \
-   --enable-print \
-   $(use_enable emacs)
-}
-
-pkg_postinst() {
-   xdg_desktop_database_update
-   gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-   xdg_desktop_database_update
-   gnome2_icon_cache_update
-}



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2020-05-21 Thread Agostino Sarubbo
commit: 444fc72496e13b1330f641e966c6ba1011ba9d0e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu May 21 09:04:54 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu May 21 09:04:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=444fc724

app-editors/leafpad: x86 stable wrt bug #724322

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
index 1cb4c8b6521..c53c582660b 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
 IUSE="emacs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2020-05-21 Thread Agostino Sarubbo
commit: 1403896e93e3c731d8afaf1747e413c44c8407e1
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu May 21 09:02:34 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu May 21 09:02:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1403896e

app-editors/leafpad: amd64 stable wrt bug #724322

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
index aacccf082f7..1cb4c8b6521 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,7 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="emacs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2019-02-15 Thread Andreas Sturmlechner
commit: 4e1ea675b2a75d06c0fdf8f24bc8c6847eb60f83
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Feb 15 21:16:57 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Feb 15 23:07:32 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e1ea675

app-editors/leafpad: Switch from gnome2-utils to xdg, EAPI-7 bump

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild | 30 ++
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
index e1af082f793..aacccf082f7 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit gnome2-utils xdg-utils
+EAPI=7
 
-DESCRIPTION="A simple GTK2 text editor"
+inherit xdg
+
+DESCRIPTION="Simple GTK2 text editor"
 HOMEPAGE="http://tarot.freeshell.org/leafpad/";
 SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
 
@@ -13,15 +14,16 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="emacs"
 
-RDEPEND="
-   virtual/libintl
-   x11-libs/gtk+:2
-"
-DEPEND="${RDEPEND}
+BDEPEND="
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig
 "
+DEPEND="
+   virtual/libintl
+   x11-libs/gtk+:2
+"
+RDEPEND="${DEPEND}"
 
 PATCHES=(
"${FILESDIR}"/${P}-fdo.patch
@@ -37,13 +39,3 @@ src_configure() {
--enable-print \
$(use_enable emacs)
 }
-
-pkg_postinst() {
-   xdg_desktop_database_update
-   gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-   xdg_desktop_database_update
-   gnome2_icon_cache_update
-}



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/, app-editors/leafpad/files/

2018-10-20 Thread Pacho Ramos
commit: 2a58c0bbe20e4e31e68f826fa0197deb7ea91f9a
Author: Pacho Ramos  gentoo  org>
AuthorDate: Sat Oct 20 16:45:59 2018 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Sat Oct 20 16:53:18 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a58c0bb

app-editors/leafpad: Fix truncation bug (#657462 by Alexander Kurakin)

Closes: https://bugs.gentoo.org/657462
Signed-off-by: Pacho Ramos  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../leafpad/files/leafpad-0.8.18.1-truncate.patch  | 20 +
 app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild | 49 ++
 2 files changed, 69 insertions(+)

diff --git a/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch 
b/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch
new file mode 100644
index 000..872792199c8
--- /dev/null
+++ b/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch
@@ -0,0 +1,20 @@
+diff --git a/src/file.c b/src/file.c
+index 5e44a43..4c90a37 100644
+--- a/src/file.c
 b/src/file.c
+@@ -190,6 +190,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
+   gtk_text_buffer_get_start_iter(buffer, &start);
+   gtk_text_buffer_get_end_iter(buffer, &end); 
+   str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
++  gtk_text_buffer_set_modified(buffer, FALSE);
+   
+   switch (fi->lineend) {
+   case CR:
+@@ -229,7 +230,6 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
+   return -1;
+   }
+   
+-  gtk_text_buffer_set_modified(buffer, FALSE);
+   fclose(fp);
+   g_free(cstr);
+   

diff --git a/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
new file mode 100644
index 000..e1af082f793
--- /dev/null
+++ b/app-editors/leafpad/leafpad-0.8.18.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils xdg-utils
+
+DESCRIPTION="A simple GTK2 text editor"
+HOMEPAGE="http://tarot.freeshell.org/leafpad/";
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="emacs"
+
+RDEPEND="
+   virtual/libintl
+   x11-libs/gtk+:2
+"
+DEPEND="${RDEPEND}
+   dev-util/intltool
+   sys-devel/gettext
+   virtual/pkgconfig
+"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-fdo.patch
+   "${FILESDIR}"/${P}-format-security.patch
+
+   # https://bugs.gentoo.org/657462
+   "${FILESDIR}"/${P}-truncate.patch
+)
+
+src_configure() {
+   econf \
+   --enable-chooser \
+   --enable-print \
+   $(use_enable emacs)
+}
+
+pkg_postinst() {
+   xdg_desktop_database_update
+   gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+   xdg_desktop_database_update
+   gnome2_icon_cache_update
+}



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/files/, app-editors/leafpad/

2018-04-04 Thread Andreas Sturmlechner
commit: 30dfb5a7e6af038f1a153672439e72d68247a5bf
Author: Marty E. Plummer  startmail  com>
AuthorDate: Wed Apr  4 02:02:25 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Apr  4 23:02:58 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30dfb5a7

app-editors/leafpad: fdo-mime -> xdg-utils

Also bumped EAPI to 6 and replaced eutils/epatch with a PATCHES=()
array, reformatted patches to apply.

Package-Manager: Portage-2.3.27, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/7798

 app-editors/leafpad/files/leafpad-0.8.18.1-fdo.patch |  4 ++--
 .../files/leafpad-0.8.18.1-format-security.patch |  8 
 app-editors/leafpad/leafpad-0.8.18.1.ebuild  | 20 ++--
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/app-editors/leafpad/files/leafpad-0.8.18.1-fdo.patch 
b/app-editors/leafpad/files/leafpad-0.8.18.1-fdo.patch
index f978275ce39..6aaf4352632 100644
--- a/app-editors/leafpad/files/leafpad-0.8.18.1-fdo.patch
+++ b/app-editors/leafpad/files/leafpad-0.8.18.1-fdo.patch
@@ -5,8 +5,8 @@ does not have a semicolon (';') as trailing character
 
 leafpad.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
 
 data/leafpad.desktop.in
-+++ data/leafpad.desktop.in
+--- a/data/leafpad.desktop.in
 b/data/leafpad.desktop.in
 @@ -1,10 +1,9 @@
  [Desktop Entry]
 -Encoding=UTF-8

diff --git a/app-editors/leafpad/files/leafpad-0.8.18.1-format-security.patch 
b/app-editors/leafpad/files/leafpad-0.8.18.1-format-security.patch
index 07f1e2ee111..4ea3b39fde0 100644
--- a/app-editors/leafpad/files/leafpad-0.8.18.1-format-security.patch
+++ b/app-editors/leafpad/files/leafpad-0.8.18.1-format-security.patch
@@ -1,7 +1,7 @@
 - dialog.c:39:3: error: format not a string literal and no format arguments 
[-Werror=format-security]
 
 src/dialog.c
-+++ src/dialog.c
+--- a/src/dialog.c
 b/src/dialog.c
 @@ -36,6 +36,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
type,
@@ -18,8 +18,8 @@
str);
gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
gtk_dialog_add_buttons(GTK_DIALOG(dialog),
 src/gtkprint.c
-+++ src/gtkprint.c
+--- a/src/gtkprint.c
 b/src/gtkprint.c
 @@ -165,6 +165,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,

diff --git a/app-editors/leafpad/leafpad-0.8.18.1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
index da4ae0fc45e..e2044fce540 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils fdo-mime gnome2-utils
+EAPI=6
+
+inherit gnome2-utils xdg-utils
 
 DESCRIPTION="A simple GTK2 text editor"
 HOMEPAGE="http://tarot.freeshell.org/leafpad/";
@@ -22,11 +23,10 @@ DEPEND="${RDEPEND}
 
 DOCS="AUTHORS ChangeLog NEWS README"
 
-src_prepare() {
-   epatch \
-   "${FILESDIR}"/${P}-fdo.patch \
-   "${FILESDIR}"/${P}-format-security.patch
-}
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.8.18.1-fdo.patch
+   "${FILESDIR}"/${PN}-0.8.18.1-format-security.patch
+)
 
 src_configure() {
econf \
@@ -40,11 +40,11 @@ pkg_preinst() {
 }
 
 pkg_postinst() {
-   fdo-mime_desktop_database_update
+   xdg_desktop_database_update
gnome2_icon_cache_update
 }
 
 pkg_postrm() {
-   fdo-mime_desktop_database_update
+   xdg_desktop_database_update
gnome2_icon_cache_update
 }



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2018-04-04 Thread Andreas Sturmlechner
commit: 7a9421d59d1ae4c7a5d1879a075e46ca040b5ee7
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Apr  4 22:00:15 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Apr  4 23:02:58 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a9421d5

app-editors/leafpad: Drop unnecessary gnome2_icon_savelist, DOCS

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 app-editors/leafpad/leafpad-0.8.18.1.ebuild | 10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
index e2044fce540..9497f53825f 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
@@ -21,11 +21,9 @@ DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"
 
-DOCS="AUTHORS ChangeLog NEWS README"
-
 PATCHES=(
-   "${FILESDIR}"/${PN}-0.8.18.1-fdo.patch
-   "${FILESDIR}"/${PN}-0.8.18.1-format-security.patch
+   "${FILESDIR}"/${P}-fdo.patch
+   "${FILESDIR}"/${P}-format-security.patch
 )
 
 src_configure() {
@@ -35,10 +33,6 @@ src_configure() {
$(use_enable emacs)
 }
 
-pkg_preinst() {
-   gnome2_icon_savelist
-}
-
 pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2017-01-29 Thread Fabian Groffen
commit: 6dcf73674193aa63c9faff531531fbba976ff09a
Author: Fabian Groffen  gentoo  org>
AuthorDate: Sun Jan 29 14:34:05 2017 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Sun Jan 29 14:38:14 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dcf7367

app-editors/leafpad: dropped ~x86-interix

Package-Manager: portage-2.3.3

 app-editors/leafpad/leafpad-0.8.18.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-editors/leafpad/leafpad-0.8.18.1.ebuild 
b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
index a2a995e..1975642 100644
--- a/app-editors/leafpad/leafpad-0.8.18.1.ebuild
+++ b/app-editors/leafpad/leafpad-0.8.18.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -11,7 +11,7 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~x86-interix ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
 IUSE="emacs"
 
 RDEPEND="virtual/libintl



[gentoo-commits] repo/gentoo:master commit in: app-editors/leafpad/

2016-08-19 Thread Pacho Ramos
commit: abee75b9841b889fa2d8fcdef540f052e93525e4
Author: Pacho Ramos  gentoo  org>
AuthorDate: Fri Aug 19 13:18:09 2016 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Fri Aug 19 13:20:50 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abee75b9

app-editors/leafpad: Cleanup due to bug #143241

Package-Manager: portage-2.3.0

 app-editors/leafpad/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/app-editors/leafpad/metadata.xml b/app-editors/leafpad/metadata.xml
index 0c9c31e..8456173 100644
--- a/app-editors/leafpad/metadata.xml
+++ b/app-editors/leafpad/metadata.xml
@@ -1,10 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd";>
 
-   
-   tris...@gentoo.org
-   Tristan Heaven
-   

Enable Emacs key theme