diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-29 04:46:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-29 04:46:08 +0000 |
commit | fc949916cc995783275edefe2f81d05c3a8c2186 (patch) | |
tree | 7a45c0d638e48c6c18db7e89b05fd826db1c9046 /games-strategy | |
parent | Added the mount-boot eclass to the silo ebuilds. Thanks for fo0bar from #gen... (diff) | |
download | historical-fc949916cc995783275edefe2f81d05c3a8c2186.tar.gz historical-fc949916cc995783275edefe2f81d05c3a8c2186.tar.bz2 historical-fc949916cc995783275edefe2f81d05c3a8c2186.zip |
initial ebuild #33802
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/mylink/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/mylink/files/0.93-path.patch | 29 | ||||
-rw-r--r-- | games-strategy/mylink/files/digest-mylink-0.93 | 1 | ||||
-rw-r--r-- | games-strategy/mylink/mylink-0.93.ebuild | 48 |
4 files changed, 86 insertions, 0 deletions
diff --git a/games-strategy/mylink/ChangeLog b/games-strategy/mylink/ChangeLog new file mode 100644 index 000000000000..76bd88148eab --- /dev/null +++ b/games-strategy/mylink/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for games-strategy/mylink +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/mylink/ChangeLog,v 1.1 2003/12/29 04:46:08 vapier Exp $ + +*mylink-0.93 (28 Dec 2003) + + 28 Dec 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Matija Suklje (hook) <matija.suklje@rutka.net> #33802. diff --git a/games-strategy/mylink/files/0.93-path.patch b/games-strategy/mylink/files/0.93-path.patch new file mode 100644 index 000000000000..9ea59f2a945c --- /dev/null +++ b/games-strategy/mylink/files/0.93-path.patch @@ -0,0 +1,29 @@ +--- MyLinkI18N.pm 2003-11-28 14:35:50.000000000 +0000 ++++ MyLinkI18N.pm.new 2003-11-28 14:33:27.000000000 +0000 +@@ -7,13 +7,20 @@ + our $DEFAULT_LANG = "en"; + + our %TEXTS = (); +-for(< MyLinkI18N-*.txt >) { +- my $lang = $_; +- $lang =~ s/^MyLinkI18N-([^.]+)\.txt$/$1/; +- $TEXTS{$lang} = { do $_ }; ++ ++ ++ ++ ++opendir DIR,"GENTOO_DIR"; ++map { ++ m!^MyLinkI18N-([^.]+).txt$!; ++ $TEXTS{$1} = { do "GENTOO_DIR/$_" }; + die $@ if $@; +- warn "Got language definition file: $_\n"; +-}; ++ warn "Got language definition file: GENTOO_DIR/$_\n"; ++} grep m!^MyLinkI18N-[^.]+\.txt$!, readdir DIR; ++closedir DIR; ++ ++ + + 1; + diff --git a/games-strategy/mylink/files/digest-mylink-0.93 b/games-strategy/mylink/files/digest-mylink-0.93 new file mode 100644 index 000000000000..e5a5cd0600f9 --- /dev/null +++ b/games-strategy/mylink/files/digest-mylink-0.93 @@ -0,0 +1 @@ +MD5 51178c6c05e311187e973a94ae6a7bbd mylink-0.93.tar.bz2 689542 diff --git a/games-strategy/mylink/mylink-0.93.ebuild b/games-strategy/mylink/mylink-0.93.ebuild new file mode 100644 index 000000000000..62bcd60b6415 --- /dev/null +++ b/games-strategy/mylink/mylink-0.93.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/mylink/mylink-0.93.ebuild,v 1.1 2003/12/29 04:46:08 vapier Exp $ + +inherit games eutils + +DESCRIPTION="a free Uplink clone" +HOMEPAGE="http://home.as-netz.de/gblech/klasse10/misc/mylink/mylink.html" +SRC_URI="http://home.as-netz.de/gblech/klasse10/misc/mylink/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND=">=dev-lang/perl-5.8.0 + >=dev-lang/tk-8.3.4 + dev-perl/Data-Dumper + dev-perl/Digest-MD5 + dev-perl/libwww-perl + dev-perl/frontier-rpc" + +S=${WORKDIR}/MyLink + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-path.patch + sed -i "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" MyLinkI18N.pm + sed -i \ + -e "s,^require[ ]*\(.*\)[ ]*;,require \"${GAMES_DATADIR}/${PN}/\1.pm\";," \ + -e "s,contrib/,${GAMES_DATADIR}/${PN}/contrib/,g" \ + -e "s,graphics/,${GAMES_DATADIR}/${PN}/graphics/,g" \ + -e "s,data/,${GAMES_DATADIR}/${PN}/data/,g" \ + -e "s,database\.db,${GAMES_DATADIR}/${PN}/database\.db,g" \ + *.pm *.pl \ + || die "path fixing failed" + rm Makefile +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + dodir ${dir} + cp -r *.pm *.txt database.db data graphics ${D}/${dir}/ + newgamesbin MyLinkd.pl MyLinkd + newgamesbin MyLinkTk.pl MyLinkTk + prepgamesdirs + fperms g+w ${GAMES_DATADIR}/${PN}/database.db +} |