/[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.32 Revision 1.34
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/Attic/vdr-plugin.eclass,v 1.32 2006/09/10 10:29:21 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.34 2006/09/20 08:23:41 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
136 [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile 136 [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile
137 137
138 while [ "$1" ]; do 138 while [ "$1" ]; do
139 139
140 case "$1" in 140 case "$1" in
141 all_but_unpack)
142 vdr-plugin_src_unpack add_local_patch patchmakefile
143 ;;
141 unpack) 144 unpack)
142 base_src_unpack 145 base_src_unpack
143 ;; 146 ;;
144 patchmakefile) 147 patchmakefile)
145 if ! cd ${S}; then 148 if ! cd ${S}; then
185 -e '/@.*strip/d' \ 188 -e '/@.*strip/d' \
186 -e '/strip \$(LIBDIR)\/\$@/d' \ 189 -e '/strip \$(LIBDIR)\/\$@/d' \
187 -e '/^STRIP =/d' \ 190 -e '/^STRIP =/d' \
188 -e '/@.*\$(STRIP)/d' 191 -e '/@.*\$(STRIP)/d'
189 eend $? 192 eend $?
190 PLUGIN_MAKEFILE_PATCHED=1 193
194 # Use a file instead of an variable as single-stepping via ebuild
195 # destroys environment.
196 touch ${WORKDIR}/.vdr-plugin_makefile_patched
191 ;; 197 ;;
192 add_local_patch) 198 add_local_patch)
193 cd ${S} 199 cd ${S}
194 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then 200 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then
195 echo 201 echo
235 case "$1" in 241 case "$1" in
236 prepare) 242 prepare)
237 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree 243 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree
238 ;; 244 ;;
239 compile) 245 compile)
240 if [[ -z ${PLUGIN_MAKEFILE_PATCHED} ]]; then 246 if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then
241 eerror "Wrong use of vdr-plugin.eclass." 247 eerror "Wrong use of vdr-plugin.eclass."
242 eerror "An ebuild for a vdr-plugin will not work without" 248 eerror "An ebuild for a vdr-plugin will not work without"
243 eerror "calling vdr-plugin_src_unpack to patch the Makefile." 249 eerror "calling vdr-plugin_src_unpack to patch the Makefile."
244 echo 250 echo
245 eerror "Please report this at bugs.gentoo.org." 251 eerror "Please report this at bugs.gentoo.org."

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20