2009-12-19 13:39:27 +00:00
|
|
|
# New ports collection makefile for: Tucan
|
|
|
|
# Date created: 2009-14-11
|
|
|
|
# Whom: Gustau Perez Querol <gustau.perez@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tucan
|
2011-07-01 01:10:20 +00:00
|
|
|
PORTVERSION= 0.3.10
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 1
|
2009-12-19 13:39:27 +00:00
|
|
|
CATEGORIES= net
|
2011-07-01 01:10:20 +00:00
|
|
|
MASTER_SITES= http://forja.rediris.es/frs/download.php/2051/ \
|
2009-12-19 13:39:27 +00:00
|
|
|
http://build-tucan-doc.googlecode.com/files/
|
|
|
|
|
|
|
|
MAINTAINER= gustau.perez@gmail.com
|
2011-05-22 21:24:04 +00:00
|
|
|
COMMENT= Tucan Manager aids file-sharing with 1-click hosters
|
2009-12-19 13:39:27 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/pilconvert.py:${PORTSDIR}/graphics/py-imaging \
|
2012-10-11 13:46:29 +00:00
|
|
|
${LOCALBASE}/bin/cntraining:${PORTSDIR}/graphics/tesseract
|
2009-12-19 13:39:27 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_GNOME= pygtk2 librsvg2
|
2011-05-22 21:24:04 +00:00
|
|
|
USE_PYTHON= 2.5+
|
2009-12-19 13:39:27 +00:00
|
|
|
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
MAN1= tucan.1
|
2013-04-24 18:10:30 +00:00
|
|
|
USES= gettext
|
2009-12-19 13:39:27 +00:00
|
|
|
|
2011-05-22 21:24:04 +00: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 13:39:27 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/bin/
|
|
|
|
${MKDIR} ${PREFIX}/share/pixmaps/
|
|
|
|
${MKDIR} ${PREFIX}/man/man1/
|
|
|
|
${MKDIR} ${PREFIX}/share/applications/
|
|
|
|
${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 01:10:20 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/media/tucan.png ${PREFIX}/share/pixmaps/
|
2009-12-19 13:39:27 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tucan.1.gz ${PREFIX}/man/man1/
|
|
|
|
${INSTALL} ${WRKSRC}/tucan.desktop ${PREFIX}/share/applications/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|