OpenTyrian is an open-source (GPL2) port of the DOS game Tyrian. The developers have been issued with the original Turbo Pascal source, but they can not redistribute it. Instead, they're rewriting the game in C using SDL. Will attach ebuild and patches shortly.
Created attachment 154381 [details] opentyrian-20080526.ebuild
Created attachment 154383 [details, diff] 20080526-datapath.diff
Created attachment 154385 [details, diff] 20080526-scale2x-makefile.diff
needs to use ${GAMES_DATADIR} for the patch as well. /usr/share/games is just the default
Noted, will update.
Created attachment 154389 [details] opentyrian-20080526.ebuild Specify DATA_PATH instead of hardcoding it.
Created attachment 154391 [details, diff] 20080526-datapath.diff The Makefile passes the DATA_PATH on, use it in the source. </hardcoding>
Are you waiting for us? It looks okay to me now...
it really deps on dev-util/subversion? call epatch once error check the sed. make make a desktop entry
(In reply to comment #9) > it really deps on dev-util/subversion? Yes, it wants to create a build stamp. I can hardcode it if required, but that does mean the tarballs are not longer fire and forget. > call epatch once Ah, supports multiple arguments. Never used it that way. Will do. > error check the sed. Okay, will add a || die. > make make a desktop entry *nod*
I made a svn ebuild of opentyrian and decided that if I share it here, somebody else could use it if needed. It's my first ebuild so hopefully it works for you. :) I used your datapath patch.
Created attachment 156603 [details] opentyrian svn ebuild
Created attachment 156605 [details] opentyrian datapath patch. just renamed from snapshot version.
Created attachment 158803 [details] opentyrian-20080628.ebuild
Created attachment 158805 [details, diff] 20080628-datapath.diff
(In reply to comment #9) > error check the sed. Done. > make make a desktop entry Will do that now. The scale2x patch has been dropped as upstream rewrote the graphics system. Scalers are now selectable at runtime. It seems to have broken the jukebox at this point in time, but actual gameplay is working fine.
Created attachment 161685 [details, diff] Updated datapath patch to apply to latest SVN Older patches no longer apply to current SVN due to added #ifndef.
Created attachment 171241 [details] opentyrian-20081109.ebuild Moved sed statements out to separate patch. Use provided pixmap & desktop file.
Created attachment 171242 [details, diff] 20081109-datapath.diff
Created attachment 171244 [details, diff] 20081109-makefile.diff Add some CFLAGS & LDFLAGS respect.
Please consider for inclusion, this addresses all your comments.
update: dogamesbin tyrian || die "dogamesbin failed" dodoc CREDITS NEWS README insinto /usr/share/applications/ doins opentyrian.desktop insinto /usr/share/pixmaps/ doins tyrian.xpm insinto "${GAMES_DATADIR}/${PN}" cd "${WORKDIR}/tyrian21" doins * || die "doins failed" prepgamesdirs with: dogamesbin tyrian || die "dogamesbin failed" dodoc CREDITS NEWS README || die "dodoc failed" domenu opentyrian.desktop || die "domenu failed" doicon tyrian.xpm || die "doicon failed " insinto "${GAMES_DATADIR}/${PN}" cd "${WORKDIR}/tyrian21" doins * || die "doins failed" prepgamesdirs also useq can be replaced by plain use in epatch only "${FILESDIR}"/someobscure.patch needs quoting that sed needs || die btw what for it needs subversion as its dep it updates itself?
Created attachment 171247 [details] opentyrian-20081109.ebuild New comments, new ebuild.
(In reply to comment #22) > also useq can be replaced by plain use If it's silent these days. Printing the USE-flag name is ugly. > btw what for it needs subversion as its dep it updates itself? To generate the version stamp. Otherwise the developer needs to generate it as part of the tarball creation process, which makes rolling a tarball unnecessarily complicated.
Created attachment 171248 [details] opentyrian-20081109.ebuild As use is indeed silent these days, no need for useq. Added die to debug sed as requested. Fed makefile patch upstream where it was accepted, dropped from ebuild. The ebuild is once again in line with all review comments.
Just dropping by to note that I added support for home directories and custom data paths to the Enhanced branch (revision 826), this should make it easier to make an ebuild for that version now. (If anyone has any changes to suggest I'm all ears, too.) For installation into the distribution, ideally, the only file which needs to be patched is autorun/00paths.con.
Mr_Bones has approved this on behalf of the games herd. The distfile is now being mirrored out, so I will commit in a few hours. Ebuild is lined up: +*opentyrian-20081211 (11 Dec 2008) + + 11 Dec 2008; <chainsaw@gentoo.org> +files/20081211-datapath.diff, + +metadata.xml, +opentyrian-20081211.ebuild: + Initial commit, ebuild by me. Closes bug #223743. With thanks to Mr_Bones + & nyhm for review comments. This is upstream "classic", SVN revision 835. It will install as 835M because of the data path patching.
Well, few more hours. Anyhow, this way we can be sure it's all on the mirrors. Thanks to everyone contributing to this bug report, enjoy the game :)