mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
4015364ffe
- Don't remove mtree directory - Consistently use DATADIR placeholder in plist Approved by: portmgr blanket
49 lines
1.7 KiB
Makefile
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>
|