Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 158538 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +13 lines)
Line  Link Here
0
-- /usr/portage/eclass/mozilla-launcher.eclass 2006-11-08 22:05:54.000000000 -0600
0
++ /usr/local/portage/eclass/mozilla-launcher.eclass   2006-12-19 07:03:54.602040947 -0600
Lines 57-65 Link Here
57
       done
57
       done
58
}
58
}
59
59
60
# install_mozilla_launcher_stub name libdir
60
# install_mozilla_launcher_stub name libdir [filename]
61
# -----------------------------------------
61
# ----------------------------------------------------
62
# Install a stub called /usr/bin/$name that executes mozilla-launcher
62
# Install a stub called /usr/bin/$name or /usr/bin/$filename (if set)
63
# that executes mozilla-launcher
63
#
64
#
64
# Note: $PLUGINS_DIR comes from nsplugins (specifically the deprecated section).
65
# Note: $PLUGINS_DIR comes from nsplugins (specifically the deprecated section).
65
#
66
#
Lines 68-77 Link Here
68
       declare name=$1
69
       declare name=$1
69
       declare libdir=$2
70
       declare libdir=$2
70
71
72
       if [[ ! -n $3 ]]; then
73
               declare filename=$3
74
       else
75
               declare filename=${name}
76
       fi
77
71
       dodir /usr/bin
78
       dodir /usr/bin
72
79
73
       if [[ ${PN: -4} == "-bin" ]]  || ! use moznopango; then
80
       if [[ ${PN: -4} == "-bin" ]]  || ! use moznopango; then
74
       cat <<EOF >${D}/usr/bin/${name}
81
       cat <<EOF >${D}/usr/bin/${filename}
75
#!/bin/sh
82
#!/bin/sh
76
#
83
#
77
# Stub script to run mozilla-launcher.  We used to use a symlink here
84
# Stub script to run mozilla-launcher.  We used to use a symlink here
Lines 84-90 Link Here
84
exec /usr/libexec/mozilla-launcher "\$@"
91
exec /usr/libexec/mozilla-launcher "\$@"
85
EOF
92
EOF
86
       else
93
       else
87
       cat <<EOF >${D}/usr/bin/${name}
94
       cat <<EOF >${D}/usr/bin/${filename}
88
#!/bin/sh
95
#!/bin/sh
89
#
96
#
90
# Stub script to run mozilla-launcher.  We used to use a symlink here
97
# Stub script to run mozilla-launcher.  We used to use a symlink here

Return to bug 158538