mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= loook
|
|
PORTVERSION= 0.8.6
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://mechtilde.de/Loook/Downloads/
|
|
DIST_SUBDIR= python
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Simple Python tool that search in LibreOffice/OpenOffice files
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter@${PY_FLAVOR}
|
|
|
|
USES= python:3.4+
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/loook.1.gz \
|
|
man/de/man1/loook.1.gz \
|
|
share/applications/loook.desktop \
|
|
share/locale/cs/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/de/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/en/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/es/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/fr/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/it/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/locale/nl/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
share/pixmaps/loook.png \
|
|
|
|
LCMESSAGES= cs de en es fr it nl
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/python3|${PYTHON_CMD}|' \
|
|
-e 's|/usr/share/locale/|${PREFIX}/share/locale/|' \
|
|
${WRKSRC}/${PORTNAME}.py
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
-${MKDIR} ${STAGEDIR}${PREFIX}/man/de/man1
|
|
${INSTALL_MAN} ${WRKSRC}/man/loook.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1/
|
|
${INSTALL_MAN} ${WRKSRC}/man/de/loook.1 \
|
|
${STAGEDIR}${PREFIX}/man/de/man1/
|
|
${INSTALL_DATA} ${WRKSRC}/loook.desktop \
|
|
${STAGEDIR}${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/loook.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
.for i in ${LCMESSAGES}
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/locale/${i}/LC_MESSAGES/loook-${PORTVERSION}.mo \
|
|
${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|