Сравнение libspnav-0.2.3-r1 с libspnav-1.0-r1
/usr/portage/dev-libs/libspnav/libspnav-1.0-r1.ebuild 2023-10-09 14:52:29.528368351 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2021 Gentoo Authors |
|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI="7" |
... | ... | |
8 | 8 |
MY_PN='spacenav' |
9 | 9 |
DESCRIPTION="libspnav is a replacement for the magellan library with a cleaner API" |
10 | 10 |
HOMEPAGE="http://spacenav.sourceforge.net/" |
11 |
SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20library%20%28SDK%29/${PN}%20${PV}/${P}.tar.gz" |
|
11 |
SRC_URI="https://github.com/FreeSpacenav/libspnav/releases/download/v${PV}/libspnav-${PV}.tar.gz" |
|
12 | 12 |
LICENSE="BSD" |
13 | 13 |
SLOT="0" |
14 |
KEYWORDS="amd64 ~arm ~arm64 ppc64 ~riscv x86" |
|
14 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
|
15 | 15 |
IUSE="static-libs X" |
16 | 16 | |
17 | 17 |
CDEPEND="X? ( x11-libs/libX11 )" |
... | ... | |
19 | 19 |
${CDEPEND}" |
20 | 20 |
DEPEND="${CDEPEND}" |
21 | 21 | |
22 |
src_prepare() { |
|
23 |
eapply "${FILESDIR}"/${P}-makefile.patch |
|
24 |
eapply_user |
|
25 |
} |
|
22 |
PATCHES=( |
|
23 |
"${FILESDIR}"/${P}-no-xorg-compile.patch |
|
24 |
) |
|
26 | 25 | |
27 | 26 |
src_configure() { |
28 | 27 |
local args=( |
... | ... | |
31 | 30 |
$(use_enable X x11) |
32 | 31 |
) |
33 | 32 |
econf "${args[@]}" |
33 | ||
34 |
# https://bugs.gentoo.org/838349 |
|
35 |
sed "/^Libs:/ s,/lib,/$(get_libdir)," -i spnav.pc || die |
|
34 | 36 |
} |
35 | 37 | |
36 | 38 |
src_compile() { |
37 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" |
|
39 |
local args=( |
|
40 |
AR="$(tc-getAR)" |
|
41 |
CC="$(tc-getCC)" |
|
42 |
incpaths=-I. |
|
43 |
libpaths= |
|
44 |
) |
|
45 |
emake "${args[@]}" |
|
38 | 46 |
} |
39 | 47 | |
40 | 48 |
src_install() { |