2013-06-13 22:45:23 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2007-03-03 19:56:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= griffith
|
2012-01-28 18:49:18 +01:00
|
|
|
PORTVERSION= 0.13
|
2014-11-10 20:33:36 +01:00
|
|
|
PORTREVISION= 3
|
2007-03-03 19:56:47 +01:00
|
|
|
CATEGORIES= deskutils
|
2012-01-28 18:49:18 +01:00
|
|
|
MASTER_SITES= http://launchpadlibrarian.net/87859599/
|
2007-03-03 19:56:47 +01:00
|
|
|
|
2008-09-07 02:19:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-07-18 17:35:21 +02:00
|
|
|
COMMENT= Lightweight film collection manager
|
2007-03-03 19:56:47 +01:00
|
|
|
|
2012-01-28 18:49:18 +01:00
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2011-03-27 12:33:27 +02:00
|
|
|
|
2011-09-07 21:50:46 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlalchemy06>=0.5:${PORTSDIR}/databases/py-sqlalchemy06 \
|
2014-10-04 19:27:23 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pillow>=0:${PORTSDIR}/graphics/py-pillow \
|
2011-09-07 21:50:46 +02:00
|
|
|
${PYXML}
|
|
|
|
|
2009-12-29 12:12:43 +01:00
|
|
|
USE_GNOME= pygtk2
|
2014-10-04 19:27:23 +02:00
|
|
|
USES= gmake gettext python tar:xz
|
2007-03-03 19:56:47 +01:00
|
|
|
NO_BUILD= yes
|
2009-12-29 12:12:43 +01:00
|
|
|
|
2014-11-10 20:33:36 +01:00
|
|
|
OPTIONS_DEFINE= CHARDET LXML PYGNOMEEXTRAS REPORTLAB2
|
|
|
|
OPTIONS_DEFAULT= LXML
|
2009-12-29 12:12:43 +01:00
|
|
|
|
2014-03-25 13:30:16 +01:00
|
|
|
CHARDET_DESC= chardet support
|
|
|
|
CHARDET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:${PORTSDIR}/textproc/py-chardet
|
2012-01-28 18:49:18 +01:00
|
|
|
|
2014-03-25 13:30:16 +01:00
|
|
|
LXML_DESC= lxml support
|
|
|
|
LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml
|
|
|
|
|
|
|
|
PYGNOMEEXTRAS_DESC= python-gnome-extras support
|
|
|
|
PYGNOMEEXTRAS_USE= GNOME=pygnomeextras
|
|
|
|
|
|
|
|
REPORTLAB2_DESC= ReportLab2 support
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2012-01-28 18:49:18 +01:00
|
|
|
|
2012-06-01 18:59:20 +02:00
|
|
|
.if ${PORT_OPTIONS:MREPORTLAB2}
|
2012-01-28 18:49:18 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}reportlab2>=2:${PORTSDIR}/print/py-reportlab2
|
|
|
|
.else
|
2014-02-25 13:44:10 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}reportlab1>=1.19:${PORTSDIR}/print/py-reportlab1
|
2012-01-28 18:49:18 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-03 19:56:47 +01:00
|
|
|
post-patch:
|
2009-12-29 12:12:43 +01:00
|
|
|
.for file in Makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^LANGUAGES=/s|find.*|cd i18n/\&\&ls -d *)|g ; \
|
2014-03-25 13:30:16 +01:00
|
|
|
/^PREFIX/s|?=|=|g ; s|/usr|${PREFIX}|; /ln -s/d; \
|
2009-12-29 12:12:43 +01:00
|
|
|
/^ETCDIR/s|=.*|= $$(PREFIX)/etc|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
2014-11-10 20:33:36 +01:00
|
|
|
.for f in docs/en/Makefile docs/pl/Makefile docs/pt/Makefile
|
2009-12-29 12:12:43 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
2014-03-25 13:30:16 +01:00
|
|
|
'/^PREFIX/s|?=|=|g ; s|/usr|${PREFIX}|; \
|
2014-11-10 20:33:36 +01:00
|
|
|
/^MANDIR/s|=.*|=${STAGEDIR}${MANPREFIX}/man|g' \
|
|
|
|
${WRKSRC}/${f}
|
2009-12-29 12:12:43 +01:00
|
|
|
.endfor
|
2007-03-03 19:56:47 +01:00
|
|
|
|
2014-03-25 13:30:16 +01:00
|
|
|
pre-install:
|
|
|
|
${LN} -s ${DATADIR}/lib/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
2012-01-28 18:49:18 +01:00
|
|
|
.include <bsd.port.mk>
|