Сравнение direwolf-1.5-r1 с direwolf-1.6

/usr/portage/media-radio/direwolf/direwolf-1.6.ebuild 2023-10-09 14:52:31.760368407 +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
EAPI=7
4
EAPI=8
5 5

  
6
inherit systemd toolchain-funcs
6
inherit cmake systemd udev
7 7

  
8 8
DESCRIPTION="Decoded Information from Radio Emissions for Windows Or Linux Fans"
9 9
HOMEPAGE="https://github.com/wb2osz/direwolf/blob/master/README.md"
......
11 11

  
12 12
LICENSE="GPL-2 BSD"
13 13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
15
IUSE="gps hamlib udev"
14
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
15
IUSE="gps hamlib test udev"
16
RESTRICT="!test? ( test )"
16 17

  
17 18
RDEPEND="
18
	media-libs/alsa-lib:=
19
	media-libs/alsa-lib
19 20
	gps? ( sci-geosciences/gpsd )
20 21
	hamlib? ( media-libs/hamlib:= )
21
	udev? ( virtual/libudev )
22
	udev? ( virtual/libudev:= )
22 23
"
23
BDEPEND="hamlib? ( virtual/pkgconfig )"
24 24
DEPEND="${RDEPEND}"
25 25

  
26
DOCS=( CHANGES.md README.md doc/2400-4800-PSK-for-APRS-Packet-Radio.pdf doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf doc/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf doc/APRS-Telemetry-Toolkit.pdf doc/APRStt-Implementation-Notes.pdf doc/APRStt-interface-for-SARTrack.pdf doc/APRStt-Listening-Example.pdf doc/Going-beyond-9600-baud.pdf doc/Raspberry-Pi-APRS.pdf doc/Raspberry-Pi-APRS-Tracker.pdf doc/Raspberry-Pi-SDR-IGate.pdf doc/README.md doc/Successful-APRS-IGate-Operation.pdf doc/User-Guide.pdf doc/WA8LMF-TNC-Test-CD-Results.pdf direwolf.conf dw-start.sh sdr.conf telemetry-toolkit/telem-m0xer-3.txt telemetry-toolkit/telem-balloon.conf telemetry-toolkit/telem-volts.conf )
26
PATCHES=(
27
	"${FILESDIR}"/${PN}-1.6-use-standard-doc-dir.patch
28
)
29

  
30
src_configure() {
31
	local mycmakeargs=(
32
		-DCMAKE_DISABLE_FIND_PACKAGE_GPSD=$(usex !gps)
33
		-DCMAKE_DISABLE_FIND_PACKAGE_hamlib=$(usex !hamlib)
34
		-DCMAKE_DISABLE_FIND_PACKAGE_udev=$(usex !udev)
35
		-DUNITTEST=$(usex test)
36
	)
27 37

  
28
INSTALLDIR="${D}"
29

  
30
src_prepare() {
31
	eapply "${FILESDIR}/${PV}-makefile.patch"
32
	eapply "${FILESDIR}/direwolf-gpsd-API-9.patch"
33
	eapply "${FILESDIR}/direwolf-1.5-respect-LDFLAGS.patch"
34
	eapply "${FILESDIR}/direwolf-1.5-respect-AR.patch"
35

  
36
	eapply_user
37

  
38
	if use gps ; then
39
		sed -i -e 's/#enable_gpsd/enable_gpsd/' Makefile.linux || die "Sed failed!"
40
	fi
41

  
42
	if use hamlib; then
43
		sed -i -e 's/#enable_hamlib/enable_hamlib/' Makefile.linux || die "Sed failed!"
44
	fi
45

  
46
	if use udev ; then
47
		sed -i -e 's/#enable_cm108/enable_cm108/' Makefile.linux || die "Sed failed!"
48
	fi
38
	cmake_src_configure
49 39
}
50 40

  
51
src_compile() {
52
	tc-export AR CC
41
src_install() {
42
	cmake_src_install
53 43

  
54
	emake PKG_CONFIG="$(tc-getPKG_CONFIG)"
55
}
44
	# Fix udev rule installation path
45
	udev_dorules "${ED}"/etc/udev/rules.d/99-direwolf-cmedia.rules
46
	rm "${ED}"/etc/udev/rules.d/99-direwolf-cmedia.rules || die
56 47

  
57
src_install() {
58
	dodir /usr
59
	dodir /usr/bin
60 48
	keepdir /var/log/direwolf
61
	emake DESTDIR="${D}" install
62
	insinto /etc/direwolf/
63
	doins direwolf.conf
64
	einstalldocs
49

  
50
	# Pre-CMake, we installed a default config to /etc/direwolf.
51
	# Should we do that now?
52
	#insinto /etc/direwolf/
53
	#doins direwolf.conf
54

  
65 55
	systemd_dounit "${FILESDIR}"/direwolf.service
66 56
	systemd_dounit "${FILESDIR}"/direwolf-kiss.service
67 57
}
58

  
59
pkg_postinst() {
60
	if [[ -z "${REPLACING_VERSIONS}" ]] ; then
61
		einfo "The default configuration files are at:"
62
		einfo " - ${EROOT}/usr/share/doc/${PF}/conf/direwolf.conf"
63
		einfo " - ${EROOT}/usr/share/doc/${PF}/conf/sdr.conf"
64
		einfo "Copy these to the /etc/direwolf/ directory to modify them."
65
	fi
66
}
Спасибо!