summaryrefslogtreecommitdiff
blob: c5ff66820855294e4591f420a4842519090eeec2 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/tardy/tardy-1.28.ebuild,v 1.1 2013/06/28 01:51:57 radhermit Exp $

EAPI=5

inherit toolchain-funcs eutils

DESCRIPTION="A tar post-processor"
HOMEPAGE="http://tardy.sourceforge.net/"
SRC_URI="mirror://sourceforge/tardy/${P}.D001.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

RDEPEND="app-arch/bzip2
	app-arch/xz-utils
	dev-libs/libexplain
	sys-libs/zlib"
DEPEND="${RDEPEND}"

src_prepare() {
	sed -e 's/$(CXX) .* $(CXXFLAGS) -I./\0 -o $@/' \
		-e '/mv \(.*\)\.o $@/d' \
		-e '/@sleep 1/d' \
		-e 's#^\(install-man: $(mandir)/man1/tardy.1\).*#\1#' \
		-i Makefile.in || die

	epatch "${FILESDIR}"/${P}-test-utc.patch
	tc-export AR
}