axs         15/06/18 22:06:24

  Modified:             metadata.xml ChangeLog
  Added:                openh264-1.4.0.ebuild
  Log:
  version bump, thanks to Coacher for his contributions
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
2B6559ED)

Revision  Changes    Path
1.3                  media-libs/openh264/metadata.xml

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/metadata.xml?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/metadata.xml?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/metadata.xml?r1=1.2&r2=1.3

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/openh264/metadata.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- metadata.xml        15 Jun 2015 15:07:51 -0000      1.2
+++ metadata.xml        18 Jun 2015 22:06:24 -0000      1.3
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="plugin">Install the Gecko Media Plugin (GMP) for 
use with Mozilla packages</flag>
+               <flag name="utils">Install the CLI encoder and decoder 
utilities</flag>
        </use>
        <upstream>
                <remote-id type="github">mozilla/gmp-api</remote-id>



1.3                  media-libs/openh264/ChangeLog

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

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog   26 Feb 2015 21:18:49 -0000      1.2
+++ ChangeLog   18 Jun 2015 22:06:24 -0000      1.3
@@ -1,6 +1,12 @@
 # ChangeLog for media-libs/openh264
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v 1.2 
2015/02/26 21:18:49 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v 1.3 
2015/06/18 22:06:24 axs Exp $
+
+*openh264-1.4.0 (18 Jun 2015)
+
+  18 Jun 2015; Ian Stakenvicius (_AxS_) <[email protected]>
+  +files/pkgconfig-pathfix.patch, +openh264-1.4.0.ebuild, metadata.xml:
+  version bump, thanks to Coacher for his contributions
 
 *openh264-1.3.1 (26 Feb 2015)
 



1.1                  media-libs/openh264/openh264-1.4.0.ebuild

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

Index: openh264-1.4.0.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/openh264-1.4.0.ebuild,v 
1.1 2015/06/18 22:06:24 axs Exp $

EAPI=5

inherit nsplugins multilib-minimal

MOZVER=38
DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for Mozilla packages"
HOMEPAGE="http://www.openh264.org/";
SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
        https://github.com/mozilla/gmp-api/archive/Firefox${MOZVER}.tar.gz -> 
gmp-api-Firefox${MOZVER}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+plugin utils"

RESTRICT="bindist"

RDEPEND="!<www-client/firefox-${MOZVER}"
DEPEND="dev-lang/nasm"

DOCS=( LICENSE CONTRIBUTORS README.md )

src_prepare() {
        epatch "${FILESDIR}"/pkgconfig-pathfix.patch
        multilib_copy_sources
}

multilib_src_configure() {
        ln -s "${WORKDIR}"/gmp-api-Firefox${MOZVER} gmp-api || die
}

emakecmd() {
        CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
        emake V=Yes CFLAGS_M32="" CFLAGS_M64="" CFLAGS_OPT="" \
                PREFIX="${EPREFIX}/usr" \
                SHAREDLIB_DIR="${EPREFIX}/usr/$(get_libdir)" \
                INCLUDES_DIR="${EPREFIX}/usr/include/${PN}" \
                $@
}

multilib_src_compile() {
        local mybits="ENABLE64BIT=No"
        case "${ABI}" in
                s390x|alpha|*64) mybits="ENABLE64BIT=Yes";;
        esac

        emakecmd ${mybits} ${tgt}
        use plugin && emakecmd ${mybits} plugin
}

multilib_src_install() {
        emakecmd DESTDIR="${D}" install-shared

        use utils && dobin h264{enc,dec}

        if use plugin; then
                local 
plugpath="usr/$(get_libdir)/${PLUGINS_DIR}/gmp-gmp${PN}/system-installed"
                insinto "/${plugpath}"
                doins libgmpopenh264.so* gmpopenh264.info
                echo "MOZ_GMP_PATH=\"${EROOT}${plugpath}\"" 
>"${T}"/98-moz-gmp-${PN}
                doenvd "${T}"/98-moz-gmp-${PN}

                cat <<PREFEOF >"${T}"/${P}.js
pref("media.gmp-gmp${PN}.autoupdate", false);
pref("media.gmp-gmp${PN}.version", "system-installed");
PREFEOF

                insinto /usr/$(get_libdir)/firefox/defaults/pref
                doins "${T}"/${P}.js

                insinto /usr/$(get_libdir)/seamonkey/defaults/pref
                doins "${T}"/${P}.js
        fi
}

pkg_postinst() {
        if use plugin; then
                if [[ -z ${REPLACING_VERSIONS} ]]; then
                        elog "Please restart your login session, in order for 
the session's environment"
                        elog "to include the new MOZ_GMP_PATH variable."
                        elog ""
                fi
                elog "This package attempts to override the Mozilla 
GMPInstaller auto-update process,"
                elog "however even if it is not successful in doing so the 
profile-installed plugin"
                elog "will not be used unless this package is removed.  This 
package will take precedence"
                elog "over any gmp-gmpopenh264 that may be installed in a 
user's profile."
                elog ""
        fi
}




Reply via email to