Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524664 - dev-python/sphinx-intl-0.9.5 - sphinx utility that make[sic] it easy to translate and to apply translation
Summary: dev-python/sphinx-intl-0.9.5 - sphinx utility that make[sic] it easy to trans...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
Depends on:
Reported: 2014-10-07 07:09 UTC by Vladimir
Modified: 2018-08-12 19:48 UTC (History)
2 users (show)

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

sphinx-intl-0.9.5.ebuild (sphinx-intl-0.9.5.ebuild,1.10 KB, text/plain)
2014-10-07 07:09 UTC, Vladimir
sphinx-intl-0.9.9.ebuild (sphinx-intl-0.9.9.ebuild,694 bytes, text/plain)
2016-02-29 15:01 UTC, Vladimir
sphinx-intl-0.9.11.ebuild (sphinx-intl-0.9.11.ebuild,705 bytes, text/plain)
2018-08-12 19:42 UTC, Chris Mayo
sphinx-intl-0.9.11.ebuild (sphinx-intl-0.9.11.ebuild,723 bytes, text/plain)
2018-08-12 19:48 UTC, Chris Mayo

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2014-10-07 07:09:27 UTC
Created attachment 386174 [details]


Sphinx utility that make it easy to translate and to apply translation.

sphinx-intl is a utility tool that provides several features that make it easy to translate and to apply translation to Sphinx generated document.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-07 07:24:47 UTC
Comment on attachment 386174 [details]

># This file is generated by /usr/bin/pypi2portage automatically.

That shouldn't be in there. The usual header is missing, too.


That looks wrong.

>DESCRIPTION="Sphinx utility that make it easy to translate and to apply translation."

The spelling should be corrected here.

make -> makes
translation -> translations


What does this comment do?


sphinx-intl -> ${PN}
sphinx-intl-0.9.5 -> ${P}

>KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"

Did you really test on all those architectures?

>src_unpack() {
>	distutils_src_unpack
>	if [ -f ]; then
>		einfo 'Run'
>		${python}
>	fi

Looks like everything after distutils_src_unpack should go into src_prepare().
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-10-09 00:18:13 UTC
inherit distutils

Oh dear.  

# This file is generated by /usr/bin/pypi2portage automatically.
suggests this ebuild was generated by an ebuild generator that I have thus far refused to even look at.  HINT; Ebuild generated with pypi2pkgsys

This ebuild is merely proof of why.  It starts with inheriting the now defunct 'old' (planned to eventually be deprecated) eclass.  From there it was all down hill.  rej's critique is correct but it's only a start. The substitute for


by rej although correct has another commonly used alternative present in dozens of pythonic ebuilds.  The adjustments are just too numerous to even contemplate to begin illustrating here.  I suggest you join the irc channel for python and I'm content to go thru this.  However, step one is to make a case for why it need be added.  IF it's a new dep for a package already present, THEN no problemo. Otherwise there is a problemo.  I could just re-write it, but you'd be none the wiser.
Comment 3 Vladimir 2016-02-29 15:01:20 UTC
Created attachment 427010 [details]

I created a very simple ebuild for the sphinx-intl-0.9.9, but it does not work for some reason. When I try to emerge it, I get the following error:

error: Error: setup script specifies an absolute path:


setup() arguments must *always* be /-separated paths relative to the directory, *never* absolute paths.

If I download the source archive, unpack it and run 
  python2.7 build
everything works fine, and does not rise the error mentioned above. I tried to search the solution over the Internet, but the only related question I found is this one:
  However, it does not make it clear what to do in order to solve the issue. Therefore I decided to upload my current ebuild and ask for your opinions. Maybe you are familiar with this problem.

Comment 4 Chris Mayo 2018-08-12 19:42:53 UTC
Created attachment 543212 [details]

sphinx-intl-0.9.11 seems to work OK (attached with some updates).
Comment 5 Chris Mayo 2018-08-12 19:48:38 UTC
Created attachment 543214 [details]