summaryrefslogtreecommitdiff
blob: 1b16ed7d0f7d481b94a0d739aab22258ab0746eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/tkcvs/tkcvs-6.4-r2.ebuild,v 1.4 2002/08/16 04:04:42 murphy Exp $


S=${WORKDIR}/${P}
DESCRIPTION="TkCVS"
SRC_URI="http://www.twobarleycorns.net/${P}.tar.gz"
HOMEPAGE="http://www.twobarleycorns.net/tkcvs.html" 

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc sparc64"

RDEPEND=">=dev-lang/tk-8.1.1"

src_compile() {                           
	echo "It's tcl, you don't need to compile.  ;)"
}

src_install() {
	dodir /usr/lib /usr/bin /usr/lib/tkcvs/ /usr/lib/tkcvs/bitmaps

	# We need to do this 'cause the tcl install requires X to be running
	# and the user that runs emerge to have DISPLAY set and working
	cat tkcvs/tkcvs.blank | sed -e {s/_TCDIR_/"\/usr\/lib"/} \
       	    > ${D}/usr/bin/tkcvs
	chmod 755 ${D}/usr/bin/tkcvs
	chmod 755 ${S}/tkdiff/tkdiff
	dobin tkdiff/tkdiff

	insinto /usr/lib/tkcvs
	doins \
		tkcvs/modtree.tcl tkcvs/cvs.tcl tkcvs/reports.tcl \
		tkcvs/tooltips.tcl tkcvs/tkcvs_def.tcl \
		tkcvs/gen_log.tcl tkcvs/logcanvas.tcl tkcvs/dialog.tcl \
		tkcvs/import.tcl tkcvs/merge.tcl tkcvs/errors.tcl \
		tkcvs/static.tcl tkcvs/search.tcl tkcvs/filebrowse.tcl \
		tkcvs/modules.tcl tkcvs/commit.tcl tkcvs/modbrowse.tcl \
		tkcvs/workdir.tcl tkcvs/help.tcl tkcvs/tclIndex

	insinto /usr/lib/tkcvs/bitmaps
	doins 	bitmaps/edit.gif bitmaps/files.gif \
		bitmaps/loop-glasses.gif bitmaps/clean.gif \
		bitmaps/clear.gif bitmaps/tclfish.gif bitmaps/diff.gif \
		bitmaps/fileview.gif bitmaps/dir.gif \
		bitmaps/loop-half.gif bitmaps/conflict.gif \
		bitmaps/patches.gif bitmaps/fileedit.gif \
		bitmaps/arrow_hl_up.gif bitmaps/branchtag.gif \
		bitmaps/branch.gif bitmaps/checkin.gif bitmaps/tag.gif \
		bitmaps/logfile.gif bitmaps/refresh.gif \
		bitmaps/arrow_dn.gif bitmaps/remove.gif bitmaps/mod.gif \
		bitmaps/import.gif bitmaps/patchfile.gif \
		bitmaps/checkout.gif bitmaps/add.gif \
		bitmaps/mergebranch.gif bitmaps/tags.gif \
		bitmaps/adir.gif bitmaps/arrow_up.gif bitmaps/arrow.gif \
		bitmaps/unedit.gif bitmaps/delete.gif bitmaps/mdir.gif \
		bitmaps/modules.gif bitmaps/ball.gif bitmaps/who.gif \
		bitmaps/export.gif bitmaps/loop.gif \
		bitmaps/modbrowse.gif bitmaps/mergediff.gif \
		bitmaps/arrow_hl_dn.gif bitmaps/amod.gif \
		bitmaps/tclfish.xbm bitmaps/tkcvs32.xbm \
		bitmaps/tkcvs48.xbm bitmaps/tkcvs32_mask.xbm \
		bitmaps/tclfish_fly.xbm bitmaps/modbrowse.xbm \
		bitmaps/trace.xbm 

	newman tkcvs/tkcvs.n tkcvs.1

	# Add docs...this is important
	dodoc CHANGELOG COPYING FAQ README.tkcvs README.windows

	docinto tkdiff
	dodoc tkdiff/PATCHES tkdiff/COPYING

	docinto tkcvs
	dodoc tkcvs/vendor.readme
}