You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.0 KiB
49 lines
1.0 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
|
||
5 years ago
|
EAPI=7
|
||
|
inherit toolchain-funcs
|
||
13 years ago
|
|
||
|
DESCRIPTION="HFS FS Access utils"
|
||
6 years ago
|
HOMEPAGE="https://www.mars.org/home/rob/proj/hfs/"
|
||
13 years ago
|
SRC_URI="ftp://ftp.mars.org/pub/hfs/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
11 years ago
|
KEYWORDS="amd64 ~arm ppc ppc64 sparc x86"
|
||
13 years ago
|
IUSE="tcl tk"
|
||
|
|
||
9 years ago
|
DEPEND="
|
||
|
tcl? ( dev-lang/tcl:0= )
|
||
|
tk? ( dev-lang/tk:0= )"
|
||
13 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
12 years ago
|
# use tk requires tcl - bug #150437
|
||
|
REQUIRED_USE="tk? ( tcl )"
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-errno.patch
|
||
|
"${FILESDIR}"/largerthan2gb.patch
|
||
|
"${FILESDIR}"/${P}-fix-tcl-8.6.patch
|
||
|
)
|
||
12 years ago
|
|
||
|
src_configure() {
|
||
5 years ago
|
tc-export CC
|
||
12 years ago
|
econf $(use_with tcl) $(use_with tk)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
12 years ago
|
emake AR="$(tc-getAR) rc" CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)"
|
||
|
emake CC="$(tc-getCC)" -C hfsck
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dodir /usr/bin /usr/lib /usr/share/man/man1
|
||
12 years ago
|
emake \
|
||
7 years ago
|
prefix="${ED}"/usr \
|
||
|
MANDEST="${ED}"/usr/share/man \
|
||
|
infodir="${ED}"/usr/share/info \
|
||
12 years ago
|
install
|
||
|
dobin hfsck/hfsck
|
||
13 years ago
|
dodoc BLURB CHANGES README TODO doc/*.txt
|
||
|
}
|