pkgsrc/devel/tig/Makefile

51 lines
1.4 KiB
Makefile
Raw Normal View History

2017-01-04 19:06:59 +01:00
# $NetBSD: Makefile,v 1.15 2017/01/04 18:16:32 roy Exp $
DISTNAME= tig-1.2.1
2017-01-04 19:06:59 +01:00
PKGREVISION= 3
CATEGORIES= devel scm
MASTER_SITES= http://jonas.nitro.dk/tig/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jonas.nitro.dk/tig/
COMMENT= Ncurses-based GIT repository tool
Updated to latest release, 1.1. No changes other than updating patches to allow package to continue to work as previously packaged. +LICENSE; From NEWS: tig-1.1 ------- Incompatibilities: - Disable diff move/copy detection by default, boosting diff performance on larger projects. Use git config 'diff.renames' option (git-wide) to set your preferred behavior. Environment variable TIG_DIFF_OPTS can be used to restore the old behavior. - Values set for author-width and filename-width will result in widths one character bigger than previously. Improvements: - Typing a text in the prompt will be interpreted as a tig command. Prefixing the command with a '!' will execute this system command in an external pager. Entering a single key will execute the corresponding key binding. - Basic support for wrapping long line in pager, diff, and stage views. Enable using: `set wrap-lines = yes`. (GH #2) - User-defined commands prefixed with a '?' means prompt before execution. Example: `bind main B !?git rebase -i %(commit)`. - User-defined commands prefixed with a '<' means exit after execution. Example: `bind main C !<git commit`. (GH #66) - User-defined commands are executed unquoted to support shell commands. Example: `bind generic I !@sh -c "echo -n %(commit) | xclip -selection c"`. (GH #65) - Configure case-insensitive searches using: `set ignore-case = yes`. - Add "deleted mode" line type for better diff coloring. - Open editor when requesting edit action from within a file diff. - Update AX_WITH_CURSES to build under Cygwin. - Improve tigrc(5) documentation. (Debian #682766) - Allow to build on Mac OS 10.7 without the configure script. (GH #25) - Add option to split the view vertically instead of horizontally. Example: `set vertical-split = yes'. (GH #76) - Add 'show-id' and 'id-width' options to configure the display of commit IDs in the main view and ID width in the blame view. (GH #77) - Allow to override git-based encoding to UTF-8 by setting 'i18n.commitencoding' or 'gui.encoding'. - Improve autobuild support to track generated files and work with autoreconf 2.61. - Commit IDs are read from stdin when --stdin is given; works for main and diff view, e.g. `tig --no-walk --stdin < cherry-picks.txt`. - Add option to disable focusing of the child view when it's opened. Disable using: `set focus-child = no`. (GH #83) - Allow to open blob related with added content in a diff. (GH #91) Bug fixes: - Fix commit graph regression when a path spec is specified. (GH #53) - Main view: only show staged/unstaged changes for the current branch. - Support submodules created with current version of git. (GH #54) - Fix diff status message for file diffs with no content changes. - Fix parent blaming when tig is launched in subdirectory. (GH #70) - Do not show deleted branch when reloading the branch view. tig-1.0 ------- The master repository is git://github.com/jonas/tig.git, and the old master repository (http://jonas.nitro.dk/tig/tig.git) will be retired. Improvements: - Use git-log(1)s default commit ordering. The old behavior can be restored by adding `set commit-order = topo` to ~/.tigrc. - Support staging of single lines. Bound to '1' default. (GH #21) - Use +<lineno> to open the initial view at an arbitrary line. (GH #20) - Add show-notes ~/.tigrc option. Notes are displayed by default. - Support jumping to specific SHAs in the main view. - Decorate replaced commits. - Display line numbers in main view. - Colorize binary diff stats. (GH #17) - Custom colorization of lines matching a string prefix (GH #16). Example configuration: color "Reported-by:" green default - Use git's color settings for the main, status and diff views. Put `set read-git-colors = no` in ~/.tigrc to disable. - Handle editor options with multiple arguments. (GH #12) - Show filename when running tig blame with copy detection. (GH #19) - Use 'source <path>' command to load additional files from ~/.tigrc - User-defined commands prefixed with '@' are run with no console output, e.g. bind generic 3 !@rm sys$command - Make display of space changes togglable in the diff and stage view. Bound to 'W' by default. - Use per-file encoding specified in gitattributes(5) for blobs and unstaged files. - Obsolete commit-encoding option and pass --encoding=UTF-8 to revision commands. - Main view: show uncommitted changes as staged/unstaged commits. Can be disabled by putting `set show-changes = no` in ~/.tigrc. - Add %(prompt) external command variable, which will prompt for the argument value. - Log information about git commands when the TIG_TRACE environment variable is set. Example: `TIG_TRACE=/tmp/tig.log tig` - Branch view: Show the title of the last commit. - Increase the author auto-abbreviation threshold to 10. (GH #49) - For old commits show number of years in relative dates. (GH #50) Bug fixes: - Fix navigation behavior when going from branch to main view. (GH #38) - Fix segfault when sorting the tree view by author name. - Fix diff stat navigation for unmodified files with stat changes. - Show branches/refs which names are a substring of the current branch. - Stage view: fix off-by-one error when jumping to a file in a diff with only one file. - Fix diff-header colorization. (GH #15) tig-0.18 -------- Incompatibilities: - Remove support for the deprecated TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD environment variables. Improvements: - Pressing enter on diff stat file lines will jump to file's diff. - Naïvely color blame IDs to distinguish lines. - Document palette color options used for revision graph and blame IDs. - Add support for blaming diff lines. - Add diff-context option and bindings to increase the diff context in the diff and stage view. - (GH-6) Make blame configurable via extra options passed from the command line and blame-options setting from ~/.tigrc. For example: set blame-options = -C -C -C Bug fixes: - Expand browsing state variables for prompt. (LP #694780, Debian #635546) - Fix segfault when sorting the branch view by author. - Expand %(directory) to . for the root directory. (GH-3) - Accept 'utf-8' for the line-graphics option as indicated in the docs. - Use erasechar() to check for the correct backspace character.
2013-07-03 02:41:14 +02:00
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
DEPENDS+= git-base-[0-9]*:../../devel/git-base
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
2017-01-04 19:06:59 +01:00
FAKE_NCURSES= yes
Update to tig-0.12.1. Changes: tig-0.12.1 ---------- Improvements: * Status view: revert uncommitted diff chunks and unstaged files with changes. Bound to ! by default. * Main view: use --topo-order also when rev-list arguments are given on the command line. * Log view: support for refreshing. Bug fixes: * Status view: use ls-files' --exclude-standard so user specific ignore rules are effective. The option was added in git version 1.5.4. * Stage view: fix assertion failure triggered when updating while status view is not displayed. * Help view: avoid confusion by showing "(no key)" instead of "?" for unbound requests. * Reload repository references when refreshing the main (and log) view. * Do not maximize views when refreshing. tig-0.12 -------- Improvements: * F5 also refreshes the current view. * Allow line graphics to be disabled with new line-graphics option. * Main view: also include the reference names when searching. * Main view: support for refreshing. * Main view: disable boundary commits by default. Use --boundary when they should be shown. (Debian bug 498628) * Stage view: add stage-next action to jump to next diff chunk that can be staged. By default bound to @. * Configure: check for the ncurses header files. * Add author-width option to costumize the width of the author column. For example, put the following in ~/.tigrc: set author-width = 10 Bug fixes: * Fix regression when staging all diff chunks in a section. * Bind the maximize view action to O; it conflicted with the keybinding to launch the merge tool in the status view. * Fix problem with $(cmd) usage in shell code. Some shells (jsh) installed as /bin/sh does not support it. * Do not show incomplete boundary commits when --no-walk is used. * Documentation: Rename gitlink macro to support AsciiDoc 8.2.3. * Ignore pipe reads with errno "Success" reported after a signals, for example when refreshing doing background loading. tig-0.11 -------- Incompatibilities: * Remove parsing of deprecated options: -g, -l, -d. * The first seen -- will stop option parsing and is passed to git instead of breaking out of tig's option parsing. New features: * Blame view; bound to B by default, reachable from the command line and the tree, status, and stage views. * Blame/main view: allow display of date, author, and references to be toggled on/off. Bound to D, A, and F respectively. * Add action to maximize the current view. Improvements: * Show the current branch in the status view. * Show local/light-weight tags. Bug fixes: * Fix regressions for the pager mode. * Fix refreshing of the index with working directory info.
2008-11-08 11:44:12 +01:00
CONF_FILES= ${EGDIR}/tigrc ${PKG_SYSCONFDIR}/tigrc
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
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}
.include "../../mk/bsd.prefs.mk"
.if !empty(GLIBC_VERSION)
# Some version of glibc requires _XOPEN_SOURCE being defined to
# provide S_IFMT in <sys/stat.h>
CFLAGS+= -D_XOPEN_SOURCE
# It is also required to define _BSD_SOURCE to get struct timezone
# defined in <sys/time.h>
CFLAGS+= -D_BSD_SOURCE
.endif
BUILD_TARGET= all doc
INSTALL_TARGET= install install-doc
Update to tig-0.12.1. Changes: tig-0.12.1 ---------- Improvements: * Status view: revert uncommitted diff chunks and unstaged files with changes. Bound to ! by default. * Main view: use --topo-order also when rev-list arguments are given on the command line. * Log view: support for refreshing. Bug fixes: * Status view: use ls-files' --exclude-standard so user specific ignore rules are effective. The option was added in git version 1.5.4. * Stage view: fix assertion failure triggered when updating while status view is not displayed. * Help view: avoid confusion by showing "(no key)" instead of "?" for unbound requests. * Reload repository references when refreshing the main (and log) view. * Do not maximize views when refreshing. tig-0.12 -------- Improvements: * F5 also refreshes the current view. * Allow line graphics to be disabled with new line-graphics option. * Main view: also include the reference names when searching. * Main view: support for refreshing. * Main view: disable boundary commits by default. Use --boundary when they should be shown. (Debian bug 498628) * Stage view: add stage-next action to jump to next diff chunk that can be staged. By default bound to @. * Configure: check for the ncurses header files. * Add author-width option to costumize the width of the author column. For example, put the following in ~/.tigrc: set author-width = 10 Bug fixes: * Fix regression when staging all diff chunks in a section. * Bind the maximize view action to O; it conflicted with the keybinding to launch the merge tool in the status view. * Fix problem with $(cmd) usage in shell code. Some shells (jsh) installed as /bin/sh does not support it. * Do not show incomplete boundary commits when --no-walk is used. * Documentation: Rename gitlink macro to support AsciiDoc 8.2.3. * Ignore pipe reads with errno "Success" reported after a signals, for example when refreshing doing background loading. tig-0.11 -------- Incompatibilities: * Remove parsing of deprecated options: -g, -l, -d. * The first seen -- will stop option parsing and is passed to git instead of breaking out of tig's option parsing. New features: * Blame view; bound to B by default, reachable from the command line and the tree, status, and stage views. * Blame/main view: allow display of date, author, and references to be toggled on/off. Bound to D, A, and F respectively. * Add action to maximize the current view. Improvements: * Show the current branch in the status view. * Show local/light-weight tags. Bug fixes: * Fix regressions for the pager mode. * Fix refreshing of the index with working directory info.
2008-11-08 11:44:12 +01:00
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR} && \
${INSTALL_DATA} ${WRKSRC}/contrib/tigrc ${DESTDIR}/${EGDIR}
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"