Сравнение hwinfo-23.1-r1 с hwinfo-23.2

/usr/portage/sys-apps/hwinfo/hwinfo-23.2.ebuild 2023-10-09 14:52:35.376368499 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit rpm toolchain-funcs
6
inherit toolchain-funcs
7 7

  
8 8
DESCRIPTION="Hardware detection tool used in SuSE Linux"
9 9
HOMEPAGE="https://github.com/openSUSE/hwinfo/"
10
#Using srpms from SUSE to get pregenerated changelog, otherwise we could use GH
11
#SRC_URI="https://github.com/openSUSE/hwinfo/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
SRC_URI="http://download.opensuse.org/tumbleweed/repo/src-oss/src/${P}-1.1.src.rpm"
10
SRC_URI="https://github.com/openSUSE/hwinfo/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 11

  
14 12
LICENSE="GPL-2"
15 13
SLOT="0"
16 14
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux"
17
IUSE=""
18 15

  
19
RDEPEND="amd64? ( dev-libs/libx86emu:= )
20
	x86? ( dev-libs/libx86emu:= )"
16
RDEPEND="amd64? ( dev-libs/libx86emu )
17
	x86? ( dev-libs/libx86emu )"
21 18
DEPEND="${RDEPEND}
22 19
	>=sys-kernel/linux-headers-2.6.17"
23 20
BDEPEND="sys-devel/flex"
24 21

  
25
MAKEOPTS="${MAKEOPTS} -j1"
26

  
27 22
src_prepare() {
23
	default
28 24
	# Respect AR variable.
29 25
	sed -i \
30 26
		-e 's:ar r:$(AR) r:' \
......
33 29
	# Respect LDFLAGS.
34 30
	sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die
35 31

  
36
	# Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS.
32
	# Respect MAKE variable. Skip forced -pipe and -g.
37 33
	sed -i \
38 34
		-e 's:make:$(MAKE):' \
39 35
		-e 's:-pipe -g::' \
40
		-e 's:LDFLAGS.*=:LDFLAGS +=:' \
41 36
		Makefile{,.common} || die
42
	# Workaround from Arch, if using source tarballs from github
43
	# echo 'touch changelog' > git2log
44
	default
37
	rm -f git2log || die
45 38
}
46 39

  
47 40
src_compile() {
48
	tc-export AR
49
	emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" LIBDIR="${EPREFIX}/usr/$(get_libdir)"
41
	emake -j1 AR="$(tc-getAR)" CC="$(tc-getCC)" HWINFO_VERSION="${PV}" \
42
		RPM_OPT_FLAGS="${CFLAGS}" LIBDIR="${EPREFIX}/usr/$(get_libdir)"
50 43
}
51 44

  
52 45
src_install() {
53 46
	emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
54 47
	keepdir /var/lib/hardware/udi
55 48

  
56
	dodoc changelog README*
49
	dodoc README*
57 50
	docinto examples
58 51
	dodoc doc/example*.c
59 52
	doman doc/*.{1,8}
Спасибо!