hi, a really addictive small game :) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 32258 [details] typespeed-0.4.1.ebuild i'm not an expert in writing ebuilds. so if you have any comments, don't hesitate.
Created attachment 32259 [details, diff] necessary diff-file to install typespeed into correct location. just changes the install-directory.
sorry. i was a little bit too fast. first version of ebuild doesn't work...
Created attachment 32260 [details, diff] typespeed-0.4.1_Makefile.diff fixes the old one... missed a location in the last diff.
You need to add this line at the beginning of the ebuild, so that epatch can work: inherit eutils Everything else works fine.
Created attachment 36495 [details] ebuild for typespeed-0.4.1 Here is my ebuild for typespeed-0.4.1. It installs the files into the conventional directories and installs README, Changes, TODO, BUGS and COPYING as well. Regards Mikkel.
Created attachment 36496 [details, diff] patch for the Makefile And here is the patch (files/typespeed-0.4.1-gentoo.patch). Mikkel.
reattach the ebuild as text/plain please.
Created attachment 36502 [details] Updated ebuild for typespeed-0.4.1. Fixed a problem that occurs when reinstalling typespeed. Changed KEYWORDS to "~x86". Added DEPEND="sys-libs/ncurses". Updated DESCRIPTION. Someone please test compatibility with other archs. Mikkel.
Created attachment 40802 [details] typespeed-0.4.4.ebuild Ebuild for typespeed-0.4.4. Needs the patch for the makefile
Created attachment 40803 [details] typespeed-0.4.4-gentoo.patch Same patch as the one made by Mikkel Erup.
How to install: mkdir -p -m /usr/local/portage/games-misc/typespeed cd /usr/local/portage/games-misc/typespeed <Save ebuild here> ebuild typespeed-0.4.4.ebuild digest cd files <Save patch here> :')
I wonder what's holding it outside portage for that much :?
rvalles@es.gnu.org: Because all ebuilds attached here does not fulfill a minimal QA. The packages it's a game and it's not inheriting the corresponding eclass, the perms of the files are wrong, have hardcore syntax, the need of a patch file for a trivial or sed-able fixes, among other little things.
Created attachment 42514 [details] typespeed-0.4.4.ebuild * Fixed Header * Inherit games eclass * Removed eutils eclass (it is inherited by games.eclass) * Added keyworkd ~amd64 * No patch file is needed. * It doesn't use buggy `make install` * Compilation uses users defined on make.conf CFLAGS. * Fix perms for highscores inside pkg_preinst <- gentoo dev: attn needed here * If the package is re-emerged the highscores can be regenerated (first 2 lines on src_install function) * "Gentoo ebuild Development Policy" compliant. * Ready (i hope/i think) to stick it into portage. Let's play typespeed ;-D
Well done Octavio! I have to learn how to make a compliant ebuild some day. :-)
Created attachment 42518 [details] typespeed-0.4.4.ebuild * We do not want to overwrite user configuration file (/etc/typespeedrc). In case that user modified that file, Portage can handle it after an reemerge or upgrade: * GNU info directory index is up-to-date. * IMPORTANT: 1 config files in /etc need updating. * Type emerge --help config to learn how to update config files. Now everything is OK ;-)
The /etc/typespeedrc bit in src_install needs to be changed. The addwrite is evil. We don't allow writing in the data directory either. The app needs to be patched to use statedir.
When will be added this ebuild to the official Portage?
"When we get to it."
It's time to get to it!
Created attachment 48633 [details] typespeed-0.4.4.ebuild
Created attachment 48634 [details] 01_all_statedir-fix.patch.bz2
added by me. Thanks Octavio and others.
Your Welcome! :-)