From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvo7J-0004sG-9l for garchives@archives.gentoo.org; Thu, 08 Oct 2009 08:12:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4630CE0A65; Thu, 8 Oct 2009 08:12:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F2447E0A65 for ; Thu, 8 Oct 2009 08:12:51 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 8780A67FA6 for ; Thu, 8 Oct 2009 08:12:51 +0000 (UTC) Received: from zzam by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Mvo7H-0004nM-2k for gentoo-commits@lists.gentoo.org; Thu, 08 Oct 2009 08:12:51 +0000 From: "Matthias Schwarzott (zzam)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, zzam@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: vdr-plugin.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: vdr-plugin.eclass X-VCS-Directories: eclass X-VCS-Committer: zzam X-VCS-Committer-Name: Matthias Schwarzott Content-Type: text/plain; charset=utf8 Message-Id: Sender: Matthias Schwarzott Date: Thu, 08 Oct 2009 08:12:51 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4a1383dc-5035-482f-9eb1-08f11a23128c X-Archives-Hash: f9732226c4456767536284d19db919e8 zzam 09/10/08 08:12:51 Modified: vdr-plugin.eclass Log: Improve disable file stripping. Be less verbose. Update example ebuild = code. Revision Changes Path 1.70 eclass/vdr-plugin.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vdr-plugin.= eclass?rev=3D1.70&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vdr-plugin.= eclass?rev=3D1.70&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vdr-plugin.= eclass?r1=3D1.69&r2=3D1.70 Index: vdr-plugin.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- vdr-plugin.eclass 24 Mar 2009 21:10:13 -0000 1.69 +++ vdr-plugin.eclass 8 Oct 2009 08:12:50 -0000 1.70 @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.69 2009/= 03/24 21:10:13 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.70 2009/= 10/08 08:12:50 zzam Exp $ # # Author: # Matthias Schwarzott @@ -11,8 +11,9 @@ # eclass to create ebuilds for vdr plugins # =20 -# Example ebuild (vdr-femon): +# Example ebuild (basic version without patching): # +# EAPI=3D"2" # inherit vdr-plugin # IUSE=3D"" # SLOT=3D"0" @@ -21,10 +22,17 @@ # SRC_URI=3D"http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/${P}.tgz= " # LICENSE=3D"GPL-2" # KEYWORDS=3D"~x86" -# DEPEND=3D">=3Dmedia-video/vdr-1.3.27" +# DEPEND=3D">=3Dmedia-video/vdr-1.6.0" # # =20 +# For patching you should modify src_prepare phase: +# +# src_prepare() { +# epatch "${FILESDIR}"/${P}-xxx.patch +# vdr-plugin_src_prepare +# } + # Installation of a config file for the plugin # # If ${VDR_CONFD_FILE} is set install this file @@ -165,7 +173,7 @@ =20 fix_vdr_libsi_include() { - einfo "Fixing include of libsi-headers" + #einfo "Fixing include of libsi-headers" local f for f; do sed -i "${f}" \ @@ -195,7 +203,6 @@ # Set VDRINCDIR=3D/usr/include # Change $(VDRDIR)/include to $(VDRINCDIR) =20 - ebegin " Setting paths" sed -i Makefile \ -e "s:^VDRDIR.*$:VDRDIR =3D ${VDR_INCLUDE_DIR}:" \ -e "/^VDRDIR/a VDRINCDIR =3D ${VDR_INCLUDE_DIR%/vdr}" \ @@ -203,7 +210,6 @@ \ -e 's:-I$(DVBDIR)/include::' \ -e 's:-I$(DVBDIR)::' - eend 0 =20 # maybe needed for multiproto: #sed -i Makefile \ @@ -229,7 +235,7 @@ sed -i Makefile \ -e '/@.*strip/d' \ -e '/strip \$(LIBDIR)\/\$@/d' \ - -e '/@.*\$(STRIP)/d' + -e 's/STRIP.*=3D.*$/STRIP =3D true/' =20 # Use a file instead of a variable as single-stepping via ebuild # destroys environment. @@ -295,20 +301,20 @@ } =20 vdr_i18n_disable_gettext() { - ebegin "Disabling gettext support in plugin" + #einfo "Disabling gettext support in plugin" + # Remove i18n Target if using older vdr sed -i Makefile \ -e '/^all:/s/ i18n//' - eend 0 } =20 vdr_i18n() { if vdr_has_gettext; then - einfo "VDR has gettext support" + #einfo "VDR has gettext support" if plugin_has_gettext; then - einfo "Plugin has gettext support, fine" + #einfo "Plugin has gettext support, fine" if [[ ${NO_GETTEXT_HACK} =3D=3D "1" ]]; then - ewarn "Please remove left over NO_GETTEXT_HACK." + ewarn "Please remove unneeded NO_GETTEXT_HACK from ebuild." fi else vdr_i18n_convert_to_gettext @@ -319,7 +325,7 @@ fi fi else - einfo "VDR has no gettext support" + #einfo "VDR has no gettext support" if plugin_has_gettext; then vdr_i18n_disable_gettext fi