Yeah, Euro 2004 is over, but the Beautifule Game remains in our hearts and minds all times. Any football fans willing to make an ebuild for this game? L
OK... I'm not a gentoo developer and I still have a lot to learn... Here goes my attempt to make an ebuild from scratch. It checks for dependencies, compiles, installs. It adds a .desktop file that is created inside the ebuild (the Devs might hate this... I trully think that every user app should create an entry...). The .desktop has a parameter to start up the game that is needed because it doesn't seem to be able to find the support files. I'm not sure if I did something wrong on the compile or it really is like this. Hope it helps someone... :) Be Happy! Duarte "HappyGuy" Loreto
Created attachment 34890 [details] bygfoot-1.4.0.ebuild proposal
Comments: Use the standard header needs an IUSE no need to install COPYING use insinto, doins for the icon use make_desktop_entry for the desktop entry (inherit eutils) If the -d is required for the program to run a patch needs to be applied so it defaults to that location.
Sorry for delay returning to this. My daytime job and having to mess with C code (that I understand only slightly as I'm a Java coder) made me take a while to do things better. I also appologize for not reading ebuild documentation and making the previous errors. repoman full now only complains about missing Changelog and a xml file and the header. I can't understand why it complains on the header, though. Attached are a new ebuild (replacing old attachment) and a diff (new attachment) that patches the source to look for support files also where gentoo places it besides the (already present) local dir and home dir. After 1st run the game copies the files to home dir, so the patch becomes useless, anyway. Hope this is OK now :)
Created attachment 35027 [details] New ebuild version with dev requested fixes
Created attachment 35028 [details, diff] code patch needed for 1st time execution (per user) Code patch to add to support_files search path the place where they really are placed by gentoo games installation. Withouth this patch, 1st bygfoot execution fails as the files are not found. After 1st sucessfull execution, as the files are copied to ~/.bygfoot, there is no longer a problem
Created attachment 35519 [details, diff] Official patch to fix issue where with clashing keys This fixes an issue that prevented introduction of values 1 and 2 into team structure as this clashed with the usage of keys 1 and 2 for other functionality. Other functionality can now be accessed with q and w, being 1 and 2 now introducible into team structure (i.e. 424 as 4 defence, 2 medium and 4 advance). Official patch is available as tar.bz2 in sf.net but I don't know how to download and use the patch so I added it into bygfoot/files and use it from there on the ebuild
Created attachment 35520 [details] bygfoot-1.4.2 ebuild (upgraded ans new version is out) New ebuild as new version is out. Now uses two patches. The previous one that allowed for a correct 1st execution and a new one, downloaded from the official page (see attachment 35519 [details, diff]). Sorry I took some days (7) to make this (and missed 1.4.1) but my job is taking much more of my time than my wife would like... So even less time available for computer...
Ping... can this go into portage yet. Is there any reason it shouldn't?
This is not a web forum. There is no reason to ping, bump, TTT, or any other nonsense. Bugs don't disappear... Thanks...
Created attachment 36958 [details] Ebuild for 1.5.1 This is for the latest development build.
Created attachment 36959 [details, diff] The 1-2 keys patch
The 1st time execution patch is still needed, but the name of it has to be changed (either to a generic name, or using the 1.5.1 version number in it). I'm not adding it, since it's the same thing as the patch provided. Just make a copy and give it the proper name, or change the name in the ebuild. I'm not sure what best practices are. This is a really cool game and I hope it gets added to Gentoo Games eventually.
Created attachment 37830 [details] ebuild for 1.4.3 release
Ebuild for 1.4.3 added. This release includes the clashing keys patch, making it obsolete. Note that the "The 1-2 keys patch" that is not marked as obsolete still applies to the 1.5.1 release. If an ebuild is provided to the 1.5.2 development release it will also make that patch obsolete.
Created attachment 37839 [details] ebuild for 1.5.2 This still uses the 1.5.1 path patch. I only did basic testing. I played the beginning of a game and it behaves correctly.
Created attachment 39856 [details] bygfoot-1.6.1 ebuild proposal Hello! I don't know if it is wrth it to keep updating this... Anyway... A new stable release has been made (1.6.0 was not quite stable ;) The 1.4.0 patch for 1st time execution is still applicable. This was mainly an ebuild bump from the 1.4.3 one. Added a pkg_postinst() to warn people that are using these ebuilds that the savegames from 1.4.x are not compatible with the 1.6.x releases so they will have to start new games. It was a nicety just to say that I added value to the previous ebuild. ;)
Bygfoot 1.8.0 is released, if anyone is interested. :')
Someone want to update for 1.8.0?
I'm trying but it doesn't copy the pixmap images properly. My C is pretty rusty so I'm not sure why yet. L
Created attachment 57064 [details] Ebuild for bygfoor 1.8.1 I based it on the 1.6.3 ebuild. I didn't mess with many things. The patches that were needed for first time execution are no longer needed. Directory names had to be modified for it to work properly but now, it's all good. On my machine, anyway... :-) L
Comments: - Your src_compile does the same as the default when using games.eclass, so you don't need it - Don't use cp -R, but rather insinto "${GAMES_DATADIR}/${PN}" ; doins -r - You can add the README cp to the same line as the data - Use doicon instead of insinto /usr/share/pixmaps ; doins - Actually, use newicon and rename it to the name of the package - Only specify the filename for the icon on make_desktop_entry, as it'll be in the right place
Ebuild works fine, but when I try to use use "Start Bygfoot Online update", the game crashes with: amd@dma ~ $ LC_ALL="C" bygfoot ** (bygfoot:8407): WARNING **: error message: Failed to execute child process "bygfoot-update-gui" (No such file or directory) Seems like this executable is missing.
Created attachment 60571 [details] bygfoot-1.8.1.ebuild update after Chris's comments. Cleaned up the ebuild, now it install's the bygfoot-updater thingy also. The games pixmap doesn't get installed. Didn't have time to figure out right syntax. Have fun :D
Added to portage