1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net/tucan/Makefile
Dmitry Marakasov 4015364ffe - Support staging
- Don't remove mtree directory
- Consistently use DATADIR placeholder in plist

Approved by:	portmgr blanket
2014-05-09 18:29:01 +00:00

49 lines
1.7 KiB
Makefile

# Created by: Gustau Perez Querol <gustau.perez@gmail.com>
# $FreeBSD$
PORTNAME= tucan
PORTVERSION= 0.3.10
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://forja.rediris.es/frs/download.php/2051/ \
http://build-tucan-doc.googlecode.com/files/
MAINTAINER= gustau.perez@gmail.com
COMMENT= Tucan Manager aids file-sharing with 1-click hosters
RUN_DEPENDS= ${LOCALBASE}/bin/pilconvert.py:${PORTSDIR}/graphics/py-imaging \
${LOCALBASE}/bin/cntraining:${PORTSDIR}/graphics/tesseract
NO_BUILD= yes
USE_GNOME= pygtk2 librsvg2
USE_PYTHON= yes
USES= gettext
post-patch:
${REINPLACE_CMD} -Ee 's|#! /usr/bin/env python|#! ${PYTHON_CMD}|' ${WRKSRC}/tucan.py
# remove .orig leftovers from files/patch-*
pre-install:
${RM} ${WRKSRC}/core/*.orig
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}/core
${MKDIR} ${STAGEDIR}${DATADIR}/default_plugins
${MKDIR} ${STAGEDIR}${DATADIR}/i18n
${MKDIR} ${STAGEDIR}${DATADIR}/media
${MKDIR} ${STAGEDIR}${DATADIR}/ui
${INSTALL_SCRIPT} ${WRKSRC}/tucan.py ${STAGEDIR}${PREFIX}/share/tucan/
${LN} -s ${PREFIX}/share/tucan/tucan.py ${STAGEDIR}${PREFIX}/bin/tucan
(cd ${WRKSRC}/core/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/core/)
(cd ${WRKSRC}/default_plugins/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/default_plugins/)
(cd ${WRKSRC}/i18n/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/i18n/)
(cd ${WRKSRC}/media/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/media/)
(cd ${WRKSRC}/ui/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/ui/)
${INSTALL_DATA} ${WRKSRC}/media/tucan.png ${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/tucan.1.gz ${STAGEDIR}${PREFIX}/man/man1/
${INSTALL} ${WRKSRC}/tucan.desktop ${STAGEDIR}${PREFIX}/share/applications/
.include <bsd.port.mk>