summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-03-21 03:45:09 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-03-21 03:45:09 +0530
commit4d9125329d9a4041d586484fc8b6beeb2a18648e (patch)
tree9c793691e61304f947cd940450e21ba47705a35d /eclass
parentsys-apps/accountsservice: 0.6.5 → 0.6.6 (diff)
downloadgnome-4d9125329d9a4041d586484fc8b6beeb2a18648e.tar.gz
gnome-4d9125329d9a4041d586484fc8b6beeb2a18648e.tar.bz2
gnome-4d9125329d9a4041d586484fc8b6beeb2a18648e.zip
waf-utils.eclass: moved to tree
Diffstat (limited to 'eclass')
-rw-r--r--eclass/waf-utils.eclass74
1 files changed, 0 insertions, 74 deletions
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
deleted file mode 100644
index a36c1619..00000000
--- a/eclass/waf-utils.eclass
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-# @ECLASS: waf-utils.eclass
-# @MAINTAINER:
-# ?@gentoo.org
-#
-# @CODE
-# Original Author: Gilles Dartiguelongue <eva@gentoo.org>
-# @CODE
-# @BLURB: common ebuild functions for waf-based packages
-# @DESCRIPTION:
-# The waf-utils eclass contains functions that make creating ebuild for
-# waf-based packages much easier.
-# Its main features are support of common portage default settings.
-
-inherit base eutils multilib python
-
-case ${EAPI:-0} in
- 3|2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile src_install ;;
- *) die "EAPI=${EAPI} is not supported" ;;
-esac
-
-# @ECLASS-VARIABLE: DOCS
-# @DESCRIPTION:
-# Documents passed to dodoc command.
-
-# @FUNCTION: waf-utils_src_configure
-# @DESCRIPTION:
-# General function for configuring with waf.
-waf-utils_pkg_setup() {
- python_set_active_version 2
-}
-
-# @FUNCTION: waf-utils_src_configure
-# @DESCRIPTION:
-# General function for configuring with waf.
-waf-utils_src_configure() {
- debug-print-function ${FUNCNAME} "$@"
-
- CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${S}"/waf \
- --prefix=/usr \
- --libdir=/usr/$(get_libdir) \
- $@ \
- configure || die "configure failed"
-}
-
-# @FUNCTION: waf-utils_src_compile
-# @DESCRIPTION:
-# General function for compiling with waf.
-waf-utils_src_compile() {
- debug-print-function ${FUNCNAME} "$@"
-
- local jobs=$(sed \
- -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' \
- -e 's/--jobs=\?/-j/' \
- -e 's/-j/--jobs=/' <<< ${MAKEOPTS})
- "${S}"/waf build ${jobs} || die "build failed"
-}
-
-# @FUNCTION: waf-utils_src_install
-# @DESCRIPTION:
-# Function for installing the package.
-waf-utils_src_install() {
- debug-print-function ${FUNCNAME} "$@"
- has ${EAPI:-0} 2 && ! use prefix && ED="${D}"
-
- "${S}"/waf --destdir="${ED}" install || die "Make install failed"
-
- # Manual document installation
- [[ -n "${DOCS}" ]] && { dodoc ${DOCS} || die "dodoc failed" ; }
-}
-