diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2012-05-20 17:18:01 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2012-05-20 17:18:01 +0000 |
commit | 6fad6907456a1c7b253815246a33789c08e4c542 (patch) | |
tree | 98ca42bd08b763947b82bcd960a40081ad4435f4 /media-plugins/vdr-epgsearch | |
parent | Try to avoid sandbox violation when running qhelpgenerator, bug 415517. (diff) | |
download | gentoo-2-6fad6907456a1c7b253815246a33789c08e4c542.tar.gz gentoo-2-6fad6907456a1c7b253815246a33789c08e4c542.tar.bz2 gentoo-2-6fad6907456a1c7b253815246a33789c08e4c542.zip |
Use the new vdr-plugin eclass. Fix broken symlinks/docs. Thanks to madmartin #gentoo-vdr.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/vdr-epgsearch')
-rw-r--r-- | media-plugins/vdr-epgsearch/ChangeLog | 9 | ||||
-rw-r--r-- | media-plugins/vdr-epgsearch/vdr-epgsearch-1.0.0-r1.ebuild | 96 |
2 files changed, 104 insertions, 1 deletions
diff --git a/media-plugins/vdr-epgsearch/ChangeLog b/media-plugins/vdr-epgsearch/ChangeLog index 4cb8d1af5cf2..9ac38f875238 100644 --- a/media-plugins/vdr-epgsearch/ChangeLog +++ b/media-plugins/vdr-epgsearch/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-plugins/vdr-epgsearch # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/ChangeLog,v 1.54 2012/03/03 21:15:53 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/ChangeLog,v 1.55 2012/05/20 17:18:01 idl0r Exp $ + +*vdr-epgsearch-1.0.0-r1 (20 May 2012) + + 20 May 2012; Christian Ruppert <idl0r@gentoo.org> + +vdr-epgsearch-1.0.0-r1.ebuild: + Use the new vdr-plugin eclass. Fix broken symlinks/docs. Thanks to madmartin + #gentoo-vdr. 03 Mar 2012; Joerg Bornkessel <hd_brummy@gentoo.org> vdr-epgsearch-1.0.0.ebuild, +files/vdr-epgsearch-1.0.0_vdr-1.7.25.diff: diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-1.0.0-r1.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-1.0.0-r1.ebuild new file mode 100644 index 000000000000..a2c034ab8d66 --- /dev/null +++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-1.0.0-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/vdr-epgsearch-1.0.0-r1.ebuild,v 1.1 2012/05/20 17:18:01 idl0r Exp $ + +EAPI="4" + +inherit vdr-plugin-2 + +DESCRIPTION="Video Disk Recorder epgsearch plugin" +HOMEPAGE="http://winni.vdr-developer.org/epgsearch" + +case ${P#*_} in + rc*|beta*) + MY_P="${P/_/.}" + SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/beta/${MY_P}.tgz" + S="${WORKDIR}/${MY_P#vdr-}" + ;; + *) + SRC_URI="http://winni.vdr-developer.org/epgsearch/downloads/${P}.tgz" + ;; +esac + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pcre tre" + +DEPEND=">=media-video/vdr-1.3.45 + pcre? ( dev-libs/libpcre ) + tre? ( dev-libs/tre )" +RDEPEND="${DEPEND}" + +REQUIRED_USE="pcre? ( !tre ) + tre? ( !pcre )" + +src_prepare() { + vdr-plugin-2_src_prepare + + fix_vdr_libsi_include conflictcheck.c + + if has_version ">=media-video/vdr-1.7.25"; then + epatch "${FILESDIR}/${P}_vdr-1.7.25.diff" + fi + + # disable automagic deps + sed -i Makefile -e '/^AUTOCONFIG=/s/^/#/' + + if use pcre; then + einfo "Using pcre for regexp searches" + sed -i Makefile -e 's:^#REGEXLIB = pcre:REGEXLIB = pcre:' + fi + + if use tre; then + einfo "Using tre for unlimited fuzzy searches" + sed -i Makefile -e 's:^#REGEXLIB = pcre:REGEXLIB = tre:' + fi + + # install conf-file disabled + sed -e '/^Menu/s:^:#:' -i conf/epgsearchmenu.conf +} + +src_install() { + vdr-plugin-2_src_install + + diropts "-m755 -o vdr -g vdr" + keepdir /etc/vdr/plugins/epgsearch + insinto /etc/vdr/plugins/epgsearch + + doins conf/epgsearchmenu.conf + doins conf/epgsearchconflmail.templ conf/epgsearchupdmail.templ + + dodoc conf/*.templ + + doman man/en/*.gz +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.9.18" + previous_less_than_0_9_18=$? +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + if [[ $previous_less_than_0_9_18 = 0 ]] ; then + elog "Moving config-files to new location /etc/vdr/plugins/epgsearch" + cd "${ROOT}"/etc/vdr/plugins + local f + local moved="" + for f in epgsearch*.* .epgsearch*; do + [[ -e ${f} ]] || continue + mv "${f}" "${ROOT}/etc/vdr/plugins/epgsearch" + moved="${moved} ${f}" + done + elog "These files were moved:${moved}" + fi +} |