diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2011-03-26 16:38:01 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2011-03-26 16:38:01 +0000 |
commit | 63b0d1ece49c612263517f851cbc3115f06788de (patch) | |
tree | e31dfb04e1162efcba73a79dc04ba9c3525126d6 /media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild | |
parent | Adapt phonon dependency for package move (diff) | |
download | gentoo-2-63b0d1ece49c612263517f851cbc3115f06788de.tar.gz gentoo-2-63b0d1ece49c612263517f851cbc3115f06788de.tar.bz2 gentoo-2-63b0d1ece49c612263517f851cbc3115f06788de.zip |
version bump
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild')
-rw-r--r-- | media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild new file mode 100644 index 000000000000..01f309a046ff --- /dev/null +++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta21.ebuild,v 1.1 2011/03/26 16:38:01 hd_brummy Exp $ + +EAPI="3" + +inherit vdr-plugin + +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}" + +check_menu_flags() { + if use pcre && use tre; then + echo + eerror "Please use only one of this USE-Flags" + eerror "\tpcre tre" + die "multiple use-flag manipulation" + fi +} + +src_prepare() { + check_menu_flags + + vdr-plugin_src_prepare + + fix_vdr_libsi_include conflictcheck.c + + # 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_src_install + cd "${S}" + 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 + + emake install-doc MANDIR="${D}/usr/share/man" + dodoc MANUAL +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.9.18" + previous_less_than_0_9_18=$? +} + +pkg_postinst() { + vdr-plugin_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 +} |