colorsvn-0.3.3.ebuild 1.05 KB
Newer Older
Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
1
# Copyright 1999-2020 Gentoo Authors
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
2 3 4 5 6
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Subversion output colorizer"
Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
7 8
HOMEPAGE="https://colorsvn.tigris.org"
SRC_URI="http://colorsvn.tigris.org/files/documents/4414/49311/${P}.tar.gz"
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~x64-macos ~x86-macos"
IUSE=""

RDEPEND="dev-lang/perl
	dev-vcs/subversion"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}/use-open2-not-open3.patch" )

src_prepare() {
	default
	# Fix confdir location for Prefix, #435434
	sed -i \
		-e '/^confdir/d' \
		-e 's/$(confdir)/$(sysconfdir)/g' \
		Makefile.in || die
}

src_compile() {
	# bug 335134
Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
32
	emake -j1
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
33 34 35 36 37 38 39 40 41 42 43 44 45
}

pkg_postinst() {
	elog
	elog "The default settings are stored in /etc/colorsvnrc."
	elog "They can be locally overridden by ~/.colorsvnrc."
	elog "An alias to colorsvn was installed for the svn command."
	elog "In order to immediately activate it do:"
	elog "\tsource /etc/profile"
	elog "NOTE: If you don't see colors,"
	elog "append the output of 'echo \$TERM' to 'colortty' in your colorsvnrc."
	elog
}