axs         14/08/27 19:59:35

  Modified:             ChangeLog
  Added:                ming-0.4.5.ebuild
  Log:
  version bump, bumped EAPI to 5, migrated ebuild to distutils-r1
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
2B6559ED)

Revision  Changes    Path
1.105                media-libs/ming/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?rev=1.105&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?rev=1.105&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?r1=1.104&r2=1.105

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- ChangeLog   10 Aug 2014 21:10:58 -0000      1.104
+++ ChangeLog   27 Aug 2014 19:59:35 -0000      1.105
@@ -1,6 +1,11 @@
 # ChangeLog for media-libs/ming
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.104 
2014/08/10 21:10:58 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.105 
2014/08/27 19:59:35 axs Exp $
+
+*ming-0.4.5 (27 Aug 2014)
+
+  27 Aug 2014; Ian Stakenvicius (_AxS_) <[email protected]> +ming-0.4.5.ebuild:
+  version bump, bumped EAPI to 5, migrated ebuild to distutils-r1
 
   10 Aug 2014; Sergei Trofimovich <[email protected]> ming-0.4.4.ebuild:
   QA: drop trailing '.' from DESCRIPTION



1.1                  media-libs/ming/ming-0.4.5.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild?rev=1.1&content-type=text/plain

Index: ming-0.4.5.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild,v 1.1 
2014/08/27 19:59:35 axs Exp $

EAPI=5

PYTHON_COMPAT=( python2_7 )
PHP_EXT_NAME=ming
PHP_EXT_OPTIONAL_USE=php
AUTOTOOLS_AUTORECONF=yes
GENTOO_DEPEND_ON_PERL=no
inherit autotools-utils flag-o-matic multilib php-ext-source-r2 perl-module 
distutils-r1

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"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc 
~x86 ~amd64-fbsd ~x86-fbsd"
IUSE="+perl +python php static-libs"

RDEPEND="perl? ( dev-lang/perl:= )
        python? ( ${PYTHON_DEPS} )
        media-libs/freetype
        media-libs/libpng:=
        media-libs/giflib
        sys-libs/zlib
        !media-libs/libswf"
DEPEND="${RDEPEND}
        sys-devel/flex
        virtual/yacc"

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() {
        # 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-r2_phpize
                cd "${S}"
        fi

        sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die

        autotools-utils_src_prepare
}

src_configure() {
        # build is sensitive to -O3 (bug #297437)
        replace-flags -O3 -O2

        # build python via distutils calls, disable here
        local myeconfargs=(
                --disable-python
                $(use_enable static-libs static)
                $(use_enable perl)
                )
        autotools-utils_src_configure
}

run_distutils() {
        if use python; then
                pushd "${BUILD_DIR}"/py_ext > /dev/null || die
                distutils-r1_"${@}"
                popd > /dev/null || die
        fi
}

src_compile() {
        autotools-utils_src_compile

        run_distutils ${FUNCNAME}

        if use php; then
                cd "${S}"/php_ext
                myconf="--disable-rpath
                        --disable-static
                        --with-ming"
                php-ext-source-r2_src_compile
        fi
}

src_install() {
        run_distutils ${FUNCNAME}

        autotools-utils_src_install INSTALLDIRS="vendor"

        fixlocalpod

        if use php; then
                cd "${S}"/php_ext
                php-ext-source-r2_src_install
        fi
}

pkg_postinst() {
        use perl && perl-module_pkg_postinst
}

pkg_prerm() {
        use perl && perl-module_pkg_prerm
}

pkg_postrm() {
        use perl && perl-module_pkg_postrm
}




Reply via email to