From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9B6B91384B4 for ; Sat, 7 Nov 2015 20:11:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C06C2E080B; Sat, 7 Nov 2015 20:11:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5431AE080B for ; Sat, 7 Nov 2015 20:11:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E4220340712 for ; Sat, 7 Nov 2015 20:11:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C63D0192 for ; Sat, 7 Nov 2015 20:11:23 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1446927033.fc0340a364ccc83d679dc6972ddff40a6686bb24.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/vc/files/, dev-tex/vc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tex/vc/Manifest dev-tex/vc/files/vc-0.5-git-date.patch dev-tex/vc/files/vc-0.5-git-status.patch dev-tex/vc/metadata.xml dev-tex/vc/vc-0.5.ebuild X-VCS-Directories: dev-tex/vc/ dev-tex/vc/files/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: fc0340a364ccc83d679dc6972ddff40a6686bb24 X-VCS-Branch: master Date: Sat, 7 Nov 2015 20:11:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 90eca00a-0f93-4552-b0ea-2db16caee3e6 X-Archives-Hash: ffd6dd07f5c018383cca8c3e287a6294 commit: fc0340a364ccc83d679dc6972ddff40a6686bb24 Author: Ulrich Müller gentoo org> AuthorDate: Sat Nov 7 20:09:54 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Nov 7 20:10:33 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0340a3 dev-tex/vc: Initial import. Ebuild and patches contributed by me. Package-Manager: portage-2.2.23 dev-tex/vc/Manifest | 1 + dev-tex/vc/files/vc-0.5-git-date.patch | 14 ++++++++++++++ dev-tex/vc/files/vc-0.5-git-status.patch | 27 ++++++++++++++++++++++++++ dev-tex/vc/metadata.xml | 16 ++++++++++++++++ dev-tex/vc/vc-0.5.ebuild | 33 ++++++++++++++++++++++++++++++++ 5 files changed, 91 insertions(+) diff --git a/dev-tex/vc/Manifest b/dev-tex/vc/Manifest new file mode 100644 index 0000000..fd09128 --- /dev/null +++ b/dev-tex/vc/Manifest @@ -0,0 +1 @@ +DIST vc-0.5.zip 440260 SHA256 7f11a41f364c0aa48818b69784fee6356db726d5e55f512a3bea0299f9b1ce0a SHA512 0574bb6e6e7a0a9065cb1042726ac6ff09c4c38b7d05acdaf4fab3023439f5be35af12ec228b285a40e9cd9448f85e16e849d0dd08af743115bdba0556f3b969 WHIRLPOOL ce6f648c4ad90596147af2faffe7be30c13da0d89e7fb99430facda9048ff4d810757a8713741432d820225f34665567e056f5ccd6ef630ed864356edef35c21 diff --git a/dev-tex/vc/files/vc-0.5-git-date.patch b/dev-tex/vc/files/vc-0.5-git-date.patch new file mode 100644 index 0000000..f05c857 --- /dev/null +++ b/dev-tex/vc/files/vc-0.5-git-date.patch @@ -0,0 +1,14 @@ +Use CommitterDate instead of AuthorDate, because the latter is not +guaranteed to increase monotonously. + +--- 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/files/vc-0.5-git-status.patch b/dev-tex/vc/files/vc-0.5-git-status.patch new file mode 100644 index 0000000..7ab998c --- /dev/null +++ b/dev-tex/vc/files/vc-0.5-git-status.patch @@ -0,0 +1,27 @@ +Output format of "git status" has changed which broke parsing. +Use "git status --porcelain" instead which is a more stable interface, +intended for processing by scripts. + +--- vc-orig/git-unix/vc ++++ vc/git-unix/vc +@@ -20,5 +20,5 @@ + git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ai%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %ci%n" |gawk -v script=log -v full=$full -f vc-git.awk > vc.tex + if [ "$mod" = 1 ] + then +- git status |gawk -v script=status -f vc-git.awk >> vc.tex ++ git status --porcelain |gawk -v script=status -f vc-git.awk >> vc.tex + fi +--- vc-orig/git-unix/vc-git.awk ++++ vc/git-unix/vc-git.awk +@@ -26,9 +26,9 @@ + + ### Process output of "git status". + ### Changed index? +-script=="status" && /^# Changes to be committed:/ { modified = 1 } ++script=="status" && /^[MADRC]/ { if (modified == 0) modified = 1 } + ### Unstaged modifications? +-script=="status" && /^# Changed but not updated:/ { modified = 2 } ++script=="status" && /^.[MD]/ { modified = 2 } + + + diff --git a/dev-tex/vc/metadata.xml b/dev-tex/vc/metadata.xml new file mode 100644 index 0000000..42f266d --- /dev/null +++ b/dev-tex/vc/metadata.xml @@ -0,0 +1,16 @@ + + + +tex + + ulm@gentoo.org + + + This is a script based approach to version control for TeX documents. + It works more reliably than keyword substitution based approaches, + since it tracks all files in a working copy, not only .tex files. + + The vc bundle works with LaTeX and plain TeX. Currently, Bazaar, Git + and Subversion are supported. + + diff --git a/dev-tex/vc/vc-0.5.ebuild b/dev-tex/vc/vc-0.5.ebuild new file mode 100644 index 0000000..8d0b9b6 --- /dev/null +++ b/dev-tex/vc/vc-0.5.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit latex-package + +DESCRIPTION="The vc (version control) bundle" +HOMEPAGE="https://www.ctan.org/pkg/vc" +# Taken from http://mirrors.ctan.org/support/vc.zip +SRC_URI="http://dev.gentoo.org/~ulm/distfiles/${P}.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="app-arch/unzip" + +S="${WORKDIR}/${PN}" +PATCHES=( + "${FILESDIR}"/${P}-git-date.patch + "${FILESDIR}"/${P}-git-status.patch +) + +src_compile() { :; } + +src_install() { + insinto ${TEXMF}/scripts/${PN} + doins -r bzr-unix git-unix svn-unix + latex-package_src_doinstall pdf + dodoc CHANGES README +}