Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/zbar/
Date: Tue, 12 Feb 2019 09:39:32
Message-Id: 1549964354.084749933c76a97668607c9385f2951ee443112a.zlogene@gentoo
1 commit: 084749933c76a97668607c9385f2951ee443112a
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 12 09:39:14 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 12 09:39:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08474993
7
8 media-gfx/zbar: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 media-gfx/zbar/zbar-0.20.1.ebuild | 161 --------------------------------------
14 1 file changed, 161 deletions(-)
15
16 diff --git a/media-gfx/zbar/zbar-0.20.1.ebuild b/media-gfx/zbar/zbar-0.20.1.ebuild
17 deleted file mode 100644
18 index 700328f7538..00000000000
19 --- a/media-gfx/zbar/zbar-0.20.1.ebuild
20 +++ /dev/null
21 @@ -1,161 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -inherit autotools flag-o-matic java-pkg-opt-2 multilib-minimal python-single-r1 virtualx
29 -
30 -DESCRIPTION="Library and tools for reading barcodes from images or video"
31 -HOMEPAGE="https://github.com/mchehab/zbar"
32 -SRC_URI="https://linuxtv.org/downloads/${PN}/${P}.tar.gz"
33 -
34 -LICENSE="LGPL-2.1"
35 -SLOT="0"
36 -KEYWORDS="amd64 ~arm x86"
37 -IUSE="graphicsmagick gtk imagemagick java jpeg python qt5 static-libs test +threads v4l X xv"
38 -REQUIRED_USE="
39 - python? ( ${PYTHON_REQUIRED_USE} )
40 - test? ( X ${PYTHON_REQUIRED_USE} )
41 -"
42 -
43 -COMMON_DEPEND="
44 - gtk? (
45 - dev-libs/glib:2[${MULTILIB_USEDEP}]
46 - x11-libs/gtk+:2[${MULTILIB_USEDEP}]
47 - )
48 - imagemagick? (
49 - !graphicsmagick? ( media-gfx/imagemagick:= )
50 - graphicsmagick? ( media-gfx/graphicsmagick:= )
51 - )
52 - jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] )
53 - python? (
54 - ${PYTHON_DEPS}
55 - gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )
56 - )
57 - qt5? (
58 - dev-qt/qtcore:5
59 - dev-qt/qtgui:5
60 - dev-qt/qtwidgets:5
61 - dev-qt/qtx11extras:5
62 - )
63 - X? (
64 - x11-libs/libX11[${MULTILIB_USEDEP}]
65 - x11-libs/libXext[${MULTILIB_USEDEP}]
66 - xv? ( x11-libs/libXv[${MULTILIB_USEDEP}] )
67 - )
68 -"
69 -RDEPEND="${COMMON_DEPEND}
70 - java? ( >=virtual/jre-1.8 )
71 -"
72 -DEPEND="${COMMON_DEPEND}
73 - sys-devel/gettext
74 - virtual/pkgconfig
75 - gtk? ( dev-util/glib-utils )
76 - java? (
77 - >=virtual/jdk-1.8
78 - test? (
79 - dev-java/junit:4
80 - dev-java/hamcrest-core:1.3
81 - )
82 - )
83 - test? ( ${PYTHON_DEPS} )
84 -"
85 -
86 -PATCHES=( "${FILESDIR}"/${PN}-0.10-errors.patch )
87 -
88 -pkg_setup() {
89 - if use python || use test; then
90 - python-single-r1_pkg_setup
91 - fi
92 - java-pkg-opt-2_pkg_setup
93 -}
94 -
95 -src_prepare() {
96 - default
97 -
98 - if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then
99 - eapply "${FILESDIR}/${PN}-0.10_p20121015-ImageMagick-7.patch"
100 - fi
101 -
102 - use python && python_fix_shebang examples/upcrpc.py test/*.py
103 - java-pkg-opt-2_src_prepare
104 -
105 - sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \
106 - -e '/^AM_CFLAGS=/s: -Werror::' \
107 - -i configure.ac || die
108 - sed "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \
109 - -i java/Makefile.am || die
110 - eautoreconf
111 -}
112 -
113 -multilib_src_configure() {
114 - append-cppflags -DNDEBUG
115 -
116 - local myeconfargs=(
117 - $(use_with gtk)
118 - $(multilib_native_use_with graphicsmagick graphicsmagick)
119 - $(multilib_native_use_with imagemagick)
120 - $(multilib_native_use_with java)
121 - $(use_with jpeg)
122 - $(multilib_native_use_with python python2)
123 - $(use_enable static-libs static)
124 - $(use_enable threads pthread)
125 - $(use_enable v4l video)
126 - $(use_with X x)
127 - $(use_with X xshm)
128 - $(use_with xv xv)
129 - )
130 -
131 - if multilib_is_native_abi; then
132 - if use java; then
133 - export JAVACFLAGS="$(java-pkg_javac-args)"
134 - export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)"
135 - if use test ; then # bug 629078
136 - java-pkg_append_ CLASSPATH .
137 - java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only junit-4 junit.jar)
138 - java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only hamcrest-core-1.3 hamcrest-core.jar)
139 - fi
140 - fi
141 - if use qt5; then
142 - myeconfargs+=(
143 - $(use_with qt5 qt)
144 - $(use_with qt5)
145 - )
146 - else
147 - myeconfargs+=( --without-qt )
148 - fi
149 - else
150 - myeconfargs+=( --without-qt )
151 - fi
152 -
153 - ECONF_SOURCE=${S} \
154 - econf "${myeconfargs[@]}"
155 -
156 - # work around out-of-source build issues for multilib systems
157 - # https://bugs.gentoo.org/672184
158 - mkdir gtk pygtk qt test zbarcam || die
159 -}
160 -
161 -src_test() {
162 - virtx multilib-minimal_src_test
163 -}
164 -
165 -src_install() {
166 - if use qt5; then
167 - local MULTILIB_WRAPPED_HEADERS=(
168 - /usr/include/zbar/QZBar.h
169 - /usr/include/zbar/QZBarImage.h
170 - )
171 - fi
172 - multilib-minimal_src_install
173 -}
174 -
175 -multilib_src_install_all() {
176 - einstalldocs
177 - find "${D}" -name '*.la' -delete || die
178 -}
179 -
180 -pkg_preinst() {
181 - java-pkg-opt-2_pkg_preinst
182 -}