Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301324 - dev-games/renpy dev-games/renpy-modules (New package)
Summary: dev-games/renpy dev-games/renpy-modules (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://www.renpy.org
Whiteboard:
Keywords:
: 459662 (view as bug list)
Depends on:
Blocks: 315277 364185 398267
  Show dependency tree
 
Reported: 2010-01-17 23:05 UTC by Nao Nakashima
Modified: 2013-02-28 14:23 UTC (History)
4 users (show)

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


Attachments
ebuild for renpy-6.10.1 (renpy-6.10.1.ebuild,1.14 KB, text/plain)
2010-01-17 23:08 UTC, Nao Nakashima
Details
New version (renpy-6.10.1.ebuild,1.86 KB, text/plain)
2010-01-18 18:07 UTC, Nao Nakashima
Details
New version (renpy-6.10.1.ebuild,2.19 KB, text/plain)
2010-01-19 03:44 UTC, Nao Nakashima
Details
New ebuild (renpy-6.10.2.ebuild,2.28 KB, text/plain)
2010-01-30 07:06 UTC, Nao Nakashima
Details
output of emerge --info =dev-games/renpy-modules-6.12.2 (emerge.info,16.77 KB, text/plain)
2011-09-25 06:24 UTC, Dominique Michel
Details
the environnement file (environment,201.89 KB, text/plain)
2011-09-25 06:29 UTC, Dominique Michel
Details
This is an ebuild from sunrise for a newer version, with a patch to fix the build applied (renpy-modules-6.13.9.ebuild,875 bytes, text/plain)
2012-08-05 19:05 UTC, Mike MacDonald
Details
Fribidi patch (renpy-modules-6.13.9.ebuild.patch,591 bytes, patch)
2012-08-05 19:06 UTC, Mike MacDonald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nao Nakashima 2010-01-17 23:05:16 UTC
This is a new ebuild for Ren'Py: The Visual Novel engine.
Comment 1 Nao Nakashima 2010-01-17 23:08:32 UTC
Created attachment 216770 [details]
ebuild for renpy-6.10.1
Comment 2 Nao Nakashima 2010-01-18 18:07:10 UTC
Created attachment 216823 [details]
New version
Comment 3 Nao Nakashima 2010-01-19 03:44:53 UTC
Created attachment 216868 [details]
New version
Comment 4 Nao Nakashima 2010-01-30 07:06:24 UTC
Created attachment 217895 [details]
New ebuild
Comment 5 Wai Ling 2010-01-31 17:13:39 UTC
The ebuild failed with the following error:

/var/tmp/portage/dev-games/renpy-6.10.2/temp/environment: line 4087: syntax error near unexpected token `||'
/var/tmp/portage/dev-games/renpy-6.10.2/temp/environment: line 4087: ` || die "Failed to create ${PN}"'
 *
 * ERROR: dev-games/renpy-6.10.2 failed.
 * Call stack:
 *               ebuild.sh, line 1748:  Called die
 * The specific snippet of code:
 *      preprocess_ebuild_env || \
 *              die "error processing environment"
 *  The die message:
 *   error processing environment

Comment 6 Nao Nakashima 2010-01-31 17:40:48 UTC
(In reply to comment #5)
> The ebuild failed with the following error:
> ...

Can you attach files
/var/tmp/portage/dev-games/renpy-6.10.2/temp/environment
/var/tmp/portage/dev-games/renpy-6.10.2/temp/build.log

and output of the command "emerge --info"?
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-02-03 16:58:11 UTC
Next time, when you commit an ebuild on sunrise, make sure you will adjust Whiteboard and Keywords as the sunrise documentation suggests

Thank you
Comment 8 Nao Nakashima 2010-02-03 18:58:26 UTC
(In reply to comment #7)
> Next time, when you commit an ebuild on sunrise, make sure you will adjust
> Whiteboard and Keywords as the sunrise documentation suggests
> 
> Thank you

I waited until my ebuild will be moved to reviewed/ subtree as HowToCommit says ("You should mention the Sunrise Overlay with a URL to the reviewed/ directory")
Sorry for delay.

And now it is in the sunrise overlay:
http://overlays.gentoo.org/proj/sunrise/browser/reviewed/dev-games/renpy
Comment 9 Nao Nakashima 2010-02-27 10:17:31 UTC
The version in overlay are updated.

I`ve splitted this package into two: renpy and renpy-modules.
The renpy now support SLOTs, while renpy-modules doesn`t need SLOTting (it is fully backward compatible).
If you need to play renpy games, you just need to install renpy-modules.
Renpy package is for development or if you want to use system-wide renpy installation (vs bundled with game).

Changes:
http://overlays.gentoo.org/proj/sunrise/changeset/10196
http://overlays.gentoo.org/proj/sunrise/changeset/10197
Comment 10 Nao Nakashima 2010-02-27 10:20:51 UTC
Comment on attachment 217895 [details]
New ebuild

Version of this ebuild in overlay obsoletes this one.
Comment 11 Nick White 2010-04-14 08:24:58 UTC
Thanks for this ebuild. Can you change the ebuild in the overlay so that the renpy binary is installed to $PN, not $P - this makes it possible to eg use games_make_wrapper for renpy games, and is how other packages do things. Also, the main install should go into ${GAMES_DATADIR}/${PN}, not ${GAMES_DATADIR}/${P}

Noticed these as I'm writing an ebuild for a lovely littly renpy game (which will be in a bug here soon).
Comment 12 Nao Nakashima 2010-04-14 11:27:31 UTC
(In reply to comment #11)
> Thanks for this ebuild. Can you change the ebuild in the overlay so that the
> renpy binary is installed to $PN, not $P - this makes it possible to eg use
> games_make_wrapper for renpy games, and is how other packages do things. Also,
> the main install should go into ${GAMES_DATADIR}/${PN}, not
> ${GAMES_DATADIR}/${P}

I use $PN-$SLOT for naming 'binary' (actually a shell script), not $P .

There is a reason to do things in that way.
Renpy have API breakage in some versions: http://www.renpy.org/wiki/renpy/Incompatible_Changes
(The version 6.9.10 is actually 6.10.0 version.)

Because old games cannot run with newest renpy, I decided to create a slot for each new incompatible change.
The $SLOT naming scheme (X.Y from first release with API breakage) may not be the most suitable.
If you have better $SLOT naming scheme then suggest it.

You can call your game using "renpy-6.10 /path/to/game" if game is written with renpy-6.10 or later. For versions 6.9.2-6.9.3 use renpy-6.9
Pre 6.9.2 games is not supported by me.

> Noticed these as I'm writing an ebuild for a lovely littly renpy game (which
> will be in a bug here soon).

Every renpy game is shipped with renpy 'base' files. You can decide to run your game using two methods:
1) Using shipped renpy.
You only need RDEPEND=">=dev-games/renpy-modules-X.Y.Z" in ebuild, where X.Y.Z is the version of renpy engine that was using to build this game.
Modules are fully backward compatible and latest renpy-modules will always work.
Run your game using shipped shell script.
2) Using system wide renpy.
You need RDEPEND="dev-games/renpy:$SLOT" in ebuild.
Run game using renpy-$SLOT /path/
Comment 13 Nick White 2010-04-14 11:54:35 UTC
(In reply to comment #12)
> I use $PN-$SLOT for naming 'binary' (actually a shell script), not $P .
> 
> There is a reason to do things in that way.
> Renpy have API breakage in some versions:
> http://www.renpy.org/wiki/renpy/Incompatible_Changes
> (The version 6.9.10 is actually 6.10.0 version.)
> 
> Because old games cannot run with newest renpy, I decided to create a slot for
> each new incompatible change.

Aah, right, that makes a lot of sense. Sorry, I didn't consider slots.

> The $SLOT naming scheme (X.Y from first release with API breakage) may not be
> the most suitable.
> If you have better $SLOT naming scheme then suggest it.

Sounds fine to me :-)

> You can call your game using "renpy-6.10 /path/to/game" if game is written with
> renpy-6.10 or later. For versions 6.9.2-6.9.3 use renpy-6.9
> Pre 6.9.2 games is not supported by me.

Yep, that's my plan. Thanks alot.
Comment 14 Simeon Maryasin 2011-08-08 18:13:39 UTC
There is a problem with latest version:

!!! Fetched file: renpy-6.12.1-source.tar.bz2 VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      9262301
!!! Expected: 9253445
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2011-08-08 18:32:35 UTC
(In reply to comment #14)
> There is a problem with latest version:
> 
> !!! Fetched file: renpy-6.12.1-source.tar.bz2 VERIFY FAILED!
> !!! Reason: Filesize does not match recorded size
> !!! Got:      9262301
> !!! Expected: 9253445

it should be ok now
Comment 16 James Broadhead 2011-08-13 10:01:47 UTC
Upstream updated the file without changing the filename. They've promised* not to do that again.
Comment 17 Dominique Michel 2011-09-25 06:22:23 UTC
I get a build failure:

# emerge -1a renpy-modules

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-games/renpy-modules-6.12.2  0 kB [1]
...
>>> Emerging (1 of 1) dev-games/renpy-modules-6.12.2 from sunrise
 * renpy-6.12.2-source.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
>>> Unpacking source...
>>> Unpacking renpy-6.12.2-source.tar.bz2 to /var/tmp/portage/dev-games/renpy-modules-6.12.2/work
>>> Source unpacked in /var/tmp/portage/dev-games/renpy-modules-6.12.2/work
>>> Preparing source in /var/tmp/portage/dev-games/renpy-modules-6.12.2/work/renpy-6.12.2/module ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-games/renpy-modules-6.12.2/work/renpy-6.12.2/module ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-games/renpy-modules-6.12.2/work/renpy-6.12.2/module ...
 * Building of dev-games/renpy-modules-6.12.2 with CPython 2.7...
python2.7 setup.py build -b build-2.7
Found zlib.h in /usr/include.
Found png.h in /usr/include.
Found SDL.h in /usr/include/SDL.
Found ft2build.h in /usr/include.
Found freetype/freetype.h in /usr/include/freetype2.
Found libavutil/avstring.h in /usr/include.
Found libavformat/avformat.h in /usr/include.
Found libavcodec/avcodec.h in /usr/include.
Found libswscale/swscale.h in /usr/include.
Found GL/glew.h in /usr/include.
Found /usr/lib/libSDL.so.
Found /usr/lib/libpng.so.
Found /usr/lib/libavformat.so.
Found /usr/lib/libavcodec.so.
Found /usr/lib/libavutil.so.
Found /usr/lib/libswscale.so.
Found /usr/lib/libfreetype.so.
Found /usr/lib/libfribidi.so.
Found /usr/lib/libz.so.
Found /usr/lib/libGLEW.so.
_renpy.pyx is not newer than _renpy.c
_renpybidi.pyx is not newer than _renpybidi.c
sound.pyx is not newer than sound.c
winmixer.pyx is not newer than winmixer.c
running build
running build_py
creating build-2.7
creating build-2.7/lib.linux-x86_64-2.7
creating build-2.7/lib.linux-x86_64-2.7/pysdlsound
copying lib/pysdlsound/__init__.py -> build-2.7/lib.linux-x86_64-2.7/pysdlsound
copying lib/pysdlsound/linmixer.py -> build-2.7/lib.linux-x86_64-2.7/pysdlsound
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_renpy' extension
creating build-2.7/temp.linux-x86_64-2.7
x86_64-pc-linux-gnu-gcc -pthread -march=amdfam10 -O2 -pipe -g -ggdb -fPIC -I/usr/include -I/usr/include/SDL -I/usr/include/freetype2 -I/usr/include/python2.7 -c IMG_savepng.c -o build-2.7/temp.linux-x86_64-2.7/IMG_savepng.o -O3 -Wno-unused-function
IMG_savepng.c: In function ‘IMG_SavePNG_RW’:
IMG_savepng.c:87:28: error: ‘voidp’ undeclared (first use in this function)
IMG_savepng.c:87:28: note: each undeclared identifier is reported only once for each function it appears in
IMG_savepng.c:87:34: error: expected ‘)’ before ‘src’
IMG_savepng.c:87:34: error: too few arguments to function ‘png_set_write_fn’
/usr/include/png.h:1759:1: note: declared here
IMG_savepng.c:94:17: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
IMG_savepng.c:97:20: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
IMG_savepng.c:103:37: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
Comment 18 Dominique Michel 2011-09-25 06:24:36 UTC
Created attachment 287665 [details]
output of emerge --info =dev-games/renpy-modules-6.12.2
Comment 19 Dominique Michel 2011-09-25 06:29:38 UTC
Created attachment 287667 [details]
the environnement file
Comment 20 James Broadhead 2011-10-21 15:55:03 UTC
@Dominique: 
I've just pushed an updated ebuild + patch to sunrise. 
It should go live in a few days.
Comment 21 Mike MacDonald 2012-08-05 19:05:50 UTC
Created attachment 320478 [details]
This is an ebuild from sunrise for a newer version, with a patch to fix the build applied

Here is a newer version with a patch to fix the build agaianst fribidi. I will also attach just the patch.
Comment 22 Mike MacDonald 2012-08-05 19:06:35 UTC
Created attachment 320480 [details, diff]
Fribidi patch

This is just the patch.
Comment 23 jannis 2012-08-06 17:53:11 UTC
(In reply to comment #21)
> Here is a newer version with a patch to fix the build agaianst fribidi. I
> will also attach just the patch.

Thanks for the new ebuild. I saw that -6.13.7 failed to build with latest 
media-libs/glew and so I'm quite happy you updated it. Compiled fine here on ~amd64
Comment 24 Julian Ospald 2013-02-27 00:22:29 UTC
oooh, awesome!


+*renpy-6.14.1 (27 Feb 2013)
+
+  27 Feb 2013; Julian Ospald <hasufell@gentoo.org> +renpy-6.14.1.ebuild,
+  +files/renpy-6.14.1-av_close_input_stream.patch,
+  +files/renpy-6.14.1-multiple-abi.patch,
+  +files/renpy-6.14.1-remove-AVFormatParameters.patch, +metadata.xml:
+  initial import wrt #301324


when updating make sure you _unmerge_ renpy-modules from sunrise first cause it's one ebuild now (category games-engines)

if you need additional slots, please say so and which one, the ebuild is ready for adding new/old slots
Comment 25 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-28 14:23:24 UTC
*** Bug 459662 has been marked as a duplicate of this bug. ***