/[gentoo-x86]/eclass/nsplugins.eclass
Gentoo

Diff of /eclass/nsplugins.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.32 Revision 1.33
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.32 2013/05/17 04:01:54 jdhore Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.33 2013/05/28 03:29:50 anarchy Exp $
4# 4#
5# @ECLASS: nsplugins.eclass 5# @ECLASS: nsplugins.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Mozilla Team <mozilla@gentoo.org> 7# Mozilla Team <mozilla@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
10# @BLURB: reusable functions for netscape/moz plugin sharing 10# @BLURB: reusable functions for netscape/moz plugin sharing
11# @DESCRIPTION: 11# @DESCRIPTION:
12# Reusable functions that promote sharing of netscape/moz plugins, also provides 12# Reusable functions that promote sharing of netscape/moz plugins, also provides
13# share_plugins_dir function for mozilla applications. 13# share_plugins_dir function for mozilla applications.
14 14
15inherit eutils multilib versionator 15inherit eutils multilib versionator mozextension
16 16
17PLUGINS_DIR="nsbrowser/plugins" 17PLUGINS_DIR="nsbrowser/plugins"
18 18
19# This function move the plugin dir in src_install() to 19# This function move the plugin dir in src_install() to
20# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be 20# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be
70 PLUGIN_BASE_PATH="/usr/$(get_libdir)" 70 PLUGIN_BASE_PATH="/usr/$(get_libdir)"
71 else 71 else
72 PLUGIN_BASE_PATH=".." 72 PLUGIN_BASE_PATH=".."
73 fi 73 fi
74 74
75 if version_is_at_least "21.0"; then 75 if $(mozversion_extension_location) ; then
76 dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/browser/plugins" 76 dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/browser/plugins"
77 else 77 else
78 dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins" 78 dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins"
79 fi 79 fi
80} 80}

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20