diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-27 17:40:03 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-27 17:46:05 +0100 |
commit | 5a02e64e77d4ed9fa1ade8f8bacb8ec7588c4429 (patch) | |
tree | c1b044627ec6838f29075424e33f9d8b9785b99f | |
parent | media-libs/ming: Add missing use of PYTHON_REQUIRED_USE (diff) | |
download | gentoo-5a02e64e.tar.gz gentoo-5a02e64e.tar.bz2 gentoo-5a02e64e.zip |
media-libs/ming: Bump to 0.4.7
Fixes giflib-5 support, #450610. Fixes linking to -lgif when building
Python module. Ebuild bumped to EAPI=6, dropped autotools-utils.
Upstream switched to snapshots, so added necessary eautoreconf
and parallel make issue workaround.
-rw-r--r-- | media-libs/ming/Manifest | 1 | ||||
-rw-r--r-- | media-libs/ming/ming-0.4.7.ebuild | 95 |
2 files changed, 96 insertions, 0 deletions
diff --git a/media-libs/ming/Manifest b/media-libs/ming/Manifest index 68fd0066709c..3331217f5c2c 100644 --- a/media-libs/ming/Manifest +++ b/media-libs/ming/Manifest @@ -1,2 +1,3 @@ DIST ming-0.4.4.tar.bz2 14001112 SHA256 40e09d781741ac961338ed8dec7ba2ed06217de9da44dd67af6b881b95d2af7e SHA512 a95cb843b4f88c767d489fc0d55793655fb578c47681131d335c47fbb7368f996ccc2092630cfc33de4487f840b4a4ba8db837bd7115ef9e4742ca9c7e2b7888 WHIRLPOOL b1a6d591f4d9312f564e9a9650df4db8f456d08161341dc7881620493513a69d17de7ee0058333447fb3b01c9be4b75da7b8cfc02123e3f6c2fe3f6b0aa068fd DIST ming-0.4.5.tar.bz2 14234048 SHA256 82da089bdfc3a7fcb732dc11c11a35003ee270d5102d4043d61ea69834239aeb SHA512 9e5a2fb558841e72a072e2c29a0871dc7056ab57f1e6feca864b9b0961841334c4d2c6bc731bc4e043eb96b63fb946738cb1b8b54ef45679fcbf9bcf82adea31 WHIRLPOOL 2315adb1ed2b8878843ce5eef54f7c4386a69c809820aa4d2040fe4d94c0fa367cc57966a78e327f6a578c99b3ed4b1fa5d352106df9283f3b2d7f87a1178203 +DIST ming-0_4_7.tar.gz 14903570 SHA256 118aa1338dd74b34dd2cd22bce286ca0571e8b9aa433999646d1c0157ea9a7dc SHA512 232cf45daabd7b60203c9382aa6568455a42ddcd1bd60eec9bfe3f5e80376fcc9ff6304efbafca1ac8a504e2e167bc394e4902e0d067303d9582551461e09d3c WHIRLPOOL 075794f170e7f529ba79a66af4504745da786d7cd73e9673ffd4c48e943fbc8bf1f952f1cc0b0b7b0ca1e26a3bdb255feeaaeb675032616d2060c40f19d4dbdd diff --git a/media-libs/ming/ming-0.4.7.ebuild b/media-libs/ming/ming-0.4.7.ebuild new file mode 100644 index 000000000000..dbfad76e1ec5 --- /dev/null +++ b/media-libs/ming/ming-0.4.7.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PHP_EXT_NAME=ming +PHP_EXT_OPTIONAL_USE=php +AUTOTOOLS_AUTORECONF=yes +GENTOO_DEPEND_ON_PERL=no +inherit autotools distutils-r1 flag-o-matic multilib perl-module vcs-snapshot + +DESCRIPTION="An Open Source library for Flash movie generation" +HOMEPAGE="http://ming.sourceforge.net/" +SRC_URI="https://github.com/libming/libming/archive/${P//./_}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="+perl php +python static-libs" + +RDEPEND="perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} ) + media-libs/freetype:= + media-libs/libpng:0= + media-libs/giflib:= + sys-libs/zlib:= + !media-libs/libswf" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc" +PDEPEND="php? ( dev-php/ming-php )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +S=${WORKDIR}/${P//./_} + +# Tests only work when the package is tested on a system +# which does not presently have any version of ming installed. +RESTRICT="test" + +src_prepare() { + default + + # Let's get rid of the TEXTRELS, link dynamic. Use gif. + sed -i \ + -e 's/libming.a/libming.so/' \ + -e 's/lungif/lgif/' \ + perl_ext/Makefile.PL + + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die + + eautoreconf +} + +src_configure() { + # build is sensitive to -O3 (bug #297437) + replace-flags -O3 -O2 + + # build python via distutils calls, disable here + # php is done in dev-php/ming-php + local myconf=( + --disable-python + --disable-php + $(use_enable static-libs static) + $(use_enable perl) + ) + econf "${myconf[@]}" +} + +run_distutils() { + if use python; then + pushd py_ext > /dev/null || die + distutils-r1_"${@}" + popd > /dev/null || die + fi +} + +src_compile() { + # some parallel make issues on flex/bison + emake -C src/actioncompiler -j1 + emake + + run_distutils ${FUNCNAME} +} + +src_install() { + run_distutils ${FUNCNAME} + + emake DESTDIR="${D}" INSTALLDIRS="vendor" install + einstalldocs + + perl_delete_localpod + find "${ED}"usr/lib* -name '*.la' -delete +} |