Diff g15daemon-1.9.5.3-r15 with a g15daemon-3.0.4-r1

/usr/portage/app-misc/g15daemon/g15daemon-3.0.4-r1.ebuild 2023-10-09 14:52:28.796368333 +0300
1 1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5

  
6
GENTOO_DEPEND_ON_PERL="no"
4
EAPI=8
7 5

  
8 6
inherit autotools flag-o-matic linux-info perl-module systemd toolchain-funcs udev
9 7

  
10 8
DESCRIPTION="Takes control of the G15 keyboard, through the linux kernel uinput device driver"
11
HOMEPAGE="https://sourceforge.net/projects/g15daemon/"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9
HOMEPAGE="https://gitlab.com/menelkir/g15daemon"
10
if [[ ${PV} == *9999* ]] ; then
11
	inherit git-r3
12
	EGIT_REPO_URI="https://gitlab.com/menelkir/g15daemon.git"
13
else
14
	SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${P}.tar.bz2"
15
	KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
fi
13 17

  
14 18
LICENSE="GPL-2"
15
SLOT="0"
16
KEYWORDS="amd64 ppc ppc64 x86"
19
# Subslot = libg15daemon_client.so major version
20
SLOT="0/3"
17 21
IUSE="perl static-libs"
18 22

  
23
# Has no "test" target in Makefile
24
RESTRICT="test"
25

  
19 26
DEPEND="virtual/libusb:0
20
	>=dev-libs/libg15-1.2.4
21
	>=dev-libs/libg15render-1.2
27
	>=dev-libs/libg15-3.0
28
	>=dev-libs/libg15render-3.0
22 29
	perl? (
23 30
		dev-lang/perl
24 31
		dev-perl/GDGraph
......
26 33
	)"
27 34
RDEPEND="${DEPEND}"
28 35

  
29
PATCHES=(
30
	"${FILESDIR}/${P}-forgotten-open-mode.patch"
31
	"${FILESDIR}/${P}-overflow-fix.patch"
32
	"${FILESDIR}/${P}-docdir.patch"
33
	"${FILESDIR}/${P}-avoid_bashisms.patch"
34
)
35

  
36 36
uinput_check() {
37 37
	ebegin "Checking for uinput support"
38 38
	local rc=1
......
59 59
}
60 60

  
61 61
src_unpack() {
62
	unpack ${A}
62
	if [[ ${PV} == *9999* ]] ; then
63
		git-r3_src_unpack
64
	else
65
		default
66
	fi
67

  
63 68
	if use perl ; then
64 69
		unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
65 70
	fi
......
75 80
		# perl-module_src_prepare always calls base_src_prepare
76 81
		default
77 82
	fi
78
	mv configure.{in,ac} || die
79 83
	eautoreconf
80 84
}
81 85

  
......
108 112
	rm "${ED}"/usr/share/doc/${PF}/README.usage || die
109 113

  
110 114
	insinto /usr/share/${PN}/contrib
111
	doins contrib/xmodmaprc
115
	doins contrib/xmodmaprc{,-alternative}
112 116
	doins contrib/xmodmap.sh
113 117
	if use perl ; then
114 118
		doins contrib/testbindings.pl
Thank you!