Сравнение libx86emu-1.1-r1 с libx86emu-3.5-r1
/usr/portage/dev-libs/libx86emu/libx86emu-3.5-r1.ebuild 2023-10-09 14:52:29.536368351 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2023 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
inherit rpm toolchain-funcs |
|
6 |
inherit toolchain-funcs |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="A library for emulating x86" |
9 |
HOMEPAGE="https://www.opensuse.org/" |
|
10 |
SRC_URI="https://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-9.8.src.rpm" |
|
9 |
HOMEPAGE="https://github.com/wfeldt/libx86emu" |
|
10 |
SRC_URI="https://github.com/wfeldt/libx86emu/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
|
11 | 11 | |
12 |
LICENSE="HPND" |
|
12 |
LICENSE="BSD" |
|
13 | 13 |
SLOT="0/$(ver_cut 1-2)" |
14 |
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
|
14 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
|
15 | 15 | |
16 |
PATCHES=( |
|
17 |
"${FILESDIR}"/${PN}-1.1-fix-makefile.patch |
|
18 |
"${FILESDIR}"/${PN}-1.1-gcc10-fno-common.patch |
|
19 |
) |
|
16 |
src_prepare() { |
|
17 |
default |
|
18 |
echo "${PV}" > VERSION || die |
|
19 |
rm -fr git2log || die |
|
20 |
} |
|
21 | ||
22 |
src_compile() { |
|
23 |
emake shared CC=$(tc-getCC) CFLAGS="${CFLAGS} -fPIC -Wall" LDFLAGS="${LDFLAGS}" |
|
24 |
} |
|
20 | 25 | |
21 |
src_configure() { |
|
22 |
tc-export CC |
|
26 |
src_test() { |
|
27 |
emake test CC=$(tc-getCC) CFLAGS="${CFLAGS} -fPIC -Wall" LDFLAGS="${LDFLAGS}" |
|
23 | 28 |
} |
24 | 29 | |
25 | 30 |
src_install() { |
26 | 31 |
emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install |
27 |
dodoc Changelog README |
|
32 |
dodoc README.md |
|
28 | 33 |
} |