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

Diff of /eclass/vdr-plugin.eclass

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

Revision 1.47 Revision 1.50
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.eclass,v 1.47 2007/08/14 14:47:21 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.50 2007/10/05 13:56:49 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7# Joerg Bornkessel <hd_brummy@gentoo.org> 7# Joerg Bornkessel <hd_brummy@gentoo.org>
8 8
71 71
72# works in most cases 72# works in most cases
73S="${WORKDIR}/${VDRPLUGIN}-${PV}" 73S="${WORKDIR}/${VDRPLUGIN}-${PV}"
74 74
75# depend on headers for DVB-driver 75# depend on headers for DVB-driver
76RDEPEND=">=media-tv/gentoo-vdr-scripts-0.3.4-r1" 76DEPEND=">=media-tv/gentoo-vdr-scripts-0.3.8
77 >=media-tv/vdrplugin-rebuild-0.2
78 >=app-admin/eselect-vdr-0.0.2
77DEPEND="media-tv/linuxtv-dvb-headers" 79 media-tv/linuxtv-dvb-headers"
78 80
79
80# this code is from linux-mod.eclass
81update_vdrplugindb() {
82 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugin-rebuild/
83
84 if [[ ! -f ${VDRPLUGINDB_DIR}/vdrplugindb ]]; then
85 [[ ! -d ${VDRPLUGINDB_DIR} ]] && mkdir -p ${VDRPLUGINDB_DIR}
86 touch ${VDRPLUGINDB_DIR}/vdrplugindb
87 fi
88 if [[ -z $(grep ${CATEGORY}/${PN}-${PVR} ${VDRPLUGINDB_DIR}/vdrplugindb) ]]; then
89 einfo "Adding plugin to vdrplugindb."
90 echo "a:1:${CATEGORY}/${PN}-${PVR}" >> ${VDRPLUGINDB_DIR}/vdrplugindb
91 fi
92}
93
94remove_vdrplugindb() {
95 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugin-rebuild/
96
97 if [[ -n $(grep ${CATEGORY}/${PN}-${PVR} ${VDRPLUGINDB_DIR}/vdrplugindb) ]]; then
98 einfo "Removing ${CATEGORY}/${PN}-${PVR} from vdrplugindb."
99 sed -ie "/.*${CATEGORY}\/${P}.*/d" ${VDRPLUGINDB_DIR}/vdrplugindb
100 fi
101}
102 81
103# New method of storing plugindb 82# New method of storing plugindb
104# Called from src_install 83# Called from src_install
105# file maintained by normal portage-methods 84# file maintained by normal portage-methods
106create_plugindb_file() { 85create_plugindb_file() {
107 local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/ 86 local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/
108 local DB_FILE=${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF} 87 local DB_FILE="${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}"
109 insinto ${NEW_VDRPLUGINDB_DIR} 88 insinto "${NEW_VDRPLUGINDB_DIR}"
110 cat <<-EOT > ${D}/${DB_FILE} 89 cat <<-EOT > "${D}/${DB_FILE}"
111 VDRPLUGIN_DB=1 90 VDRPLUGIN_DB=1
112 CREATOR=ECLASS 91 CREATOR=ECLASS
113 EBUILD=${CATEGORY}/${PN} 92 EBUILD=${CATEGORY}/${PN}
114 EBUILD_V=${PVR} 93 EBUILD_V=${PVR}
115 EOT 94 EOT
121# long as not every system has switched over to 100# long as not every system has switched over to
122# vdrplugin-rebuild-0.2 101# vdrplugin-rebuild-0.2
123delete_orphan_plugindb_file() { 102delete_orphan_plugindb_file() {
124 #elog Testing for orphaned plugindb file 103 #elog Testing for orphaned plugindb file
125 local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/ 104 local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/
126 local DB_FILE=${ROOT}/${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF} 105 local DB_FILE="${ROOT}/${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}"
127 106
128 # file exists 107 # file exists
129 [[ -f ${DB_FILE} ]] || return 108 [[ -f ${DB_FILE} ]] || return
130 109
131 # will portage handle the file itself 110 # will portage handle the file itself
132 if grep -q CREATOR=ECLASS ${DB_FILE}; then 111 if grep -q CREATOR=ECLASS "${DB_FILE}"; then
133 #elog file owned by eclass - don't touch it 112 #elog file owned by eclass - don't touch it
134 return 113 return
135 fi 114 fi
136 115
137 elog "Removing orphaned plugindb-file." 116 elog "Removing orphaned plugindb-file."
138 elog "\t#rm ${DB_FILE}" 117 elog "\t#rm ${DB_FILE}"
139 rm ${DB_FILE} 118 rm "${DB_FILE}"
140} 119}
141 120
142 121
143create_header_checksum_file() 122create_header_checksum_file()
144{ 123{
145 # Danger: Not using $ROOT here, as compile will also not use it !!! 124 # Danger: Not using $ROOT here, as compile will also not use it !!!
146 # If vdr in $ROOT and / differ, plugins will not run anyway 125 # If vdr in $ROOT and / differ, plugins will not run anyway
147 126
148 insinto ${VDR_CHECKSUM_DIR} 127 insinto "${VDR_CHECKSUM_DIR}"
149 if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then 128 if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then
150 newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} 129 newins "${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN}"
151 else 130 else
152 if type -p md5sum >/dev/null 2>&1; then 131 if type -p md5sum >/dev/null 2>&1; then
153 cd ${S} 132 cd "${S}"
154 ( 133 (
155 cd ${VDR_INCLUDE_DIR} 134 cd "${VDR_INCLUDE_DIR}"
156 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 135 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
157 ) > header-md5-${PN} 136 ) > header-md5-${PN}
158 doins header-md5-${PN} 137 doins header-md5-${PN}
159 fi 138 fi
160 fi 139 fi
175 # Pathes to includes 154 # Pathes to includes
176 VDR_INCLUDE_DIR="/usr/include/vdr" 155 VDR_INCLUDE_DIR="/usr/include/vdr"
177 DVB_INCLUDE_DIR="/usr/include" 156 DVB_INCLUDE_DIR="/usr/include"
178 157
179 158
159 TMP_LOCALE_DIR="${WORKDIR}/tmp-locale"
160 LOCDIR="/usr/share/vdr/locale"
161 if has_version ">=media-video/vdr-1.5.7"; then
162 USE_GETTEXT=1
163 else
164 USE_GETTEXT=0
165 fi
166
180 VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/config.h) 167 VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
181 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/config.h) 168 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
182 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}" 169 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
183 170
184 einfo "Building ${PF} against vdr-${VDRVERSION}" 171 einfo "Building ${PF} against vdr-${VDRVERSION}"
185 einfo "APIVERSION: ${APIVERSION}" 172 einfo "APIVERSION: ${APIVERSION}"
186} 173}
191 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin_pkg_setup." 178 eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin_pkg_setup."
192 echo 179 echo
193 eerror "Please report this at bugs.gentoo.org." 180 eerror "Please report this at bugs.gentoo.org."
194 die "vdr-plugin_pkg_setup not called!" 181 die "vdr-plugin_pkg_setup not called!"
195 fi 182 fi
196 [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile 183 [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile i18n
197 184
198 while [ "$1" ]; do 185 while [ "$1" ]; do
199 186
200 case "$1" in 187 case "$1" in
201 all_but_unpack) 188 all_but_unpack)
202 vdr-plugin_src_unpack add_local_patch patchmakefile 189 vdr-plugin_src_unpack add_local_patch patchmakefile i18n
203 ;; 190 ;;
204 unpack) 191 unpack)
205 base_src_unpack 192 base_src_unpack
206 ;; 193 ;;
207 patchmakefile) 194 patchmakefile)
208 if ! cd ${S}; then 195 if ! cd "${S}"; then
209 ewarn "There seems to be no plugin-directory with the name ${S##*/}" 196 ewarn "There seems to be no plugin-directory with the name ${S##*/}"
210 ewarn "Perhaps you find one among these:" 197 ewarn "Perhaps you find one among these:"
211 cd "${WORKDIR}" 198 cd "${WORKDIR}"
212 ewarn "$(/bin/ls -1 ${WORKDIR})" 199 ewarn "$(/bin/ls -1 "${WORKDIR}")"
213 die "Could not change to plugin-source-directory!" 200 die "Could not change to plugin-source-directory!"
214 fi 201 fi
215 202
216 einfo "Patching Makefile" 203 einfo "Patching Makefile"
217 [[ -e Makefile ]] || die "Makefile of plugin can not be found!" 204 [[ -e Makefile ]] || die "Makefile of plugin can not be found!"
255 # Use a file instead of an variable as single-stepping via ebuild 242 # Use a file instead of an variable as single-stepping via ebuild
256 # destroys environment. 243 # destroys environment.
257 touch ${WORKDIR}/.vdr-plugin_makefile_patched 244 touch ${WORKDIR}/.vdr-plugin_makefile_patched
258 ;; 245 ;;
259 add_local_patch) 246 add_local_patch)
260 cd ${S} 247 cd "${S}"
261 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then 248 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then
262 echo 249 echo
263 einfo "Applying local patches" 250 einfo "Applying local patches"
264 for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PN}/${PV}/*.{diff,patch}; do 251 for LOCALPATCH in "${VDR_LOCAL_PATCHES_DIR}/${PN}/${PV}"/*.{diff,patch}; do
265 test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}" 252 test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
266 done 253 done
267 fi 254 fi
268 ;; 255 ;;
256 i18n)
257 cd "${S}"
258 if [[ ${USE_GETTEXT} = 0 ]]; then
259 # Remove i18n Target if using older vdr
260 sed -i Makefile \
261 -e '/^all:/s/ i18n//'
262 elif [[ ${USE_GETTEXT} = 1 && ! -d po && ${NO_GETTEXT_HACK} != 1 ]]; then
263 einfo "Converting translations to gettext"
264
265 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext.pl"
266 if [[ ! -x ${i18n_tool} ]]; then
267 eerror "Missing ${i18n_tool}"
268 eerror "Please re-emerge vdr"
269 die "Missing ${i18n_tool}"
270 fi
271
272 # call i18n-to-gettext tool
273 # take all texts missing tr call into special file
274 "${i18n_tool}" 2>/dev/null \
275 |sed -e '/^"/!d' \
276 -e '/^""$/d' \
277 -e 's/\(.*\)/trNOOP(\1)/' \
278 > dummy-translations-trNOOP.c
279
280 # if there were untranslated texts just run it again
281 # now the missing calls are listed in
282 # dummy-translations-trNOOP.c
283 if [[ -s dummy-translations-trNOOP.c ]]; then
284 "${i18n_tool}" &>/dev/null
285 fi
286
287 # now use the modified Makefile
288 mv Makefile.new Makefile
289 fi
269 esac 290 esac
270 291
271 shift 292 shift
272 done 293 done
273} 294}
274 295
275vdr-plugin_copy_source_tree() { 296vdr-plugin_copy_source_tree() {
276 pushd . >/dev/null 297 pushd . >/dev/null
277 cp -r ${S} ${T}/source-tree 298 cp -r "${S}" "${T}"/source-tree
278 cd ${T}/source-tree 299 cd "${T}"/source-tree
279 cp "${WORKDIR}"/Makefile.before Makefile 300 cp "${WORKDIR}"/Makefile.before Makefile
280 sed -i Makefile \ 301 sed -i Makefile \
281 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \ 302 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
282 -e 's:^CXXFLAGS:#CXXFLAGS:' \ 303 -e 's:^CXXFLAGS:#CXXFLAGS:' \
283 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ 304 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \
285 popd >/dev/null 306 popd >/dev/null
286} 307}
287 308
288vdr-plugin_install_source_tree() { 309vdr-plugin_install_source_tree() {
289 einfo "Installing sources" 310 einfo "Installing sources"
290 destdir=${VDRSOURCE_DIR}/vdr-${VDRVERSION}/PLUGINS/src/${VDRPLUGIN} 311 destdir="${VDRSOURCE_DIR}/vdr-${VDRVERSION}/PLUGINS/src/${VDRPLUGIN}"
291 insinto ${destdir}-${PV} 312 insinto "${destdir}-${PV}"
292 doins -r ${T}/source-tree/* 313 doins -r "${T}"/source-tree/*
293 314
294 dosym ${VDRPLUGIN}-${PV} ${destdir} 315 dosym "${VDRPLUGIN}-${PV}" "${destdir}"
295} 316}
296 317
297vdr-plugin_src_compile() { 318vdr-plugin_src_compile() {
298 [ -z "$1" ] && vdr-plugin_src_compile prepare compile 319 [ -z "$1" ] && vdr-plugin_src_compile prepare compile
299 320
310 eerror "calling vdr-plugin_src_unpack to patch the Makefile." 331 eerror "calling vdr-plugin_src_unpack to patch the Makefile."
311 echo 332 echo
312 eerror "Please report this at bugs.gentoo.org." 333 eerror "Please report this at bugs.gentoo.org."
313 die "vdr-plugin_src_unpack not called!" 334 die "vdr-plugin_src_unpack not called!"
314 fi 335 fi
315 cd ${S} 336 cd "${S}"
316 337
317 emake ${BUILD_PARAMS} ${VDRPLUGIN_MAKE_TARGET:-all} || die "emake failed" 338 emake ${BUILD_PARAMS} \
339 ${VDRPLUGIN_MAKE_TARGET:-all} \
340 LOCALEDIR="${TMP_LOCALE_DIR}" \
341 || die "emake failed"
318 ;; 342 ;;
319 esac 343 esac
320 344
321 shift 345 shift
322 done 346 done
325vdr-plugin_src_install() { 349vdr-plugin_src_install() {
326 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_install_source_tree 350 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_install_source_tree
327 cd "${WORKDIR}" 351 cd "${WORKDIR}"
328 352
329 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then 353 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
330 local mname=${P}-Makefile 354 local mname="${P}-Makefile"
331 cp "${S}"/Makefile ${mname}.patched 355 cp "${S}"/Makefile "${mname}.patched"
332 cp Makefile.before ${mname}.before 356 cp Makefile.before "${mname}.before"
333 357
334 diff -u ${mname}.before ${mname}.patched > ${mname}.diff 358 diff -u "${mname}.before" "${mname}.patched" > "${mname}.diff"
335 359
336 insinto "/usr/share/vdr/maintainer-data/makefile-changes" 360 insinto "/usr/share/vdr/maintainer-data/makefile-changes"
337 doins ${mname}.diff 361 doins "${mname}.diff"
338 362
339 insinto "/usr/share/vdr/maintainer-data/makefile-before" 363 insinto "/usr/share/vdr/maintainer-data/makefile-before"
340 doins ${mname}.before 364 doins "${mname}.before"
341 365
342 insinto "/usr/share/vdr/maintainer-data/makefile-patched" 366 insinto "/usr/share/vdr/maintainer-data/makefile-patched"
343 doins ${mname}.patched 367 doins "${mname}.patched"
344 368
345 fi 369 fi
346 370
347 cd "${S}" 371 cd "${S}"
348 insinto "${VDR_PLUGIN_DIR}" 372 insinto "${VDR_PLUGIN_DIR}"
349 doins libvdr-*.so.* 373 doins libvdr-*.so.*
374
375 if [[ ${USE_GETTEXT} = 1 && -d ${TMP_LOCALE_DIR} ]]; then
376 einfo "Installing locales"
377 cd "${TMP_LOCALE_DIR}"
378 insinto "${LOCDIR}"
379 doins -r *
380 fi
381
382 cd "${S}"
350 local docfile 383 local docfile
351 for docfile in README* HISTORY CHANGELOG; do 384 for docfile in README* HISTORY CHANGELOG; do
352 [[ -f ${docfile} ]] && dodoc ${docfile} 385 [[ -f ${docfile} ]] && dodoc ${docfile}
353 done 386 done
354 387
370 403
371 create_header_checksum_file 404 create_header_checksum_file
372 create_plugindb_file 405 create_plugindb_file
373} 406}
374 407
408vdr-plugin_print_enable_command() {
409 ewarn "emerge --config ${PN} is deprecated"
410 elog
411 elog "To activate this vdr-plugin execute the following command:"
412 elog "\teselect vdr-plugin enable ${PN#vdr-}"
413 elog
414}
415
375vdr-plugin_pkg_postinst() { 416vdr-plugin_pkg_postinst() {
376 if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then 417 vdr-plugin_print_enable_command
377 update_vdrplugindb 418
378 fi
379 elog
380 elog "The vdr plugin ${VDRPLUGIN} has now been installed."
381 elog "To activate execute the following command:"
382 elog
383 elog " emerge --config ${PN}"
384 elog
385 if [[ -n "${VDR_CONFD_FILE}" ]]; then 419 if [[ -n "${VDR_CONFD_FILE}" ]]; then
386 elog "And have a look at the config-file" 420 elog "Please have a look at the config-file"
387 elog "/etc/conf.d/vdr.${VDRPLUGIN}" 421 elog "\t/etc/conf.d/vdr.${VDRPLUGIN}"
388 elog 422 elog
389 fi 423 fi
390} 424}
391 425
392vdr-plugin_pkg_postrm() { 426vdr-plugin_pkg_postrm() {
393 if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then
394 remove_vdrplugindb
395 fi
396 delete_orphan_plugindb_file 427 delete_orphan_plugindb_file
397} 428}
398 429
399vdr-plugin_pkg_config_final() {
400 diff ${conf_orig} ${conf}
401 rm ${conf_orig}
402}
403
404vdr-plugin_pkg_config_old() { 430vdr-plugin_pkg_config_legacy() {
405 elog "Using interface of gentoo-vdr-scripts-0.3.6 and older"
406 if [[ -z "${INSTALLPLUGIN}" ]]; then
407 INSTALLPLUGIN="${VDRPLUGIN}"
408 fi
409 # First test if plugin is already inside PLUGINS
410 local conf=/etc/conf.d/vdr
411 conf_orig=${conf}.before_emerge_config
412 cp ${conf} ${conf_orig}
413
414 elog "Reading ${conf}"
415 if ! grep -q "^PLUGINS=" ${conf}; then
416 local LINE=$(sed ${conf} -n -e '/^#.*PLUGINS=/=' | tail -n 1)
417 if [[ -n "${LINE}" ]]; then
418 sed -e ${LINE}'a PLUGINS=""' -i ${conf}
419 else
420 echo 'PLUGINS=""' >> ${conf}
421 fi
422 unset LINE
423 fi
424
425 unset PLUGINS
426 PLUGINS=$(source /etc/conf.d/vdr; echo ${PLUGINS})
427
428 active=0
429 for p in ${PLUGINS}; do
430 if [[ "${p}" == "${INSTALLPLUGIN}" ]]; then
431 active=1
432 break;
433 fi
434 done
435
436 if [[ "${active}" == "1" ]]; then
437 elog "${INSTALLPLUGIN} already activated"
438 echo
439 read -p "Do you want to deactivate ${INSTALLPLUGIN} (yes/no) " answer
440 if [[ "${answer}" != "yes" ]]; then
441 elog "aborted"
442 return
443 fi
444 elog "Removing ${INSTALLPLUGIN} from active plugins."
445 local LINE=$(sed ${conf} -n -e '/^PLUGINS=.*\<'${INSTALLPLUGIN}'\>/=' | tail -n 1)
446 sed -i ${conf} -e ${LINE}'s/\<'${INSTALLPLUGIN}'\>//' \
447 -e ${LINE}'s/ \( \)*/ /g' \
448 -e ${LINE}'s/ "/"/g' \
449 -e ${LINE}'s/" /"/g'
450
451 vdr-plugin_pkg_config_final
452 return
453 fi
454
455
456 elog "Adding ${INSTALLPLUGIN} to active plugins."
457 local LINE=$(sed ${conf} -n -e '/^PLUGINS=/=' | tail -n 1)
458 sed -i ${conf} -e ${LINE}'s/^PLUGINS=" *\(.*\)"/PLUGINS="\1 '${INSTALLPLUGIN}'"/' \
459 -e ${LINE}'s/ \( \)*/ /g' \
460 -e ${LINE}'s/ "/"/g' \
461 -e ${LINE}'s/" /"/g'
462
463 vdr-plugin_pkg_config_final
464}
465
466vdr-plugin_pkg_config_new() {
467 elog "Using interface introduced with gentoo-vdr-scripts-0.3.7" 431 elog "Using old interface to gentoo-vdr-scripts-0.3.7"
468 if [[ -z "${INSTALLPLUGIN}" ]]; then 432 if [[ -z "${INSTALLPLUGIN}" ]]; then
469 INSTALLPLUGIN="${VDRPLUGIN}" 433 INSTALLPLUGIN="${VDRPLUGIN}"
470 fi 434 fi
471 435
472 active=0 436 active=0
500 sed -i "${conf}" -e "/^[[:space:]]*${INSTALLPLUGIN}[[:space:]]*\$/d" 464 sed -i "${conf}" -e "/^[[:space:]]*${INSTALLPLUGIN}[[:space:]]*\$/d"
501 fi 465 fi
502} 466}
503 467
504vdr-plugin_pkg_config() { 468vdr-plugin_pkg_config() {
505 if has_version ">media-tv/gentoo-vdr-scripts-0.3.6"; then 469 vdr-plugin_print_enable_command
506 vdr-plugin_pkg_config_new 470
507 else 471 einfo "Calling this now"
508 vdr-plugin_pkg_config_old 472 eselect vdr-plugin enable "${PN#vdr-}"
509 fi
510} 473}
511 474
512fix_vdr_libsi_include() 475fix_vdr_libsi_include()
513{ 476{
514 einfo "Fixing include of libsi-headers" 477 einfo "Fixing include of libsi-headers"

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20