summaryrefslogtreecommitdiff
blob: 7199a90b67976515fec6e6fd696f0444e0ecd7e1 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Synchronize two directory trees in a fast way"
HOMEPAGE="https://sourceforge.net/projects/mirdir/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-Unix.tar.gz"
S="${WORKDIR}/${P}-UNIX"

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

PATCHES=(
	"${FILESDIR}"/${PN}-2.1-implicit-function-decl.patch
)

src_prepare() {
	default

	# Disable stripping, bug #239939
	sed -i -e 's:strip .*::' Makefile.in || die
}

src_configure() {
	# Old autoconf gets this test wrong with -flto(!) and there's
	# no source configure.in/.ac in the tarball. bug #854213
	export ac_cv_func_lutime=no

	econf
}

src_install() {
	dobin bin/${PN}
	doman ${PN}.1

	einstalldocs
}