Lines 7-12
Link Here
|
7 |
### The ./configure script automagically figures out which binaries to build |
7 |
### The ./configure script automagically figures out which binaries to build |
8 |
### so the run/compiletime dependancies here are use dependant |
8 |
### so the run/compiletime dependancies here are use dependant |
9 |
|
9 |
|
|
|
10 |
EAPI=2 |
11 |
|
10 |
inherit eutils |
12 |
inherit eutils |
11 |
|
13 |
|
12 |
DESCRIPTION="48k ZX Spectrum Emulator" |
14 |
DESCRIPTION="48k ZX Spectrum Emulator" |
Lines 27-48
Link Here
|
27 |
readline? ( sys-libs/readline )" |
29 |
readline? ( sys-libs/readline )" |
28 |
RDEPEND="svga? ( media-libs/svgalib )" |
30 |
RDEPEND="svga? ( media-libs/svgalib )" |
29 |
|
31 |
|
30 |
src_unpack() { |
32 |
src_prepare() { |
31 |
unpack ${A} |
33 |
epatch "${FILESDIR}"/${P}-qa.patch \ |
32 |
cd "${S}" |
34 |
"${FILESDIR}"/${P}-parallel-make.patch |
33 |
epatch "${FILESDIR}"/${P}-qa.patch |
|
|
34 |
} |
35 |
} |
35 |
|
36 |
|
36 |
src_compile() { |
37 |
src_configure() { |
37 |
econf \ |
38 |
econf \ |
38 |
$(use_with readline) \ |
39 |
$(use_with readline) \ |
39 |
$(use_with X x) |
40 |
$(use_with X x) |
|
|
41 |
} |
42 |
|
43 |
src_compile() { |
40 |
emake CC="$(tc-getCC)" \ |
44 |
emake CC="$(tc-getCC)" \ |
41 |
CPP="$(tc-getCPP)" \ |
45 |
CPP="$(tc-getCPP)" \ |
42 |
|| die "emake failed" |
46 |
|| die "emake failed" |
43 |
} |
47 |
} |
44 |
|
48 |
|
45 |
src_install() { |
49 |
src_install() { |
46 |
# Parallel install bug #255777 |
50 |
emake install_root="${D}" install || die "emake install failed" |
47 |
emake -j1 install_root="${D}" install || die "emake install failed" |
|
|
48 |
} |
51 |
} |