# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/jbig2enc/jbig2enc-0.28.ebuild,v 1.1 2012/12/07 20:25:44 pinkbyte Exp $ EAPI="5" AUTOTOOLS_AUTORECONF=1 inherit autotools-utils DESCRIPTION="JBIG2 Encoder and libs" HOMEPAGE="https://github.com/agl/jbig2enc" SRC_URI="https://github.com/agl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gif jpeg png static-libs tiff webp" RDEPEND="media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]" DEPEND="${RDEPEND}" src_prepare() { # remove -Werror sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed' # prevent static linking and QA notice about insecure RUNPATHs sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed' autotools-utils_src_prepare }