summaryrefslogtreecommitdiff
path: root/sys-fs/copyfs/copyfs-1.0.1-r1.ebuild
blob: 543302c45eb9f9945b4d89b637de52746fed5ffd (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools toolchain-funcs

DESCRIPTION="fuse-based filesystem for maintaining configuration files"
HOMEPAGE="https://boklm.eu/copyfs/"
SRC_URI="https://boklm.eu/copyfs/${P}.tar.bz2"

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

RDEPEND=">=sys-fs/fuse-2.0:0"
DEPEND="${RDEPEND}
	sys-apps/attr"

PATCHES=(
	# this patch fixes sandbox violations
	"${FILESDIR}"/${P}-gentoo.patch
	# this patch adds support for cleaning up the versions directory
	# the patch is experimental at best, but it's better than your
	# versions directory filling up with unused files
	#
	# patch by stuart@gentoo.org
	"${FILESDIR}"/${PN}-1.0-unlink.patch
)

src_prepare() {
	default
	eautoreconf
}

src_compile() {
	emake CC=$(tc-getCC)
}

src_install() {
	emake bindir="${D}"/usr/bin mandir="${D}"/usr/share/man install
}