Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458680 - dev-libs/pyzy-0.1.0 new ebuild
Summary: dev-libs/pyzy-0.1.0 new ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 458678
  Show dependency tree
 
Reported: 2013-02-22 03:17 UTC by Yixun Lan
Modified: 2013-03-04 06:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild, workings here (pyzy-0.1.0.ebuild,917 bytes, text/plain)
2013-02-22 03:19 UTC, Yixun Lan
Details
patches, for not download dictionary (pyzy-dont-download-dictionary-file.patch,1.18 KB, patch)
2013-02-22 03:20 UTC, Yixun Lan
Details | Diff
metadata.xml file (metadata.xml,456 bytes, text/plain)
2013-02-22 03:20 UTC, Yixun Lan
Details
updated ebuild (pyzy-0.1.0.ebuild,1.03 KB, text/plain)
2013-02-26 06:00 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2013-02-22 03:17:08 UTC
pyzy was split by ibus upstream, start from ibus-pinyin-1.5.0.
so bug #458678 depend on this

Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2013-02-22 03:19:48 UTC
Created attachment 339660 [details]
ebuild, workings here
Comment 2 Yixun Lan archtester gentoo-dev 2013-02-22 03:20:27 UTC
Created attachment 339662 [details, diff]
patches, for not download dictionary
Comment 3 Yixun Lan archtester gentoo-dev 2013-02-22 03:20:48 UTC
Created attachment 339664 [details]
metadata.xml file
Comment 4 Yixun Lan archtester gentoo-dev 2013-02-23 00:08:59 UTC
I'd suggest also assign this to cjk team
Comment 5 Naohiro Aota gentoo-dev 2013-02-26 02:00:07 UTC
Comment on attachment 339660 [details]
ebuild, workings here

>IUSE="+boost db doc +opencc"

Original configure.ac default to use db, and default not to use boost and opencc. Is there some reason not to follow that default?

Also I feel the USE flag name "db" is a bit confusing. The configure.ac's description is "build database from pinyin in android" and description for "--enable-db-open-phrase" is "build open-phrase database". I don't think it "enable support for database"

>RDEPEND="dev-libs/glib:2
>	!!<=app-i18n/ibus-pinyin-1.4.0
>	boost? ( dev-libs/boost )
>	opencc? ( app-i18n/opencc )"

Some dependecies seems to be missing: dev-db/sqlite:3 and sys-apps/util-linux (for libuuid)

>DEPEND="${DEPEND}
>	doc? ( app-doc/doxygen )"
>
>src_prepare() {
>	epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch
>	mv ../db ./data/db/open-phrase/ || die
>	eautoreconf
>}

python_convert_shebangs 2 "${S}"/data/db/android/create_db.py

>
>src_configure() {
>	econf \
>		--enable-db-open-phrase \
>		$(use_enable boost) \
>		$(use_enable opencc) \
>		$(use_enable db db-android)
>}

$(use_enable test tests) can be added.
Comment 6 Yixun Lan archtester gentoo-dev 2013-02-26 06:00:45 UTC
Created attachment 340136 [details]
updated ebuild

(In reply to comment #5)
> Comment on attachment 339660 [details]
> ebuild, workings here
> 
> >IUSE="+boost db doc +opencc"
> 
> Original configure.ac default to use db, and default not to use boost and
> opencc. Is there some reason not to follow that default?

ok, I have no specific reason to use "boost opencc".

but for open-phrase, I enable it by default, compare to db-android it has more accurate database. that's why I make USE="db" (for android db) disabled by default, but it's fine to enable it.
 
I've tested with USE="-boost +db -doc -opencc -test", it works here.

> 
> Also I feel the USE flag name "db" is a bit confusing. The 
configure.ac's
> description is "build database from pinyin in android" and description 
for
> "--enable-db-open-phrase" is "build open-phrase database". I don't 
think it
> "enable support for database"
> 

I'm also confusing .. and not sure what's the best desription to fit here
feel free to adjust this ..


> >RDEPEND="dev-libs/glib:2
> >	!!<=app-i18n/ibus-pinyin-1.4.0
> >	boost? ( dev-libs/boost )
> >	opencc? ( app-i18n/opencc )"
> 
> Some dependecies seems to be missing: dev-db/sqlite:3 and
> sys-apps/util-linux (for libuuid)
> 

Yes, good catch, my bad here.
need to add to $DEPEND

> >DEPEND="${DEPEND}
> >	doc? ( app-doc/doxygen )"
> >
> >src_prepare() {
> >	epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch
> >	mv ../db ./data/db/open-phrase/ || die
> >	eautoreconf
> >}
> 
> python_convert_shebangs 2 "${S}"/data/db/android/create_db.py
> 
good, I've added this.


> >
> >src_configure() {
> >	econf \
> >		--enable-db-open-phrase \
> >		$(use_enable boost) \
> >		$(use_enable opencc) \
> >		$(use_enable db db-android)
> >}
> 
> $(use_enable test tests) can be added.

yes,  can do this
Comment 7 Naohiro Aota gentoo-dev 2013-02-27 10:38:23 UTC
Comment on attachment 340136 [details]
updated ebuild

I've forgot some points left.

>RDEPEND="dev-libs/glib:2
>	dev-db/sqlite:3
>	!!<=app-i18n/ibus-pinyin-1.4.0
>	sys-apps/util-linux
>	boost? ( dev-libs/boost )
>	opencc? ( app-i18n/opencc )"

What's this ibus-pinyin blocker for?

>DEPEND="${DEPEND}
>	doc? ( app-doc/doxygen )"

DEPEND="${DEPEND} ..." is maybe typo? You still need RDEPEND stuffs at build time.

>src_prepare() {
>	epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch

To be precise, eautoreconf will updated the Makefile.in from the patched Makefile.am, so you don't need Makefile.in part
Comment 8 Yixun Lan archtester gentoo-dev 2013-02-27 13:43:14 UTC
(In reply to comment #7)
> Comment on attachment 340136 [details]
> updated ebuild
> 
> I've forgot some points left.
> 
> >RDEPEND="dev-libs/glib:2
> >	dev-db/sqlite:3
> >	!!<=app-i18n/ibus-pinyin-1.4.0
> >	sys-apps/util-linux
> >	boost? ( dev-libs/boost )
> >	opencc? ( app-i18n/opencc )"
> 
> What's this ibus-pinyin blocker for?

Ok, I'm trying to avoid install both pyzy and <=ibus-pinyin-1.4.0 (due to file collision). we can think that version before 1.5.0 already include pyzy..

but, maybe I'm not doing right? or shouldn't I worry about this (since people will just install ibus-pinyin(1.5.0), and it will implicitly pull pyzy in)?
but I still think people may have problem when they downgrade from 1.5.0 to 1.4.x (shouldn't this happen?)
good secenario with:
1) <=ibus-pinyin-1.4.0 + no pyzy
or
2) ibus-pinyin-1.5.0 + pyzy

> 
> >DEPEND="${DEPEND}
> >	doc? ( app-doc/doxygen )"
> 
> DEPEND="${DEPEND} ..." is maybe typo? You still need RDEPEND stuffs at build
> time.
> 

yeah, it's typo, should be DEPEND="${RDEPEND}


> >src_prepare() {
> >	epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch
> 
> To be precise, eautoreconf will updated the Makefile.in from the patched
> Makefile.am, so you don't need Makefile.in part

right, we can kill that part
Comment 9 Naohiro Aota gentoo-dev 2013-02-28 08:17:12 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Comment on attachment 340136 [details]
> > updated ebuild
> > 
> > I've forgot some points left.
> > 
> > >RDEPEND="dev-libs/glib:2
> > >	dev-db/sqlite:3
> > >	!!<=app-i18n/ibus-pinyin-1.4.0
> > >	sys-apps/util-linux
> > >	boost? ( dev-libs/boost )
> > >	opencc? ( app-i18n/opencc )"
> > 
> > What's this ibus-pinyin blocker for?
> 
> Ok, I'm trying to avoid install both pyzy and <=ibus-pinyin-1.4.0 (due to
> file collision). we can think that version before 1.5.0 already include
> pyzy..
> 
> but, maybe I'm not doing right? or shouldn't I worry about this (since
> people will just install ibus-pinyin(1.5.0), and it will implicitly pull
> pyzy in)?
> but I still think people may have problem when they downgrade from 1.5.0 to
> 1.4.x (shouldn't this happen?)
> good secenario with:
> 1) <=ibus-pinyin-1.4.0 + no pyzy
> or
> 2) ibus-pinyin-1.5.0 + pyzy

Actually I don't think file collison is exist. I have following packages at the same time:

% qlist -Iv ibus-pinyin
app-i18n/ibus-pinyin-1.4.0
% qlist -Iv pyzy       
app-i18n/pyzy-0.1.0

This can be co-exist because package name is changed. Yes, they might be duplicate files, however I don't think it a serious problem.

% qlist ibus-pinyin
/usr/share/ibus-pinyin/db/android.db
/usr/share/ibus-pinyin/db/open-phrase.db
/usr/share/ibus-pinyin/db/create_index.sql
...
% qlist pyzy       
/usr/share/pyzy/db/android.db
/usr/share/pyzy/db/open-phrase.db
/usr/share/pyzy/db/create_index.sql
...
Comment 10 Yixun Lan archtester gentoo-dev 2013-02-28 10:45:42 UTC
I'm fine if you consider removing this "!!<=app-i18n/ibus-pinyin-1.4.0"

seems useless.. then

(In reply to comment #9)
Comment 11 Naohiro Aota gentoo-dev 2013-03-01 05:31:03 UTC
Thank you for your ebuild. I've finally added your ebuild into the tree.

BTW the metadata.xml has "<herd>proxy-maintainers</herd>". This means you are willing to be a maintainer for this package?
Comment 12 Yixun Lan archtester gentoo-dev 2013-03-01 07:29:17 UTC
Hi,  Naohiro Aota 
Yes, I've previously added a proxy maintainer tag there, but feel that pyzy is not a independent package (it's one of 'RDEPEND' dependency of ibus-pinyin).
so, I'd keep it same as ibus-pinyin (make it under CJK herd)
 
And I removed the tag at last step.
I'm not sure whether you are actively maintain ibus related ebuilds, 
would be great if you can put me under proxy-maintainer list (of course, if you feel that you need any help here)

I'm using ibus daily, and willing to help here..

(In reply to comment #11)
> Thank you for your ebuild. I've finally added your ebuild into the tree.
> 
> BTW the metadata.xml has "<herd>proxy-maintainers</herd>". This means you
> are willing to be a maintainer for this package?
Comment 13 Naohiro Aota gentoo-dev 2013-03-03 12:35:21 UTC
(In reply to comment #12)
> Hi,  Naohiro Aota 
> Yes, I've previously added a proxy maintainer tag there, but feel that pyzy
> is not a independent package (it's one of 'RDEPEND' dependency of
> ibus-pinyin).
> so, I'd keep it same as ibus-pinyin (make it under CJK herd)
>  
> And I removed the tag at last step.
> I'm not sure whether you are actively maintain ibus related ebuilds, 
> would be great if you can put me under proxy-maintainer list (of course, if
> you feel that you need any help here)
> 
> I'm using ibus daily, and willing to help here..
> 
> (In reply to comment #11)
> > Thank you for your ebuild. I've finally added your ebuild into the tree.
> > 
> > BTW the metadata.xml has "<herd>proxy-maintainers</herd>". This means you
> > are willing to be a maintainer for this package?

Thanks, since I'm using ibus but not using ibus-pinyin usually, I'd appreciate your help :). I've just set up you for proxy-maintainership.
Comment 14 Yixun Lan archtester gentoo-dev 2013-03-04 06:04:14 UTC
(In reply to comment #13)
> Thanks, since I'm using ibus but not using ibus-pinyin usually, I'd
> appreciate your help :). I've just set up you for proxy-maintainership.

Hey, The pleasure always be mine ;-) and I'd really appreciate for pushing this..
(also, it would be great if you can put proxy-maintainters as second herd
see: http://www.gossamer-threads.com/lists/gentoo/dev/269051)

Since this is already resolved, so I think there is no block for bug #458678 (bump ibus-pinyin to 1.5.0), right? thanks