diff options
author | Federico Ferri <mescalinum@gentoo.org> | 2009-05-12 19:11:52 +0000 |
---|---|---|
committer | Federico Ferri <mescalinum@gentoo.org> | 2009-05-12 19:11:52 +0000 |
commit | 2666aa026687df58cf99ef2d2e8f29b6810eff4c (patch) | |
tree | 3c26522fa67bb7676d87cd11878d32246fa1ec01 /dev-util/tkdiff | |
parent | New package eselect-maven. moved from java-exp overlay. (diff) | |
download | gentoo-2-2666aa026687df58cf99ef2d2e8f29b6810eff4c.tar.gz gentoo-2-2666aa026687df58cf99ef2d2e8f29b6810eff4c.tar.bz2 gentoo-2-2666aa026687df58cf99ef2d2e8f29b6810eff4c.zip |
moved from category dev-tcltk to dev-util
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-util/tkdiff')
-rw-r--r-- | dev-util/tkdiff/ChangeLog | 50 | ||||
-rw-r--r-- | dev-util/tkdiff/files/tkdiff-4.1.4-hg.patch | 143 | ||||
-rw-r--r-- | dev-util/tkdiff/metadata.xml | 5 | ||||
-rw-r--r-- | dev-util/tkdiff/tkdiff-4.1.1.ebuild | 22 | ||||
-rw-r--r-- | dev-util/tkdiff/tkdiff-4.1.3.ebuild | 22 | ||||
-rw-r--r-- | dev-util/tkdiff/tkdiff-4.1.4.ebuild | 30 |
6 files changed, 272 insertions, 0 deletions
diff --git a/dev-util/tkdiff/ChangeLog b/dev-util/tkdiff/ChangeLog new file mode 100644 index 000000000000..20b72e8fe131 --- /dev/null +++ b/dev-util/tkdiff/ChangeLog @@ -0,0 +1,50 @@ +# ChangeLog for dev-tcltk/tkdiff +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/tkdiff/ChangeLog,v 1.1 2009/05/12 19:11:52 mescalinum Exp $ + + 12 May 2009; Federico Ferri <mescalinum@gentoo.org> + +files/tkdiff-4.1.4-hg.patch, +metadata.xml, +tkdiff-4.1.1.ebuild, + +tkdiff-4.1.3.ebuild, +tkdiff-4.1.4.ebuild: + moved from category dev-tcltk to dev-util + + 12 May 2009; Federico Ferri <mescalinum@gentoo.org> tkdiff-4.1.4.ebuild: + depend on >=tk-8.4.18-r1, as suggested on bug #259833 comment #6 + +*tkdiff-4.1.4 (23 Dec 2008) + + 23 Dec 2008; Federico Ferri <mescalinum@gentoo.org> + +files/tkdiff-4.1.4-hg.patch, +tkdiff-4.1.4.ebuild: + version bump + patch for mercurial, bug #251778 - thanks Ottxor + + 27 Apr 2007; Christian Faulhammer <opfer@gentoo.org> tkdiff-4.1.3.ebuild: + stable amd64, bug 155797 + + 27 Apr 2007; Joseph Jezak <josejx@gentoo.org> tkdiff-4.1.3.ebuild: + Marked ppc stable for bug #155797. + + 26 Apr 2007; Christian Faulhammer <opfer@gentoo.org> tkdiff-4.1.3.ebuild: + stable x86, bug 155797 + + 25 Apr 2007; Ferris McCormick <fmccor@gentoo.org> tkdiff-4.1.3.ebuild: + sparc stable --- Bug #155797 --- tkdiff has actually been around forever. + +*tkdiff-4.1.3 (24 Sep 2006) + + 24 Sep 2006; MATSUU Takuto <matsuu@gentoo.org> +tkdiff-4.1.3.ebuild: + Version bumped. + +*tkdiff-4.1.1 (08 Jan 2006) + + 08 Jan 2006; MATSUU Takuto <matsuu@gentoo.org> -tkdiff-4.0.2.ebuild, + +tkdiff-4.1.1.ebuild: + Version bumped. + Removed old version wrt security bug 116908. + + 03 Apr 2005; MATSUU Takuto <matsuu@gentoo.org> tkdiff-4.0.2.ebuild: + Added ~ppc and ~sparc. + +*tkdiff-4.0.2 (27 Mar 2005) + + 27 Mar 2005; MATSUU Takuto <matsuu@gentoo.org> +tkdiff-4.0.2.ebuild: + Initial ebuild. Bug #31348. + diff --git a/dev-util/tkdiff/files/tkdiff-4.1.4-hg.patch b/dev-util/tkdiff/files/tkdiff-4.1.4-hg.patch new file mode 100644 index 000000000000..d179b4e65448 --- /dev/null +++ b/dev-util/tkdiff/files/tkdiff-4.1.4-hg.patch @@ -0,0 +1,143 @@ +Added support for Mercurial (hg) source control. Mercurial is an +open-source distributed source control system, conceptually similar to +Git, Bazaar (bzr), Darcs, and the commercial system BitKeeper +(which tkdiff already supports). + +While Mercurial already comes with a tkdiff wrapper called "hgdiff", +this script does not support arbitrary revisions in the way that the +actual hg diff command does (e.g. "hg diff -r2 -r5 filename). This +patch gives tkdiff support for all the revision numbers that "hg diff" +supports. + +The code changes are small and mostly boilerplate, but I did add one +new procedure called "is-mercurial-repository". This was added +because mercurial uses a single ".hg" directory at the top-level +directory of a repository rather than having a directory at each +different directory inside the repository. The new procedure simply +traverses up the parent directories until it either finds a .hg +directory (indicating that we're in a Mercurial repository) or hits +the root directory (indicating that we're not). + +Since the list of supported source control systems is getting large, I +alphabetized the list in the command-line help text and also modified +other parts of this help text to say things like "RCS, CVS, etc." +rather than exhaustively listing all the supported systems yet again. + +More information on Mercurial can be found at + http://www.selenic.com/mercurial/wiki/ and + http://en.wikipedia.org/wiki/Mercurial_(software) + +diff -r 92c7c897cdd3 -r d32253d0cd0f tkdiff +--- a/tkdiff Sat Jan 05 00:42:06 2008 -0800 ++++ b/tkdiff Wed Jan 09 06:05:01 2008 -0800 +@@ -743,6 +743,7 @@ proc get-file-rev {f index {r ""}} { + set bkopt "" + set pvcsopt "" + set p4file "$f" ++ set hgopt "" + } else { + set rev "r$r" + set acrev "\"$r\"" +@@ -754,6 +755,7 @@ proc get-file-rev {f index {r ""}} { + set bkopt "-r$r" + set pvcsopt "-r$r" + set p4file "$f#$r" ++ set hgopt "-r$r" + } + + set finfo(pth,$index) [tmpfile $index] +@@ -907,6 +909,23 @@ proc get-file-rev {f index {r ""}} { + puts "Couldn't deal with $f, exiting..." + exit + } ++ } elseif {[is-mercurial-repository $dirname]} { ++ # mercurial support ++ set cmd "hg" ++ if {$::tcl_platform(platform) == "windows"} { ++ append cmd ".exe" ++ } ++ if {"$r" == "" || "$rev" == "PARENT"} { ++ # in hg, the revision for cat defaults to the parent revision ++ # of the working directory ++ set finfo(lbl,$index) "$f (HG PARENT)" ++ debug-info " Setting lbl $finfo(lbl,$index)" ++ die-unless "exec $cmd cat $f" $finfo(pth,$index) ++ } else { ++ set finfo(lbl,$index) "$f (HG $rev)" ++ debug-info " Setting lbl $finfo(lbl,$index)" ++ die-unless "exec $cmd cat $hgopt $f" $finfo(pth,$index) ++ } + } else { + fatal-error "File '$f' is not part of a revision control system" + } +@@ -916,6 +935,19 @@ proc get-file-rev {f index {r ""}} { + set finfo(lbl,$index) $finfo(userlbl,$index) + debug-info " User label: $finfo(lbl,$index)" + } ++} ++ ++proc is-mercurial-repository {dirname} { ++ # check for a .hg directory in all parent directories ++ set dirname [file normalize $dirname] ++ set prevdir {} ++ while {$dirname != $prevdir} { ++ set hgfilename [file join $dirname .hg] ++ if {[file isdirectory $hgfilename]} { return true } ++ set prevdir $dirname ++ set dirname [file dirname $dirname] ++ } ++ return false + } + + proc sccs-is-bk {} { +@@ -6105,8 +6137,8 @@ proc do-usage {mode} { + Plain file with conflict markers: + tkdiff -conflict FILE + +- Source control (AccuRev, BitKeeper, CVS, Subversion, Perforce, PVCS, +- RCS, SCCS, ClearCase) ++ Source control (AccuRev, BitKeeper, ClearCase, CVS, Mercurial, Perforce, ++ PVCS, RCS, SCCS, and Subversion) + tkdiff FILE + tkdiff -rREV FILE + tkdiff -rREV1 -rREV2 FILE +@@ -6125,7 +6157,9 @@ proc do-usage {mode} { + directory with the same name. It detects and supports PVCS by looking \ + for a vcs.cfg file. It detects and supports AccuRev, Perforce and \ + ClearCase by looking for the environment variables named ACCUREV_BIN, \ +- P4CLIENT, and CLEARCASE_ROOT respectively. ++ P4CLIENT, and CLEARCASE_ROOT respectively. It detects and supports \ ++ Mercurial by looking for a directory named ".hg" in the current \ ++ directory or any of its ancestor directories. + + In the first form, tkdiff will present a dialog to allow you to choose the \ + files to diff interactively. At present this dialog only supports a \ +@@ -6139,9 +6173,9 @@ In the second form, at least one of the + + In the remaining forms, <cmp>REV</cmp> (or <cmp>REV1</cmp> and \ + <cmp>REV2</cmp>) must be a valid revision number for <cmp>FILE</cmp>. \ +- Where AccuRev, RCS, CVS, Subversion, SCCS, PVCS or Perforce is implied \ ++ When a source control system (RCS, CVS, etc.) is detected (see above) \ + but no revision number is specified, <cmp>FILE</cmp> is compared with \ +- the the revision most recently checked in. ++ the revision most recently checked in. + + To merge a file with conflict markers generated by "<cmp>merge</cmp>", \ + "<cmp>cvs</cmp>", or "<cmp>vmrg</cmp>", use \ +@@ -6149,13 +6183,10 @@ To merge a file with conflict markers ge + files which you can merge as usual (see below). + + For "<cmp>tkdiff FILE</cmp>" The CVS version has priority, followed by the \ +- Subversion version, followed by the SCCS version -- i.e. if a CVS \ ++ Subversion version, followed by the SCCS version, followed by RCS, \ ++ PVCS, Perforce, AccuRev, ClearCase, and Mercurial -- i.e. if a CVS \ + directory is present, CVS; if not and a Subversion directory is \ +- present, Subversion; if not and an SCCS directory is present, SCCS is \ +- assumed; otherwise, if a CVS.CFG file is found, PVCS is assumed; \ +- otherwise RCS is assumed. If none of the above apply and the AccuRev \ +- environment variable ACCUREV_BIN is found, AccuRev is used. If P4CLIENT \ +- is found, Perforce is used. If CLEARCASE_ROOT is found, ClearCase is used. ++ present, Subversion; etc. + + If the merge output filename is not specified, tkdiff will present a dialog \ + to allow you to choose the name of the merge output file. diff --git a/dev-util/tkdiff/metadata.xml b/dev-util/tkdiff/metadata.xml new file mode 100644 index 000000000000..d9408d8ab078 --- /dev/null +++ b/dev-util/tkdiff/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>tcltk</herd> +</pkgmetadata> diff --git a/dev-util/tkdiff/tkdiff-4.1.1.ebuild b/dev-util/tkdiff/tkdiff-4.1.1.ebuild new file mode 100644 index 000000000000..36feef819f40 --- /dev/null +++ b/dev-util/tkdiff/tkdiff-4.1.1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/tkdiff/tkdiff-4.1.1.ebuild,v 1.1 2009/05/12 19:11:52 mescalinum Exp $ + +MY_P="${PN}_${PV//./_}" +DESCRIPTION="tkdiff is a graphical front end to the diff program" +HOMEPAGE="http://tkdiff.sourceforge.net/" +SRC_URI="mirror://sourceforge/tkdiff/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-lang/tk-8.4" + +S="${WORKDIR}/${PN}-unix" + +src_install() { + dobin tkdiff + dodoc Changelog +} diff --git a/dev-util/tkdiff/tkdiff-4.1.3.ebuild b/dev-util/tkdiff/tkdiff-4.1.3.ebuild new file mode 100644 index 000000000000..f36b9e9c5186 --- /dev/null +++ b/dev-util/tkdiff/tkdiff-4.1.3.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/tkdiff/tkdiff-4.1.3.ebuild,v 1.1 2009/05/12 19:11:52 mescalinum Exp $ + +MY_P="${P}-unix" +DESCRIPTION="tkdiff is a graphical front end to the diff program" +HOMEPAGE="http://tkdiff.sourceforge.net/" +SRC_URI="mirror://sourceforge/tkdiff/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +RDEPEND=">=dev-lang/tk-8.4" + +S="${WORKDIR}/${MY_P}" + +src_install() { + dobin tkdiff + dodoc Changelog +} diff --git a/dev-util/tkdiff/tkdiff-4.1.4.ebuild b/dev-util/tkdiff/tkdiff-4.1.4.ebuild new file mode 100644 index 000000000000..b75aeee915c1 --- /dev/null +++ b/dev-util/tkdiff/tkdiff-4.1.4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/tkdiff/tkdiff-4.1.4.ebuild,v 1.1 2009/05/12 19:11:52 mescalinum Exp $ + +inherit eutils + +MY_P="${P}-unix" +DESCRIPTION="tkdiff is a graphical front end to the diff program" +HOMEPAGE="http://tkdiff.sourceforge.net/" +SRC_URI="mirror://sourceforge/tkdiff/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-lang/tk-8.4.18-r1" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-hg.patch" +} + +src_install() { + dobin tkdiff + dodoc Changelog +} |