/[gentoo-x86]/eclass/vdr-plugin-2.eclass
Gentoo

Diff of /eclass/vdr-plugin-2.eclass

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

Revision 1.27 Revision 1.28
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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/vdr-plugin-2.eclass,v 1.27 2014/01/25 15:23:54 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.28 2014/02/08 00:56:30 hd_brummy Exp $
4 4
5# @ECLASS: vdr-plugin-2.eclass 5# @ECLASS: vdr-plugin-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# vdr@gentoo.org 7# vdr@gentoo.org
8# @BLURB: common vdr plugin ebuild functions 8# @BLURB: common vdr plugin ebuild functions
41# Quote: where the first of these three directories to exist will be the one to 41# Quote: where the first of these three directories to exist will be the one to
42# use, ignoring any more general directories which might exist as well. 42# use, ignoring any more general directories which might exist as well.
43# 43#
44# For more details about it please take a look at the eutils.class. 44# For more details about it please take a look at the eutils.class.
45 45
46inherit eutils flag-o-matic multilib toolchain-funcs unpacker # base 46inherit eutils flag-o-matic multilib toolchain-funcs unpacker
47 47
48case ${EAPI:-0} in 48case ${EAPI:-0} in
49 4|5) ;; 49 4|5) ;;
50 *) die "EAPI ${EAPI} unsupported." 50 *) die "EAPI ${EAPI} unsupported."
51esac 51esac
200 200
201# Begin new vdr-plugin-2.eclass content 201# Begin new vdr-plugin-2.eclass content
202dev_check() { 202dev_check() {
203 # A lot useful debug infos 203 # A lot useful debug infos
204 # set VDR_MAINTAINER_MODE="1" in make.conf 204 # set VDR_MAINTAINER_MODE="1" in make.conf
205 VDR_MAINTAINER_MODE="1" # cleanup later
206 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then 205 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
207 eerror "\t Gentoo Developer Debug: $@" 206 eerror "\t Gentoo Developer Debug: $@"
208 fi 207 fi
209} 208}
210 209
409 ;; 408 ;;
410 prepare) 409 prepare)
411 vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n 410 vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n
412 ;; 411 ;;
413 unpack) 412 unpack)
414# base_src_unpack # cleanup later
415 dev_check "function src_unpack, changed from base.eclass to unpacker.eclass"
416 unpacker_src_unpack 413 unpacker_src_unpack
417 ;; 414 ;;
418 add_local_patch) 415 add_local_patch)
419 cd "${S}" || die "Could not change to plugin-source-directory!" 416 cd "${S}" || die "Could not change to plugin-source-directory!"
420 epatch_user 417 epatch_user
442 echo 439 echo
443 eerror "Please report this at bugs.gentoo.org." 440 eerror "Please report this at bugs.gentoo.org."
444 die "vdr-plugin-2_src_unpack not called!" 441 die "vdr-plugin-2_src_unpack not called!"
445 fi 442 fi
446 443
447 # cleanup later...
448 dev_check "https://bugs.gentoo.org/show_bug.cgi?id=497056"
449 dev_check "Major changes in vdr-plugin-2.eclass"
450 dev_check "Please report problems in scr_unpack, src_prepare"
451 dev_check "to this bug or direct to vdr(at)gentoo.org"
452
453 if [ -z "$1" ]; then 444 if [ -z "$1" ]; then
454 vdr-plugin-2_src_util unpack 445 vdr-plugin-2_src_util unpack
455 else 446 else
456 vdr-plugin-2_src_util $@ 447 vdr-plugin-2_src_util $@
457 fi 448 fi
464 echo 455 echo
465 eerror "Please report this at bugs.gentoo.org." 456 eerror "Please report this at bugs.gentoo.org."
466 die "vdr-plugin-2_src_prepare not called!" 457 die "vdr-plugin-2_src_prepare not called!"
467 fi 458 fi
468 459
469# base_src_prepare # cleanup later
470 dev_check "function src_prepare, changed from base.eclass to eutils.eclass"
471 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" 460 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
472 debug-print "$FUNCNAME: applying user patches" 461 debug-print "$FUNCNAME: applying user patches"
473 462
474 vdr-plugin-2_src_util prepare 463 vdr-plugin-2_src_util prepare
475} 464}

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

  ViewVC Help
Powered by ViewVC 1.1.20