From d440548e3601a3af1668416a7e40d34b7fbc9f08 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Fri, 15 May 2015 21:07:16 +0200 Subject: Fix date information in git. Package-Manager: portage-2.2.19 --- dev-tex/vc/ChangeLog | 4 ++++ dev-tex/vc/files/vc-0.5-fix-git-date.patch | 11 +++++++++++ dev-tex/vc/vc-0.5.ebuild | 6 +++++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 dev-tex/vc/files/vc-0.5-fix-git-date.patch (limited to 'dev-tex') diff --git a/dev-tex/vc/ChangeLog b/dev-tex/vc/ChangeLog index 5193a62..954383a 100644 --- a/dev-tex/vc/ChangeLog +++ b/dev-tex/vc/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 15 May 2015; Ulrich Müller vc-0.5.ebuild, + +files/vc-0.5-fix-git-date.patch: + Fix date information in git. + *vc-0.5 (15 May 2015) 15 May 2015; Ulrich Müller +vc-0.5.ebuild, +metadata.xml: diff --git a/dev-tex/vc/files/vc-0.5-fix-git-date.patch b/dev-tex/vc/files/vc-0.5-fix-git-date.patch new file mode 100644 index 0000000..7db7293 --- /dev/null +++ b/dev-tex/vc/files/vc-0.5-fix-git-date.patch @@ -0,0 +1,11 @@ +--- vc-orig/git-unix/vc-git.awk ++++ vc/git-unix/vc-git.awk +@@ -39,7 +39,7 @@ + ### Standard encoding is UTF-8. + if (Encoding == "") Encoding = "UTF-8" + ### Extract relevant information from variables. +- LongDate = substr(AuthorDate, 1, 25) ++ LongDate = substr(CommitterDate, 1, 25) + DateRAW = substr(LongDate, 1, 10) + DateISO = DateRAW + DateTEX = DateISO diff --git a/dev-tex/vc/vc-0.5.ebuild b/dev-tex/vc/vc-0.5.ebuild index bb3ec84..278d9c9 100644 --- a/dev-tex/vc/vc-0.5.ebuild +++ b/dev-tex/vc/vc-0.5.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit latex-package +inherit eutils latex-package DESCRIPTION="The vc (version control) bundle" HOMEPAGE="https://www.ctan.org/pkg/vc" @@ -18,6 +18,10 @@ DEPEND="app-arch/unzip" S="${WORKDIR}/${PN}" +src_prepare() { + epatch "${FILESDIR}"/${P}-fix-git-date.patch +} + src_compile() { :; } src_install() { -- cgit v1.2.3-65-gdbad