Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87565 - Ebuild request: GalaxyHack
Summary: Ebuild request: GalaxyHack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Games
URL: http://galaxyhack.sourceforge.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-01 07:37 UTC by Christian Mandery
Modified: 2006-10-30 12:03 UTC (History)
1 user (show)

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


Attachments
Ebuild and patch for galaxyhack 1.21 (galaxyhack-1.21.tar.gz,8.76 KB, application/x-tgz)
2005-05-08 00:58 UTC, Niosop
Details
ebuild for galaxyhack-1.23 (galaxyhack-1.23.tar.gz,1.91 KB, application/octet-stream)
2005-05-13 21:51 UTC, Niosop
Details
ebuild for galaxyhack-1.25 (galaxyhack-1.25.ebuild,2.10 KB, text/plain)
2005-05-14 20:31 UTC, Niosop
Details
patch for galaxyhack-1.25 - config file search path change (galaxyhack-1.25-gentoo.patch,388 bytes, patch)
2005-05-14 20:32 UTC, Niosop
Details | Diff
galaxyhack-1.63.ebuild (galaxyhack-1.63.ebuild,1.36 KB, text/plain)
2006-04-22 14:34 UTC, Cristiano Chiucchiolo
Details
galaxyhack.png (galaxyhack.png,819 bytes, image/png)
2006-04-22 14:35 UTC, Cristiano Chiucchiolo
Details
galaxyhack-destdirs.patch (galaxyhack-destdirs.patch,380 bytes, patch)
2006-04-22 14:36 UTC, Cristiano Chiucchiolo
Details | Diff
galaxyhack-settings.patch (galaxyhack-settings.patch,384 bytes, patch)
2006-04-22 14:36 UTC, Cristiano Chiucchiolo
Details | Diff
galaxyhack-destdirs.patch (galaxyhack-destdirs.patch,385 bytes, patch)
2006-04-23 00:30 UTC, Cristiano Chiucchiolo
Details | Diff
galaxyhack-settings.patch (galaxyhack-settings.patch,384 bytes, patch)
2006-04-23 00:31 UTC, Cristiano Chiucchiolo
Details | Diff
galaxyhack-1.69.ebuild (galaxyhack-1.69.ebuild,1.38 KB, text/plain)
2006-07-27 17:00 UTC, Tupone Alfredo
Details
galaxyhack-1.69-destdirs.patch (galaxyhack-1.69-destdirs.patch,767 bytes, patch)
2006-07-27 17:04 UTC, Tupone Alfredo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Mandery 2005-04-01 07:38:00 UTC
GalaxyHack allows you to design a fleet of spaceships which can then be tested in AI script based battles against fleets designed by other players. Though battles take place in real time, the strategy comes before hand, both in writing short AI scripts in a simple scripting language, and also in the set up and selection of your fleet. You don't actually have any control over your units at all mid-battle, but rather use the time to see where the set up of your fleets is working, where your fleets' weaknesses lie and changes are needed, and perhaps also to learn from the strategy of your opponent.

The game revolves around very large capital ships, from which smaller ships are launched, but which are not designed for attacking themselves, and which cannot be moved mid-battle. To win a battle you must destroy of all of your opponent's capital ships before they destroy yours.

There can be hundreds of units in any one battle, but there is no harvesting, resource management or base building.

(from galaxyhack.sourceforge.net)

Reproducible: Always
Steps to Reproduce:
1. emerge galaxyhack
Actual Results:  
emerge: there are no ebuilds to satisfy "galaxyhack". 

Expected Results:  
>>> games-simulation/galaxyhack merged.
Comment 1 Niosop 2005-05-08 00:58:54 UTC
Created attachment 58322 [details]
Ebuild and patch for galaxyhack 1.21

Ebuild and patch for galaxyhack 1.21.  Patch file contains feature enhancements
not in the official release yet.  Ebuild itself patches gentoo specific issues.


Files in tarball:

games-strategy/
games-strategy/galaxyhack/
games-strategy/galaxyhack/galaxyhack-1.21.ebuild
games-strategy/galaxyhack/Manifest
games-strategy/galaxyhack/files/
games-strategy/galaxyhack/files/digest-galaxyhack-1.21
games-strategy/galaxyhack/files/galaxyhack-1.21-batch-randomize.patch

This is my first ebuild, so if I did anything wrong, or just odd, let me know
please.

Thanks,
Niosop
Comment 2 Niosop 2005-05-13 21:51:34 UTC
Created attachment 58850 [details]
ebuild for galaxyhack-1.23

galaxyhack-1.23 ebuild

tarball contains:

games-strategy/galaxyhack/Manifest
games-strategy/galaxyhack/files/
games-strategy/galaxyhack/files/digest-galaxyhack-1.23
games-strategy/galaxyhack/files/galaxyhack-1.23-patch.patch
games-strategy/galaxyhack/galaxyhack-1.23.ebuild
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-05-13 21:57:18 UTC
please attach files as text/plain.

Go read games.gentoo.org for hints.
Comment 4 Niosop 2005-05-14 20:31:01 UTC
Created attachment 58929 [details]
ebuild for galaxyhack-1.25

All game related patches in the previous ebuilds have been incorporated
upstream.  The patch only fixes data search path to be consistant with gentoo
file structure (I think).
Comment 5 Niosop 2005-05-14 20:32:59 UTC
Created attachment 58930 [details, diff]
patch for galaxyhack-1.25 - config file search path change

Changes search path for galaxyhack settings to search ~/.galaxyhack/ first then
/usr/share/games/galaxyhack.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2006-04-19 23:11:53 UTC
Comments:

Needs to fix up the path using the value from GAMES_DATADIR instead of assuming that it's /usr/share/games/

inherit games

GPL isn't a valid choice for license.  it's probably GPL-2

sort KEYWORDS

fix DESCRIPTION to say what it is, not what it does

make the sed multi-line like the other games ebuilds and use the GAMES_* variables instead of hard-coding the values.

quote ${S} ${FILESDIR} ${D}

src_compile() is uneeded - remove

unpack the source and data in src_unpack, not src_install

use insinto, doins -r for data install

call prepgamesdirs in src_install instead of hand-fixing the permissions

need to call games_pkg_postinst at the beginning of pkg_postinst

use GAMES_DATADIR instead of /usr/share/games in pkg_postinst
Comment 7 Cristiano Chiucchiolo 2006-04-22 14:34:56 UTC
Created attachment 85218 [details]
galaxyhack-1.63.ebuild

I wrote this ebuild for version 1.63, but epatch fails without any apparent reason. Any idea?
Comment 8 Cristiano Chiucchiolo 2006-04-22 14:35:35 UTC
Created attachment 85219 [details]
galaxyhack.png
Comment 9 Cristiano Chiucchiolo 2006-04-22 14:36:05 UTC
Created attachment 85220 [details, diff]
galaxyhack-destdirs.patch
Comment 10 Cristiano Chiucchiolo 2006-04-22 14:36:27 UTC
Created attachment 85221 [details, diff]
galaxyhack-settings.patch
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2006-04-22 15:48:38 UTC
The patches still hard-code the values for the directories instead of using the games eclass variables.  See games-strategy/freecnc/freecnc-0.2.0.ebuild for an example of what I'm looking for.
Comment 12 Cristiano Chiucchiolo 2006-04-23 00:30:42 UTC
Created attachment 85246 [details, diff]
galaxyhack-destdirs.patch
Comment 13 Cristiano Chiucchiolo 2006-04-23 00:31:37 UTC
Created attachment 85247 [details, diff]
galaxyhack-settings.patch

Now the patches should be ok, but epatch still fails to me. Why?
Comment 14 Tupone Alfredo gentoo-dev 2006-07-27 17:00:47 UTC
Created attachment 92880 [details]
galaxyhack-1.69.ebuild
Comment 15 Tupone Alfredo gentoo-dev 2006-07-27 17:04:16 UTC
Created attachment 92881 [details, diff]
galaxyhack-1.69-destdirs.patch

This ebuild and patches should address all complains raised till now. But I have one more: source code license is GPL-2 while arts have a different kind of license:
The art and music:

- the art and music are copyright of their respective authors, if you wish to copy/sell/use art from the game in any context other than GalaxyHack then you must find out who created the particular picture/audio file you wish to use and contact them to ask for their permission.

How should be that managed? we have normally just one license.
Comment 16 Tupone Alfredo gentoo-dev 2006-10-30 12:03:37 UTC
games-strategy/galaxyhack is now in portage.
Version 1.69, even if 1.74 is out :/
Thanks for request, and play with it