pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/tig Import tig-0.9.1. Blurb:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4ea4590272e
branches:  trunk
changeset: 535399:c4ea4590272e
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Fri Nov 16 07:41:11 2007 +0000

description:
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:

 devel/tig/DESCR            |   8 ++++++++
 devel/tig/Makefile         |  33 +++++++++++++++++++++++++++++++++
 devel/tig/PLIST            |   9 +++++++++
 devel/tig/distinfo         |   9 +++++++++
 devel/tig/patches/patch-aa |  15 +++++++++++++++
 devel/tig/patches/patch-ab |  13 +++++++++++++
 devel/tig/patches/patch-ac |  37 +++++++++++++++++++++++++++++++++++++
 devel/tig/patches/patch-ad |  12 ++++++++++++
 8 files changed, 136 insertions(+), 0 deletions(-)

diffs (168 lines):

diff -r 03d2e6dd2375 -r c4ea4590272e devel/tig/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/DESCR   Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/Makefile        Fri Nov 16 07:41:11 2007 +0000
@@ -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@localhost
+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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/PLIST   Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/distinfo        Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-aa        Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-ab        Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-ac        Fri Nov 16 07:41:11 2007 +0000
@@ -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 -r 03d2e6dd2375 -r c4ea4590272e devel/tig/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-ad        Fri Nov 16 07:41:11 2007 +0000
@@ -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
+ ------------------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index