aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-01-19 02:49:16 +0800
committerrm <rm@FreeBSD.org>2014-01-19 02:49:16 +0800
commitceefbbf9d6e28c9e93af48c16d0f9a430dba107d (patch)
tree098387e8a2586984d8e32d0b88b40fc8ae7dd955 /deskutils
parent9587422a6e20f95ba360add600b5b3ebd0afdfc5 (diff)
downloadfreebsd-ports-gnome-ceefbbf9d6e28c9e93af48c16d0f9a430dba107d.tar.gz
freebsd-ports-gnome-ceefbbf9d6e28c9e93af48c16d0f9a430dba107d.tar.zst
freebsd-ports-gnome-ceefbbf9d6e28c9e93af48c16d0f9a430dba107d.zip
- add stage support
- rename options EVO and THUNDER to EVOLUTION and THUNDERBIRD - convert to options helpers and add NLS to available options list - turn off EVOLUTION option by default for those who just using this app with simple csv-file - drop dependency on desktop-file-utils, since .desktop file defines no mime-types - bump PORTREVISION
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/gbirthday/Makefile71
-rw-r--r--deskutils/gbirthday/pkg-plist2
2 files changed, 25 insertions, 48 deletions
diff --git a/deskutils/gbirthday/Makefile b/deskutils/gbirthday/Makefile
index 1178966c357c..163679a56468 100644
--- a/deskutils/gbirthday/Makefile
+++ b/deskutils/gbirthday/Makefile
@@ -3,6 +3,7 @@
PORTNAME= gbirthday
PORTVERSION= 0.6.7
+PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= SF
@@ -11,43 +12,24 @@ COMMENT= Birthday reminder for Evolution and some others
LICENSE= GPLv2
-OPTIONS_DEFINE= EVO THUNDER MYSQL NOTIFY
-OPTIONS_DEFAULT=EVO
-EVO_DESC= Evolution support
-THUNDER_DESC= Thunderbird/Sunbird support
+OPTIONS_DEFINE= EVOLUTION MYSQL NLS NOTIFY THUNDERBIRD
+OPTIONS_SUB= yes
+EVOLUTION_DESC= Evolution support
+THUNDERBIRD_DESC= Thunderbird/Sunbird support
+EVOLUTION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb
+EVOLUTION_USE= GNOME=evolutiondataserver
+MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
+NLS_USES= gettext
+NLS_USE= GNOME=intltool
+NOTIFY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}notify>0:${PORTSDIR}/devel/py-notify
+THUNDERBIRD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
USE_XZ= yes
USE_PYTHON_RUN= 2
-USE_GNOME= pygtk2 desktopfileutils
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-USE_GNOME+= intltool
+USE_GNOME= pygtk2
LANGUAGES= de en es fr gl it pl pt ru sk
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MEVO}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb
-USE_GNOME+= evolutiondataserver
-.endif
-.if ${PORT_OPTIONS:MTHUNDER}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
-.endif
-
-.if ${PORT_OPTIONS:MNOTIFY}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}notify>0:${PORTSDIR}/devel/py-notify
-.endif
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|.mozilla-thunderbird|.thunderbird|g' \
@@ -71,26 +53,23 @@ do-build:
.endif
do-install:
- ${INSTALL_DATA} ${WRKSRC}/pics/${PORTNAME}.png ${PREFIX}/share/pixmaps
- ${INSTALL_SCRIPT} ${WRKSRC}/src/gb ${PREFIX}/bin/${PORTNAME}
- @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/databases
- @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
- ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/*.py ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/databases/*.py ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/databases
- ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/pics/*.png ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
+ ${INSTALL_DATA} ${WRKSRC}/pics/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/gb ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/databases
+ @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/*.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/databases/*.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/databases
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}/pics/*.png ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/pics
.if ${PORT_OPTIONS:MNLS}
@(for lang in ${LANGUAGES} ; do \
- ${MKDIR} ${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
- ${PREFIX}/share/locale/$$lang/LC_MESSAGES/${PORTNAME}.mo ; \
+ ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES/${PORTNAME}.mo ; \
done)
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
.else
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop.in \
- ${PREFIX}/share/applications/${PORTNAME}.desktop
+ ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
.endif
-post-install:
- @-update-desktop-database
-
.include <bsd.port.mk>
diff --git a/deskutils/gbirthday/pkg-plist b/deskutils/gbirthday/pkg-plist
index c5b4abd61cfa..adea14213bcb 100644
--- a/deskutils/gbirthday/pkg-plist
+++ b/deskutils/gbirthday/pkg-plist
@@ -30,8 +30,6 @@ share/applications/gbirthday.desktop
%%NLS%%share/locale/pt/LC_MESSAGES/gbirthday.mo
%%NLS%%share/locale/ru/LC_MESSAGES/gbirthday.mo
%%NLS%%share/locale/sk/LC_MESSAGES/gbirthday.mo
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
share/pixmaps/gbirthday.png
@dirrm %%PYTHON_SITELIBDIR%%/gbirthday/pics
@dirrm %%PYTHON_SITELIBDIR%%/gbirthday/databases