Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436140 - games-action/descent3 - updated ebuild to support installation from GOG package
Summary: games-action/descent3 - updated ebuild to support installation from GOG package
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: games.eclass
  Show dependency tree
 
Reported: 2012-09-24 22:53 UTC by Jared B.
Modified: 2018-02-27 14:52 UTC (History)
2 users (show)

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


Attachments
games-action/descent3-1.4.0b-r3.ebuild (descent3-1.4.0b-r3.ebuild,5.03 KB, text/plain)
2012-09-24 22:54 UTC, Jared B.
Details
games-action/descent3-1.4.0b-r4.ebuild (descent3-1.4.0b-r4.ebuild,4.99 KB, text/plain)
2017-04-29 22:40 UTC, Jared B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared B. 2012-09-24 22:53:39 UTC
Attached is an updated version of the in-tree descent3 ebuild that supports installing from the Good Old Games package in addition to the original (and extremely difficult to find) Loki CD-ROM version.

Few notes:

* It uses USE=cdinstall to determine whether to install from CD or GOG package.  cdinstall is enabled by default, so CD is the default installation method.

* The GOG package does not include all data necessary for the Linux version to work.  The missing files can be downloaded in a bundle from here:
http://www.descentvalhalla.com/d3/downloads/utilities.aspx

with detailed instructions available here:
http://www.descentvalhalla.com/d3/help/linux_guide.aspx

This ebuild automates that process.

* I also performed some other cleanup of the ebuild, such as converting to EAPI=4, moving all unpacking operations to the src_unpack() phase, and fixing TEXTREL problem pointed out in bug 429278.

* I should point out that I have not test this with the CD version, which I don't have (...obviously  :-)).  Everything *should* still work if the CD version is used, but it'd be a good idea to have someone test this to confirm, if at all possible.

Hope this meets with your approval.  If you have any further suggestions for improvement, just let me know.

Reproducible: Always
Comment 1 Jared B. 2012-09-24 22:54:30 UTC
Created attachment 324890 [details]
games-action/descent3-1.4.0b-r3.ebuild
Comment 2 James Le Cuirot gentoo-dev 2017-03-04 14:57:55 UTC
Unfortunately that site has now died. Before I found this page, I was trying with a tarball of the executables hosted elsewhere though I was dubious whether that would really be allowed in Gentoo. In any case, all I get is a black screen. If I try the descent3-demo ebuild as it stands now, it initially fails without making /opt/descent3-demo writable and then all I get is a black window. Does the game still work for you?
Comment 3 James Le Cuirot gentoo-dev 2017-04-29 19:40:00 UTC
(In reply to James Le Cuirot from comment #2)
> Unfortunately that site has now died. Before I found this page, I was trying
> with a tarball of the executables hosted elsewhere though I was dubious
> whether that would really be allowed in Gentoo. In any case, all I get is a
> black screen. If I try the descent3-demo ebuild as it stands now, it
> initially fails without making /opt/descent3-demo writable and then all I
> get is a black window. Does the game still work for you?

Turns out it was trying to use GLide because I have media-libs/openglide installed. If I force OpenGL with -G then it works, at least with the demo, which is all I'm trying for now. I'm going to commit an update to the demo ebuild with this fix and others.
Comment 4 Jared B. 2017-04-29 22:39:23 UTC
Hi, James.  I'm sorry, I must've missed your last question.  I just tested, and yes, it does still work for me, with a couple differences:

* I had to update the ebuild to use the new 32-bit ABI format rather than the old emul packages
* As you pointed out, the support files necessary to make the GOG package work under Linux are no longer there.  I had a copy backed up locally, so I put that on my colo server and changed SRC_URI to point to it.

I think with just those to changes, everything's working.  I'll attach the updated ebuild, though I'm sure there are other things that should be cleaned up in it as well - I haven't really touched this for a few years, so I'm sure standards have changed since then.  If you're interested in working towards getting this in the tree, let me know and I'll be happy to assist with whatever.

Thanks.
Comment 5 Jared B. 2017-04-29 22:40:02 UTC
Created attachment 471302 [details]
games-action/descent3-1.4.0b-r4.ebuild
Comment 6 Pacho Ramos gentoo-dev 2018-02-26 16:46:56 UTC
ebuild should not use games.eclass , thanks