diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2011-09-26 20:00:37 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2011-09-26 20:00:37 +0000 |
commit | 4d18c5b40178b377396dea53adc597301500afdb (patch) | |
tree | 82de3ed8d6a6d621b70c62611ee709fdd6824d68 /app-misc/recoll | |
parent | Masking app-misc/recoll for testing (diff) | |
download | historical-4d18c5b40178b377396dea53adc597301500afdb.tar.gz historical-4d18c5b40178b377396dea53adc597301500afdb.tar.bz2 historical-4d18c5b40178b377396dea53adc597301500afdb.zip |
Initial commit. Ebuild based on the one attached by Israel G. Lugo <israel.lugo@lugosys.com>. Bug #171271
Package-Manager: portage-2.2.0_alpha55/cvs/Linux x86_64
Diffstat (limited to 'app-misc/recoll')
-rw-r--r-- | app-misc/recoll/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/recoll/Manifest | 24 | ||||
-rw-r--r-- | app-misc/recoll/metadata.xml | 28 | ||||
-rw-r--r-- | app-misc/recoll/recoll-1.16.0.ebuild | 149 |
4 files changed, 212 insertions, 0 deletions
diff --git a/app-misc/recoll/ChangeLog b/app-misc/recoll/ChangeLog new file mode 100644 index 000000000000..a0b44ee5fe2e --- /dev/null +++ b/app-misc/recoll/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-misc/recoll +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/ChangeLog,v 1.1 2011/09/26 20:00:37 hwoarang Exp $ + +*recoll-1.16.0 (26 Sep 2011) + + 26 Sep 2011; Markos Chandras <hwoarang@gentoo.org> +recoll-1.16.0.ebuild, + +metadata.xml: + Initial commit. Ebuild based on the one attached by Israel G. Lugo + <israel.lugo@lugosys.com>. Bug #171271 + diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest new file mode 100644 index 000000000000..75134502aac9 --- /dev/null +++ b/app-misc/recoll/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +DIST recoll-1.16.0.tar.gz 1358438 RMD160 e6997ba29c64a95a958f6894b4737dbf0791249d SHA1 eede284bfb202fd008adef3c8303edadb3466c88 SHA256 b7dd72404aae4614799b159458d8dfd53df9d28dd3e21d0e8de1ad256102a5bf +EBUILD recoll-1.16.0.ebuild 4026 RMD160 0c037ff62cbf8782e0480519ee59096f7a68cd69 SHA1 46147fdd772e1e3d44cc26f32363238d65e7af9e SHA256 7b8d726fad29f85c19befe19746009e8f8b5c1b6a411bc9f2ff0dad15fdebc8b +MISC ChangeLog 439 RMD160 54845607197563fe3cf947512538b8bdf44ef105 SHA1 fae2cf5f8ce826f05221612bcfc020c37a35de9a SHA256 816188bf36afe42f72f76606471451679f1af3bc39ebdc1642dd2fefd79d4907 +MISC metadata.xml 1133 RMD160 e37d583a094715f93fe78665d8be98593ecd8ff8 SHA1 f5649c13f8c9fdaae2ead2ae01521d703502ef6f SHA256 14a30c7b9b06213b2e7fb59ea1595e02ca1ac931f6c963cb02392c44c5148897 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQIcBAEBCgAGBQJOgNm6AAoJEPqDWhW0r/LChhMQALnNE1tHpkcUGZ+o5oVmtkLk +eD3k6PD3PWdINkrCIFOOGeArsiOuQRj941OEwfeOL/11FJN3fHdI+WbnYIL4AmEi +VVfGqz5+pWmFVDX7/pApbdY4AmUmSxT2iIjIJRJHchScrkmpz0gs6Bj5NlzHIt/q +LkWOsbn5yk5oN2Nn8R/L3tJdtLT1ZPnkeJ6fJbX4L4YU/K+ZAt3s2xZct1MAFNTr +7ciJbrD53Jyf0TMA0MHpBpa0wovWGWmKZH8HUOG0Zn/MB5i4SUDf89G9oGdeo0ts +QG/T0XZ1qjjxgkk80vf7qZUAfmbOmfQj6MqeyQbLA7k5YctbEah1O/cJbxa/fyOL +os6ANr2Aa4kZ93l7reVuU1m57wkNXfaqQKDD2nqWu+kk2G25QzO3CIPjdA5zNHwQ +UEaSGlIJSXCq+FBZE/Z1FX7KfVPHUE2KGilOlWqeM497LRzpziIhOjyNnhbBKr/b ++i/zK55vOnuGyUGJrSyWFv+9dMxBtnfnAWQeRg5aXaDSeNrFR3QR+Yec8ok/HSVH +kpt16ICNTW0GY5gkjtx4UAnd/2rbNeafd5wiiEo8W911PHZHt2zcL44p/VDSA4wZ +HrjdnSaHCYDAOPoECv+97xyHBsvEU7cuUpzeeoRP1DGRJy0cTs5DvSsONaDdNlW6 +b42NKcjGNnPQ6DxVJn+X +=MomO +-----END PGP SIGNATURE----- diff --git a/app-misc/recoll/metadata.xml b/app-misc/recoll/metadata.xml new file mode 100644 index 000000000000..42ccc3fa83d9 --- /dev/null +++ b/app-misc/recoll/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> +</maintainer> +<use> + <flag name='inotify'>Use the Linux Kenrel notification subsystem for monitoring file alterations</flag> + <flag name='camelcase'>Enable indexing for camelCase sentences and words</flag> + <flag name='audio'>Index audio files</flag> + <flag name='chm'>Index chm files</flag> + <flag name='dvi'>Index dvi files</flag> + <flag name='gs'>Index PostScript files</flag> + <flag name='ics'>Index icalendar files</flag> + <flag name='info'>Index GNU info files</flag> + <flag name='lyx'>Index Latex lyx files</flag> + <flag name='msdoc'>Index Microsoft Word documents</flag> + <flag name='msppt'>Index Microsoft Power Point documents</flag> + <flag name='msxls'>Index Microsoft Excel documents</flag> + <flag name='rtf'>Index Microsoft RTF documents</flag> + <flag name='tex'>Index Tex files</flag> + <flag name='wordperfect'>Index wordperfect documents</flag> +</use> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/app-misc/recoll/recoll-1.16.0.ebuild b/app-misc/recoll/recoll-1.16.0.ebuild new file mode 100644 index 000000000000..496fe2031d59 --- /dev/null +++ b/app-misc/recoll/recoll-1.16.0.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/recoll-1.16.0.ebuild,v 1.1 2011/09/26 20:00:37 hwoarang Exp $ + +EAPI="4" + +inherit toolchain-funcs qt4-r2 linux-info + +DESCRIPTION="A personal full text search package" +HOMEPAGE="http://www.lesbonscomptes.com/recoll/" +SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +INDEX_HELPERS="audio chm djvu dvi exif gs ics info lyx msdoc msppt msxls pdf rtf tex wordperfect xml" +IUSE="+spell +inotify +qt4 +session camelcase xattr fam ${INDEX_HELPERS}" + +DEPEND=" + virtual/libiconv + >=dev-libs/xapian-1.0.12 + sys-libs/zlib + spell? ( app-text/aspell ) + !inotify? ( fam? ( virtual/fam ) ) + qt4? ( x11-libs/qt-core:4[qt3support] ) + session? ( + inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) + !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) ) + ) +" + +RDEPEND=" + ${DEPEND} + app-arch/unzip + sys-apps/sed + || ( sys-apps/gawk sys-apps/mawk ) + pdf? ( app-text/poppler ) + gs? ( app-text/pstotext ) + msdoc? ( app-text/antiword ) + msxls? ( app-text/catdoc ) + msppt? ( app-text/catdoc ) + wordperfect? ( app-text/libwpd ) + rtf? ( app-text/unrtf ) + tex? ( dev-tex/detex ) + dvi? ( virtual/tex-base ) + djvu? ( >=app-text/djvu-3.5.15 ) + exif? ( media-libs/exiftool ) + chm? ( dev-python/pychm ) + ics? ( dev-python/icalendar ) + lyx? ( app-office/lyx ) + audio? ( media-libs/mutagen ) + xml? ( dev-libs/libxslt ) + info? ( sys-apps/texinfo ) + " + +REQUIRED_USE="^^ ( fam inotify ) session? ( || ( fam inotify ) )" + +pkg_pretend() { + if use inotify; then + CONFIG_CHECK="~INOTIFY_USER" + check_extra_config + fi +} + +pkg_setup() { + local i at_least_one_helper + + at_least_one_helper=0 + for i in $INDEX_HELPERS; do + if use $i; then + at_least_one_helper=1 + break + fi + done + if [[ $at_least_one_helper -eq 0 ]]; then + ewarn + ewarn "You did not enable any of the optional file format flags." + ewarn "Recoll can read some file formats natively, but many of them" + ewarn "are optional since they require external helpers." + ewarn + fi +} + +src_prepare() { + # remember configure.ac is b0rked. Fix it before using eautoreconf in the + # future + # eautoreconf + + # do not strip binaries + sed -i -e "/STRIP/d" "${S}"/${PN}install.in \ + || die "Failed to fix the installation script" +} + +src_configure() { + local qtconf + + use qt4 && qtconf="QMAKEPATH=/usr/bin/qmake" + + econf \ + $(use_with spell aspell) \ + $(use_enable xattr) \ + $(use_with inotify) \ + $(use_enable qt4 qtgui) \ + $(use_enable camelcase) \ + $(use_with fam) \ + $(use_with inotify) \ + $(use_enable session x11mon) \ + ${x11monconf} \ + ${famconf} \ + ${qtconf} +} + +src_compile() { + # Do not let upstream people decide on our behalf + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CFLAGS="${CFLAGS} ${LDFLAGS}" \ + CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" +} + +src_install() { + # You probably wonder why I did not fix recollinstall in src_prepare. + # --prefix requires an absolute path but recollinstall requires prefix + # to be actually 'usr' because double // makes portage sad. And no, I am not + # gonna ask upstream to fix the build system + sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die + sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die + + emake DESTDIR="${D%/}" install + dodoc ChangeLog README + mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html" + dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc +} + +pkg_postinst() { + elog + elog "Default configuration files located at" + elog "/usr/share/${PN}/examples. Either edit these files to match" + elog "your needs or copy them to ~/.recoll/ and edit these files" + elog "instead." + elog + if use xattr; then + elog "Use flag \"xattr\" enables support for fetching field values" + elog "from extended file attributes. You will also need to set up a" + elog "map from the attributes names to the Recoll field names" + elog "(see comment at the end of the fields configuration file." + fi +} |