diff --git a/net-im/hotot/Makefile b/net-im/hotot/Makefile index ef446b7e7335..56dc7be7df96 100644 --- a/net-im/hotot/Makefile +++ b/net-im/hotot/Makefile @@ -1,49 +1,71 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= hotot PORTVERSION= 0.9.8.8 +PORTREVISION= 1 CATEGORIES= net-im www DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} MAINTAINER= danfe@FreeBSD.org COMMENT= Lightweight, flexible microblogging client LICENSE= LGPL3 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/webkit/__init__.py:${PORTSDIR}/www/py-webkitgtk \ - ${PYTHON_SITELIBDIR}/keybinder/__init__.py:${PORTSDIR}/x11/keybinder - USE_GITHUB= yes GH_ACCOUNT= shellex GH_PROJECT= Hotot GH_TAGNAME= master GH_COMMIT= 9c8c8a2 USE_CMAKE= yes +CMAKE_ARGS= -DWITH_KDE=off # untested, please send patches if you want it USE_GETTEXT= yes USE_PYTHON= yes -USE_QT4= moc_build qmake_build rcc_build uic_build \ - corelib gui sql webkit USE_GNOME= intltool INSTALLS_ICONS= yes CFLAGS+= -I${LOCALBASE}/include # does not uphold CPPFLAGS +OPTIONS_DEFINE= GTK2 QT4 +OPTIONS_DEFAULT= GTK2 QT4 + +.include + +.if ${PORT_OPTIONS:MGTK2} +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/webkit/__init__.py:${PORTSDIR}/www/py-webkitgtk \ + ${PYTHON_SITELIBDIR}/keybinder/__init__.py:${PORTSDIR}/x11/keybinder +PLIST_SUB+= GTK2="" +.else +CMAKE_ARGS+= -DWITH_GTK=off +PLIST_SUB+= GTK2="@comment " +.endif + +.if ${PORT_OPTIONS:MQT4} +USE_QT4= moc_build qmake_build rcc_build uic_build \ + corelib gui sql webkit +PLIST_SUB+= QT4="" +.else +CMAKE_ARGS+= -DWITH_QT=off +INSTALL_TARGET= install +PLIST_SUB+= QT4="@comment " +.endif + post-patch: # Upstream should probably use platform.system() instead of hardcoding its -# name in Python code (at least) +# name (in Python code at least) @${REINPLACE_CMD} -e 's,Linux,${OPSYS},' ${WRKSRC}/data/js/conf.js \ - ${WRKSRC}/data/js/util.js ${WRKSRC}/hotot/view.py + ${WRKSRC}/data/js/util.js ${WRKSRC}/hotot/view.py \ + ${WRKSRC}/hotot-gir/view.py ${WRKSRC}/qt/mainwindow.cpp # Strip shlib versions from the library filenames @${REINPLACE_CMD} -E 's,so\.[0-9]+,so,' ${WRKSRC}/hotot/utils.py # Remove `sourceid' parameter from the search string @${REINPLACE_CMD} -e 's,sourceid=chrome&,,' \ ${WRKSRC}/data/js/ui.context_menu.js # Sanitize font selection list @${REINPLACE_CMD} -e "/font_list/s/\[.*/['DejaVu Sans', 'Bitstream Vera Sans', 'Droid Sans', 'Verdana', 'Arial', 'Helvetica']/" \ ${WRKSRC}/data/js/conf.js # Remove stale backup files (or they would pollute pkg-plist) - @${FIND} ${WRKSRC} -type f -name *.bak -delete + @${FIND} ${WRKSRC} -type f -name '*.bak' -delete .include diff --git a/net-im/hotot/pkg-plist b/net-im/hotot/pkg-plist index 1ec2e840176d..13ae82fbbfb7 100644 --- a/net-im/hotot/pkg-plist +++ b/net-im/hotot/pkg-plist @@ -1,297 +1,297 @@ -bin/hotot -bin/hotot-qt -%%PYTHON_SITELIBDIR%%/hotot/__init__.py -%%PYTHON_SITELIBDIR%%/hotot/__init__.pyc -%%PYTHON_SITELIBDIR%%/hotot/agent.py -%%PYTHON_SITELIBDIR%%/hotot/agent.pyc -%%PYTHON_SITELIBDIR%%/hotot/config.py -%%PYTHON_SITELIBDIR%%/hotot/config.pyc -%%PYTHON_SITELIBDIR%%/hotot/gtknotification.py -%%PYTHON_SITELIBDIR%%/hotot/gtknotification.pyc -%%PYTHON_SITELIBDIR%%/hotot/hotot.py -%%PYTHON_SITELIBDIR%%/hotot/hotot.pyc -%%PYTHON_SITELIBDIR%%/hotot/i18n.py -%%PYTHON_SITELIBDIR%%/hotot/i18n.pyc -%%PYTHON_SITELIBDIR%%/hotot/utils.py -%%PYTHON_SITELIBDIR%%/hotot/utils.pyc -%%PYTHON_SITELIBDIR%%/hotot/view.py -%%PYTHON_SITELIBDIR%%/hotot/view.pyc -@dirrm %%PYTHON_SITELIBDIR%%/hotot -share/applications/hotot.desktop -share/applications/hotot-qt.desktop +%%GTK2%%bin/hotot +%%QT4%%bin/hotot-qt +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/__init__.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/__init__.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/agent.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/agent.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/config.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/config.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/gtknotification.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/gtknotification.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/hotot.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/hotot.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/i18n.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/i18n.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/utils.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/utils.pyc +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/view.py +%%GTK2%%%%PYTHON_SITELIBDIR%%/hotot/view.pyc +%%GTK2%%@dirrm %%PYTHON_SITELIBDIR%%/hotot +%%GTK2%%share/applications/hotot.desktop +%%QT4%%share/applications/hotot-qt.desktop share/hotot/_locales/bg/messages.json share/hotot/_locales/bn/messages.json share/hotot/_locales/ca/messages.json share/hotot/_locales/de/messages.json share/hotot/_locales/el/messages.json share/hotot/_locales/en/messages.json share/hotot/_locales/es/messages.json share/hotot/_locales/fr/messages.json share/hotot/_locales/it/messages.json share/hotot/_locales/ja/messages.json share/hotot/_locales/lv/messages.json share/hotot/_locales/nl/messages.json share/hotot/_locales/pl_PL/messages.json share/hotot/_locales/pt_BR/messages.json share/hotot/_locales/ru/messages.json share/hotot/_locales/uk/messages.json share/hotot/_locales/zh_CAN/messages.json share/hotot/_locales/zh_CLS/messages.json share/hotot/_locales/zh_CN/messages.json share/hotot/_locales/zh_TW/messages.json share/hotot/css/hotot.widget.css share/hotot/css/mochi.css share/hotot/css/style.css share/hotot/ext/ext.js share/hotot/ext/org.hotot.appmask/entry.js share/hotot/ext/org.hotot.appmask/icon.png share/hotot/ext/org.hotot.cfw/entry.js share/hotot/ext/org.hotot.cfw/ic16_cfw.png share/hotot/ext/org.hotot.cfw/icon.png share/hotot/ext/org.hotot.gmap/entry.js share/hotot/ext/org.hotot.gmap/ic16_marker.png share/hotot/ext/org.hotot.gmap/icon.png share/hotot/ext/org.hotot.expandurls/entry.js share/hotot/ext/org.hotot.sample/entry.js share/hotot/ext/org.hotot.shorturl/entry.js share/hotot/ext/org.hotot.shorturl/icon.png share/hotot/ext/org.hotot.stat/16.png share/hotot/ext/org.hotot.stat/ani_loading_bar_gray.gif share/hotot/ext/org.hotot.stat/entry.js share/hotot/ext/org.hotot.stat/icon.png share/hotot/ext/org.hotot.stat/jquery.flot.min.js share/hotot/ext/org.hotot.stat/jquery.flot.pie.min.js share/hotot/ext/org.hotot.stat/summary.html share/hotot/ext/org.hotot.translate/entry.js share/hotot/ext/org.hotot.translate/ic16_translate.png share/hotot/ext/org.hotot.translate/icon.png share/hotot/icons/128x128/apps/hotot.ico share/hotot/icons/128x128/apps/hotot.png share/hotot/icons/22x22/apps/hotot.png share/hotot/icons/24x24/apps/hotot.png share/hotot/icons/32x32/apps/hotot.png share/hotot/icons/48x48/apps/hotot.png share/hotot/icons/64x64/apps/hotot.png share/hotot/image/ani_loading_bar.gif share/hotot/image/dark-bg.png share/hotot/image/deleted_mark.png share/hotot/image/emit.png share/hotot/image/expand.png share/hotot/image/fold.png share/hotot/image/go_bg.png share/hotot/image/hint_arrow_up.png share/hotot/image/ic128_hotot.png share/hotot/image/ic16_arrow_down_gray.png share/hotot/image/ic16_arrow_up_gray.png share/hotot/image/ic16_checked.png share/hotot/image/ic16_clear_text.png share/hotot/image/ic16_close.png share/hotot/image/ic16_delete.png share/hotot/image/ic16_dm.png share/hotot/image/ic16_edit.png share/hotot/image/ic16_gear.png share/hotot/image/ic16_hotot.png share/hotot/image/ic16_identica.png share/hotot/image/ic16_imageuploader.png share/hotot/image/ic16_link.png share/hotot/image/ic16_retweet_light.png share/hotot/image/ic16_save.png share/hotot/image/ic16_save_alt.png share/hotot/image/ic16_smile.png share/hotot/image/ic16_twitter.png share/hotot/image/ic24_hotot.png share/hotot/image/ic24_hotot_mono_dark.svg share/hotot/image/ic24_hotot_mono_light.png share/hotot/image/ic24_hotot_mono_light.svg share/hotot/image/ic24_hotot_mono_light_blink.svg share/hotot/image/ic24_identica.png share/hotot/image/ic24_twitter.png share/hotot/image/ic32_hotot_mono_light.png share/hotot/image/ic48_lock.png share/hotot/image/ic48_profile_image.png share/hotot/image/ic64_add.png share/hotot/image/ic64_hotot.png share/hotot/image/ic64_identica.png share/hotot/image/ic64_twitter.png share/hotot/image/ic_add.png share/hotot/image/ic_archive.png share/hotot/image/ic_archive_alt.png share/hotot/image/ic_compose.png share/hotot/image/ic_dm.png share/hotot/image/ic_fav.png share/hotot/image/ic_fav_alt.png share/hotot/image/ic_home.png share/hotot/image/ic_hotot.png share/hotot/image/ic_list.png share/hotot/image/ic_mention.png share/hotot/image/ic_people.png share/hotot/image/ic_retweet.png share/hotot/image/ic_search.png share/hotot/image/tweet_ctrl_icons.png share/hotot/image/welcome_bg.jpg share/hotot/image/mask.png share/hotot/image/tweet_fav_indicator.png share/hotot/index.html share/hotot/js/background.coffee share/hotot/js/background.js share/hotot/js/base64.js share/hotot/js/conf.js share/hotot/js/daemon.js share/hotot/js/db.js share/hotot/js/hotot.js share/hotot/js/hotkey.js share/hotot/js/i18n.js share/hotot/js/jquery.js share/hotot/js/jquery.layout.js share/hotot/js/jquery.transit.min.js share/hotot/js/kismet.js share/hotot/js/lib.network.js share/hotot/js/lib.oauth.js share/hotot/js/lib.twitter.js share/hotot/js/mochi.js share/hotot/js/notification.js share/hotot/js/readlater.coffee share/hotot/js/readlater.js share/hotot/js/sha1.js share/hotot/js/toast.js share/hotot/js/ui.about_dlg.js share/hotot/js/ui.add_to_list_dlg.js share/hotot/js/ui.action_menu.js share/hotot/js/ui.context_menu.js share/hotot/js/ui.dm_tabs.js share/hotot/js/ui.error_dlg.js share/hotot/js/ui.exts_dlg.js share/hotot/js/ui.finder.js share/hotot/js/ui.form_checker.js share/hotot/js/ui.header.js share/hotot/js/ui.home_tabs.js share/hotot/js/ui.imageuploader.js share/hotot/js/ui.kismet_dlg.js share/hotot/js/ui.list_attr_dlg.js share/hotot/js/ui.listview.js share/hotot/js/ui.main.js share/hotot/js/ui.mention_tabs.js share/hotot/js/ui.peopleview.js share/hotot/js/ui.pin_dlg.js share/hotot/js/ui.prefs_dlg.js share/hotot/js/ui.previewer.coffee share/hotot/js/ui.previewer.js share/hotot/js/ui.profile_dlg.js share/hotot/js/ui.retweetview.js share/hotot/js/ui.searchview.js share/hotot/js/ui.sidebar.js share/hotot/js/ui.slider.js share/hotot/js/ui.status_box.js share/hotot/js/ui.template.js share/hotot/js/ui.trending_topicsview.js share/hotot/js/ui.welcome.js share/hotot/js/widget.autocomplete.js share/hotot/js/widget.scrollbar.coffee share/hotot/js/util.js share/hotot/js/widget.bubble.js share/hotot/js/widget.button.js share/hotot/js/widget.dialog.js share/hotot/js/widget.listview.js share/hotot/js/widget.radio_group.js share/hotot/js/widget.scrollbar.js share/hotot/sound/notify.wav share/hotot/theme/Bare/info.json share/hotot/theme/Bare/preview.png share/hotot/theme/Bare/style.css share/hotot/theme/Classic/info.json share/hotot/theme/Classic/preview.png share/hotot/theme/Classic/style.css share/hotot/theme/Iron Heart/background-stripes.gif share/hotot/theme/Iron Heart/expand.png share/hotot/theme/Iron Heart/fold.png share/hotot/theme/Iron Heart/ic16_close.png share/hotot/theme/Iron Heart/ic16_gear.png share/hotot/theme/Iron Heart/info.json share/hotot/theme/Iron Heart/preview.png share/hotot/theme/Iron Heart/style.css share/hotot/theme/New Hope/info.json share/hotot/theme/New Hope/preview.png share/hotot/theme/New Hope/style.css share/hotot/background.html share/hotot/manifest.json share/icons/hicolor/scalable/status/hotot_qt-inactive.svg share/icons/hicolor/scalable/status/hotot_qt-active.svg share/icons/hicolor/22x22/apps/hotot.png share/icons/hicolor/24x24/apps/hotot.png share/icons/hicolor/32x32/apps/hotot.png share/icons/hicolor/48x48/apps/hotot.png share/icons/hicolor/64x64/apps/hotot.png share/icons/hicolor/128x128/apps/hotot.png share/locale/ca/LC_MESSAGES/hotot.mo share/locale/de_DE/LC_MESSAGES/hotot.mo share/locale/es_ES/LC_MESSAGES/hotot.mo share/locale/es_MX/LC_MESSAGES/hotot.mo share/locale/fr_FR/LC_MESSAGES/hotot.mo share/locale/gl/LC_MESSAGES/hotot.mo share/locale/it_IT/LC_MESSAGES/hotot.mo share/locale/ja/LC_MESSAGES/hotot.mo share/locale/pt_BR/LC_MESSAGES/hotot.mo share/locale/pt_PT/LC_MESSAGES/hotot.mo share/locale/tr_TR/LC_MESSAGES/hotot.mo share/locale/zh_CN/LC_MESSAGES/hotot.mo share/locale/zh_TW/LC_MESSAGES/hotot.mo @dirrmtry share/locale/tr_TR/LC_MESSAGES @dirrmtry share/locale/it_IT/LC_MESSAGES @dirrmtry share/locale/de_DE/LC_MESSAGES @dirrmtry share/locale/tr_TR @dirrmtry share/locale/it_IT @dirrmtry share/locale/de_DE @dirrm share/hotot/theme/New Hope @dirrm share/hotot/theme/Iron Heart @dirrm share/hotot/theme/Classic @dirrm share/hotot/theme/Bare @dirrm share/hotot/theme @dirrm share/hotot/sound @dirrm share/hotot/js @dirrm share/hotot/image @dirrm share/hotot/icons/64x64/apps @dirrm share/hotot/icons/64x64 @dirrm share/hotot/icons/48x48/apps @dirrm share/hotot/icons/48x48 @dirrm share/hotot/icons/32x32/apps @dirrm share/hotot/icons/32x32 @dirrm share/hotot/icons/24x24/apps @dirrm share/hotot/icons/24x24 @dirrm share/hotot/icons/22x22/apps @dirrm share/hotot/icons/22x22 @dirrm share/hotot/icons/128x128/apps @dirrm share/hotot/icons/128x128 @dirrm share/hotot/icons @dirrm share/hotot/ext/org.hotot.translate @dirrm share/hotot/ext/org.hotot.stat @dirrm share/hotot/ext/org.hotot.shorturl @dirrm share/hotot/ext/org.hotot.sample @dirrm share/hotot/ext/org.hotot.gmap @dirrm share/hotot/ext/org.hotot.expandurls @dirrm share/hotot/ext/org.hotot.cfw @dirrm share/hotot/ext/org.hotot.appmask @dirrm share/hotot/ext @dirrm share/hotot/css @dirrm share/hotot/_locales/zh_TW @dirrm share/hotot/_locales/zh_CN @dirrm share/hotot/_locales/zh_CLS @dirrm share/hotot/_locales/zh_CAN @dirrm share/hotot/_locales/uk @dirrm share/hotot/_locales/ru @dirrm share/hotot/_locales/pt_BR @dirrm share/hotot/_locales/pl_PL @dirrm share/hotot/_locales/nl @dirrm share/hotot/_locales/lv @dirrm share/hotot/_locales/ja @dirrm share/hotot/_locales/it @dirrm share/hotot/_locales/fr @dirrm share/hotot/_locales/es @dirrm share/hotot/_locales/en @dirrm share/hotot/_locales/el @dirrm share/hotot/_locales/de @dirrm share/hotot/_locales/ca @dirrm share/hotot/_locales/bn @dirrm share/hotot/_locales/bg @dirrm share/hotot/_locales @dirrm share/hotot @dirrmtry share/applications