/[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.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.2 2012/04/29 15:03:09 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.3 2012/05/20 17:33:41 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
443} 443}
444 444
445vdr-plugin-2_src_unpack() { 445vdr-plugin-2_src_unpack() {
446 if [[ -z ${VDR_INCLUDE_DIR} ]]; then 446 if [[ -z ${VDR_INCLUDE_DIR} ]]; then
447 eerror "Wrong use of vdr-plugin-2.eclass." 447 eerror "Wrong use of vdr-plugin-2.eclass."
448 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_pkg_setup." 448 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_unpack."
449 echo 449 echo
450 eerror "Please report this at bugs.gentoo.org." 450 eerror "Please report this at bugs.gentoo.org."
451 die "vdr-plugin-2_pkg_setup not called!" 451 die "vdr-plugin-2_src_unpack not called!"
452 fi 452 fi
453 453
454 if [ -z "$1" ]; then 454 if [ -z "$1" ]; then
455 vdr-plugin-2_src_util unpack 455 vdr-plugin-2_src_util unpack
456 else 456 else
457 vdr-plugin-2_src_util $@ 457 vdr-plugin-2_src_util $@
458 fi 458 fi
459} 459}
460 460
461vdr-plugin-2_src_prepare() { 461vdr-plugin-2_src_prepare() {
462 if [[ -z ${VDR_INCLUDE_DIR} ]]; then
463 eerror "Wrong use of vdr-plugin-2.eclass."
464 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_prepare."
465 echo
466 eerror "Please report this at bugs.gentoo.org."
467 die "vdr-plugin-2_src_prepare not called!"
468 fi
469
462 base_src_prepare 470 base_src_prepare
463 vdr-plugin-2_src_util prepare 471 vdr-plugin-2_src_util prepare
464} 472}
465 473
466vdr-plugin-2_src_compile() { 474vdr-plugin-2_src_compile() {
473 ;; 481 ;;
474 compile) 482 compile)
475 if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then 483 if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then
476 eerror "Wrong use of vdr-plugin-2.eclass." 484 eerror "Wrong use of vdr-plugin-2.eclass."
477 eerror "An ebuild for a vdr-plugin will not work without" 485 eerror "An ebuild for a vdr-plugin will not work without"
478 eerror "calling vdr-plugin-2_src_unpack to patch the Makefile." 486 eerror "calling vdr-plugin-2_src_compile to patch the Makefile."
479 echo 487 echo
480 eerror "Please report this at bugs.gentoo.org." 488 eerror "Please report this at bugs.gentoo.org."
481 die "vdr-plugin-2_src_unpack not called!" 489 die "vdr-plugin-2_src_compile not called!"
482 fi 490 fi
483 cd "${S}" 491 cd "${S}"
484 492
485 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}} 493 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}}
486 494
496 shift 504 shift
497 done 505 done
498} 506}
499 507
500vdr-plugin-2_src_install() { 508vdr-plugin-2_src_install() {
509 if [[ -z ${VDR_INCLUDE_DIR} ]]; then
510 eerror "Wrong use of vdr-plugin-2.eclass."
511 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_install."
512 echo
513 eerror "Please report this at bugs.gentoo.org."
514 die "vdr-plugin-2_src_install not called!"
515 fi
516
501 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin-2_install_source_tree 517 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin-2_install_source_tree
502 cd "${WORKDIR}" 518 cd "${WORKDIR}"
503 519
504 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then 520 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
505 local mname="${P}-Makefile" 521 local mname="${P}-Makefile"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20