svn commit: r307993 - head/net/heybuddy
Jason E. Hale
jhale at FreeBSD.org
Fri Nov 30 05:14:19 UTC 2012
Author: jhale
Date: Fri Nov 30 05:14:18 2012
New Revision: 307993
URL: http://svnweb.freebsd.org/changeset/ports/307993
Log:
- Update to 0.2.4 [1]
- Trim Makefile header [2]
- Remove indefinite article from COMMENT [2]
- Add .desktop file [2]
- Make NLS optional [2]
PR: ports/173181
Submitted by: Beni Keller <navigium at grindcore.ch> (maintainer) [1]
Approved by: maintainer (via private mail) [2]
Feature safe: yes
Modified:
head/net/heybuddy/Makefile (contents, props changed)
head/net/heybuddy/distinfo (contents, props changed)
head/net/heybuddy/pkg-plist (contents, props changed)
Modified: head/net/heybuddy/Makefile
==============================================================================
--- head/net/heybuddy/Makefile Fri Nov 30 04:25:23 2012 (r307992)
+++ head/net/heybuddy/Makefile Fri Nov 30 05:14:18 2012 (r307993)
@@ -1,43 +1,60 @@
-# New ports collection makefile for: heybuddy
-# Date created: 14 April 2011
-# Whom: Beni Keller <navigium at grindcore.ch>
-#
+# Created by: Beni Keller <navigium at grindcore.ch>
# $FreeBSD$
-#
PORTNAME= heybuddy
-PORTVERSION= 0.2.2
-PORTREVISION= 2
+PORTVERSION= 0.2.4
CATEGORIES= net
-MASTER_SITES= http://launchpad.net/${PORTNAME}/0.2/${PORTVERSION}/+download/ \
+MASTER_SITES= http://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/ \
http://freebsd.grindcore.ch/distfiles/
EXTRACT_SUFX= .tgz
MAINTAINER= navigium at grindcore.ch
-COMMENT= A supposedly light, feature free identi.ca client
+COMMENT= Supposedly light, feature free identi.ca client
LICENSE= GPLv3
FETCH_ARGS= -Fpr
USE_PYTHON= yes
+USE_GNOME= desktopfileutils pygtk2
+
+DESKTOP_ENTRIES= "Heybuddy" \
+ "Light identi.ca client" \
+ "${PORTNAME}" \
+ "${PORTNAME}" \
+ "" \
+ false
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
-USE_GNOME= pygtk2
+PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
post-patch:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/heybuddy.py
- @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/heybuddy.py
+ @${REINPLACE_CMD} \
+ -e 's|%%PREFIX%%|${PREFIX}|g' \
+ -e 's|%%DATADIR%%|${DATADIR}|g' \
+ ${WRKSRC}/${PORTNAME}.py
+ @${MV} ${WRKSRC}/${PORTNAME}.py ${WRKDIR}
do-build:
${PYTHON_CMD} -mcompileall ${WRKSRC}
+ ${PYTHON_CMD} -O -mcompileall ${WRKSRC}
do-install:
- @${RM} ${WRKSRC}/ChangeLog ${WRKSRC}/gpl-3.0.txt
- @${MV} ${WRKSRC}/*.bak ${WRKDIR}
- @${MV} ${WRKSRC}/*.orig ${WRKDIR}
- @${MV} ${WRKSRC}/locales ${WRKDIR}
- @${MV} ${WRKSRC}/${PORTNAME}.py ${WRKDIR}
- (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR})
- (cd ${WRKDIR}/locales && ${COPYTREE_SHARE} . ${PREFIX}/share/locale)
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} README.txt *.py *.py[co] ${DATADIR}
+ cd ${WRKDIR} && ${INSTALL_SCRIPT} ${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
+ cd ${WRKSRC}/assets && ${INSTALL_DATA} icon64.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} assets ${DATADIR}
+.if ${PORT_OPTIONS:MNLS}
+ @cd ${WRKSRC}/locales && ${COPYTREE_SHARE} . ${PREFIX}/share/locale
+.endif
+
+post-install:
+ - at update-desktop-database
.include <bsd.port.mk>
Modified: head/net/heybuddy/distinfo
==============================================================================
--- head/net/heybuddy/distinfo Fri Nov 30 04:25:23 2012 (r307992)
+++ head/net/heybuddy/distinfo Fri Nov 30 05:14:18 2012 (r307993)
@@ -1,2 +1,2 @@
-SHA256 (heybuddy-0.2.2.tgz) = 4bcc26cecb374bacce0dce401d29e2d8d6e9ac5c3c931e1288347d6cde4e4ce1
-SIZE (heybuddy-0.2.2.tgz) = 77455
+SHA256 (heybuddy-0.2.4.tgz) = 233c4f3bc158240d57f6fc69c2810ca74de103d8c9d076a0f3e8eebd6b4330e2
+SIZE (heybuddy-0.2.4.tgz) = 84264
Modified: head/net/heybuddy/pkg-plist
==============================================================================
--- head/net/heybuddy/pkg-plist Fri Nov 30 04:25:23 2012 (r307992)
+++ head/net/heybuddy/pkg-plist Fri Nov 30 05:14:18 2012 (r307993)
@@ -1,46 +1,65 @@
- at comment $FreeBSD$
bin/heybuddy
%%DATADIR%%/About.py
%%DATADIR%%/About.pyc
+%%DATADIR%%/About.pyo
%%DATADIR%%/CertificateValidatingHTTPSHandler.py
%%DATADIR%%/CertificateValidatingHTTPSHandler.pyc
+%%DATADIR%%/CertificateValidatingHTTPSHandler.pyo
%%DATADIR%%/Communicator.py
%%DATADIR%%/Communicator.pyc
+%%DATADIR%%/Communicator.pyo
%%DATADIR%%/Configuration.py
%%DATADIR%%/Configuration.pyc
+%%DATADIR%%/Configuration.pyo
%%DATADIR%%/ContextPage.py
%%DATADIR%%/ContextPage.pyc
+%%DATADIR%%/ContextPage.pyo
%%DATADIR%%/Dent.py
%%DATADIR%%/Dent.pyc
+%%DATADIR%%/Dent.pyo
%%DATADIR%%/DentButton.py
%%DATADIR%%/DentButton.pyc
+%%DATADIR%%/DentButton.pyo
%%DATADIR%%/DentScroller.py
%%DATADIR%%/DentScroller.pyc
+%%DATADIR%%/DentScroller.pyo
%%DATADIR%%/FilterFrame.py
%%DATADIR%%/FilterFrame.pyc
+%%DATADIR%%/FilterFrame.pyo
%%DATADIR%%/GroupPage.py
%%DATADIR%%/GroupPage.pyc
+%%DATADIR%%/GroupPage.pyo
%%DATADIR%%/ImageCache.py
%%DATADIR%%/ImageCache.pyc
+%%DATADIR%%/ImageCache.pyo
%%DATADIR%%/MainWindow.py
%%DATADIR%%/MainWindow.pyc
+%%DATADIR%%/MainWindow.pyo
%%DATADIR%%/Notify.py
%%DATADIR%%/Notify.pyc
+%%DATADIR%%/Notify.pyo
%%DATADIR%%/PlatformSpecific.py
%%DATADIR%%/PlatformSpecific.pyc
+%%DATADIR%%/PlatformSpecific.pyo
%%DATADIR%%/README.txt
%%DATADIR%%/ScrollPage.py
%%DATADIR%%/ScrollPage.pyc
+%%DATADIR%%/ScrollPage.pyo
%%DATADIR%%/SettingsPage.py
%%DATADIR%%/SettingsPage.pyc
+%%DATADIR%%/SettingsPage.pyo
%%DATADIR%%/StatusIcon.py
%%DATADIR%%/StatusIcon.pyc
+%%DATADIR%%/StatusIcon.pyo
+%%DATADIR%%/TagPage.py
+%%DATADIR%%/TagPage.pyc
+%%DATADIR%%/TagPage.pyo
%%DATADIR%%/UserPage.py
%%DATADIR%%/UserPage.pyc
+%%DATADIR%%/UserPage.pyo
%%DATADIR%%/XMLProcessor.py
%%DATADIR%%/XMLProcessor.pyc
-%%DATADIR%%/_dev/get_text
-%%DATADIR%%/_dev/heybuddy.pot
+%%DATADIR%%/XMLProcessor.pyo
%%DATADIR%%/assets/direct_icon.png
%%DATADIR%%/assets/icon.png
%%DATADIR%%/assets/icon.svg
@@ -48,15 +67,18 @@ bin/heybuddy
%%DATADIR%%/assets/icon14.png
%%DATADIR%%/assets/icon64.png
%%DATADIR%%/assets/throbber.gif
-%%DATADIR%%/heybuddy.pyc
-share/locale/da/LC_MESSAGES/heybuddy.mo
-share/locale/de/LC_MESSAGES/heybuddy.mo
-share/locale/el/LC_MESSAGES/heybuddy.mo
-share/locale/eo/LC_MESSAGES/heybuddy.mo
-share/locale/es/LC_MESSAGES/heybuddy.mo
-share/locale/gl/LC_MESSAGES/heybuddy.mo
-share/locale/pt/LC_MESSAGES/heybuddy.mo
-share/locale/pt_BR/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/da/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/de/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/el/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/es/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/he/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/heybuddy.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/heybuddy.mo
+share/pixmaps/heybuddy.png
@dirrm %%DATADIR%%/assets
- at dirrm %%DATADIR%%/_dev
@dirrm %%DATADIR%%
+ at exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null 2>&1 || /usr/bin/true
+ at unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null 2>&1 || /usr/bin/true
More information about the svn-ports-all
mailing list