summaryrefslogtreecommitdiff
blob: 96bc605b23adb10450d5987f0f172ea7f21f8a42 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/hardlink++/hardlink++-0.02.ebuild,v 1.6 2012/05/19 12:33:12 ssuominen Exp $

EAPI=4
inherit eutils toolchain-funcs

DESCRIPTION="Save disk space by hardlinking identical files"
HOMEPAGE="http://www.sodarock.com/hardlink/"
SRC_URI="mirror://gentoo/${P}.tgz"

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

src_prepare() {
	epatch \
		"${FILESDIR}"/${P}-gcc34-optimize-help.patch \
		"${FILESDIR}"/${P}-gcc-43-compile-fix.patch

	rm -f Makefile
}

src_compile() {
	$(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} hardlink.cpp -o ${PN} || die
}

src_install() {
	dobin ${PN}
	dodoc README
}

pkg_postinst() {
	echo
	ewarn "This codepath is dead. Migrate to app-arch/hardlink or"
	ewarn "app-arch/hardlink-fedora instead."
}