Date: Fri, 19 Jul 2019 00:20:11 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506903 - in head/korean/ibus-hangul: . files Message-ID: <201907190020.x6J0KBgP024359@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Fri Jul 19 00:20:11 2019 New Revision: 506903 URL: https://svnweb.freebsd.org/changeset/ports/506903 Log: - Fix plist and build with Python 3. - Add an upstream patch to fix window close event. - Add NLS option to appease portlint. Added: head/korean/ibus-hangul/files/ head/korean/ibus-hangul/files/patch-setup_main.py (contents, props changed) Modified: head/korean/ibus-hangul/Makefile head/korean/ibus-hangul/pkg-message head/korean/ibus-hangul/pkg-plist Modified: head/korean/ibus-hangul/Makefile ============================================================================== --- head/korean/ibus-hangul/Makefile Fri Jul 19 00:09:35 2019 (r506902) +++ head/korean/ibus-hangul/Makefile Fri Jul 19 00:20:11 2019 (r506903) @@ -13,11 +13,22 @@ LICENSE= GPLv2 LIB_DEPENDS= libhangul.so:korean/libhangul \ libibus-1.0.so:textproc/ibus +USES= gmake gnome libtool pkgconfig python +USE_GNOME= gtk30 intlhack pygobject3 + +OPTIONS_DEFINE= NLS +OPTIONS_SUB= NLS + +NLS_CONFIGURE_ENABLE= nls +NLS_USES= gettext +NLS_USES_OFF= gettext-tools + GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-python="${PYTHON_CMD}" + +GLIB_SCHEMAS= org.freedesktop.ibus.engine.hangul.gschema.xml + INSTALLS_ICONS= yes INSTALL_TARGET= install-strip -USE_GNOME= gtk30 intlhack pygobject3 -USES= gettext gmake libtool pkgconfig python -USE_PYTHON= py3kplist .include <bsd.port.mk> Added: head/korean/ibus-hangul/files/patch-setup_main.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/korean/ibus-hangul/files/patch-setup_main.py Fri Jul 19 00:20:11 2019 (r506903) @@ -0,0 +1,10 @@ +--- setup/main.py.orig 2018-06-08 14:34:37 UTC ++++ setup/main.py +@@ -151,6 +151,7 @@ class Setup (): + self.__window = self.__builder.get_object("SetupDialog") + icon_file = os.path.join(config.pkgdatadir, "icons", "ibus-hangul.svg") + self.__window.set_icon_from_file(icon_file) ++ self.__window.connect("destroy", Gtk.main_quit) + self.__window.show() + + button = self.__builder.get_object("button_apply") Modified: head/korean/ibus-hangul/pkg-message ============================================================================== --- head/korean/ibus-hangul/pkg-message Fri Jul 19 00:09:35 2019 (r506902) +++ head/korean/ibus-hangul/pkg-message Fri Jul 19 00:20:11 2019 (r506903) @@ -29,7 +29,3 @@ export QT_IM_MODULE=xim export XMODIFIERS=@im=ibus export XIM_PROGRAM="ibus-daemon" export XIM_ARGS="-r --daemonize --xim" - -If ibus cannot start or the panel does not appear, please ensure -that you are using up-to-date python. -There's a bug in python 2.5, which may prevent the panel from appearing. Modified: head/korean/ibus-hangul/pkg-plist ============================================================================== --- head/korean/ibus-hangul/pkg-plist Fri Jul 19 00:09:35 2019 (r506902) +++ head/korean/ibus-hangul/pkg-plist Fri Jul 19 00:20:11 2019 (r506903) @@ -2,23 +2,29 @@ bin/ibus-setup-hangul libexec/ibus-engine-hangul libexec/ibus-setup-hangul share/applications/ibus-setup-hangul.desktop -share/ibus/component/hangul.xml %%DATADIR%%/data/symbol.txt %%DATADIR%%/icons/ibus-hangul.png %%DATADIR%%/icons/ibus-hangul.svg +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/config.cpython-36.opt-1.pyc +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/config.cpython-36.pyc +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/keycapturedialog.cpython-36.opt-1.pyc +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/keycapturedialog.cpython-36.pyc +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/main.cpython-36.opt-1.pyc +%%PYTHON3%%%%DATADIR%%/setup/__pycache__/main.cpython-36.pyc %%DATADIR%%/setup/config.py -%%DATADIR%%/setup/config.pyc -%%DATADIR%%/setup/config.pyo +%%PYTHON2%%%%DATADIR%%/setup/config.pyc +%%PYTHON2%%%%DATADIR%%/setup/config.pyo %%DATADIR%%/setup/keycapturedialog.py -%%DATADIR%%/setup/keycapturedialog.pyc -%%DATADIR%%/setup/keycapturedialog.pyo +%%PYTHON2%%%%DATADIR%%/setup/keycapturedialog.pyc +%%PYTHON2%%%%DATADIR%%/setup/keycapturedialog.pyo %%DATADIR%%/setup/main.py -%%DATADIR%%/setup/main.pyc -%%DATADIR%%/setup/main.pyo +%%PYTHON2%%%%DATADIR%%/setup/main.pyc +%%PYTHON2%%%%DATADIR%%/setup/main.pyo %%DATADIR%%/setup/setup.ui +share/ibus/component/hangul.xml share/icons/hicolor/64x64/apps/ibus-hangul.png share/icons/hicolor/64x64/apps/ibus-setup-hangul.png share/icons/hicolor/scalable/apps/ibus-hangul.svg share/icons/hicolor/scalable/apps/ibus-setup-hangul.svg -share/locale/ko/LC_MESSAGES/ibus-hangul.mo -share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo +%%NLS%%share/locale/ko/LC_MESSAGES/ibus-hangul.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907190020.x6J0KBgP024359>