Skip to content

Commit

Permalink
chinese/{ibus-,lib,py}cangjie: miscellaneous cleanups and improvements
Browse files Browse the repository at this point in the history
- Drop redundant GH_PROJECT when appropriately set by the framework
- Remove excessive horizontal, vertical, and useless EOL whitespace
- Reformat port description for standard 80-character terminal width
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Aug 29, 2021
1 parent 38621bd commit c18767b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 32 deletions.
25 changes: 11 additions & 14 deletions chinese/ibus-cangjie/Makefile
@@ -1,9 +1,9 @@
# Created by: blubee <hello@blubee.me>

PORTNAME= ibus-cangjie
PORTVERSION= 2.4
PORTNAME= ibus-cangjie
PORTVERSION= 2.4
DISTVERSIONPREFIX= v
CATEGORIES= chinese
CATEGORIES= chinese

MAINTAINER= hello@blubee.me
COMMENT= IBus engine for users of the Cangjie and Quick
Expand All @@ -14,23 +14,20 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libibus-1.0.so:textproc/ibus
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/cangjie/_core.so:chinese/pycangjie \
${PYTHON_SITELIBDIR}/pycanberra/pycanberra.py:devel/pycanberra@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cangjie/_core.so:chinese/pycangjie \
${PYTHON_SITELIBDIR}/pycanberra/pycanberra.py:devel/pycanberra@${PY_FLAVOR}
RUN_DEPENDS:= ${BUILD_DEPENDS}

USES= autoreconf gmake gnome libtool pkgconfig python:3.4+
USE_GNOME= introspection:run pygobject3 intltool
GLIB_SCHEMAS= org.cangjians.ibus.cangjie.gschema.xml \
org.cangjians.ibus.quick.gschema.xml
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes

OPTIONS_DEFINE= NLS
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= gettext

INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
USE_GITHUB= yes
GH_ACCOUNT= Cangjians

USE_GITHUB= yes
GH_ACCOUNT= Cangjians
GH_PROJECT= ibus-cangjie
OPTIONS_DEFINE= NLS
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= gettext

.include <bsd.port.mk>
8 changes: 3 additions & 5 deletions chinese/ibus-cangjie/pkg-descr
@@ -1,8 +1,6 @@
This is an IBus engine for users of the Cangjie and
Quick input methods.
This is an IBus engine for users of the Cangjie and Quick input methods.

It is primarily intended to Hong Kong people
who want to input Traditional Chinese,
as they are (by far) the majority of Cangjie and Quick users.
It is primarily intended to Hong Kong people who want to input Traditional
Chinese, as they are (by far) the majority of Cangjie and Quick users.

WWW: http://cangjians.github.io/projects/ibus-cangjie/
11 changes: 4 additions & 7 deletions chinese/libcangjie/Makefile
@@ -1,10 +1,10 @@
# Created by: blubee <hello@blubee.me>

PORTNAME= libcangjie
PORTVERSION= 1.3
PORTREVISION= 1
PORTNAME= libcangjie
PORTVERSION= 1.3
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= chinese
CATEGORIES= chinese

MAINTAINER= hello@blubee.me
COMMENT= C library implementing the Cangjie input method
Expand All @@ -17,15 +17,12 @@ LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
libdbus-1.so:devel/dbus

USES= autoreconf gmake libtool localbase pkgconfig sqlite xorg

GNU_CONFIGURE= yes
USE_LDCONFIG= yes

USE_XORG= xi

USE_GITHUB= yes
GH_ACCOUNT= Cangjians
GH_PROJECT= libcangjie

post-install:
@(${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so)
Expand Down
7 changes: 3 additions & 4 deletions chinese/pycangjie/Makefile
@@ -1,9 +1,9 @@
# Created by: blubee <hello@blubee.me>

PORTNAME= pycangjie
PORTVERSION= 1.3
PORTNAME= pycangjie
PORTVERSION= 1.3
DISTVERSIONPREFIX= v
CATEGORIES= chinese
CATEGORIES= chinese

MAINTAINER= hello@blubee.me
COMMENT= Python wrapper to libcangjie
Expand All @@ -19,7 +19,6 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CYTHON=${LOCALBASE}/bin/cython-${PYTHON_VER}
USE_GITHUB= yes
GH_ACCOUNT= Cangjians
GH_PROJECT= pycangjie

post-install:
(cd ${STAGEDIR}${PREFIX} \
Expand Down
4 changes: 2 additions & 2 deletions chinese/pycangjie/pkg-descr
@@ -1,4 +1,4 @@
This is a Python wrapper to libcangjie,
the library implementing the Cangjie input method.
This is a Python wrapper to libcangjie, the library implementing the
Cangjie input method.

WWW: http://cangjians.github.io/projects/pycangjie/

0 comments on commit c18767b

Please sign in to comment.