summaryrefslogtreecommitdiff
blob: 0622a38ee2f6b5c776fc4e692ab12c68eeb73322 (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
43
44
45
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/macutil-2.0_beta3.ebuild,v 1.3 2004/06/24 21:32:48 agriffis Exp $

inherit eutils

S="${WORKDIR}/${PN}"
MY_P=${P/_beta/b}
DESCRIPTION="A collection of programs to handle Macintosh files/archives on non-Macintosh systems"
SRC_URI="ftp://ftp.cwi.nl/pub/dik/${MY_P/-/}.shar.Z"
HOMEPAGE="http://homepages.cwi.nl/~dik/english/ftp.html"

SLOT="0"
LICENSE="as-is"
IUSE=""
KEYWORDS="x86 ~ppc"

DEPEND="virtual/glibc"
RDEPEND="${DEPEND}
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${A}
	unshar ${MY_P/-/}.shar
	cd ${PN}

	sed -i.orig \
		-e "s:CF =\t\(.*\):CF = \1 $CFLAGS:g" \
		-e "s:-DBSD::g" \
		-e "s:-DDEBUG::g" \
		-e "s:/ufs/dik/tmpbin:$D/usr/bin:g" \
		makefile
}

src_compile() {
	emake || die "build failed"
}

src_install() {
	dodir /usr/bin
	einstall || die "install failed"

	doman man/*.1
	dodoc README doc/*
}