1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
7 DESCRIPTION="A tool which replaces copies of a file with hardlinks"
8 HOMEPAGE="https://jak-linux.org/projects/hardlink/"
9 #SRC_URI="https://jak-linux.org/projects/${PN}/${PN}_${PV}.tar.xz"
10 SRC_URI="https://salsa.debian.org/jak/${PN}/-/archive/${PV}/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
16 RDEPEND="dev-libs/libpcre"
18 BDEPEND="virtual/pkgconfig"
20 DOCS=( README ${T}/README.rsync )
24 sed -i -e '/^CF/s:?=:+=:' -e '/^CF/s:-O2 -g::' Makefile || die
26 cat <<-EOF > "${T}"/README.rsync
27 https://hardlinkpy.googlecode.com/svn/trunk/hardlink.py has regex '^\..*\.\?{6,6}$'
28 for excluding rsync temporary files by default.
30 To accomplish same with this version, you can use following syntax:
31 # hardlink -x '^\..*\.\?{6,6}$'
33 This was discussed at https://bugs.gentoo.org/416613