1 |
commit: 2cc5bd6c0709933e3c1f619910e169a73943fec6 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 10 10:07:36 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 10 10:08:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cc5bd6c |
7 |
|
8 |
media-gfx/zbar: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 134 --------------------------- |
13 |
1 file changed, 134 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 6c764241f4d..00000000000 |
18 |
--- a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,134 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-PYTHON_COMPAT=( python2_7 ) |
27 |
- |
28 |
-inherit autotools flag-o-matic java-pkg-opt-2 multilib-minimal \ |
29 |
- python-single-r1 virtualx |
30 |
- |
31 |
-DESCRIPTION="Library and tools for reading barcodes from images or video" |
32 |
-HOMEPAGE="http://zbar.sourceforge.net/" |
33 |
-SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip" |
34 |
- |
35 |
-LICENSE="LGPL-2.1" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="amd64 ~arm x86" |
38 |
-IUSE="gtk imagemagick java jpeg python qt4 static-libs test +threads v4l X xv" |
39 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
40 |
- test? ( X ${PYTHON_REQUIRED_USE} )" |
41 |
- |
42 |
-CDEPEND="gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}] |
43 |
- x11-libs/gtk+:2[${MULTILIB_USEDEP}] ) |
44 |
- imagemagick? ( virtual/imagemagick-tools ) |
45 |
- jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] ) |
46 |
- python? ( |
47 |
- ${PYTHON_DEPS} |
48 |
- gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] ) |
49 |
- ) |
50 |
- qt4? ( dev-qt/qtcore:4[${MULTILIB_USEDEP}] |
51 |
- dev-qt/qtgui:4[${MULTILIB_USEDEP}] ) |
52 |
- X? ( |
53 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
54 |
- xv? ( x11-libs/libXv[${MULTILIB_USEDEP}] ) |
55 |
- )" |
56 |
-RDEPEND="${CDEPEND} |
57 |
- java? ( >=virtual/jre-1.4 )" |
58 |
-DEPEND="${CDEPEND} |
59 |
- java? ( >=virtual/jdk-1.4 |
60 |
- test? ( dev-java/junit:4 |
61 |
- dev-java/hamcrest-core:1.3 ) ) |
62 |
- test? ( ${PYTHON_DEPS} ) |
63 |
- app-arch/unzip |
64 |
- sys-devel/gettext |
65 |
- virtual/pkgconfig" |
66 |
- |
67 |
-pkg_setup() { |
68 |
- if use python || use test; then |
69 |
- python-single-r1_pkg_setup |
70 |
- fi |
71 |
- java-pkg-opt-2_pkg_setup |
72 |
-} |
73 |
- |
74 |
-src_unpack() { |
75 |
- #vcs-snapshot doesn't work on .zip |
76 |
- default |
77 |
- mv * ${P} || die |
78 |
-} |
79 |
- |
80 |
-src_prepare() { |
81 |
- eapply "${FILESDIR}"/${PN}-0.10-errors.patch \ |
82 |
- "${FILESDIR}"/${PN}-0.10-python-crash.patch \ |
83 |
- "${FILESDIR}"/${PN}-0.10-v4l2-uvcvideo.patch |
84 |
- |
85 |
- # fix use of deprecated qt4 function, bug 572488 |
86 |
- sed -e 's:numBytes:byteCount:g' \ |
87 |
- -i "${S}"/include/zbar/QZBarImage.h || die |
88 |
- |
89 |
- if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then |
90 |
- eapply "${FILESDIR}/${P}-ImageMagick-7.diff" |
91 |
- fi |
92 |
- |
93 |
- use python && python_fix_shebang examples/upcrpc.py test/*.py |
94 |
- java-pkg-opt-2_src_prepare |
95 |
- |
96 |
- sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \ |
97 |
- -e '/^AM_CFLAGS=/s: -Werror::' \ |
98 |
- -i configure.ac || die |
99 |
- sed "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \ |
100 |
- -i java/Makefile.am |
101 |
- eautoreconf |
102 |
-} |
103 |
- |
104 |
-multilib_src_configure() { |
105 |
- if multilib_is_native_abi && use java; then |
106 |
- export JAVACFLAGS="$(java-pkg_javac-args)" |
107 |
- export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)" |
108 |
- if use test ; then # bug 629078 |
109 |
- java-pkg_append_ CLASSPATH . |
110 |
- java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only junit-4 junit.jar) |
111 |
- java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only hamcrest-core-1.3 hamcrest-core.jar) |
112 |
- fi |
113 |
- fi |
114 |
- |
115 |
- append-cppflags -DNDEBUG |
116 |
- |
117 |
- # different flags for image/graphics magick (bug 552350) |
118 |
- myimagemagick="--without-imagemagick" |
119 |
- has_version media-gfx/imagemagick && |
120 |
- myimagemagick="$(multilib_native_use_with imagemagick)" |
121 |
- mygraphicsmagick="--without-graphicsmagick" |
122 |
- has_version media-gfx/graphicsmagick && |
123 |
- mygraphicsmagick="$(multilib_native_use_with imagemagick graphicsmagick)" |
124 |
- ECONF_SOURCE=${S} \ |
125 |
- econf \ |
126 |
- $(multilib_native_use_with java) \ |
127 |
- $(use_with jpeg) \ |
128 |
- $(use_with gtk) \ |
129 |
- ${myimagemagick} \ |
130 |
- ${mygraphicsmagick} \ |
131 |
- $(multilib_native_use_with python) \ |
132 |
- $(use_with qt4 qt) \ |
133 |
- $(use_enable static-libs static) \ |
134 |
- $(use_enable threads pthread) \ |
135 |
- $(use_with X x) \ |
136 |
- $(use_with xv xv) \ |
137 |
- $(use_enable v4l video) |
138 |
- |
139 |
- # work-around out-of-source build issue |
140 |
- mkdir gtk pygtk qt test || die |
141 |
-} |
142 |
- |
143 |
-src_test() { |
144 |
- virtx multilib-minimal_src_test |
145 |
-} |
146 |
- |
147 |
-multilib_src_install_all() { |
148 |
- dodoc HACKING NEWS README TODO |
149 |
- find "${D}" -name '*.la' -delete || die |
150 |
-} |
151 |
- |
152 |
-pkg_preinst() { |
153 |
- java-pkg-opt-2_pkg_preinst |
154 |
-} |