diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2009-03-25 11:11:36 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2009-03-25 11:11:36 +0000 |
commit | 8453a536d0247c4e2ddb7c64ab1ad030b0dc3b60 (patch) | |
tree | 6f202b186de5f6099fc1dc1fccd8728b9df26811 /media-plugins/vdr-epgsearch | |
parent | Fix manifest (diff) | |
download | gentoo-2-8453a536d0247c4e2ddb7c64ab1ad030b0dc3b60.tar.gz gentoo-2-8453a536d0247c4e2ddb7c64ab1ad030b0dc3b60.tar.bz2 gentoo-2-8453a536d0247c4e2ddb7c64ab1ad030b0dc3b60.zip |
Version bumped. Add support for tre fuzzy searching.
(Portage version: 2.1.6.10/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-epgsearch')
-rw-r--r-- | media-plugins/vdr-epgsearch/ChangeLog | 8 | ||||
-rw-r--r-- | media-plugins/vdr-epgsearch/metadata.xml | 3 | ||||
-rw-r--r-- | media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta12.ebuild | 89 |
3 files changed, 99 insertions, 1 deletions
diff --git a/media-plugins/vdr-epgsearch/ChangeLog b/media-plugins/vdr-epgsearch/ChangeLog index 22e74b180dcf..2b346f50f270 100644 --- a/media-plugins/vdr-epgsearch/ChangeLog +++ b/media-plugins/vdr-epgsearch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/vdr-epgsearch # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/ChangeLog,v 1.41 2009/03/21 17:43:18 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/ChangeLog,v 1.42 2009/03/25 11:11:36 zzam Exp $ + +*vdr-epgsearch-0.9.25_beta12 (25 Mar 2009) + + 25 Mar 2009; Matthias Schwarzott <zzam@gentoo.org> metadata.xml, + +vdr-epgsearch-0.9.25_beta12.ebuild: + Version bumped. Add support for tre fuzzy searching. 21 Mar 2009; Matthias Schwarzott <zzam@gentoo.org> vdr-epgsearch-0.9.23.ebuild, vdr-epgsearch-0.9.24.ebuild, diff --git a/media-plugins/vdr-epgsearch/metadata.xml b/media-plugins/vdr-epgsearch/metadata.xml index d1b88e6872a7..04cf09a1d8a2 100644 --- a/media-plugins/vdr-epgsearch/metadata.xml +++ b/media-plugins/vdr-epgsearch/metadata.xml @@ -8,5 +8,8 @@ </maintainer> <longdescription lang="en"> </longdescription> +<use> + <flag name="tre">Add support for unlimited fuzzy searching with help of <pkg>dev-libs/tre</pkg> library</flag> +</use> </pkgmetadata> diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta12.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta12.ebuild new file mode 100644 index 000000000000..19a500730b39 --- /dev/null +++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.25_beta12.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2009 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_beta12.ebuild,v 1.1 2009/03/25 11:11:36 zzam Exp $ + +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}" + +src_unpack() { + vdr-plugin_src_unpack + + cd "${S}" + 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/^#HAVE_PCREPOSIX/HAVE_PCREPOSIX/' + fi + + if use tre; then + einfo "Using tre for unlimited fuzzy searches" + sed -i Makefile -e 's/^#HAVE_LIBTRE/HAVE_LIBTRE/' + 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 +} |