Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/openh264: openh264-1.3.1.ebuild ChangeLog
Date: Thu, 26 Feb 2015 21:18:54
Message-Id: 20150226211849.8F6A8129E4@oystercatcher.gentoo.org
1 axs 15/02/26 21:18:49
2
3 Modified: ChangeLog
4 Added: openh264-1.3.1.ebuild
5 Log:
6 version bump, supports firefox-36
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.2 media-libs/openh264/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 4 Dec 2014 04:01:03 -0000 1.1
24 +++ ChangeLog 26 Feb 2015 21:18:49 -0000 1.2
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/openh264
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v 1.1 2014/12/04 04:01:03 axs Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v 1.2 2015/02/26 21:18:49 axs Exp $
31 +
32 +*openh264-1.3.1 (26 Feb 2015)
33 +
34 + 26 Feb 2015; Ian Stakenvicius (_AxS_) <axs@g.o> +openh264-1.3.1.ebuild:
35 + version bump, supports firefox-36
36
37 *openh264-1.2_p20141104 (04 Dec 2014)
38
39 @@ -11,4 +16,3 @@
40 for the time being. Note also that the mozilla prefs overrides will not
41 forcibly install at a later version, however a script needs to be written to
42 synchronize their installation.
43 -
44
45
46
47 1.1 media-libs/openh264/openh264-1.3.1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/openh264-1.3.1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/openh264-1.3.1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: openh264-1.3.1.ebuild
53 ===================================================================
54 # Copyright 1999-2015 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/openh264-1.3.1.ebuild,v 1.1 2015/02/26 21:18:49 axs Exp $
57
58 EAPI=5
59
60 inherit nsplugins
61
62 MOZVER=36
63 DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for mozilla packages"
64 HOMEPAGE="http://www.openh264.org/"
65 SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
66 https://github.com/mozilla/gmp-api/archive/Firefox${MOZVER}.tar.gz -> gmp-api-Firefox${MOZVER}.tar.gz"
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="+plugin"
71
72 RESTRICT="bindist"
73
74 RDEPEND="!<www-client/firefox-${MOZVER}"
75 DEPEND="dev-lang/nasm"
76
77 DOCS=( LICENSE CONTRIBUTORS README.md )
78
79 src_prepare() {
80 ln -s ../gmp-api-Firefox${MOZVER} gmp-api
81 }
82
83 src_compile() {
84 local mybits="ENABLE64BIT=No"
85 case "${ABI}" in
86 s390x|alpha|*64) mybits="ENABLE64BIT=Yes";;
87 esac
88 emake V=Yes ${mybits}
89 use plugin && emake V=Yes ${mybits} plugin
90 }
91
92 src_install() {
93 emake PREFIX="${ED}usr" LIBPREFIX="${ED}usr/$(get_libdir)/" \
94 install-headers
95
96 dolib libopenh264.so
97
98 if use plugin; then
99 local plugpath="usr/$(get_libdir)/${PLUGINS_DIR}/gmp-gmp${PN}/system-installed"
100 insinto "/${plugpath}"
101 doins libgmpopenh264.so gmpopenh264.info
102 echo "MOZ_GMP_PATH=\"${EROOT}${plugpath}\"" >"${T}"/98-moz-gmp-${PN}
103 doenvd "${T}"/98-moz-gmp-${PN}
104
105 cat <<PREFEOF >"${T}"/${P}.js
106 pref("media.gmp-gmp${PN}.autoupdate", false);
107 pref("media.gmp-gmp${PN}.version", "system-installed");
108 PREFEOF
109
110 insinto /usr/$(get_libdir)/firefox/defaults/pref
111 doins "${T}"/${P}.js
112
113 insinto /usr/$(get_libdir)/seamonkey/defaults/pref
114 doins "${T}"/${P}.js
115 fi
116 }
117
118 pkg_postinst() {
119 if use plugin; then
120 if [[ -z ${REPLACING_VERSIONS} ]]; then
121 elog "Please restart your login session, in order for the session's environment"
122 elog "to include the new MOZ_GMP_PATH variable."
123 elog ""
124 fi
125 elog "This package attempts to override the mozilla GMPInstaller auto-update process,"
126 elog "however even if it is not successful in doing so the profile-installed plugin"
127 elog "will not be used unless this package is removed. This package will take precedence"
128 elog "over any gmp-gmpopenh264 that may be installed in a user's profile."
129 elog ""
130 fi
131 }