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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Feb 27 12:12:58 2015 UTC (5 years, 4 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
add gettext ot RDEPEND (bug 531546, thanks Nikoli), adjust jpeg dep and use valid python2 slot.

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 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-r4.ebuild,v 1.1 2013/11/27 23:11:55 vapier Exp $
4
5 EAPI=5
6 PYTHON_DEPEND="2:2.6"
7
8 inherit autotools eutils flag-o-matic python
9
10 DESCRIPTION="Library and tools for reading barcodes from images or video"
11 HOMEPAGE="http://zbar.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/zbar/${P}.tar.bz2"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~x86"
17 IUSE="gtk imagemagick jpeg python qt4 static-libs +threads v4l X xv"
18
19 RDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
20 imagemagick? (
21 || ( media-gfx/imagemagick
22 media-gfx/graphicsmagick[imagemagick] ) )
23 jpeg? ( virtual/jpeg )
24 python? ( gtk? ( >=dev-python/pygtk-2 ) )
25 qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
26 X? ( x11-libs/libXext
27 xv? ( x11-libs/libXv ) )"
28 DEPEND="${RDEPEND}
29 virtual/pkgconfig"
30
31 pkg_setup() {
32 python_set_active_version 2
33 python_pkg_setup
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${P}-no-v4l1-check.patch
38 epatch "${FILESDIR}"/${P}-errors.patch
39 epatch "${FILESDIR}"/${P}-python-crash.patch
40
41 python_convert_shebangs 2 examples/upcrpc.py test/{barcodetest,test_pygtk}.py
42
43 sed -i -e '/AM_INIT_AUTOMAKE/s:-Werror ::' configure.ac || die #423581
44 eautoreconf
45 }
46
47 src_configure() {
48 append-cppflags -DNDEBUG
49 econf \
50 $(use_with jpeg) \
51 $(use_with gtk) \
52 $(use_with imagemagick) \
53 $(use_with python) \
54 $(use_with qt4 qt) \
55 $(use_enable static-libs static) \
56 $(use_enable threads pthread) \
57 $(use_with X x) \
58 $(use_with xv xv) \
59 $(use_enable v4l video)
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install
64 dodoc HACKING NEWS README TODO
65 rm -r "${ED}"/usr/share/doc/${PN}
66 prune_libtool_files --all
67 }

  ViewVC Help
Powered by ViewVC 1.1.20