/[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.17 Revision 1.18
1# Copyright 1999-2012 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/vdr-plugin-2.eclass,v 1.17 2012/12/31 19:49:41 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.18 2013/01/03 20:30:47 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
541 eerror "Please report this at bugs.gentoo.org." 541 eerror "Please report this at bugs.gentoo.org."
542 die "vdr-plugin-2_src_compile not called!" 542 die "vdr-plugin-2_src_compile not called!"
543 fi 543 fi
544 cd "${S}" 544 cd "${S}"
545 545
546 local SOFILE_STRING=$(grep SOFILE Makefile)
547 if [[ -n ${SOFILE_STRING} ]]; then
548 dev_check "compiling with new Makefile handling"
549 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-install }} 546 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all }}
550 emake ${BUILD_PARAMS} \ 547 emake ${BUILD_PARAMS} \
551 ${BUILD_TARGETS} \ 548 ${BUILD_TARGETS} \
549 LOCALEDIR="${TMP_LOCALE_DIR}" \
552 LOCDIR="${TMP_LOCALE_DIR}" \ 550 LOCDIR="${TMP_LOCALE_DIR}" \
553 LIBDIR="${S}" \ 551 LIBDIR="${S}" \
554 TMPDIR="${T}" \ 552 TMPDIR="${T}" \
555 || die "emake failed" 553 || die "emake failed"
556 else
557 dev_check "compiling with old Makefile handling"
558 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all }}
559 emake ${BUILD_PARAMS} \
560 ${BUILD_TARGETS} \
561 LOCALEDIR="${TMP_LOCALE_DIR}" \
562 LIBDIR="${S}" \
563 TMPDIR="${T}" \
564 || die "emake failed"
565 fi
566 ;; 554 ;;
567 esac 555 esac
568 556
569 shift 557 shift
570 done 558 done
601 589
602 fi 590 fi
603 591
604 cd "${S}" 592 cd "${S}"
605 593
594 local SOFILE_STRING=$(grep SOFILE Makefile)
595 if [[ -n ${SOFILE_STRING} ]]; then
596 dev_check "installing with new Makefile handling"
597 BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-install }}
598 einstall ${BUILD_PARAMS} \
599 ${BUILD_TARGETS} \
600 LOCDIR="${TMP_LOCALE_DIR}" \
601 LIBDIR="${S}" \
602 TMPDIR="${T}" \
603 DESTDIR="${D}" \
604 || die "einstall (makefile target) failed"
605 fi
606
606 insinto "${VDR_PLUGIN_DIR}" 607 insinto "${VDR_PLUGIN_DIR}"
607 doins libvdr-*.so.* 608 doins libvdr-*.so.*
609
610 if [[ -d ${TMP_LOCALE_DIR} ]]; then
611 einfo "Installing locales"
612 cd "${TMP_LOCALE_DIR}"
613
614 local linguas
615 for linguas in ${LINGUAS[*]}; do
616 insinto "${LOCDIR}"
617 cp -r --parents ${linguas}* ${D}/${LOCDIR}
618 done
619 fi
608 620
609 # create list of all created plugin libs 621 # create list of all created plugin libs
610 vdr_plugin_list="" 622 vdr_plugin_list=""
611 local p_name 623 local p_name
612 for p in libvdr-*.so.*; do 624 for p in libvdr-*.so.*; do
616 done 628 done
617 629
618 create_header_checksum_file ${vdr_plugin_list} 630 create_header_checksum_file ${vdr_plugin_list}
619 create_plugindb_file ${vdr_plugin_list} 631 create_plugindb_file ${vdr_plugin_list}
620 632
621 if [[ -d ${TMP_LOCALE_DIR} ]]; then
622 einfo "Installing locales"
623 cd "${TMP_LOCALE_DIR}"
624 local linguas
625 for linguas in ${LINGUAS[*]}; do
626 insinto "${LOCDIR}"
627 cp -r --parents ${linguas}* ${D}/${LOCDIR}
628 done
629 fi
630 633
631 cd "${S}" 634 cd "${S}"
632 local docfile 635 local docfile
633 for docfile in README* HISTORY CHANGELOG; do 636 for docfile in README* HISTORY CHANGELOG; do
634 [[ -f ${docfile} ]] && dodoc ${docfile} 637 [[ -f ${docfile} ]] && dodoc ${docfile}

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20