blob: fe51c50c2b4bd39ed78777a57f305581e1880a0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Created by: J.F. Dockes <jean-francois.dockes@wanadoo.fr>
# $FreeBSD$
PORTNAME= recoll
PORTVERSION= 1.21.5
CATEGORIES= deskutils
MASTER_SITES= http://www.lesbonscomptes.com/recoll/
MAINTAINER= ports@FreeBSD.org
COMMENT= Personal full text search package, based on Xapian
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libxapian.so:${PORTSDIR}/databases/xapian-core
RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar \
antiword:${PORTSDIR}/textproc/antiword \
catdoc:${PORTSDIR}/textproc/catdoc \
wpd2html:${PORTSDIR}/textproc/libwpd010 \
unrtf:${PORTSDIR}/textproc/unrtf
USES= bison gmake iconv shebangfix
SHEBANG_FILES= filters/rclimg filters/rclpdf desktop/hotrecoll.py
USE_GNOME= libxslt:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-pic
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= ASPELL CHM DJVU KONQUEROR LATEX IMAGE PDF PS PYTHON \
SOUND QT4 X11MON
OPTIONS_DEFAULT= ASPELL IMAGE PDF PS PYTHON SOUND QT4 X11MON
OPTIONS_SUB= yes
ASPELL_LIB_DEPENDS= libaspell.so:${PORTSDIR}/textproc/aspell
ASPELL_CONFIGURE_WITH= aspell
CHM_DESC= CHM via CHMLIB
CHM_RUN_DEPENDS= pychm>0:${PORTSDIR}/textproc/pychm
DJVU_RUN_DEPENDS= djvutxt:${PORTSDIR}/graphics/djvulibre
IMAGE_DESC= Store personal tags or textual descriptions in images
IMAGE_RUN_DEPENDS= exiftool:${PORTSDIR}/graphics/p5-Image-ExifTool
KONQUEROR_DESC= Konqueror webarchive format with Python
KONQUEROR_RUN_DEPENDS= kwebkitpart>0:${PORTSDIR}/www/kwebkitpart
LATEX_USE= tex=dvipsk:run,latex:run
PDF_RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf
PS_RUN_DEPENDS= pstotext:${PORTSDIR}/print/pstotext
PYTHON_USES= python
PYTHON_CONFIGURE_ENABLE= python-module
PYTHON_PLIST_SUB= PYDISTUTILS_EGGINFO="${PYDISTUTILS_EGGINFO}"
PYTHON_VARS= PYDISTUTILS_PKGNAME=Recoll \
PYDISTUTILS_PKGVERSION=1.0
QT4_USE= qt4=moc_build,qmake_build,rcc_build,uic_build \
qt4=iconengines_run,imageformats_run \
qt4=corelib,gui,xml,webkit
QT4_CONFIGURE_ENABLE= qtgui
QT4_CONFIGURE_ENV= QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}" \
QTDIR="${QT_PREFIX}"
QT4_VARS= QT_NONSTANDARD=yes
SOUND_RUN_DEPENDS= mutagen-pony:${PORTSDIR}/audio/py-mutagen \
pykaraoke:${PORTSDIR}/audio/py-karaoke
X11MON_DESC= X11 session monitoring support
X11MON_USES= fam
X11MON_USE= xorg=ice,sm,x11
X11MON_CONFIGURE_ENABLE= x11mon
X11MON_CONFIGURE_WITH= fam
post-patch:
@${REINPLACE_CMD} -e \
'/recoll.pro/s|^|#|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|/usr/local/lib|${LOCALBASE}/lib|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@NOCMDLINE@|| ; \
s|python setup.py|${PYTHON_CMD} setup.py|' \
${WRKSRC}/recollinstall.in
@${REINPLACE_CMD} -e \
's|python setup.py|${PYTHON_CMD} setup.py|' \
${WRKSRC}/python/recoll/Makefile
pre-build-QT4-on:
@(cd ${WRKSRC}/qtgui && ${SETENV} ${QMAKE_ENV} ${QMAKE} \
${QMAKE_ARGS} recoll.pro)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/recoll/librecoll.so.[0-9].*
post-install-PYTHON-on:
.for l in recoll rclextract
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/recoll/${l}.so
.endfor
@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${PYTHONPREFIX_SITELIBDIR} \
-f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
.include <bsd.port.mk>
|