/[gentoo-x86]/media-libs/jbig2dec/jbig2dec-0.11-r1.ebuild
Gentoo

Contents of /media-libs/jbig2dec/jbig2dec-0.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations) (download)
Wed Apr 24 17:52:03 2013 UTC (4 weeks, 1 day ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +5 -4 lines
Use subslot operator for the libpng dependency. Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER wrt #466998 by Alphat-PC and Tobias B.

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

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-libs/jbig2dec/jbig2dec-0.11-r1.ebuild,v 1.22 2013/03/03 08:37:45 vapier Exp $
4
5 EAPI=5
6 inherit autotools eutils
7
8 DESCRIPTION="A decoder implementation of the JBIG2 image compression format"
9 HOMEPAGE="http://jbig2dec.sourceforge.net/"
10 SRC_URI="http://ghostscript.com/~giles/jbig2/${PN}/${P}.tar.gz
11 test? ( http://jbig2dec.sourceforge.net/ubc/jb2streams.zip )"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~x86-solaris"
16 IUSE="png static-libs test"
17
18 RDEPEND="png? ( media-libs/libpng:0= )"
19 DEPEND="${RDEPEND}
20 test? ( app-arch/unzip )"
21
22 RESTRICT="test"
23 # bug 324275
24
25 DOCS="CHANGES README"
26
27 src_prepare() {
28 sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466998
29 epatch "${FILESDIR}"/${P}-libpng15.patch
30 eautoreconf
31
32 if use test; then
33 mkdir "${WORKDIR}/ubc" || die
34 mv -v "${WORKDIR}"/*.jb2 "${WORKDIR}/ubc/" || die
35 mv -v "${WORKDIR}"/*.bmp "${WORKDIR}/ubc/" || die
36 fi
37 }
38
39 src_configure() {
40 econf \
41 $(use_enable static-libs static) \
42 $(use_with png libpng)
43 }
44
45 src_install() {
46 default
47 prune_libtool_files
48 }

  ViewVC Help
Powered by ViewVC 1.1.13