Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349136 - games-puzzle/braid - New Ebuild for Braid
Summary: games-puzzle/braid - New Ebuild for Braid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://braid-game.com http://www.humb...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-12-19 22:00 UTC by Zorzo Luca
Modified: 2022-02-06 14:55 UTC (History)
8 users (show)

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


Attachments
games-puzzle/braid-1.0.2 - ebuild (braid-1.0.2.ebuild,2.49 KB, text/plain)
2010-12-19 22:06 UTC, Zorzo Luca
Details
License (CCPL-Attribution-ShareAlike-NonCommercial-1.0,12.67 KB, text/plain)
2010-12-19 22:07 UTC, Zorzo Luca
Details
games-puzzle/braid-1.0.2 - ebuild and files (braid-1.0.2.tar.gz,2.48 KB, application/octet-stream)
2010-12-19 22:07 UTC, Zorzo Luca
Details
games-puzzle/braid-1.0.2 - ebuild (braid-1.0.2.ebuild,2.45 KB, text/plain)
2010-12-20 21:34 UTC, Zorzo Luca
Details
games-puzzle/braid-1.0.2 - ebuild and files (braid-1.0.2.tar.gz,2.51 KB, application/octet-stream)
2010-12-20 21:34 UTC, Zorzo Luca
Details
games-puzzle/braid-1.0.2 - ebuild (braid-1.0.2.ebuild,2.52 KB, text/plain)
2011-01-03 13:33 UTC, Zorzo Luca
Details
games-puzzle/braid-1.0.2 - ebuild and files (braid-1.0.2.tar.gz,2.59 KB, application/octet-stream)
2011-01-03 13:34 UTC, Zorzo Luca
Details
braid-2.ebuild (braid-2.ebuild,1.15 KB, text/plain)
2011-01-03 18:45 UTC, Piotr Szymaniak
Details
braid-1.0.2.ebuild (braid-1.0.2.ebuild,1.44 KB, text/plain)
2011-01-04 08:21 UTC, Piotr Szymaniak
Details
nvidia-cg-toolkit-2.1.0017.ebuild with -doc and -examples USE flags added (nvidia-cg-toolkit-2.1.0017.ebuild,1.38 KB, text/plain)
2011-04-12 10:11 UTC, Andrew Oleynik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zorzo Luca 2010-12-19 22:00:07 UTC
Braid is a puzzle-platformer, drawn in a painterly style, where the player manipulates the flow of time in strange and unusual ways.

Reproducible: Always

Steps to Reproduce:
Comment 1 Zorzo Luca 2010-12-19 22:06:56 UTC
Created attachment 257586 [details]
games-puzzle/braid-1.0.2 - ebuild
Comment 2 Zorzo Luca 2010-12-19 22:07:27 UTC
Created attachment 257587 [details]
License
Comment 3 Zorzo Luca 2010-12-19 22:07:47 UTC
Created attachment 257588 [details]
games-puzzle/braid-1.0.2 - ebuild and files
Comment 4 Zorzo Luca 2010-12-20 21:34:25 UTC
Created attachment 257633 [details]
games-puzzle/braid-1.0.2 - ebuild
Comment 5 Zorzo Luca 2010-12-20 21:34:50 UTC
Created attachment 257634 [details]
games-puzzle/braid-1.0.2 - ebuild and files
Comment 6 Zorzo Luca 2011-01-03 13:33:26 UTC
Created attachment 258730 [details]
games-puzzle/braid-1.0.2 - ebuild
Comment 7 Zorzo Luca 2011-01-03 13:34:05 UTC
Created attachment 258732 [details]
games-puzzle/braid-1.0.2 - ebuild and files
Comment 8 Piotr Szymaniak 2011-01-03 14:27:12 UTC
nvidia-cg-toolkit RDEPEND is wrong. We discussed this on #gentoo-gamerlay FreeNode channel:

23:41 < lazy_bum> papillon81: http://grubelek.pl/lzb/braid-2.ebuild add your keyword and try it.
*snip*
00:05 < papillon81> hmm
00:05 < papillon81> what's nvidia-cg-toolkit for?
00:06 < lazy_bum> For libCg.so and some other (libCgGL?).
00:06 < lazy_bum> Shadows?
00:06 < lazy_bum> cg_shaders.
00:07 < papillon81> lazy_bum: it runs without it here (and I also have no nvidia card, so this should be optional probably?)

Where does the license come from? Didn't see any license files in braid tarball (maybe I was lame at looking, it was late at night ;).

Seems that the game runs also on ATI cards without the nvidia-* stuff, so this has to be optional. No idea what'a a nice way to handle that? Package depends on VIDEO_CARDS=nvidia?

P.S. Will attach my ebuild (URL above) later.
Comment 9 Piotr Szymaniak 2011-01-03 18:45:48 UTC
Created attachment 258765 [details]
braid-2.ebuild

Mentioned ebuild.
Comment 10 Piotr Szymaniak 2011-01-03 18:47:45 UTC
@games can suggest some way to make the nvidia-cg-toolkit only for nvidia cards? IUSE="nvidia" or something else (what if someone has nvidia card, but doesn't use nvidia USE flag — only VIDEO_CARDS)?
Comment 11 Zorzo Luca 2011-01-03 19:18:07 UTC
_Maybe_ nvidia-cg-toolkit is useless for Ati users, but it's a small packet, with only one dependency and braid's main executable is linked to libCg.so and libCgGL.so (they are also shipped with the installer, with libsdl, libgcc and libstdc++).

Did you test it with every combination of hardware and driver (open / closed)?
Comment 12 Piotr Szymaniak 2011-01-03 20:28:35 UTC
(In reply to comment #11)
> _Maybe_ nvidia-cg-toolkit is useless for Ati users, but it's a small packet,

It's in „top 20” of my packages by size (out of 781 installed). I wouldn't call it _small_…


> Did you test it with every combination of hardware and driver (open / closed)?

And you test your packages on every combination of hardware? Put the flamewar away. It's not in portage (yet?) and everyone who is interested in this can test the ebuild and complain here.

I would still like to see some opinion from @games team about how to resolve that dep.
Comment 13 Zorzo Luca 2011-01-03 21:04:55 UTC
We are talking about a 10/15 mb package, full of man pages and documentation.

And no flame war at all: you want to exclude a dependency, which in some cases is useless. It isn't a light thing.
I'll repeat: do you know how every video driver behave without it (if it is related)? I don't.

Let's rather talk about keeping bundled libs.
Comment 14 Piotr Szymaniak 2011-01-04 08:21:27 UTC
Created attachment 258796 [details]
braid-1.0.2.ebuild

Updated ebuild. Merged some solutions (rdepends, $S) from Luca ebuild and added IUSE="video_cards_nvidia" to solve the nvidia-cg-toolkit depend.
Comment 15 Zorzo Luca 2011-01-04 11:58:56 UTC
Some other solutions:
1 - Keep the iuse and add a warn if it is disabled and "/proc/driver/nvidia" exists.
2 - Add a "doc" USE to nvidia-cg-toolkit which avoid 1839 doc, examples and man files. Actually this package installs 1851 files.
3 - Keep bundled libs (only in certain cases?): nvidia-cg-toolkit isn't compiled too.

I can implement any of these quickly. 2 can be useful also for other packages.
Comment 16 Thomas 2011-03-22 14:50:17 UTC
Firts:
>>> Install braid-1.0.2 into /var/tmp/portage/games-puzzle/braid-1.0.2/image/ category games-puzzle
/var/tmp/portage/games-puzzle/braid-1.0.2/temp/environment: Zeile 2491: x86: Kommando nicht gefunden.
/var/tmp/portage/games-puzzle/braid-1.0.2/temp/environment: Zeile 2494: amd64: Kommando nicht gefunden.
And couse of that I had no /opt/braid/braid.

After a workaround (I won't publish couse it restricts the ebuild or x86 or amd64) I get:
./braid: error while loading shared libraries: libCg.so: cannot open shared object file: No such file or directory

This is on a amd64 no-multilib system with a radeon HD 4670 using xf86-video-ati (~amd64), mesa-9999 and the newest drm-radeon-testing kernel.
Comment 17 Thomas 2011-03-22 14:54:40 UTC
I installed media-gfx/nvidia-cg-toolkit now.
New error:
Game Startup Error: Unable to set up graphics.
Reason: Failed to initialize OpenGL display.

To help fix this problem make sure you are running the newest version of your video drivers.
Lastly, you could try running this game with the -windowed command-line option.


-windowed works but I don't like it. -.-
Comment 18 Thomas 2011-03-22 14:58:21 UTC
One more thing: Windowed mode is bigger than my screen! Is 1024x768 to small fot that game?
Also I can't change the resolution in game options. "Bildschirmgröße" (german for Screensize) is greyed out.
Comment 19 Thomas 2011-03-22 15:14:32 UTC
braid -heigt 1024 -width 768 works.
I have a fullscreen braid now. :)
Comment 20 Piotr Szymaniak 2011-03-22 15:17:16 UTC
(In reply to comment #16)
> (I won't publish couse it restricts the ebuild or x86 or amd64)

Publish it anyway.

I've updated the ebuild some time ago in roslin overlay, but can't upload it right now. You can try to emerge braid with the following patch (only changes nvidia-cg-toolkit to be installed with whatever graphics card you have):

# --
@@ -13,7 +13,9 @@ SRC_URI="${PN}-linux-build${PV/1.0./}.run.bin"
 LICENSE="Arphic CCPL-Attribution-ShareAlike-NonCommercial-1.0 MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="video_cards_nvidia"
+
+#IUSE="video_cards_nvidia"
+IUSE=""
 RESTRICT="strip fetch"

 DEPEND="app-arch/unzip"
@@ -24,7 +26,8 @@ RDEPEND="media-libs/libsdl[audio,joystick,video]
        x11-libs/libXdmcp
        x11-libs/libXext
        virtual/opengl
-       video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
+       media-gfx/nvidia-cg-toolkit"
+#      video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"

 S=${WORKDIR}/data

# --
Comment 21 Andrew Oleynik 2011-04-12 10:11:40 UTC
Created attachment 269633 [details]
nvidia-cg-toolkit-2.1.0017.ebuild with -doc and -examples USE flags added

(In reply to comment #15)

Well, I'm not sure this is the right place to post it, but anyway this is not unrelated.

I've added two USE flags (doc examples), making two simple checks, which allow not to install all those unnecessary examples and doc files.
One may say that it's not so critical, but as for me (using a netbook with small and cheap SSD) bunch of small (useless as well) files is just a headache.
Comment 22 Jared B. 2011-07-31 06:44:55 UTC
There's a small error in the 1.0.2 ebuild from 2011-01-04.  Lines 52 and 53 should be this:

    if use x86; then doexe x86/"${PN}" || die "doexe failed"; fi
    if use amd64; then doexe amd64/"${PN}" || die "doexe failed"; fi

rather than:

    if x86; then doexe x86/"${PN}" || die "doexe failed"; fi
    if amd64; then doexe amd64/"${PN}" || die "doexe failed"; fi

Otherwise, works great.  Thanks.
Comment 23 Alec Meyers 2011-08-06 21:17:02 UTC
(In reply to comment #21)
> Well, I'm not sure this is the right place to post it, but anyway this is not
> unrelated.

Beresk, you should open a new bug report so that the nvidia-cg-toolkit maintainer finds it.
Comment 24 Larry the Git Cow gentoo-dev 2022-02-06 14:52:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b4159a27c6db4631c97b379bbc1aea8e27ac9a

commit d6b4159a27c6db4631c97b379bbc1aea8e27ac9a
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2022-02-06 14:51:23 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2022-02-06 14:52:24 +0000

    games-puzzle/braid-gog: New package for the GOG version
    
    Closes: https://bugs.gentoo.org/349136
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-puzzle/braid-gog/Manifest                 |  1 +
 games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild | 55 +++++++++++++++++++++++++
 games-puzzle/braid-gog/metadata.xml             |  8 ++++
 3 files changed, 64 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca8da51eb3c7c5300bdf6a762317f325217ef19

commit fca8da51eb3c7c5300bdf6a762317f325217ef19
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2022-02-06 14:51:03 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2022-02-06 14:52:21 +0000

    games-puzzle/braid-hb: New package for the Humble Bundle version
    
    Closes: https://bugs.gentoo.org/349136
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-puzzle/braid-hb/Manifest                 |  1 +
 games-puzzle/braid-hb/braid-hb-20150611.ebuild | 55 ++++++++++++++++++++++++++
 games-puzzle/braid-hb/metadata.xml             |  8 ++++
 3 files changed, 64 insertions(+)
Comment 25 James Le Cuirot gentoo-dev 2022-02-06 14:55:14 UTC
Well it took a while, but better late than never, eh? :) This adds both the Humble Bundle and GOG versions. It's 32-bit only. Although it did include a 64-bit build, the last release dropped that. The good news is it switched from SDL1 to SDL2, and works much better as a result.