1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Update to 0.2.2

PR:		ports/161131
Submitted by:	"Beni Keller" <navigium@grindcore.ch> (maintainer)
This commit is contained in:
Ryan Steinmetz 2011-10-15 13:56:59 +00:00
parent 444f4cb73e
commit 30af59e948
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=283573
4 changed files with 90 additions and 54 deletions

View File

@ -6,31 +6,37 @@
#
PORTNAME= heybuddy
PORTVERSION= 0.2.1
PORTVERSION= 0.2.2
CATEGORIES= net
MASTER_SITES= http://launchpad.net/${PORTNAME}/0.2/${PORTVERSION}/+download/ \
http://freebsd.grindcore.ch/distfiles/
EXTRACT_SUFX= .tgz
MAINTAINER= navigium@grindcore.ch
COMMENT= Heybuddy is a supposedly light, feature free identi.ca client
FETCH_ARGS= -Fpr
COMMENT= A supposedly light, feature free identi.ca client
LICENSE= GPLv3
FETCH_ARGS= -Fpr
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GNOME= pygtk2
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/heybuddy.py
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/heybuddy.py
do-build:
${PYTHON_CMD} -mcompileall ${WRKSRC}
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR}
${LN} -s ${DATADIR}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
post-install:
${RM} ${DATADIR}/*.txt ${DATADIR}/ChangeLog
@${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}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (heybuddy-0.2.1.tar.gz) = 15a5bf1a09ba1e2c37c9ebc341563bac60d0d265a78b8995925ceab49b9e3ba5
SIZE (heybuddy-0.2.1.tar.gz) = 65726
SHA256 (heybuddy-0.2.2.tgz) = 4bcc26cecb374bacce0dce401d29e2d8d6e9ac5c3c931e1288347d6cde4e4ce1
SIZE (heybuddy-0.2.2.tgz) = 77455

View File

@ -0,0 +1,22 @@
--- ./heybuddy.py.orig 2011-10-15 07:34:58.000000000 -0400
+++ ./heybuddy.py 2011-10-15 07:38:40.000000000 -0400
@@ -21,9 +21,7 @@
import sys, os
import gettext
import webbrowser
-locale_dir = os.path.join(
- os.path.dirname( os.path.realpath(__file__) ),
- 'locales')
+locale_dir = '%%PREFIX%%/share/locale'
gettext.bindtextdomain('heybuddy', locale_dir)
gettext.textdomain('heybuddy')
@@ -107,7 +105,7 @@
self.last_get_statuses = 0
#what are the assets?
asset_dir = 'assets'
- heybuddy_dir = os.path.dirname( os.path.realpath( __file__ ) )
+ heybuddy_dir = '%%DATADIR%%'
self.readme_file = os.path.join(heybuddy_dir,'README.txt')
self.standard_icon_path = os.path.join(heybuddy_dir,asset_dir,'icon.png')
self.direct_icon_path = os.path.join(heybuddy_dir,asset_dir,'direct_icon.png')

View File

@ -1,54 +1,62 @@
@comment $FreeBSD$
bin/heybuddy
%%DATADIR%%/assets/icon1.png
%%DATADIR%%/assets/icon.png
%%DATADIR%%/assets/throbber.gif
%%DATADIR%%/assets/icon64.png
%%DATADIR%%/assets/direct_icon.png
%%DATADIR%%/assets/icon.svg
%%DATADIR%%/assets/icon14.png
%%DATADIR%%/ImageCache.pyc
%%DATADIR%%/Configuration.py
%%DATADIR%%/ImageCache.py
%%DATADIR%%/DentScroller.py
%%DATADIR%%/heybuddy.py
%%DATADIR%%/heybuddy.pyc
%%DATADIR%%/DentScroller.pyc
%%DATADIR%%/About.py
%%DATADIR%%/About.pyc
%%DATADIR%%/CertificateValidatingHTTPSHandler.py
%%DATADIR%%/CertificateValidatingHTTPSHandler.pyc
%%DATADIR%%/Communicator.py
%%DATADIR%%/Communicator.pyc
%%DATADIR%%/PlatformSpecific.py
%%DATADIR%%/Configuration.py
%%DATADIR%%/Configuration.pyc
%%DATADIR%%/ContextPage.py
%%DATADIR%%/MainWindow.py
%%DATADIR%%/XMLProcessor.pyc
%%DATADIR%%/Notify.pyc
%%DATADIR%%/Communicator.py
%%DATADIR%%/ContextPage.pyc
%%DATADIR%%/Dent.py
%%DATADIR%%/StatusIcon.pyc
%%DATADIR%%/About.pyc
%%DATADIR%%/Dent.pyc
%%DATADIR%%/DentButton.py
%%DATADIR%%/DentButton.pyc
%%DATADIR%%/DentScroller.py
%%DATADIR%%/DentScroller.pyc
%%DATADIR%%/FilterFrame.py
%%DATADIR%%/FilterFrame.pyc
%%DATADIR%%/GroupPage.py
%%DATADIR%%/GroupPage.pyc
%%DATADIR%%/ImageCache.py
%%DATADIR%%/ImageCache.pyc
%%DATADIR%%/MainWindow.py
%%DATADIR%%/MainWindow.pyc
%%DATADIR%%/Notify.py
%%DATADIR%%/Notify.pyc
%%DATADIR%%/PlatformSpecific.py
%%DATADIR%%/PlatformSpecific.pyc
%%DATADIR%%/README.txt
%%DATADIR%%/ScrollPage.py
%%DATADIR%%/ScrollPage.pyc
%%DATADIR%%/SettingsPage.py
%%DATADIR%%/SettingsPage.pyc
%%DATADIR%%/StatusIcon.py
%%DATADIR%%/StatusIcon.pyc
%%DATADIR%%/UserPage.py
%%DATADIR%%/UserPage.pyc
%%DATADIR%%/XMLProcessor.py
%%DATADIR%%/XMLProcessor.pyc
%%DATADIR%%/_dev/get_text
%%DATADIR%%/_dev/heybuddy.pot
%%DATADIR%%/UserPage.py
%%DATADIR%%/ScrollPage.py
%%DATADIR%%/SettingsPage.py
%%DATADIR%%/GroupPage.pyc
%%DATADIR%%/DentButton.py
%%DATADIR%%/Notify.py
%%DATADIR%%/FilterFrame.pyc
%%DATADIR%%/ScrollPage.pyc
%%DATADIR%%/GroupPage.py
%%DATADIR%%/MainWindow.pyc
%%DATADIR%%/SettingsPage.pyc
%%DATADIR%%/DentButton.pyc
%%DATADIR%%/StatusIcon.py
%%DATADIR%%/FilterFrame.py
%%DATADIR%%/UserPage.pyc
%%DATADIR%%/Dent.pyc
%%DATADIR%%/XMLProcessor.py
%%DATADIR%%/About.py
@dirrm %%DATADIR%%/_dev
%%DATADIR%%/assets/direct_icon.png
%%DATADIR%%/assets/icon.png
%%DATADIR%%/assets/icon.svg
%%DATADIR%%/assets/icon1.png
%%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
@dirrm %%DATADIR%%/assets
@dirrm %%DATADIR%%/locales
@dirrm %%DATADIR%%/_dev
@dirrm %%DATADIR%%
@exec mkdir -p %D%/%%DATADIR%%/locales