blob: 7e2486add7d968db997f107a6ac40c5a7731faf2 (
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
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libdsk/libdsk-1.2.1.ebuild,v 1.4 2009/01/03 15:20:38 angelos Exp $
inherit java-pkg-opt-2 flag-o-matic autotools
DESCRIPTION="Disk emulation library"
HOMEPAGE="http://www.seasip.demon.co.uk/Unix/LibDsk/"
SRC_URI="http://www.seasip.demon.co.uk/Unix/LibDsk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE="java"
KEYWORDS="~amd64 ~ppc ~x86"
CDEPEND="sys-libs/zlib
app-arch/bzip2"
DEPEND="${CDEPEND}
java? ( >=virtual/jdk-1.5 )"
RDEPEND="${CDEPEND}
java? ( >=virtual/jdk-1.4 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-java-make-fix.patch
eautoreconf
}
src_compile() {
use java && sed -i -e "s!_JINC=\"\$_JTOPDIR/i!_JINC=\"${JAVA_HOME}/i!" configure
local java_options=""
if use java; then
java_options="--with-javac-flags=$(java-pkg_javac-args)"
fi
econf \
--with-zlib \
--with-bzlib \
--enable-floppy \
$(use_with java jni) \
--with-java-prefix=${JAVA_HOME} \
"${java_options}" \
|| die
emake || die "libdsk make failed!"
}
src_install() {
emake install transform="s,^,," DESTDIR="${D}" || die
if use java; then
java-pkg_dojar "lib/${PN}.jar"
fi
dodoc ChangeLog README TODO doc/libdsk.*
}
|