diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2013-03-02 08:47:03 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2013-03-02 08:47:03 +0000 |
commit | dcbcdc64168e5965ebe460e38fcbd8a3795ce478 (patch) | |
tree | 83a0976086c01d4988f60a6d346337930413b726 /deskutils | |
parent | 6b31f6543bc898d4855c9b21337d372e14aee56b (diff) | |
download | ports-dcbcdc64168e5965ebe460e38fcbd8a3795ce478.tar.gz ports-dcbcdc64168e5965ebe460e38fcbd8a3795ce478.zip |
Notes
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/gbirthday/Makefile | 56 | ||||
-rw-r--r-- | deskutils/gbirthday/distinfo | 4 | ||||
-rw-r--r-- | deskutils/gbirthday/pkg-plist | 14 |
3 files changed, 41 insertions, 33 deletions
diff --git a/deskutils/gbirthday/Makefile b/deskutils/gbirthday/Makefile index 9c9bd5307c81..eceb81f28138 100644 --- a/deskutils/gbirthday/Makefile +++ b/deskutils/gbirthday/Makefile @@ -2,65 +2,65 @@ # $FreeBSD$ PORTNAME= gbirthday -PORTVERSION= 0.6.5 -PORTREVISION= 3 +PORTVERSION= 0.6.7 CATEGORIES= deskutils gnome MASTER_SITES= SF MAINTAINER= rm@FreeBSD.org COMMENT= 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 +LICENSE= GPLv2 + +OPTIONS_DEFINE= EVO THUNDER MYSQL NOTIFY +OPTIONS_DEFAULT=EVO +EVO_DESC= Evolution support +THUNDER_DESC= Thunderbird/Sunbird support USE_XZ= yes -NO_WRKSUBDIR= yes -USE_PYTHON_RUN= yes +USE_PYTHON_RUN= -2.7 USE_GNOME= pygtk2 desktopfileutils -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes USE_GNOME+= intltool LANGUAGES= de en es fr gl it pl pt ru sk PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " .endif -.include <bsd.port.pre.mk> - -.if !defined(WITHOUT_EVO) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb +.if ${PORT_OPTIONS:MEVO} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb USE_GNOME+= evolutiondataserver .endif -.if defined(WITH_THUNDER) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 +.if ${PORT_OPTIONS:MTHUNDER} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 .endif -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} 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 +.if ${PORT_OPTIONS:MNOTIFY} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}notify>0:${PORTSDIR}/devel/py-notify .endif post-patch: - @${REINPLACE_CMD} -e 's|.mozilla.thunderbird|.thunderbird|g' \ - ${WRKSRC}/src/${PORTNAME}/databases.py + @${REINPLACE_CMD} -e 's|.mozilla-thunderbird|.thunderbird|g' \ + ${WRKSRC}/src/${PORTNAME}/databases/lightning.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' \ + @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ ${WRKSRC}/src/gb -.if defined(WITHOUT_NLS) +.if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e 's|_Comment|Comment|' ${WRKSRC}/${PORTNAME}.desktop.in .endif do-build: -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} @-intltool-merge -d ${WRKSRC}/po ${WRKSRC}/${PORTNAME}.desktop.in \ ${WRKSRC}/${PORTNAME}.desktop @(for lang in ${LANGUAGES} ; do \ @@ -72,11 +72,13 @@ do-build: 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 @${MKDIR} ${PREFIX}/share/applications -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} @(for lang in ${LANGUAGES} ; do \ ${MKDIR} ${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \ ${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \ @@ -91,4 +93,4 @@ do-install: post-install: @-update-desktop-database -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/deskutils/gbirthday/distinfo b/deskutils/gbirthday/distinfo index 61a2b9c95471..aa8ff6e88cc3 100644 --- a/deskutils/gbirthday/distinfo +++ b/deskutils/gbirthday/distinfo @@ -1,2 +1,2 @@ -SHA256 (gbirthday-0.6.5.tar.xz) = 52349d8cfb5c3f7fc7061911c2676847ffca70ba66727417a3c36d136d03e618 -SIZE (gbirthday-0.6.5.tar.xz) = 51952 +SHA256 (gbirthday-0.6.7.tar.xz) = 81b096aceac9e69d9ea3f00cac06babaa996be068fb233819633ea9a43b56667 +SIZE (gbirthday-0.6.7.tar.xz) = 57592 diff --git a/deskutils/gbirthday/pkg-plist b/deskutils/gbirthday/pkg-plist index f72e8838e5c5..e085f4c97622 100644 --- a/deskutils/gbirthday/pkg-plist +++ b/deskutils/gbirthday/pkg-plist @@ -1,9 +1,12 @@ bin/gbirthday -share/applications/gbirthday.desktop -share/pixmaps/gbirthday.png %%PYTHON_SITELIBDIR%%/gbirthday/__init__.py %%PYTHON_SITELIBDIR%%/gbirthday/addressbook.py -%%PYTHON_SITELIBDIR%%/gbirthday/databases.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/__init__.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/csv.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/evolution.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/lightning.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/mysql.py +%%PYTHON_SITELIBDIR%%/gbirthday/databases/sunbird.py %%PYTHON_SITELIBDIR%%/gbirthday/gtk_funcs.py %%PYTHON_SITELIBDIR%%/gbirthday/pics/birthday.png %%PYTHON_SITELIBDIR%%/gbirthday/pics/birthdaylost.png @@ -16,6 +19,7 @@ share/pixmaps/gbirthday.png %%PYTHON_SITELIBDIR%%/gbirthday/test_addressbook.py %%PYTHON_SITELIBDIR%%/gbirthday/test_conf.py %%PYTHON_SITELIBDIR%%/gbirthday/test_databases.py +share/applications/gbirthday.desktop %%NLS%%share/locale/de/LC_MESSAGES/gbirthday.mo %%NLS%%share/locale/en/LC_MESSAGES/gbirthday.mo %%NLS%%share/locale/es/LC_MESSAGES/gbirthday.mo @@ -28,6 +32,8 @@ share/pixmaps/gbirthday.png %%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 +@dirrmtry share/applications @dirrm %%PYTHON_SITELIBDIR%%/gbirthday/pics +@dirrm %%PYTHON_SITELIBDIR%%/gbirthday/databases @dirrm %%PYTHON_SITELIBDIR%%/gbirthday -@dirrmtry share/applications |