diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-21T10·03+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-09-21T11·29+0300 |
commit | 43b1791ec601732ac31195df96781a848360a9ac (patch) | |
tree | daae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/gitk-git/Makefile | |
parent | 2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff) |
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping it in sync with cgit would be easier this way, but it has proven not to be a big issue. On the other hand, a vendored copy of git is an annoying maintenance burden. It is much easier to rebase the single (dottime) patch that we have. This removes the vendored copy of git and instead passes the git source code to cgit via `pkgs.srcOnly`, which includes the applied patch so that cgit can continue rendering dottime. Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/gitk-git/Makefile')
-rw-r--r-- | third_party/git/gitk-git/Makefile | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/third_party/git/gitk-git/Makefile b/third_party/git/gitk-git/Makefile deleted file mode 100644 index 5bdd52a6ebfa..000000000000 --- a/third_party/git/gitk-git/Makefile +++ /dev/null @@ -1,80 +0,0 @@ -# The default target of this Makefile is... -all:: - -prefix ?= $(HOME) -bindir ?= $(prefix)/bin -sharedir ?= $(prefix)/share -gitk_libdir ?= $(sharedir)/gitk/lib -msgsdir ?= $(gitk_libdir)/msgs -msgsdir_SQ = $(subst ','\'',$(msgsdir)) - -TCL_PATH ?= tclsh -TCLTK_PATH ?= wish -INSTALL ?= install -RM ?= rm -f - -DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) -bindir_SQ = $(subst ','\'',$(bindir)) -TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH)) - -### Detect Tck/Tk interpreter path changes -TRACK_TCLTK = $(subst ','\'',-DTCLTK_PATH='$(TCLTK_PATH_SQ)') - -GIT-TCLTK-VARS: FORCE - @VARS='$(TRACK_TCLTK)'; \ - if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \ - echo 1>&2 " * new Tcl/Tk interpreter location"; \ - echo "$$VARS" >$@; \ - fi - -## po-file creation rules -XGETTEXT ?= xgettext -ifdef NO_MSGFMT - MSGFMT ?= $(TCL_PATH) po/po2msg.sh -else - MSGFMT ?= msgfmt - ifneq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null; echo $$?),0) - MSGFMT := $(TCL_PATH) po/po2msg.sh - endif -endif - -PO_TEMPLATE = po/gitk.pot -ALL_POFILES = $(wildcard po/*.po) -ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES)) - -ifndef V - QUIET = @ - QUIET_GEN = $(QUIET)echo ' ' GEN $@ && -endif - -all:: gitk-wish $(ALL_MSGFILES) - -install:: all - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)' - $(INSTALL) -m 755 gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(msgsdir_SQ)' - $(foreach p,$(ALL_MSGFILES), $(INSTALL) -m 644 $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true - -uninstall:: - $(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true - $(RM) '$(DESTDIR_SQ)$(bindir_SQ)'/gitk - -clean:: - $(RM) gitk-wish po/*.msg GIT-TCLTK-VARS - -gitk-wish: gitk GIT-TCLTK-VARS - $(QUIET_GEN)$(RM) $@ $@+ && \ - sed -e '1,3s|^exec .* "$$0"|exec $(subst |,'\|',$(TCLTK_PATH_SQ)) "$$0"|' <gitk >$@+ && \ - chmod +x $@+ && \ - mv -f $@+ $@ - -$(PO_TEMPLATE): gitk - $(XGETTEXT) -kmc -LTcl -o $@ gitk -update-po:: $(PO_TEMPLATE) - $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; ) -$(ALL_MSGFILES): %.msg : %.po - @echo Generating catalog $@ - $(MSGFMT) --statistics --tcl $< -l $(basename $(notdir $<)) -d $(dir $@) - -.PHONY: all install uninstall clean update-po -.PHONY: FORCE |