diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-08 06:59:18 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-08 06:59:18 +0000 |
commit | 97c0f6b993e86ff83c2d1853510e009c735d745a (patch) | |
tree | 55bfa5b77b307d6b7692c7c484c6b413fa5514c9 /media-libs/ming | |
parent | Fixed .desktop file. (diff) | |
download | gentoo-2-97c0f6b993e86ff83c2d1853510e009c735d745a.tar.gz gentoo-2-97c0f6b993e86ff83c2d1853510e009c735d745a.tar.bz2 gentoo-2-97c0f6b993e86ff83c2d1853510e009c735d745a.zip |
Bug #348363: need to bump inherit line for newer PHP eclasses. Revbump so that both old PHP users and new PHP users can have this package. Zero other changes, and the new PHP that is implied by the new eclass is already stable, so this is going straight to stable.
(Portage version: 2.2.0_alpha14/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'media-libs/ming')
-rw-r--r-- | media-libs/ming/ChangeLog | 12 | ||||
-rw-r--r-- | media-libs/ming/ming-0.4.3-r1.ebuild | 107 |
2 files changed, 117 insertions, 2 deletions
diff --git a/media-libs/ming/ChangeLog b/media-libs/ming/ChangeLog index 1a5827c1fb5d..84888afbfa20 100644 --- a/media-libs/ming/ChangeLog +++ b/media-libs/ming/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-libs/ming -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.74 2010/07/02 00:51:30 jer Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.75 2011/01/08 06:59:18 robbat2 Exp $ + +*ming-0.4.3-r1 (08 Jan 2011) + + 08 Jan 2011; Robin H. Johnson <robbat2@gentoo.org> +ming-0.4.3-r1.ebuild: + Bug #348363: need to bump inherit line for newer PHP eclasses. Revbump so + that both old PHP users and new PHP users can have this package. Zero other + changes, and the new PHP that is implied by the new eclass is already stable, + so this is going straight to stable. 02 Jul 2010; Jeroen Roovers <jer@gentoo.org> ming-0.4.3.ebuild: Stable for HPPA (bug #320945). diff --git a/media-libs/ming/ming-0.4.3-r1.ebuild b/media-libs/ming/ming-0.4.3-r1.ebuild new file mode 100644 index 000000000000..72d801741c09 --- /dev/null +++ b/media-libs/ming/ming-0.4.3-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.4.3-r1.ebuild,v 1.1 2011/01/08 06:59:18 robbat2 Exp $ + +EAPI="3" + +PHP_EXT_NAME=ming +PYTHON_DEPEND="python? 2" + +inherit eutils autotools flag-o-matic multilib php-ext-source-r2 perl-module python + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +DESCRIPTION="An Open Source library for Flash movie generation." +HOMEPAGE="http://ming.sourceforge.net/" +SRC_URI="mirror://sourceforge/ming/${P}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="+perl +python php" +RDEPEND="perl? ( dev-lang/perl ) + python? ( virtual/python ) + media-libs/freetype + media-libs/libpng + media-libs/giflib + sys-libs/zlib + !media-libs/libswf" +DEPEND="${DEPEND} + sys-devel/flex" + +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" + +pkg_setup() { + use python && python_set_active_version 2 +} + +src_prepare() { + # 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/ungif/gif/' \ + py_ext/setup.py.in + + if use php; then + cd "${S}/php_ext" + php-ext-source-r1_phpize + cd "${S}" + fi + + eautoreconf +} + +src_configure() { + # build is sensitive to -O3 (bug #297437) + replace-flags -O3 -O2 + + econf $(use_enable perl) $(use_enable python) +} + +src_compile() { + emake -j1 DESTDIR="${D}" || die "emake failed" + + if use php; then + cd "${S}"/php_ext + myconf="--disable-rpath + --disable-static + --with-ming" + php-ext-source-r1_src_compile + fi +} + +src_test() { + make check || die "tests failed" +} + +src_install() { + make DESTDIR="${D}" INSTALLDIRS="vendor" install + + fixlocalpod + + # Get rid of the precompiled stuff, we generate it later. + find "${ED}" -name "*.pyc" -print0 | xargs -0 rm -f + + if use php; then + cd "${S}"/php_ext + php-ext-source-r1_src_install + fi +} + +pkg_postinst() { + use perl && perl-module_pkg_postinst + use python && python_mod_optimize ming.py mingc.py +} + +pkg_prerm() { + use perl && perl-module_pkg_prerm +} + +pkg_postrm() { + use perl && perl-module_pkg_postrm + use python && python_mod_cleanup ming.py mingc.py +} |