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 (-4 / +22 lines)
Lines 339-360 something like the following: Link Here
339
# Distributed under the terms of the GNU General Public License v2
339
# Distributed under the terms of the GNU General Public License v2
340
# $Id$
340
# $Id$
341
341
342
# Original Author: Ciaran McCreesh <ciaranm@gentoo.org>
342
# @ECLASS: jmake.eclass
343
# Purpose: Demonstration of EXPORT_FUNCTIONS. Defines simple wrappers for the
343
# @MAINTAINER:
344
# (hypothetical) 'jmake' build system and a default src_compile.
344
# Gentoo Devmanual Project <devmanual@gentoo.org>
345
# @AUTHOR:
346
# Ciaran McCreesh <ciaranm@gentoo.org>
347
# @BLURB: Demonstrate a simple build system eclass.
348
# @DESCRIPTION:
349
# Demonstrates EXPORT_FUNCTIONS and defines simple wrappers for the
350
# (hypothetical) jmake build system and a default src_compile.
345
351
346
EXPORT_FUNCTIONS src_compile
352
EXPORT_FUNCTIONS src_compile
347
353
348
DEPEND=">=sys-devel/jmake-2"
354
DEPEND=">=sys-devel/jmake-2"
349
355
356
# @FUNCTION: jmake-configure
357
# @USAGE: [additional-args]
358
# @DESCRIPTION:
359
# Passes all arguments through to the appropriate "jmake configure"
360
# command.
350
jmake-configure() {
361
jmake-configure() {
351
    jmake configure --prefix=/usr "$@"
362
    jmake configure --prefix=/usr "$@"
352
}
363
}
353
364
365
# @FUNCTION: jmake-build
366
# @USAGE: [additional-args]
367
# @DESCRIPTION:
368
# First builds all dependencies, and then passes through its arguments
369
# to the appropriate "jmake build" command.
354
jmake-build() {
370
jmake-build() {
355
    jmake dep && jmake build "$@"
371
    jmake dep && jmake build "$@"
356
}
372
}
357
373
374
# @FUNCTION: jmake-src_compile
375
# @DESCRIPTION:
376
# Calls jmake-configure() and jmake-build() to compile a jmake project.
358
jmake_src_compile() {
377
jmake_src_compile() {
359
    jmake-configure || die "configure failed"
378
    jmake-configure || die "configure failed"
360
    jmake-build || die "build failed"
379
    jmake-build || die "build failed"
361
- 

Return to bug 373145