summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-05-15 21:07:16 +0200
committerUlrich Müller <ulm@gentoo.org>2015-05-15 21:07:16 +0200
commitd440548e3601a3af1668416a7e40d34b7fbc9f08 (patch)
tree31685444299cd4127b0ccb8ca03aed772c344aa1 /dev-tex
parentdev-tex/vc: Initial import. Ebuild contributed by me. (diff)
downloadulm-d440548e3601a3af1668416a7e40d34b7fbc9f08.tar.gz
ulm-d440548e3601a3af1668416a7e40d34b7fbc9f08.tar.bz2
ulm-d440548e3601a3af1668416a7e40d34b7fbc9f08.zip
Fix date information in git.
Package-Manager: portage-2.2.19
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/vc/ChangeLog4
-rw-r--r--dev-tex/vc/files/vc-0.5-fix-git-date.patch11
-rw-r--r--dev-tex/vc/vc-0.5.ebuild6
3 files changed, 20 insertions, 1 deletions
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 <ulm@gentoo.org> 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 <ulm@gentoo.org> +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() {