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

Collapse All | Expand All

(-)a/eclass-writing/text.xml (-11 / +11 lines)
Lines 251-268 a single function, <c>domacosapp</c>. Link Here
251
# Distributed under the terms of the GNU General Public License v2
251
# Distributed under the terms of the GNU General Public License v2
252
# &#36;Id&#36;
252
# &#36;Id&#36;
253
253
254
#
254
# @ECLASS: macosapp.eclass
255
# Original Author: Ciaran McCreesh &lt;ciaranm@gentoo.org&gt;
255
# @MAINTAINER:
256
# Purpose: install macos .app files to the relevant location.
256
# Ciaran McCreesh &lt;ciaranm@gentoo.org&gt;
257
#
257
# @BLURB: install macos .app files to the relevant location.
258
# Bugs to osx@gentoo.org
259
#
260
261
# domacosapp: install a macos .app file. Usage is 'domacosapp file' or
262
# 'domacosapp file newfile'.
263
258
259
# @FUNCTION: domacosapp
260
# @USAGE: &lt;app-file&gt; [new-file]
261
# @DESCRIPTION:
262
# Install the given .app file into the appropriate location. If
263
# [new-file] is given, it will be used as the new (installed) name of
264
# the file. Otherwise &lt;app-file&gt; is installed as-is.
264
domacosapp() {
265
domacosapp() {
265
    [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; &lt;new file&gt;"
266
    [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; [new file]"
266
    if use ppc-macos ; then
267
    if use ppc-macos ; then
267
        insinto /Applications
268
        insinto /Applications
268
        newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
269
        newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
269
- 

Return to bug 373145