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 |
# $Id$ |
252 |
# $Id$ |
253 |
|
253 |
|
254 |
# |
254 |
# @ECLASS: macosapp.eclass |
255 |
# Original Author: Ciaran McCreesh <ciaranm@gentoo.org> |
255 |
# @MAINTAINER: |
256 |
# Purpose: install macos .app files to the relevant location. |
256 |
# Ciaran McCreesh <ciaranm@gentoo.org> |
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: <app-file> [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 <app-file> is installed as-is. |
264 |
domacosapp() { |
265 |
domacosapp() { |
265 |
[[ -z "${1}" ]] && die "usage: domacosapp <file> <new file>" |
266 |
[[ -z "${1}" ]] && die "usage: domacosapp <file> [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 |
- |
|
|