summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorbjs <bjs>2007-11-16 07:41:11 +0000
committerbjs <bjs>2007-11-16 07:41:11 +0000
commit1c0822e645a49662e5b7b8e8f3084d7095bb3886 (patch)
tree22a100c826d6813b7c10ab404cf3af093691b765 /devel
parentb0f732a04417d58ae67501cbfc067eef845891cf (diff)
downloadpkgsrc-1c0822e645a49662e5b7b8e8f3084d7095bb3886.tar.gz
Import tig-0.9.1. Blurb:
Tig is a git repository browser that additionally can act as a pager for output from various git commands. When browsing repositories, it uses the underlying git commands to present the user with various views, such as summarized revision log and showing the commit with the log message, diffstat, and the diff. Using it as a pager, it will display input from stdin and colorize it.
Diffstat (limited to 'devel')
-rw-r--r--devel/tig/DESCR8
-rw-r--r--devel/tig/Makefile33
-rw-r--r--devel/tig/PLIST9
-rw-r--r--devel/tig/distinfo9
-rw-r--r--devel/tig/patches/patch-aa15
-rw-r--r--devel/tig/patches/patch-ab13
-rw-r--r--devel/tig/patches/patch-ac37
-rw-r--r--devel/tig/patches/patch-ad12
8 files changed, 136 insertions, 0 deletions
diff --git a/devel/tig/DESCR b/devel/tig/DESCR
new file mode 100644
index 00000000000..328bb1baa88
--- /dev/null
+++ b/devel/tig/DESCR
@@ -0,0 +1,8 @@
+Tig is a git repository browser that additionally can act as a pager for
+output from various git commands.
+
+When browsing repositories, it uses the underlying git commands to present
+the user with various views, such as summarized revision log and showing
+the commit with the log message, diffstat, and the diff.
+
+Using it as a pager, it will display input from stdin and colorize it.
diff --git a/devel/tig/Makefile b/devel/tig/Makefile
new file mode 100644
index 00000000000..e60fbde71e9
--- /dev/null
+++ b/devel/tig/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+#
+
+DISTNAME= tig-0.9.1
+CATEGORIES= devel scm
+MASTER_SITES= http://jonas.nitro.dk/tig/releases/
+
+MAINTAINER= bjs@NetBSD.org
+HOMEPAGE= http://jonas.nitro.dk/tig/
+COMMENT= Ncurses-based GIT repository tool
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
+BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
+DEPENDS+= scmgit-[0-9]*:../../devel/scmgit
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake
+USE_NCURSES= yes
+
+GIT_CONFIG= ${PREFIX}/bin/git-config
+CONFIGURE_ENV+= GIT_CONFIG=${GIT_CONFIG:Q}
+
+CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
+CONFIGURE_ARGS.gnu-iconv= --with-libiconv=${BUILDLINK_PREFIX.iconv}
+
+BUILD_TARGET= all doc
+INSTALL_TARGET= install install-doc
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/tig/PLIST b/devel/tig/PLIST
new file mode 100644
index 00000000000..55e27a8c031
--- /dev/null
+++ b/devel/tig/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+bin/tig
+man/man1/tig.1
+man/man5/tigrc.5
+share/doc/tig/README.html
+share/doc/tig/manual.html
+share/doc/tig/tig.1.html
+share/doc/tig/tigrc.5.html
+@dirrm share/doc/tig
diff --git a/devel/tig/distinfo b/devel/tig/distinfo
new file mode 100644
index 00000000000..ec29a918f1a
--- /dev/null
+++ b/devel/tig/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+
+SHA1 (tig-0.9.1.tar.gz) = 15ba19a8114ad589f8b370f86bf6878b1e6d378d
+RMD160 (tig-0.9.1.tar.gz) = f6bb7b52b83d4428e0fe9f85039d65fe5f056393
+Size (tig-0.9.1.tar.gz) = 100039 bytes
+SHA1 (patch-aa) = 0c0ee454f8d2e7dfad6ed5fa83eeb00adc16da77
+SHA1 (patch-ab) = c27ccfe5169cb911ede50159e459169fa760c2f8
+SHA1 (patch-ac) = ae186a0611244326392b01022222872b3b569f7d
+SHA1 (patch-ad) = eca9e88286bbe3d3d675465f28f53e95062e716a
diff --git a/devel/tig/patches/patch-aa b/devel/tig/patches/patch-aa
new file mode 100644
index 00000000000..254794dd6ea
--- /dev/null
+++ b/devel/tig/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+
+Don't make/install PDF.
+
+--- Makefile.orig 2007-09-29 17:16:27.000000000 -0400
++++ Makefile
+@@ -37,7 +37,7 @@ DFLAGS = -g -DDEBUG -Werror
+ PROGS = tig
+ MANDOC = tig.1 tigrc.5
+ HTMLDOC = tig.1.html tigrc.5.html manual.html README.html
+-ALLDOC = $(MANDOC) $(HTMLDOC) manual.html-chunked manual.pdf
++ALLDOC = $(MANDOC) $(HTMLDOC) manual.html-chunked
+
+ # Never include the release number in the tarname for tagged
+ # versions.
diff --git a/devel/tig/patches/patch-ab b/devel/tig/patches/patch-ab
new file mode 100644
index 00000000000..8e5fea391b5
--- /dev/null
+++ b/devel/tig/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+
+--- manual.txt.orig 2007-09-29 17:16:27.000000000 -0400
++++ manual.txt
+@@ -343,6 +343,8 @@ u Update status of file. In the status v
+ M Resolve unmerged file by launching git-mergetool(1). Note, to work \
+ correctly this might require some initial configuration of your \
+ preferred merge tool. See the manpage of git-mergetool(1).
++',' Move tree view to the parent tree.
++e Open file in editor.
+ -----------------------------------------------------------------------------
+
+ [[refspec]]
diff --git a/devel/tig/patches/patch-ac b/devel/tig/patches/patch-ac
new file mode 100644
index 00000000000..9712f21699c
--- /dev/null
+++ b/devel/tig/patches/patch-ac
@@ -0,0 +1,37 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+
+--- tig.c.orig 2007-11-16 01:48:58.000000000 -0500
++++ tig.c
+@@ -353,6 +353,7 @@ sq_quote(char buf[SIZEOF_STR], size_t bu
+ REQ_(TOGGLE_REV_GRAPH, "Toggle revision graph visualization"), \
+ REQ_(STATUS_UPDATE, "Update file status"), \
+ REQ_(STATUS_MERGE, "Merge file using external tool"), \
++ REQ_(TREE_PARENT, "Switch to parent directory in tree view"), \
+ REQ_(EDIT, "Open in editor"), \
+ REQ_(CHERRY_PICK, "Cherry-pick commit to current branch")
+
+@@ -790,6 +791,7 @@ static struct keybinding default_keybind
+ { ':', REQ_PROMPT },
+ { 'u', REQ_STATUS_UPDATE },
+ { 'M', REQ_STATUS_MERGE },
++ { ',', REQ_TREE_PARENT },
+ { 'e', REQ_EDIT },
+ { 'C', REQ_CHERRY_PICK },
+
+@@ -2861,6 +2863,16 @@ tree_request(struct view *view, enum req
+ {
+ enum open_flags flags;
+
++ if (request == REQ_TREE_PARENT) {
++ if (*opt_path) {
++ /* fake 'cd ..' */
++ request = REQ_ENTER;
++ line = &view->line[1];
++ } else {
++ /* quit view if at top of tree */
++ return REQ_VIEW_CLOSE;
++ }
++ }
+ if (request != REQ_ENTER)
+ return request;
+
diff --git a/devel/tig/patches/patch-ad b/devel/tig/patches/patch-ad
new file mode 100644
index 00000000000..67fe7ddeed4
--- /dev/null
+++ b/devel/tig/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1.1.1 2007/11/16 07:41:11 bjs Exp $
+
+--- tigrc.5.txt.orig 2007-11-16 01:48:58.000000000 -0500
++++ tigrc.5.txt
+@@ -234,6 +234,7 @@ toggle-lineno Toggle line numbers
+ toggle-rev-graph Toggle revision graph visualization
+ status-update Update file status
+ status-merge Resolve unmerged file
++tree-parent Switch to parent directory in tree view
+ edit Open in editor
+ cherry-pick Cherry-pick commit to current branch
+ ------------------------------------------------------------------------------