summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/gnuit')
-rw-r--r--app-misc/gnuit/Manifest1
-rw-r--r--app-misc/gnuit/files/gnuit-4.9.5-format-security.patch16
-rw-r--r--app-misc/gnuit/gnuit-4.9.5-r2.ebuild39
-rw-r--r--app-misc/gnuit/metadata.xml5
4 files changed, 61 insertions, 0 deletions
diff --git a/app-misc/gnuit/Manifest b/app-misc/gnuit/Manifest
new file mode 100644
index 00000000000..8e1df282337
--- /dev/null
+++ b/app-misc/gnuit/Manifest
@@ -0,0 +1 @@
+DIST gnuit-4.9.5.tar.gz 894362 SHA256 6b6e96db13bafa5ad35c735b2277699d4244088c709a3e134fb1a3e8c8a8557c SHA512 91f1a86f45d5a2fab91941587aed3c1e57ae68271584bef38560c9a31fabbdfeba801d87cdf5640ba9f2041e43305e49c64953b8d5370f3f6a463b2fa2a7c5da WHIRLPOOL 45c9539fb1bcc8bb985b0d63ae24c7be50773cbddb81b986d48a3b9f290fcf3ca4649eda3d830beafe0c2b854a82e7b90d3082231a8e401643cc3fa6d59af18b
diff --git a/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch b/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch
new file mode 100644
index 00000000000..ec2a1c51fdb
--- /dev/null
+++ b/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch
@@ -0,0 +1,16 @@
+ src/git.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/git.c b/src/git.c
+index c6040b2..595912d 100644
+--- a/src/git.c
++++ b/src/git.c
+@@ -1917,7 +1917,7 @@ main(argc, argv)
+ printf("%s %s (%s)\n", PRODUCT, VERSION, HOST);
+ #endif /* !HAVE_GCC */
+
+- printf(copyright);
++ printf("%s", copyright);
+
+ #ifdef DEBIAN
+ add_to_environment("GIT_EDITOR", "EDITOR", "sensible-editor");
diff --git a/app-misc/gnuit/gnuit-4.9.5-r2.ebuild b/app-misc/gnuit/gnuit-4.9.5-r2.ebuild
new file mode 100644
index 00000000000..b7df33cc026
--- /dev/null
+++ b/app-misc/gnuit/gnuit-4.9.5-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="GNU Interactive Tools - increase speed and efficiency of most daily tasks"
+HOMEPAGE="http://www.gnu.org/software/gnuit/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format-security.patch
+}
+
+src_configure() {
+ # The transition option controls whether a "git" wrapper is installed, it is
+ # disabled explicitly so we don't need to block on dev-vcs/git.
+ econf --disable-transition
+}
+
+src_install() {
+ default
+ #emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}/html" install
+ mv "${D}/usr/bin/gitview" "${D}/usr/bin/gnuitview" || die
+}
+
+pkg_postinst() {
+ elog "The 'git' tool this package previously installed is now called 'gitfm'"
+ elog "The 'gitview' tool this package previously installed is now called 'gnuitview'"
+ elog "If you want the 'gitaction' tool to use your preferred desktop"
+ elog "application settings install the 'x11-misc/xdg-utils' package."
+}
diff --git a/app-misc/gnuit/metadata.xml b/app-misc/gnuit/metadata.xml
new file mode 100644
index 00000000000..40149c99556
--- /dev/null
+++ b/app-misc/gnuit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>