Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/tslib/, x11-libs/tslib/files/
Date: Wed, 25 Dec 2019 16:02:08
Message-Id: 1577289705.71d6d1edfc98b69a916663e6a8ded466da1b313f.asturm@gentoo
1 commit: 71d6d1edfc98b69a916663e6a8ded466da1b313f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 25 15:33:04 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 25 16:01:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71d6d1ed
7
8 x11-libs/tslib: 1.21 version bump
9
10 Closes: https://bugs.gentoo.org/618654
11 Package-Manager: Portage-2.3.83, Repoman-2.3.20
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 x11-libs/tslib/Manifest | 1 +
15 .../tslib/files/tslib-1.21-optional-utils.patch | 21 ++++++++
16 x11-libs/tslib/metadata.xml | 4 ++
17 x11-libs/tslib/tslib-1.21.ebuild | 60 ++++++++++++++++++++++
18 4 files changed, 86 insertions(+)
19
20 diff --git a/x11-libs/tslib/Manifest b/x11-libs/tslib/Manifest
21 index f3765623e08..7d97865c871 100644
22 --- a/x11-libs/tslib/Manifest
23 +++ b/x11-libs/tslib/Manifest
24 @@ -1,2 +1,3 @@
25 DIST tslib-1.0-patches-5.tar.bz2 6602 BLAKE2B 3cd67f4eeacd0651354af8ee4637e27084e9ad61246e6cab631ef52c7435e6d37acdaffd4ca72d8435335860f12d2b0fb4205b33092ea603aafc837e2dba6885 SHA512 dcde900942a3c9e9114e2c36d1d9554eeae8e5ca64463d69c52188a30734b19d6ba0439e8bb009b0d535dfae3f8f8e688a6861ec0a0371fdcb0e9986abb963de
26 DIST tslib-1.0.tar.bz2 47522 BLAKE2B 99f43b5175fadef240a973d0e88c80a227b5ffe518c97c6d890fa4194148ff099055b98e7b5b3fee542249bb9c9bae88a22d1d050f2f7ca1563d03b453aac34c SHA512 a12e569b1d9cd809776a605775c3000f4e405789d95eeda21451d3911b5aa67003c921d9988f5ea8eba8b32108c8b0816e6609b5f013a2594d27b6e00e75de8c
27 +DIST tslib-1.21.tar.xz 349216 BLAKE2B e19623c9390688b0aa85e6547a57542d2e10498c8ebbb30f840157d240dc9975c3e6735814a5e6f02fb71c273a52f860695cf4772fef28522e74c5781cdcb02a SHA512 66c5e5dc4e2314277e19af29b5dce1181573579f13b0e79fa43e658838d4c19a77feb978b60d7c6458337e8d6100ee54a42fc4af3a99fd8d6840cccafa6323c4
28
29 diff --git a/x11-libs/tslib/files/tslib-1.21-optional-utils.patch b/x11-libs/tslib/files/tslib-1.21-optional-utils.patch
30 new file mode 100644
31 index 00000000000..5b94599a86f
32 --- /dev/null
33 +++ b/x11-libs/tslib/files/tslib-1.21-optional-utils.patch
34 @@ -0,0 +1,21 @@
35 +--- a/CMakeLists.txt 2019-10-22 10:27:05.000000000 +0200
36 ++++ b/CMakeLists.txt 2019-12-25 16:18:52.814921538 +0100
37 +@@ -17,6 +17,7 @@
38 + option(BUILD_SHARED_LIBS "ON: tslib is build as shared;
39 + OFF: tslib is build as static" ON)
40 + option(ENABLE_TOOLS "build additional tools" ON)
41 ++option(ENABLE_UTILS "build calibration/test binaries" ON)
42 +
43 + set(LIBTS_VERSION_CURRENT 10)
44 + set(LIBTS_VERSION_REVISION 3)
45 +@@ -28,7 +29,9 @@
46 +
47 + add_subdirectory(src)
48 + add_subdirectory(plugins)
49 +-add_subdirectory(tests)
50 ++if (ENABLE_UTILS)
51 ++ add_subdirectory(tests)
52 ++endif ()
53 + if (ENABLE_TOOLS)
54 + add_subdirectory(tools)
55 + endif ()
56
57 diff --git a/x11-libs/tslib/metadata.xml b/x11-libs/tslib/metadata.xml
58 index 7407021b7ce..640fc4e4a42 100644
59 --- a/x11-libs/tslib/metadata.xml
60 +++ b/x11-libs/tslib/metadata.xml
61 @@ -8,4 +8,8 @@
62 <upstream>
63 <remote-id type="github">kergoth/tslib</remote-id>
64 </upstream>
65 + <use>
66 + <flag name="evdev">Build experimental input module</flag>
67 + <flag name="uinput">Provide alternative ts_uinput evdev device</flag>
68 + </use>
69 </pkgmetadata>
70
71 diff --git a/x11-libs/tslib/tslib-1.21.ebuild b/x11-libs/tslib/tslib-1.21.ebuild
72 new file mode 100644
73 index 00000000000..ac72cb85bb3
74 --- /dev/null
75 +++ b/x11-libs/tslib/tslib-1.21.ebuild
76 @@ -0,0 +1,60 @@
77 +# Copyright 1999-2019 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=7
81 +
82 +inherit cmake-multilib
83 +
84 +DESCRIPTION="Touchscreen Access Library"
85 +HOMEPAGE="https://github.com/kergoth/tslib"
86 +SRC_URI="https://github.com/libts/tslib/releases/download/${PV}/${P}.tar.xz"
87 +
88 +LICENSE="LGPL-2 uinput? ( GPL-2+ )"
89 +SLOT="0"
90 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
91 +IUSE="evdev sdl uinput"
92 +
93 +BDEPEND="
94 + evdev? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
95 +"
96 +DEPEND="
97 + evdev? ( dev-libs/libevdev[${MULTILIB_USEDEP}] )
98 + sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
99 +"
100 +RDEPEND="${DEPEND}"
101 +
102 +DOCS=( AUTHORS NEWS README{,.md} )
103 +
104 +PATCHES=( "${FILESDIR}/${P}-optional-utils.patch" )
105 +
106 +src_configure() {
107 + my_configure() {
108 + local mycmakeargs=(
109 + -Denable-input-evdev=$(usex evdev)
110 + -DENABLE_TOOLS=$(usex uinput $(multilib_is_native_abi && echo ON || echo OFF) OFF)
111 + -DENABLE_UTILS=$(multilib_is_native_abi && echo ON || echo OFF)
112 + -Denable-arctic2=ON
113 + -Denable-collie=ON
114 + -Denable-corgi=ON
115 + -Denable-cy8mrln-palmpre=ON
116 + -Denable-dejitter=ON
117 + -Denable-dmc=ON
118 + -Denable-dmc_dus3000=ON
119 + -Denable-galax=ON
120 + -Denable-h3600=ON
121 + -Denable-input=ON
122 + -Denable-linear-h2200=ON
123 + -Denable-linear=ON
124 + -Denable-mk712=ON
125 + -Denable-one-wire-ts-input=ON
126 + -Denable-pthres=ON
127 + -Denable-tatung=ON
128 + -Denable-ucb1x00=ON
129 + -Denable-variance=ON
130 + )
131 + multilib_is_native_abi && mycmakeargs+=( -Dwith-sdl=$(usex sdl) )
132 +
133 + cmake-utils_src_configure
134 + }
135 + multilib_parallel_foreach_abi my_configure
136 +}