Bug 128371 - New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
Summary: New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 17:00 UTC by Henry Hu
Modified: 2009-03-26 09:40 UTC (History)
0 users

See Also:


Attachments
file.shar (12.87 KB, text/plain)
2008-10-25 17:00 UTC, Henry Hu
no flags Details
ibus-1.1.0.txt (15.42 KB, text/plain; charset=US-ASCII)
2009-03-26 07:49 UTC, Henry Hu
no flags Details
ibus-pinyin-1.1.0.txt (4.45 KB, text/plain; charset=US-ASCII)
2009-03-26 09:00 UTC, Henry Hu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Hu 2008-10-25 17:00:09 UTC
iBus, like SCIM(textproc/scim), is a platform for input methods.
It is still under development, but is very stable and usable already.
There are also several input method modules for it, including ibus-pinyin, I'm planning to port them later.

WWW: http://code.google.com/p/ibus

Since WITH_* must be after bsd.port.pre.mk, and USE_QT_VER must be before bsd.port.pre.mk,and one of the OPTIONS determines if USE_QT_VER is necessary.
So I set QT_COMPONENTS first and clear it later if it is not needed. Maybe there's a better way to specify this.

Fix: Patch attached with submission follows:
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2008-11-06 06:53:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-12-07 16:11:34 UTC
State Changed
From-To: open->closed

Feedback timeout. If you want to fix this port, please feel free to 
follow-up this PR so that we can re-open it.
Comment 3 Henry Hu 2008-12-08 12:25:14 UTC
Feedback timeout?
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2008-12-12 19:42:06 UTC
State Changed
From-To: closed->open

reopen by submitter request.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2008-12-12 19:42:50 UTC
Responsible Changed
From-To: miwi->freebsd-ports-bugs

back to pool.
Comment 6 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-26 02:58:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

I'll take it.
Comment 7 Philip M. Gollucci freebsd_committer freebsd_triage 2009-01-27 08:16:38 UTC
State Changed
From-To: open->feedback

wrong depends
Comment 8 Philip M. Gollucci 2009-01-27 08:17:05 UTC
# depends on dbus, py-dbus
BUILD_DEPENDS+=     py25-dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
DEPENDS+=       py25-dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
(see PYTHON_SITELIBDIR)

At least the above are wrong, please have a look at these too:
USE_GETTEXT
USE_LDCONFIG

pkg-plist needs work too see at minimum %%PYTHON_SITELIBDIR%% macro

-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
Consultant          - P6M7G8 Inc.                http://p6m7g8.net
Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
Contractor          - PositiveEnergyUSA          http://positiveenergyusa.com
ASF Member          - Apache Software Foundation http://apache.org
FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
Comment 9 Henry Hu 2009-01-31 12:11:15 UTC
If I use py25-dbus-0.82.4, ibus cannot start:

Starting ibus-daemon OK
Traceback (most recent call last):
 File "/usr/local/share/ibus/daemon/ibusdaemon.py", line 27, in <module>
   import dbus.server
ImportError: No module named server

So it needs at least py-dbus 0.83.0. I cannot depend on
${PYTHON_SITELIBDIR}/dbus/__init__.py only, since it may be installed
by an older version.
Shall I use

RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:${PORTSDIR}/devel/py-dbus

Since it does not need it to build, I use RUN_DEPENDS
I've added
USE_GETTEXT=yes
USE_LDCONFIG=yes

I changed pkg-plist to use %%PYTHON_SITELIBDIR%%.
There're still error messages when running, but I can use ibus.
On Tue, Jan 27, 2009 at 4:17 PM, Philip M. Gollucci
<pgollucci@p6m7g8.com> wrote:
> # depends on dbus, py-dbus
> BUILD_DEPENDS+=     py25-dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
> DEPENDS+=       py25-dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
> (see PYTHON_SITELIBDIR)
>
> At least the above are wrong, please have a look at these too:
> USE_GETTEXT
> USE_LDCONFIG
>
> pkg-plist needs work too see at minimum %%PYTHON_SITELIBDIR%% macro
>
> --
> ------------------------------------------------------------------------
> 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
> Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
> Consultant          - P6M7G8 Inc.                http://p6m7g8.net
> Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
> Contractor          - PositiveEnergyUSA
>  http://positiveenergyusa.com
> ASF Member          - Apache Software Foundation http://apache.org
> FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org
>
> Work like you don't need the money,
> love like you'll never get hurt,
> and dance like nobody's watching.
>
Comment 10 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-25 15:45:11 UTC
State Changed
From-To: feedback->open

Feedback received 


Comment 11 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-25 15:45:11 UTC
Responsible Changed
From-To: pgollucci->pav

Take over
Comment 12 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-25 15:46:19 UTC
State Changed
From-To: open->feedback

Hi! 

Can you update the port to recent versions? I see google code page already have 
1.1.0.something. 

The way you suggested py-dbus dependency in last mail is correct. 

I promise to look at the updated ports ASAP.
Comment 13 Henry Hu 2009-03-26 07:49:18 UTC
I've changed the port for the new version, and it's in the attachment.
I used pkg_genplist, and fixed pkg-plist it generated, maybe there are
still some errors.

On Wed, Mar 25, 2009 at 11:46 PM,  <pav@freebsd.org> wrote:
> Synopsis: New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
>
> State-Changed-From-To: feedback->open
> State-Changed-By: pav
> State-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> State-Changed-Why:
> Feedback received
>
>
> Responsible-Changed-From-To: pgollucci->pav
> Responsible-Changed-By: pav
> Responsible-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> Responsible-Changed-Why:
> Take over
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=128371
>
Comment 14 Henry Hu 2009-03-26 09:00:20 UTC
In the attachment, is the chinese/ibus-pinyin port.
This is rather a simple port I think, but its configure does not check
for some dependencies which must be found by looking at the python
source...

On Thu, Mar 26, 2009 at 3:49 PM, Henry Hu <henry.hu.sh@gmail.com> wrote:
> I've changed the port for the new version, and it's in the attachment.
> I used pkg_genplist, and fixed pkg-plist it generated, maybe there are
> still some errors.
>
> On Wed, Mar 25, 2009 at 11:46 PM,  <pav@freebsd.org> wrote:
>> Synopsis: New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
>>
>> State-Changed-From-To: feedback->open
>> State-Changed-By: pav
>> State-Changed-When: Wed Mar 25 15:45:11 UTC 2009
>> State-Changed-Why:
>> Feedback received
>>
>>
>> Responsible-Changed-From-To: pgollucci->pav
>> Responsible-Changed-By: pav
>> Responsible-Changed-When: Wed Mar 25 15:45:11 UTC 2009
>> Responsible-Changed-Why:
>> Take over
>>
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=128371
>>

>
Comment 15 dfilter service freebsd_committer freebsd_triage 2009-03-26 09:24:44 UTC
pav         2009-03-26 09:24:35 UTC

  FreeBSD ports repository

  Modified files:
    textproc             Makefile 
  Added files:
    textproc/ibus        Makefile distinfo pkg-descr pkg-message 
                         pkg-plist 
  Log:
  Intelligent Input Bus for Linux / Unix OS, iBus, is the next generation input
  framework, developed by the developer of scim-python, includes all its
  function, and much more.
  
  This is the base port, you need input methods such as pinyin to input text.
  
  WWW: http://code.google.com/p/ibus
  
  PR:             ports/128371
  Submitted by:   Henry Hu <henry.hu.sh@gmail.com>
  
  Revision  Changes    Path
  1.1321    +1 -0      ports/textproc/Makefile
  1.1       +90 -0     ports/textproc/ibus/Makefile (new)
  1.1       +3 -0      ports/textproc/ibus/distinfo (new)
  1.1       +7 -0      ports/textproc/ibus/pkg-descr (new)
  1.1       +35 -0     ports/textproc/ibus/pkg-message (new)
  1.1       +267 -0    ports/textproc/ibus/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 16 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-26 09:25:21 UTC
Ok, port added after several changes and fixes. You might wish to
compare the committed version to your version, so you know what I fixed.

> I've changed the port for the new version, and it's in the attachment.
> I used pkg_genplist, and fixed pkg-plist it generated, maybe there are
> still some errors.
> 
> On Wed, Mar 25, 2009 at 11:46 PM,  <pav@freebsd.org> wrote:
> > Synopsis: New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
> >
> > State-Changed-From-To: feedback->open
> > State-Changed-By: pav
> > State-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> > State-Changed-Why:
> > Feedback received
> >
> >
> > Responsible-Changed-From-To: pgollucci->pav
> > Responsible-Changed-By: pav
> > Responsible-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> > Responsible-Changed-Why:
> > Take over
> >
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=128371
> >
-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

I cannot be responsible for future messages as apparently my cats have
learned to type.
Comment 17 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-26 09:36:48 UTC
State Changed
From-To: feedback->closed

New ports added
Comment 18 dfilter service freebsd_committer freebsd_triage 2009-03-26 09:36:48 UTC
pav         2009-03-26 09:36:38 UTC

  FreeBSD ports repository

  Modified files:
    chinese              Makefile 
  Added files:
    chinese/ibus-pinyin  Makefile distinfo pkg-descr pkg-plist 
  Log:
  PinYin engine for IBus.
  
  WWW: http://code.google.com/p/ibus
  
  PR:             ports/128371
  Submitted by:   Henry Hu <henry.hu.sh@gmail.com>
  
  Revision  Changes    Path
  1.274     +1 -0      ports/chinese/Makefile
  1.1       +43 -0     ports/chinese/ibus-pinyin/Makefile (new)
  1.1       +6 -0      ports/chinese/ibus-pinyin/distinfo (new)
  1.1       +3 -0      ports/chinese/ibus-pinyin/pkg-descr (new)
  1.1       +53 -0     ports/chinese/ibus-pinyin/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 19 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-26 09:36:59 UTC
Added, too!

Henry Hu pí¹e v èt 26. 03. 2009 v 17:00 +0800:
> In the attachment, is the chinese/ibus-pinyin port.
> This is rather a simple port I think, but its configure does not check
> for some dependencies which must be found by looking at the python
> source...
> 
> On Thu, Mar 26, 2009 at 3:49 PM, Henry Hu <henry.hu.sh@gmail.com> wrote:
> > I've changed the port for the new version, and it's in the attachment.
> > I used pkg_genplist, and fixed pkg-plist it generated, maybe there are
> > still some errors.
> >
> > On Wed, Mar 25, 2009 at 11:46 PM,  <pav@freebsd.org> wrote:
> >> Synopsis: New port: textproc/ibus Intelligent Input Bus for Linux / Unix OS
> >>
> >> State-Changed-From-To: feedback->open
> >> State-Changed-By: pav
> >> State-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> >> State-Changed-Why:
> >> Feedback received
> >>
> >>
> >> Responsible-Changed-From-To: pgollucci->pav
> >> Responsible-Changed-By: pav
> >> Responsible-Changed-When: Wed Mar 25 15:45:11 UTC 2009
> >> Responsible-Changed-Why:
> >> Take over
> >>
> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=128371
> >>
> >

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

On second thought, let's not go to Camelot. It is a silly place.