/[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.26 Revision 1.27
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.26 2014/01/24 13:51:18 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.27 2014/01/25 15:23:54 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 base eutils flag-o-matic multilib toolchain-funcs 46inherit eutils flag-o-matic multilib toolchain-funcs unpacker # base
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
205 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then 206 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
206 eerror "\t Gentoo Developer Debug: $@" 207 eerror "\t Gentoo Developer Debug: $@"
207 fi 208 fi
208} 209}
209 210
408 ;; 409 ;;
409 prepare) 410 prepare)
410 vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n 411 vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n
411 ;; 412 ;;
412 unpack) 413 unpack)
414# base_src_unpack # cleanup later
415 dev_check "function src_unpack, changed from base.eclass to unpacker.eclass"
413 base_src_unpack 416 unpacker_src_unpack
414 ;; 417 ;;
415 add_local_patch) 418 add_local_patch)
416 cd "${S}" || die "Could not change to plugin-source-directory!" 419 cd "${S}" || die "Could not change to plugin-source-directory!"
417 epatch_user 420 epatch_user
418 ;; 421 ;;
439 echo 442 echo
440 eerror "Please report this at bugs.gentoo.org." 443 eerror "Please report this at bugs.gentoo.org."
441 die "vdr-plugin-2_src_unpack not called!" 444 die "vdr-plugin-2_src_unpack not called!"
442 fi 445 fi
443 446
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
444 if [ -z "$1" ]; then 453 if [ -z "$1" ]; then
445 vdr-plugin-2_src_util unpack 454 vdr-plugin-2_src_util unpack
446 else 455 else
447 vdr-plugin-2_src_util $@ 456 vdr-plugin-2_src_util $@
448 fi 457 fi
455 echo 464 echo
456 eerror "Please report this at bugs.gentoo.org." 465 eerror "Please report this at bugs.gentoo.org."
457 die "vdr-plugin-2_src_prepare not called!" 466 die "vdr-plugin-2_src_prepare not called!"
458 fi 467 fi
459 468
460 base_src_prepare 469# base_src_prepare # cleanup later
470 dev_check "function src_prepare, changed from base.eclass to eutils.eclass"
471 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
472 debug-print "$FUNCNAME: applying user patches"
473
461 vdr-plugin-2_src_util prepare 474 vdr-plugin-2_src_util prepare
462} 475}
463 476
464vdr-plugin-2_src_compile() { 477vdr-plugin-2_src_compile() {
465 [ -z "$1" ] && vdr-plugin-2_src_compile compile 478 [ -z "$1" ] && vdr-plugin-2_src_compile compile
530 ${BUILD_TARGETS} \ 543 ${BUILD_TARGETS} \
531 TMPDIR="${T}" \ 544 TMPDIR="${T}" \
532 DESTDIR="${D}" \ 545 DESTDIR="${D}" \
533 || die "einstall (makefile target) failed" 546 || die "einstall (makefile target) failed"
534 else 547 else
535 dev_check "Plugin still use the old Makefile handling" 548 dev_check "Plugin use still the old Makefile handling"
536 insinto "${VDR_PLUGIN_DIR}" 549 insinto "${VDR_PLUGIN_DIR}"
537 doins libvdr-*.so.* 550 doins libvdr-*.so.*
538 fi 551 fi
539 552
540 if [[ -d ${TMP_LOCALE_DIR} ]]; then 553 if [[ -d ${TMP_LOCALE_DIR} ]]; then

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

  ViewVC Help
Powered by ViewVC 1.1.20