2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Gustau Perez Querol <gustau.perez@gmail.com>
|
2009-12-19 14:39:27 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tucan
|
2011-07-01 03:10:20 +02:00
|
|
|
PORTVERSION= 0.3.10
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2009-12-19 14:39:27 +01:00
|
|
|
CATEGORIES= net
|
2011-07-01 03:10:20 +02:00
|
|
|
MASTER_SITES= http://forja.rediris.es/frs/download.php/2051/ \
|
2009-12-19 14:39:27 +01:00
|
|
|
http://build-tucan-doc.googlecode.com/files/
|
|
|
|
|
|
|
|
MAINTAINER= gustau.perez@gmail.com
|
2011-05-22 23:24:04 +02:00
|
|
|
COMMENT= Tucan Manager aids file-sharing with 1-click hosters
|
2009-12-19 14:39:27 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/pilconvert.py:${PORTSDIR}/graphics/py-imaging \
|
2012-10-11 15:46:29 +02:00
|
|
|
${LOCALBASE}/bin/cntraining:${PORTSDIR}/graphics/tesseract
|
2009-12-19 14:39:27 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_GNOME= pygtk2 librsvg2
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= yes
|
2009-12-19 14:39:27 +01:00
|
|
|
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
MAN1= tucan.1
|
2013-04-24 20:10:30 +02:00
|
|
|
USES= gettext
|
2009-12-19 14:39:27 +01:00
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2011-05-22 23:24:04 +02:00
|
|
|
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
|
|
|
|
|
2009-12-19 14:39:27 +01:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${MKDIR} ${DATADIR}/core
|
|
|
|
${MKDIR} ${DATADIR}/default_plugins
|
|
|
|
${MKDIR} ${DATADIR}/i18n
|
|
|
|
${MKDIR} ${DATADIR}/media
|
|
|
|
${MKDIR} ${DATADIR}/ui
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tucan.py ${PREFIX}/share/tucan/
|
|
|
|
${LN} -s ${PREFIX}/share/tucan/tucan.py ${PREFIX}/bin/tucan
|
|
|
|
(cd ${WRKSRC}/core/ && ${COPYTREE_SHARE} \* ${DATADIR}/core/)
|
|
|
|
(cd ${WRKSRC}/default_plugins/ && ${COPYTREE_SHARE} \* ${DATADIR}/default_plugins/)
|
|
|
|
(cd ${WRKSRC}/i18n/ && ${COPYTREE_SHARE} \* ${DATADIR}/i18n/)
|
|
|
|
(cd ${WRKSRC}/media/ && ${COPYTREE_SHARE} \* ${DATADIR}/media/)
|
|
|
|
(cd ${WRKSRC}/ui/ && ${COPYTREE_SHARE} \* ${DATADIR}/ui/)
|
2011-07-01 03:10:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/media/tucan.png ${PREFIX}/share/pixmaps/
|
2009-12-19 14:39:27 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tucan.1.gz ${PREFIX}/man/man1/
|
|
|
|
${INSTALL} ${WRKSRC}/tucan.desktop ${PREFIX}/share/applications/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|