Search:  
Gentoo Wiki

Ucpt:Games-adventure/mmm/mmm-2.0.ebuild

#

Image:Ebuild_file.png Games-adventure/mmm/mmm-2.0.ebuild

Download - Bugs - Discussion - History

Back to the Index

inherit eutils games

DESCRIPTION="Maniac Mansion Mania Epsiode 2"
SRC_URI="http://maniacmansion.microspace.ch/downloads/mmm02.zip"
HOMEPAGE="http://maniacmansion.microspace.ch/spiele.htm"

SLOT="2"
LICENSE="maniacmansionmania2"
KEYWORDS="x86"
IUSE=""

DEPEND=">=games-engines/ags-bin-2.70"

src_install() {
	cd ${WORKDIR}
	BINDIR=/usr/games/bin
	TITLE=${P}
	SHAREDIR=/usr/share/games/${TITLE}
	
	mkdir -p ${D}${BINDIR} ${D}${SHAREDIR}
	
	# first install packaged files
	#rmdir ${D}${SHAREDIR}
	mv * ${D}${SHAREDIR}
	cd ${D}${SHAREDIR}
	rm -f winsetup.exe
	mv acsetup.cfg acsetup.cfg.pkg
	mv MMM02.exe ac2game.dat
	#mv readme.txt README
	#dodoc README
	#rm -f README

cat > note.txt << EOF
The load/save dialog, which is acccessible via F5, is somewhat buggy:
If you want to press a button there, you need to click on the upper
border of the button!
EOF
	
cat > startup.sh << EOF
#!/bin/sh
[ ! -e note_shown ] && xmessage -buttons OK:1,"Don't show this again":0 -file note.txt && touch note_shown
EOF
	chmod 755 startup.sh

	# startup script
	cd ${D}${BINDIR}
	ln -s ags-start ${TITLE}
	
	prepgamesdirs
	
	make_desktop_entry ${TITLE} "${DESCRIPTION}"
}
 # 

 # 
Retrieved from "http://www.gentoo-wiki.info/Ucpt:Games-adventure/mmm/mmm-2.0.ebuild"

Last modified: Wed, 07 Sep 2005 11:49:00 +0000 Hits: 1,729