mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
03b42818c9
Reminded by: miwi
99 lines
2.8 KiB
Makefile
99 lines
2.8 KiB
Makefile
# New ports collection makefile for: gbirthday
|
|
# Date created: 01 January 2009
|
|
# Whom: Alexander Logvinov <ports@logvinov.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gbirthday
|
|
PORTVERSION= 0.6.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= deskutils gnome
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= avl@FreeBSD.org
|
|
COMMENT= A birthday reminder for Evolution and some others
|
|
|
|
OPTIONS= EVO "Enable Evolution support" on \
|
|
THUNDER "Enable Thunderbird/Sunbird support" off \
|
|
MYSQL "Enable MySQL database support" off \
|
|
NOTIFY "Enable libnotify support" off
|
|
|
|
USE_XZ= yes
|
|
NO_WRKSUBDIR= yes
|
|
USE_PYTHON_RUN= yes
|
|
USE_GNOME= pygtk2 desktopfileutils
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
PLIST_SUB+= NLS="@comment "
|
|
.else
|
|
USE_GETTEXT= yes
|
|
USE_GNOME+= intltool
|
|
LANGUAGES= de en es fr gl it pl pt ru sk
|
|
PLIST_SUB+= NLS=""
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_EVO)
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
|
|
USE_GNOME+= evolutiondataserver
|
|
.endif
|
|
|
|
.if defined(WITH_THUNDER)
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL)
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
|
|
.endif
|
|
|
|
.if defined(WITH_NOTIFY)
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|.mozilla.thunderbird|.thunderbird|g' \
|
|
${WRKSRC}/src/${PORTNAME}/databases.py
|
|
@${REINPLACE_CMD} -e 's|@VER@|${PORTVERSION}|g' \
|
|
${WRKSRC}/src/${PORTNAME}/__init__.py
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/python|/usr/bin/env python|g' \
|
|
${WRKSRC}/src/gb
|
|
.if defined(WITHOUT_NLS)
|
|
@${REINPLACE_CMD} -e 's|_Comment|Comment|' ${WRKSRC}/${PORTNAME}.desktop.in
|
|
.endif
|
|
|
|
do-build:
|
|
.if !defined(WITHOUT_NLS)
|
|
@-intltool-merge -d ${WRKSRC}/po ${WRKSRC}/${PORTNAME}.desktop.in \
|
|
${WRKSRC}/${PORTNAME}.desktop
|
|
@(for lang in ${LANGUAGES} ; do \
|
|
cd ${WRKSRC}/po ; \
|
|
${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
|
|
done)
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/pics/${PORTNAME}.png ${PREFIX}/share/pixmaps
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/gb ${PREFIX}/bin/${PORTNAME}
|
|
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
|
|
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/*.py ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/pics/*.png ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
.if !defined(WITHOUT_NLS)
|
|
@(for lang in ${LANGUAGES} ; do \
|
|
${MKDIR} ${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
|
|
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
|
|
${PREFIX}/share/locale/$$lang/LC_MESSAGES/${PORTNAME}.mo ; \
|
|
done)
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications
|
|
.else
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop.in \
|
|
${PREFIX}/share/applications/${PORTNAME}.desktop
|
|
.endif
|
|
|
|
post-install:
|
|
@-update-desktop-database
|
|
|
|
.include <bsd.port.post.mk>
|