Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsigrok/
Date: Tue, 31 Dec 2019 15:13:53
Message-Id: 1577805206.b151de6f5ea2bb92bc151968c8dd947c192d8179.swegener@gentoo
1 commit: b151de6f5ea2bb92bc151968c8dd947c192d8179
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 15:07:50 2019 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 15:13:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b151de6f
7
8 sci-libs/libsigrok: Version bump to 0.5.2
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
12
13 sci-libs/libsigrok/Manifest | 1 +
14 sci-libs/libsigrok/libsigrok-0.5.2.ebuild | 156 ++++++++++++++++++++++++++++++
15 2 files changed, 157 insertions(+)
16
17 diff --git a/sci-libs/libsigrok/Manifest b/sci-libs/libsigrok/Manifest
18 index db935b04490..5bd8440632e 100644
19 --- a/sci-libs/libsigrok/Manifest
20 +++ b/sci-libs/libsigrok/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libsigrok-0.3.0.tar.gz 924503 BLAKE2B 132cc952b7314e11034100973f1086d17515fb7b1eb3792506569211fe05e9f35b113fceaff7c0468ad9be0bbcac0251ae63ae856f1393c51e743983e60886df SHA512 b94e8a8da1346f9ab267fd693975411243f2cb016e48ec05f4ad88a8a1dfe5ed6f5ad4ac4bf0e94dc551dc92cd70d2719983e21abaa4811693fb28a27bf74550
23 DIST libsigrok-0.4.0.tar.gz 1387329 BLAKE2B 8d1578c1f84c84af54f0e6c97bcdcec6d183a80170d0b19aa44c4015dac3c418e1a1e304b42b12be3f905a3887f95d2ecc9644aeb2a81a961e09438e380ec70b SHA512 5963c1a44cf351a38d9434f89a15b20d36c7196a78464c302c65ab262bcdb2f26274c7fabf01174757e1f9a367497b9721578ebf802f75ef97ee71ff3dade1e0
24 DIST libsigrok-0.5.1.tar.gz 1664813 BLAKE2B b5765e1057ee4411ef2f83fa73473429bc8f84653f1c7761af3c1280decc2fcb1d3c68d8f92f7e77b85f1fcda74cf6066e5bf56c0da2de4b28148b920b94e0da SHA512 48337fc4625dc0abc162ae54e04ce091047835aa1e49ba1ab84542805008d1ff5646b143fde57e317f3b34514c0e6d4dcb7b1c5944f3f16bdef1a7169edc3517
25 +DIST libsigrok-0.5.2.tar.gz 1779465 BLAKE2B fc6fdde1054e9ac50bc42249c34b3dbfff1e89d77f0db5a8762e52fcf2ea5ea69b2defcf1cde4ed7b1edd1e21770002ed661a470c8d666904daa48a84a2bbfc5 SHA512 cf673dad6280302d69050c29490621f66c6d6a73932d019a53ec3501316d3f2e23e7667a04f866dbe6ed73f86a63de73d2173e2b6cea563631d705e06f887092
26
27 diff --git a/sci-libs/libsigrok/libsigrok-0.5.2.ebuild b/sci-libs/libsigrok/libsigrok-0.5.2.ebuild
28 new file mode 100644
29 index 00000000000..6613025d515
30 --- /dev/null
31 +++ b/sci-libs/libsigrok/libsigrok-0.5.2.ebuild
32 @@ -0,0 +1,156 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +
38 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
39 +USE_RUBY="ruby26 ruby25 ruby24"
40 +RUBY_OPTIONAL="yes"
41 +
42 +inherit eutils gnome2-utils python-r1 java-pkg-opt-2 ruby-ng udev xdg-utils
43 +
44 +if [[ ${PV} == "9999" ]]; then
45 + EGIT_REPO_URI="git://sigrok.org/${PN}"
46 + inherit git-r3 autotools
47 +else
48 + SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz"
49 + KEYWORDS="~amd64 ~x86"
50 +fi
51 +
52 +DESCRIPTION="basic hardware drivers for logic analyzers and input/output file format support"
53 +HOMEPAGE="https://sigrok.org/wiki/Libsigrok"
54 +
55 +LICENSE="GPL-3"
56 +SLOT="0/4"
57 +IUSE="cxx ftdi java parport python ruby serial static-libs +udev test usb"
58 +RESTRICT="!test? ( test )"
59 +REQUIRED_USE="java? ( cxx ) python? ( cxx ${PYTHON_REQUIRED_USE} ) ruby? ( cxx || ( $(ruby_get_use_targets) ) )"
60 +
61 +# We also support librevisa, but that isn't in the tree ...
62 +LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)]
63 + >=dev-libs/libzip-0.8:=[static-libs(+)]
64 + cxx? ( dev-cpp/glibmm:2[static-libs(+)] )
65 + python? ( ${PYTHON_DEPS} >=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] )
66 + ruby? ( $(ruby_implementations_depend) )
67 + ftdi? ( >=dev-embedded/libftdi-0.16:=[static-libs(+)] )
68 + parport? ( sys-libs/libieee1284[static-libs(+)] )
69 + serial? ( >=dev-libs/libserialport-0.1.1[static-libs(+)] )
70 + usb? ( virtual/libusb:1[static-libs(+)] )"
71 +RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
72 + static-libs? ( ${LIB_DEPEND} )
73 + java? ( >=virtual/jre-1.4 )"
74 +DEPEND="${LIB_DEPEND//\[static-libs(+)]}
75 + test? ( >=dev-libs/check-0.9.4 )
76 + cxx? ( app-doc/doxygen )
77 + java? (
78 + >=dev-lang/swig-3.0.6
79 + >=virtual/jdk-1.4
80 + )
81 + python? (
82 + dev-python/setuptools[${PYTHON_USEDEP}]
83 + dev-python/numpy[${PYTHON_USEDEP}]
84 + >=dev-lang/swig-3.0.6
85 + )
86 + ruby? ( >=dev-lang/swig-3.0.8 )
87 + virtual/pkgconfig"
88 +
89 +S="${WORKDIR}"/${P}
90 +
91 +pkg_setup() {
92 + use ruby && ruby-ng_pkg_setup
93 + java-pkg-opt-2_pkg_setup
94 +}
95 +
96 +src_unpack() {
97 + [[ ${PV} == "9999" ]] && git-r3_src_unpack || default
98 +}
99 +
100 +sigrok_src_prepare() {
101 + [[ ${PV} == "9999" ]] && eautoreconf
102 +}
103 +
104 +each_ruby_prepare() {
105 + sigrok_src_prepare
106 +}
107 +
108 +src_prepare() {
109 + use ruby && cp -rl "${S}" "${WORKDIR}"/all && ruby-ng_src_prepare
110 + sigrok_src_prepare
111 + eapply_user
112 + use python && python_copy_sources
113 +}
114 +
115 +sigrok_src_configure() {
116 + econf \
117 + $(use_with ftdi libftdi) \
118 + $(use_with parport libieee1284) \
119 + $(use_with serial libserialport) \
120 + $(use_with usb libusb) \
121 + $(use_enable cxx) \
122 + $(use_enable java) \
123 + $(use_enable static-libs static) \
124 + "${@}"
125 +}
126 +
127 +each_ruby_configure() {
128 + RUBY="${RUBY}" sigrok_src_configure --enable-ruby --disable-python
129 +}
130 +
131 +each_python_configure() {
132 + cd "${BUILD_DIR}"
133 + sigrok_src_configure --disable-ruby --enable-python
134 +}
135 +
136 +src_configure() {
137 + python_setup
138 + sigrok_src_configure --disable-ruby --disable-python
139 + use ruby && ruby-ng_src_configure
140 + use python && python_foreach_impl each_python_configure
141 +}
142 +
143 +each_ruby_compile() {
144 + emake ruby-build
145 +}
146 +
147 +each_python_compile() {
148 + cd "${BUILD_DIR}"
149 + emake python-build
150 +}
151 +
152 +src_compile() {
153 + default
154 + use ruby && ruby-ng_src_compile
155 + use python && python_foreach_impl each_python_compile
156 +}
157 +
158 +src_test() {
159 + emake check
160 +}
161 +
162 +each_ruby_install() {
163 + emake ruby-install DESTDIR="${D}"
164 +}
165 +
166 +each_python_install() {
167 + cd "${BUILD_DIR}"
168 + emake python-install DESTDIR="${D}"
169 + python_optimize
170 +}
171 +
172 +src_install() {
173 + default
174 + use python && python_foreach_impl each_python_install
175 + use ruby && ruby-ng_src_install
176 + use udev && udev_dorules contrib/*.rules
177 + prune_libtool_files
178 +}
179 +
180 +pkg_postinst() {
181 + gnome2_icon_cache_update
182 + xdg_mimeinfo_database_update
183 +}
184 +
185 +pkg_postrm() {
186 + gnome2_icon_cache_update
187 + xdg_mimeinfo_database_update
188 +}