/[gentoo-x86]/media-gfx/zbar/zbar-0.10-r5.ebuild
Gentoo

Contents of /media-gfx/zbar/zbar-0.10-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jul 6 11:59:39 2015 UTC (5 years ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for amd64 and x86.  Needed for electrum.  Bug #541538.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/zbar/zbar-0.10-r5.ebuild,v 1.4 2015/02/27 12:12:58 xmw Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit autotools eutils flag-o-matic python-single-r1
10
11 DESCRIPTION="Library and tools for reading barcodes from images or video"
12 HOMEPAGE="http://zbar.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/zbar/${P}.tar.bz2"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="amd64 ~arm x86"
18 IUSE="gtk imagemagick jpeg python qt4 static-libs +threads v4l X xv"
19
20 RDEPEND="sys-devel/gettext
21 gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
22 imagemagick? (
23 || ( media-gfx/imagemagick
24 media-gfx/graphicsmagick[imagemagick] ) )
25 jpeg? ( virtual/jpeg:0 )
26 python? ( ${PYTHON_DEPS}
27 gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] ) )
28 qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
29 X? ( x11-libs/libXext
30 xv? ( x11-libs/libXv ) )"
31 DEPEND="${RDEPEND}
32 virtual/pkgconfig"
33
34 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
35
36 pkg_setup() {
37 use python && python-single-r1_pkg_setup
38 }
39
40 src_prepare() {
41 epatch "${FILESDIR}"/${P}-no-v4l1-check.patch
42 epatch "${FILESDIR}"/${P}-errors.patch
43 epatch "${FILESDIR}"/${P}-python-crash.patch
44
45 use python && python_fix_shebang examples/upcrpc.py test/*.py
46
47 sed -i -e '/AM_INIT_AUTOMAKE/s:-Werror ::' configure.ac || die #423581
48 eautoreconf
49 }
50
51 src_configure() {
52 append-cppflags -DNDEBUG
53 econf \
54 $(use_with jpeg) \
55 $(use_with gtk) \
56 $(use_with imagemagick) \
57 $(use_with python) \
58 $(use_with qt4 qt) \
59 $(use_enable static-libs static) \
60 $(use_enable threads pthread) \
61 $(use_with X x) \
62 $(use_with xv xv) \
63 $(use_enable v4l video)
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" install
68 dodoc HACKING NEWS README TODO
69 rm -r "${ED}"/usr/share/doc/${PN}
70 prune_libtool_files --all
71 }

  ViewVC Help
Powered by ViewVC 1.1.20