chewi 15/06/04 23:01:01 Modified: ChangeLog Added: leptonica-1.72-r2.ebuild Removed: leptonica-1.72-r1.ebuild Log: Undo use of ADD_LEPTONICA_SUBDIR. I didn't realise this had any effect outside of the test suite and it probably broke every other usage of the library. Unfortunately the test suite spams tons of files to /tmp and intentionally leaves them there. Setting ADD_LEPTONICA_SUBDIR at least confined the mess to a single directory. Quite frankly, Leptonica should use something like glib instead of badly reinventing the wheel. I will speak to upstream and at least try to get it to respect TMPDIR, which would allow Portage to clean up the mess. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)
Revision Changes Path 1.38 media-libs/leptonica/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.38&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.38&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?r1=1.37&r2=1.38 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- ChangeLog 2 May 2015 15:59:06 -0000 1.37 +++ ChangeLog 4 Jun 2015 23:01:01 -0000 1.38 @@ -1,6 +1,19 @@ # ChangeLog for media-libs/leptonica # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.37 2015/05/02 15:59:06 chewi Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.38 2015/06/04 23:01:01 chewi Exp $ + +*leptonica-1.72-r2 (04 Jun 2015) + + 04 Jun 2015; James Le Cuirot <[email protected]> +leptonica-1.72-r2.ebuild, + -leptonica-1.72-r1.ebuild: + Undo use of ADD_LEPTONICA_SUBDIR. I didn't realise this had any effect outside + of the test suite and it probably broke every other usage of the library. + Unfortunately the test suite spams tons of files to /tmp and intentionally + leaves them there. Setting ADD_LEPTONICA_SUBDIR at least confined the mess to + a single directory. Quite frankly, Leptonica should use something like glib + instead of badly reinventing the wheel. I will speak to upstream and at least + try to get it to respect TMPDIR, which would allow Portage to clean up the + mess. *leptonica-1.72-r1 (02 May 2015) 1.1 media-libs/leptonica/leptonica-1.72-r2.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.72-r2.ebuild?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.72-r2.ebuild?rev=1.1&content-type=text/plain Index: leptonica-1.72-r2.ebuild =================================================================== # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/leptonica-1.72-r2.ebuild,v 1.1 2015/06/04 23:01:01 chewi Exp $ EAPI=5 inherit autotools-multilib DESCRIPTION="C library for image processing and analysis" HOMEPAGE="http://code.google.com/p/leptonica/" SRC_URI="http://www.leptonica.com/source/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib" # N.B. Tests need some features enabled: REQUIRED_USE="test? ( jpeg png tiff )" DEPEND="gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] ) jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] ) png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] ) tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] ) webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )" RDEPEND="${DEPEND}" DOCS=( README version-notes ) src_prepare() { # unhtmlize docs local X for X in ${DOCS[@]}; do awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \ "${X}.html" > "${X}" || die 'awk failed' rm -f -- "${X}.html" done autotools-utils_src_prepare } multilib_src_configure() { local myeconfargs=( $(use_with gif giflib) $(use_with jpeg) $(use_with jpeg2k libopenjpeg) $(use_with png libpng) $(use_with tiff libtiff) $(use_with webp libwebp) $(use_with zlib) $(use_enable static-libs static) $(multilib_native_use_enable utils programs) ) autotools-utils_src_configure }
