summaryrefslogtreecommitdiff
blob: e3cfa1a7da323c57338471e68eb72b150b2231a9 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils autotools

MY_PN="trrntzip"
MY_PV="code-9"
MY_P="${MY_PN}-${MY_PV}"

DESCRIPTION="Advanced archiver to create identical files over multiple systems"
HOMEPAGE="https://sourceforge.net/projects/trrntzip"
SRC_URI="http://sourceforge.net/code-snapshots/svn/t/tr/${MY_PN}/code/${MY_P}.zip -> ${P}.zip"

KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND="sys-libs/zlib"
RDEPEND=""

S="${WORKDIR}/${MY_P}"

PATCHES=(
	"${FILESDIR}/${P}-fix-function-declarations.patch"
)

src_prepare() {
	# Source-code from sf.net snapshots has CRLF...
	EPATCH_OPTS="--binary"

	epatch "${PATCHES[@]}"

	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install
	nonfatal dodoc README AUTHORS
}