diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/recoll | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/recoll')
-rw-r--r-- | app-misc/recoll/Manifest | 2 | ||||
-rw-r--r-- | app-misc/recoll/metadata.xml | 26 | ||||
-rw-r--r-- | app-misc/recoll/recoll-1.17.3-r1.ebuild | 161 | ||||
-rw-r--r-- | app-misc/recoll/recoll-1.19.5.ebuild | 178 |
4 files changed, 367 insertions, 0 deletions
diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest new file mode 100644 index 00000000000..4cec7336747 --- /dev/null +++ b/app-misc/recoll/Manifest @@ -0,0 +1,2 @@ +DIST recoll-1.17.3.tar.gz 1757278 SHA256 7778f80546e6b10ca45bfb7f8bb0876ccf3987dd4e98c5003ff923bd8b5acb1c SHA512 b41d28255e6bfbfc8e0025d88c3d56ecfbd35814bfa359c41f3e5d3cc25debe6d66dc617aa4c012e1911aa8c373c48a1661f7fff926e2cce423562af82c2fb31 WHIRLPOOL 3ba9d58a0df401832b1a97f34f4caec1b79aa7de027b936b05195d447e374097bff9205714b1a97c287610c74c0ec2e7e726b144c2295859c293a013c3564644 +DIST recoll-1.19.5.tar.gz 1997615 SHA256 c4d63a4cd1a598117a521a883a6078082b30fe63eef84a879da9b467fcb56a8d SHA512 45ae5dc6d4f6d6dbb3d7e634bd60a2835b767e5d2d8d188636ab4b1777d65a6918c09d5bc09e80e4849aea6e8b2c9c430b99a9e56b645531065e558f4161a5f3 WHIRLPOOL df099f39a681aa1956076018861d064445bcb9fc050c866133a830ebeddb33efcc9a06596ce18d17d80bcfdb663bb780434719092c6c571f42b6093a4c750be3 diff --git a/app-misc/recoll/metadata.xml b/app-misc/recoll/metadata.xml new file mode 100644 index 00000000000..ed2d6b0e562 --- /dev/null +++ b/app-misc/recoll/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<use> + <flag name='camelcase'>Enable indexing for camelCase sentences and words</flag> + <flag name='chm'>Index chm files</flag> + <flag name='dvi'>Index dvi files</flag> + <flag name='ics'>Index iCalendar files</flag> + <flag name='info'>Index GNU info files</flag> + <flag name='inotify'>Use the Linux Kernel notification subsystem for monitoring file alterations in realtime</flag> + <flag name='lyx'>Index Latex lyx files</flag> + <flag name='msdoc'>Index Microsoft Word documents</flag> + <flag name='msppt'>Index Microsoft PowerPoint documents</flag> + <flag name='msxls'>Index Microsoft Excel documents</flag> + <flag name='pdf'>Index PDF documents</flag> + <flag name='rtf'>Index Microsoft RTF documents</flag> + <flag name='session'>Stop monitoring file alterations when X11 session terminates</flag> + <flag name='sound'>Index audio files</flag> + <flag name='tex'>Index TeX files</flag> + <flag name='wordperfect'>Index WordPerfect documents</flag> + <flag name='xml'>Index several XML-based formats (Abiword, FictionBook, Kword, Office OpenXML, OpenDocument, SVG)</flag> +</use> +</pkgmetadata> diff --git a/app-misc/recoll/recoll-1.17.3-r1.ebuild b/app-misc/recoll/recoll-1.17.3-r1.ebuild new file mode 100644 index 00000000000..8e8e80d774d --- /dev/null +++ b/app-misc/recoll/recoll-1.17.3-r1.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +PYTHON_DEPEND="2" +inherit toolchain-funcs qt4-r2 linux-info python + +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="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound 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? ( + dev-qt/qtcore:4[qt3support] + dev-qt/qtwebkit:4 + ) + 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 + virtual/awk + pdf? ( app-text/poppler ) + postscript? ( app-text/pstotext ) + msdoc? ( app-text/antiword ) + msxls? ( app-text/catdoc ) + msppt? ( app-text/catdoc ) + wordperfect? ( app-text/libwpd:0.9 ) + 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 ) + sound? ( 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() { + python_set_active_version 2 + python_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" + # Drop all the QMAKE lines. We will do it ourselves + sed -i -e "/QMAKE/d" Makefile.in || die +} + +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) \ + ${qtconf} + if use qt4; then + cd qtgui && eqmake4 ${PN}.pro && cd .. + fi +} + +src_compile() { + # Do not let upstream people decide on our behalf + sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die + + 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 +} diff --git a/app-misc/recoll/recoll-1.19.5.ebuild b/app-misc/recoll/recoll-1.19.5.ebuild new file mode 100644 index 00000000000..9c074c11139 --- /dev/null +++ b/app-misc/recoll/recoll-1.19.5.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +PYTHON_DEPEND="2" +inherit toolchain-funcs qt4-r2 linux-info python readme.gentoo + +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="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound tex wordperfect xml" +IUSE="+spell inotify +qt4 +session camelcase xattr webkit fam ${INDEX_HELPERS}" + +DEPEND=" + virtual/libiconv + >=dev-libs/xapian-1.0.12 + sys-libs/zlib + spell? ( app-text/aspell ) + !inotify? ( fam? ( virtual/fam ) ) + qt4? ( dev-qt/qtcore:4[qt3support] ) + webkit? ( dev-qt/qtwebkit:4 ) + 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 + virtual/awk + pdf? ( app-text/poppler ) + postscript? ( app-text/pstotext ) + msdoc? ( app-text/antiword ) + msxls? ( app-text/catdoc ) + msppt? ( app-text/catdoc ) + wordperfect? ( app-text/libwpd:0.9 ) + 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 ) + sound? ( media-libs/mutagen ) + xml? ( dev-libs/libxslt ) + info? ( sys-apps/texinfo ) + " + +REQUIRED_USE="session? ( || ( fam inotify ) )" + +pkg_pretend() { + if use inotify; then + CONFIG_CHECK="~INOTIFY_USER" + check_extra_config + fi +} + +pkg_setup() { + python_set_active_version 2 + python_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() { + use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[-xattr]" && FORCE_PRINT_ELOG="yes" + ! use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[xattr]" && FORCE_PRINT_ELOG="yes" + + DOC_CONTENTS="Default configuration files located at + /usr/share/${PN}/examples. Either edit these files to match + your needs or copy them to ~/.recoll/ and edit these files + instead." + + use xattr && DOC_CONTENTS+=" + Use flag \"xattr\" enables support for fetching field values + from extended file attributes. You will also need to set up a + map from the attributes names to the Recoll field names + (see comment at the end of the fields configuration file." + + # 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" + # Drop all the QMAKE lines. We will do it ourselves + sed -i -e "/QMAKE/d" Makefile.in || die +} + +src_configure() { + local qtconf + + if use qt4 || use webkit; then + qtconf="QMAKEPATH=/usr/bin/qmake" + fi + + 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) \ + ${qtconf} + if use qt4; then + cd qtgui && eqmake4 ${PN}.pro && cd .. + fi +} + +src_compile() { + # Do not let upstream people decide on our behalf + sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die + + 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 + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + if [[ -n ${REPLACING_VERSIONS} ]]; then + elog + elog "1.18 introduces significant index formats" + elog "changes to support optional character case and diacritics" + elog "sensitivity, and it will be advisable to reset the index in" + elog "most cases. This will be best done by destroying the index" + elog "directory (rm -rf ~/.recoll/xapiandb). If 1.18 is not configured" + elog "for case and diacritics sensitivity, it is mostly compatible" + elog "with 1.17 indexes." + elog + fi +} |