/[gentoo-x86]/eclass/systemd.eclass
Gentoo

Diff of /eclass/systemd.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 Revision 1.28
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.27 2013/09/11 07:58:00 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.28 2013/09/11 08:50:07 mgorny Exp $
4 4
5# @ECLASS: systemd.eclass 5# @ECLASS: systemd.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# systemd@gentoo.org 7# systemd@gentoo.org
8# @BLURB: helper functions to install systemd units 8# @BLURB: helper functions to install systemd units
10# This eclass provides a set of functions to install unit files for 10# This eclass provides a set of functions to install unit files for
11# sys-apps/systemd within ebuilds. 11# sys-apps/systemd within ebuilds.
12# @EXAMPLE: 12# @EXAMPLE:
13# 13#
14# @CODE 14# @CODE
15# inherit autotools-utils systemd 15# inherit systemd
16# 16#
17# src_configure() { 17# src_configure() {
18# local myeconfargs=( 18# local myeconfargs=(
19# --enable-foo 19# --enable-foo
20# --disable-bar 20# --disable-bar
21# "$(systemd_with_unitdir)"
21# ) 22# )
22# 23#
23# systemd_to_myeconfargs 24# econf "${myeconfargs[@]}"
24# autotools-utils_src_configure
25# } 25# }
26# @CODE 26# @CODE
27 27
28inherit toolchain-funcs 28inherit eutils toolchain-funcs
29 29
30case ${EAPI:-0} in 30case ${EAPI:-0} in
31 0|1|2|3|4|5) ;; 31 0|1|2|3|4|5) ;;
32 *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established." 32 *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established."
33esac 33esac
225# scripts to the myeconfargs variable used by autotools-utils eclass. Handles 225# scripts to the myeconfargs variable used by autotools-utils eclass. Handles
226# quoting automatically. 226# quoting automatically.
227systemd_to_myeconfargs() { 227systemd_to_myeconfargs() {
228 debug-print-function ${FUNCNAME} "${@}" 228 debug-print-function ${FUNCNAME} "${@}"
229 229
230 eqawarn 'systemd_to_myeconfargs() is deprecated and will be removed on 2013-10-11.'
231 eqawarn 'Please use $(systemd_with_unitdir) instead.'
232
230 myeconfargs=( 233 myeconfargs=(
231 "${myeconfargs[@]}" 234 "${myeconfargs[@]}"
232 --with-systemdsystemunitdir="$(systemd_get_unitdir)" 235 --with-systemdsystemunitdir="$(systemd_get_unitdir)"
233 ) 236 )
234} 237}

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20