axs 14/12/04 04:01:03
Added: ChangeLog metadata.xml
openh264-1.2_p20141104.ebuild
Log:
Initial commit. Upstream doesn't release distfiles nor do they release
versions in a particularily reliable manner, so packages will be snapshots for
the time being. Note also that the mozilla prefs overrides will not forcibly
install at a later version, however a script needs to be written to synchronize
their installation.
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key
2B6559ED)
Revision Changes Path
1.1 media-libs/openh264/ChangeLog
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/ChangeLog?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/ChangeLog?rev=1.1&content-type=text/plain
Index: ChangeLog
===================================================================
# ChangeLog for media-libs/openh264
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/openh264/ChangeLog,v 1.1
2014/12/04 04:01:03 axs Exp $
*openh264-1.2_p20141104 (04 Dec 2014)
04 Dec 2014; Ian Stakenvicius (_AxS_) <[email protected]>
+openh264-1.2_p20141104.ebuild, +metadata.xml:
Initial commit. Upstream doesn't release distfiles nor do they release
versions in a particularily reliable manner, so packages will be snapshots
for the time being. Note also that the mozilla prefs overrides will not
forcibly install at a later version, however a script needs to be written to
synchronize their installation.
1.1 media-libs/openh264/metadata.xml
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/metadata.xml?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/metadata.xml?rev=1.1&content-type=text/plain
Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>[email protected]</email>
<name>Ian Stakenvicius</name>
</maintainer>
<use>
<flag name='plugin'>Install the Gecko Media Plugin (GMP) for use with
Mozilla packages</flag>
</use>
</pkgmetadata>
1.1 media-libs/openh264/openh264-1.2_p20141104.ebuild
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/openh264-1.2_p20141104.ebuild?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openh264/openh264-1.2_p20141104.ebuild?rev=1.1&content-type=text/plain
Index: openh264-1.2_p20141104.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/media-libs/openh264/openh264-1.2_p20141104.ebuild,v 1.1
2014/12/04 04:01:03 axs Exp $
EAPI=5
inherit nsplugins
DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for mozilla packages"
HOMEPAGE="http://www.openh264.org/"
SRC_URI="http://dev.gentoo.org/~axs/distfiles/gmp-${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+plugin"
RESTRICT="bindist"
RDEPEND=""
DEPEND="dev-lang/nasm"
DOCS=( LICENSE CONTRIBUTORS README.md )
S=${WORKDIR}/gmp-${P}
src_compile() {
local mybits="ENABLE64BIT=No"
case "${ABI}" in
s390x|alpha|*64) mybits="ENABLE64BIT=Yes";;
esac
emake V=Yes ${mybits}
use plugin && emake V=Yes ${mybits} plugin
}
src_install() {
emake PREFIX="${ED}usr" LIBPREFIX="${ED}usr/$(get_libdir)/" \
install-headers
dolib libopenh264.so
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
}