Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361713 - sys-devel/gettext-0.18.1.1: Add optional java support
Summary: sys-devel/gettext-0.18.1.1: Add optional java support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-02 19:30 UTC by Ralph Sennhauser (RETIRED)
Modified: 2011-04-08 19:38 UTC (History)
2 users (show)

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


Attachments
Adds optional java support to ebuild (sys-devel-gettext-0.18.1.1-r1.ebuild-add-optional-java-support.patch,1.91 KB, text/plain)
2011-04-02 19:30 UTC, Ralph Sennhauser (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Sennhauser (RETIRED) gentoo-dev 2011-04-02 19:30:57 UTC
Created attachment 268241 [details]
Adds optional java support to ebuild

This is a patch to add optional support for java to gettext.

What is does is it installs the jar files and the javadocs using java-pkg functions. This results in a directory api and lib being added under /usr/share/gettext/ as well as the file package.env.

This is a possible solution to get optional java support to gettext. Another way could be to create a package gettext-java and PDEPEND on it according to gettexts java useflag.

Also the javadocs seem not to be regenerated on build and so the build system might need to be fixed as well. This could result in yet another solution.

I can try to get other ways to work. What do you see as the proper path.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-04 10:58:52 UTC
Please don't CC random maintainers when you cannot assign bugs.
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2011-04-04 11:40:30 UTC
(In reply to comment #1)
> Please don't CC random maintainers when you cannot assign bugs.

I was asked to add java@gentoo.org. Re-adding it. 

I added base-sytem@gentoo.org as it's the herd of the package, sorry for that. Won't happen again.
Comment 3 SpanKY gentoo-dev 2011-04-07 00:50:44 UTC
i dont care about java.  if the java team is OK with the patch, they may commit it to the gettext package.
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2011-04-07 02:45:02 UTC
Patch looks fine except for just one line....

java-pgk-opt-2_src_prepare

pgk???

Will attempt to get to this tonight.
Comment 5 Ralph Sennhauser (RETIRED) gentoo-dev 2011-04-07 06:54:37 UTC
(In reply to comment #4)
> Patch looks fine except for just one line....
> 
> java-pgk-opt-2_src_prepare
> 
> pgk???
> 
> Will attempt to get to this tonight.

Oh, nicely spotted. Thanks, for looking into it.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-08 18:56:17 UTC
/var/tmp/portage/sys-devel/gettext-0.18.1.1-r2/temp/environment: line 4449: java-pkg-opt_pkg_preinst: command not found


I also suggest to call java-pkg-opt-2_src_prepare() and java-pkg-opt-2_pkg_preinst() only with USE="java".
Comment 7 SpanKY gentoo-dev 2011-04-08 19:22:27 UTC
`use java` wouldnt fix the typos in the func names ...
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2011-04-08 19:38:06 UTC
(In reply to comment #6)
> /var/tmp/portage/sys-devel/gettext-0.18.1.1-r2/temp/environment: line 4449:
> java-pkg-opt_pkg_preinst: command not found
> 

Fixed.

> 
> I also suggest to call java-pkg-opt-2_src_prepare() and
> java-pkg-opt-2_pkg_preinst() only with USE="java".
>

The eclass takes care of checking the use flag.