Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/ponyprog/, dev-embedded/ponyprog/files/
Date: Tue, 07 Sep 2021 11:14:20
Message-Id: 1631013226.e2b7a6e1f367d473880f5a5466f0712eebfe4e53.asturm@gentoo
1 commit: e2b7a6e1f367d473880f5a5466f0712eebfe4e53
2 Author: Martin Gysel <me <AT> bearsh <DOT> org>
3 AuthorDate: Sat Feb 15 22:52:45 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 11:13:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2b7a6e1
7
8 dev-embedded/ponyprog: 3.1.2 version bump
9
10 - switch to eapi7 and cmake.eclass
11 - use forked qhexedit2 but as internal copy
12 - add dep on libusb and libftdi
13
14 Bug: https://bugs.gentoo.org/696626
15 Signed-off-by: Martin Gysel <me <AT> bearsh.org>
16 Closes: https://github.com/gentoo/gentoo/pull/19870
17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
18
19 dev-embedded/ponyprog/Manifest | 2 +
20 .../files/ponyprog-3.1.1-fix-build-system.patch | 17 +++++++
21 dev-embedded/ponyprog/ponyprog-3.1.2.ebuild | 52 ++++++++++++++++++++++
22 3 files changed, 71 insertions(+)
23
24 diff --git a/dev-embedded/ponyprog/Manifest b/dev-embedded/ponyprog/Manifest
25 index 8982475ff20..7483bee8e97 100644
26 --- a/dev-embedded/ponyprog/Manifest
27 +++ b/dev-embedded/ponyprog/Manifest
28 @@ -1 +1,3 @@
29 DIST ponyprog-3.0.0.tar.gz 933166 BLAKE2B 46eb0a720c91ed187ef06907b28d8b84ecbe4c62a92cabf2b9ff58c553e3f8afc949e523d6b97af0cbf168c545b71e0395e02e5c182714a76bbacce645a1d890 SHA512 a1779b28e03f824fb242d6eb063f0e038af26602c26d5392884f69cbbccac8a934660dffa9bec7489aeb2656e35f21e2b097fc6fe011f278046894e180023881
30 +DIST ponyprog-3.1.2.tar.gz 1364636 BLAKE2B a913903278791d937266da50fcd5b5bda892dcc316011117816e37fc4ef03becce893b597fb34f2a6ef05b5692bb375e4ba10b04c079a63eb735aa0ddadb5ab9 SHA512 697c6fdc775629086a1c01ad94f291fda550a9ad6065e5fdff9db9fb035b8270ed9058894db7ca17d0daf2a26cc5e431415c160d61f65214677eae2109d87603
31 +DIST qhexedit2-ponyprog-3.1.2.tar.gz 342443 BLAKE2B d9f31d1590dd1636fdc74297a95036c9900dc0b4e15c656c82dcfa04b7a1629931ec2622a8e6a923a784a4d7f46f0b084b0126263ae7b00ad79ad3914e35fef4 SHA512 861b1255aef0dc6f7d3459a98b26df58aed676156c12c72b96c8beef33dee0a2528fa87438c7163c839d6e617d531acc40f92f07080ac395fb93d9cc0a045fb1
32
33 diff --git a/dev-embedded/ponyprog/files/ponyprog-3.1.1-fix-build-system.patch b/dev-embedded/ponyprog/files/ponyprog-3.1.1-fix-build-system.patch
34 new file mode 100644
35 index 00000000000..9f4e44d6926
36 --- /dev/null
37 +++ b/dev-embedded/ponyprog/files/ponyprog-3.1.1-fix-build-system.patch
38 @@ -0,0 +1,17 @@
39 +--- a/CMakeLists.txt.old 2020-02-15 13:35:28.308010048 +0100
40 ++++ b/CMakeLists.txt 2020-02-15 13:37:06.726655159 +0100
41 +@@ -42,14 +42,6 @@
42 + OPTION (USE_PROFILER "Include in binary file profiling information" OFF)
43 +
44 +
45 +-IF(${USE_DEBUGGER})
46 +- SET(CMAKE_BUILD_TYPE Debug)
47 +- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
48 +-ELSE()
49 +- SET(CMAKE_BUILD_TYPE Release)
50 +- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
51 +-ENDIF()
52 +-
53 + MESSAGE(STATUS "CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}")
54 +
55 + INCLUDE(CheckIncludeFile)
56
57 diff --git a/dev-embedded/ponyprog/ponyprog-3.1.2.ebuild b/dev-embedded/ponyprog/ponyprog-3.1.2.ebuild
58 new file mode 100644
59 index 00000000000..e70fbc5abc0
60 --- /dev/null
61 +++ b/dev-embedded/ponyprog/ponyprog-3.1.2.ebuild
62 @@ -0,0 +1,52 @@
63 +# Copyright 1999-2021 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=7
67 +
68 +inherit cmake
69 +
70 +QHEXEDIT2_HASH="64f50820118c450ab49ae63bfd9b143eb1971058"
71 +
72 +DESCRIPTION="EEPROM and microcontroller programmer/flasher"
73 +HOMEPAGE="https://github.com/lancos/ponyprog/"
74 +SRC_URI="https://github.com/lancos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
75 + https://github.com/lancos/qhexedit2/archive/${QHEXEDIT2_HASH}.tar.gz -> qhexedit2-${P}.tar.gz
76 +"
77 +
78 +LICENSE="LGPL-2"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +IUSE="doc"
82 +
83 +# blocker on libftdi-1.5-r2: see #775116
84 +RDEPEND="dev-embedded/libftdi:1[cxx]
85 + !=dev-embedded/libftdi-1.5-r2
86 + virtual/libusb:1
87 + dev-qt/qtcore:5
88 + dev-qt/qtgui:5
89 + dev-qt/qtmultimedia:5
90 + dev-qt/qtprintsupport:5"
91 +DEPEND="${RDEPEND}"
92 +
93 +PATCHES=(
94 + "${FILESDIR}"/${PN}-3.1.1-fix-build-system.patch
95 +)
96 +
97 +src_unpack() {
98 + default
99 + mv qhexedit2-*/src ${P}/qhexedit2/ || die "moving qhexedit2 failed"
100 +}
101 +
102 +src_configure() {
103 + local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" )
104 + cmake_src_configure
105 +}
106 +
107 +pkg_postinst() {
108 + elog "To use the COM port in user mode (not as root), you need to"
109 + elog "be in the 'uucp' group."
110 + elog
111 + elog "To use the LPT port in user mode (not as root) you need a kernel with"
112 + elog "ppdev, parport and parport_pc compiled in or as modules. You need the"
113 + elog "rights to write to /dev/parport? devices."
114 +}