diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-08-10 16:23:55 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-08-10 16:23:55 +0000 |
commit | 140307ccabefc6c5f9ad130cc1737ae7914ee323 (patch) | |
tree | dcc750754f04e30d771a66e0da06876ff896bdc0 /media-libs/jbigkit | |
parent | convert to multilib (diff) | |
download | gentoo-2-140307ccabefc6c5f9ad130cc1737ae7914ee323.tar.gz gentoo-2-140307ccabefc6c5f9ad130cc1737ae7914ee323.tar.bz2 gentoo-2-140307ccabefc6c5f9ad130cc1737ae7914ee323.zip |
Convert to multilib, replace some plain make calls emake since it should be correct with the -build patch.
(Portage version: 2.2.0_alpha196/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-libs/jbigkit')
-rw-r--r-- | media-libs/jbigkit/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/jbigkit/jbigkit-2.0-r2.ebuild | 54 |
2 files changed, 62 insertions, 2 deletions
diff --git a/media-libs/jbigkit/ChangeLog b/media-libs/jbigkit/ChangeLog index 58a2791245e0..74b21951642e 100644 --- a/media-libs/jbigkit/ChangeLog +++ b/media-libs/jbigkit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/jbigkit -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/jbigkit/ChangeLog,v 1.55 2012/10/07 09:00:54 pacho Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/jbigkit/ChangeLog,v 1.56 2013/08/10 16:23:55 aballier Exp $ + +*jbigkit-2.0-r2 (10 Aug 2013) + + 10 Aug 2013; Alexis Ballier <aballier@gentoo.org> +jbigkit-2.0-r2.ebuild: + Convert to multilib, replace some plain make calls emake since it should be + correct with the -build patch. 07 Oct 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml: Drop maintainer due retirement, #24135. diff --git a/media-libs/jbigkit/jbigkit-2.0-r2.ebuild b/media-libs/jbigkit/jbigkit-2.0-r2.ebuild new file mode 100644 index 000000000000..566ba8dd37b1 --- /dev/null +++ b/media-libs/jbigkit/jbigkit-2.0-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/jbigkit/jbigkit-2.0-r2.ebuild,v 1.1 2013/08/10 16:23:55 aballier Exp $ + +EAPI=5 + +inherit eutils multilib toolchain-funcs multilib-minimal + +DESCRIPTION="data compression algorithm for bi-level high-resolution images" +HOMEPAGE="http://www.cl.cam.ac.uk/~mgk25/jbigkit/" +SRC_URI="http://www.cl.cam.ac.uk/~mgk25/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +S=${WORKDIR}/${PN} + +DOCS="ANNOUNCE CHANGES TODO libjbig/*.txt" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-r1-build.patch \ + "${FILESDIR}"/${P}-static-libs.patch + multilib_copy_sources +} + +multilib_src_compile() { + tc-export AR CC RANLIB + emake \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + $(multilib_is_native_abi || echo lib) + + if use static-libs; then + cd libjbig && emake static + fi +} + +multilib_src_test() { + LD_LIBRARY_PATH=${BUILD_DIR}/libjbig emake -j1 test +} + +multilib_src_install() { + if multilib_is_native_abi ; then + dobin pbmtools/jbgtopbm{,85} pbmtools/pbmtojbg{,85} + doman pbmtools/jbgtopbm.1 pbmtools/pbmtojbg.1 + fi + + insinto /usr/include + doins libjbig/*.h + dolib libjbig/libjbig{,85}$(get_libname) + use static-libs && dolib libjbig/libjbig{,85}.a +} |