diff options
Diffstat (limited to 'games-puzzle/neverball')
-rw-r--r-- | games-puzzle/neverball/Manifest | 5 | ||||
-rw-r--r-- | games-puzzle/neverball/metadata.xml | 8 | ||||
-rw-r--r-- | games-puzzle/neverball/neverball-1.6.0.ebuild | 99 |
3 files changed, 112 insertions, 0 deletions
diff --git a/games-puzzle/neverball/Manifest b/games-puzzle/neverball/Manifest new file mode 100644 index 000000000000..240bd0f7e718 --- /dev/null +++ b/games-puzzle/neverball/Manifest @@ -0,0 +1,5 @@ +DIST neverball-1.6.0.tar.gz 37772911 SHA256 73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0 SHA512 174d05308aee3a5e693782c54dd389439752b3597f28193771041d30f6c4236a5d055b2fcca9460b1005e9f000ddb3cbc01b86ea15c2abbf6e5a7996e836f787 WHIRLPOOL 017ac177b3557e0473d94288c0645ce7e6ddf15cdfbddb6798b22a6341d9864532d0d2263ed785bbed8c1bf5c9e4acbc6e31effdcc06b299a8fcf7c1fa60e514 +EBUILD neverball-1.6.0.ebuild 2198 SHA256 5d77b6b1645d9821d7f63bf60d0161338a1652b160d3f162c8ff11f290072e21 SHA512 0f1cea3ac0592124b8aed9b57a0be4cee91ae913b4f83667644f5aecc1383fb8bb5be30679df2317d566ae5a80ffd893942a04eb5fe824e6d75a84034b8c679c WHIRLPOOL b4373711e0166c8eb422690d19830c4ca58aeef6d05f8b24d31ac5b282a228e4e2fa99b886420002c0e6f6b49acefcd4dc19a84a14a4b7536b87745e5fa0f612 +MISC ChangeLog 3016 SHA256 adb56f99fe650ff6fb384119c56d8e2d934e6b530e190f34c0e6980fe5e972f7 SHA512 78d99b215a8a399a607f2ce4c00ceb79b1c4580358c4d7e4821dd40733b0ca20f4fac1eeb85d6744d736a0833e1f909e2804931d805c342254555ef5b1a560a1 WHIRLPOOL 6e2aa35351210300c94f9a6eda51a7d615de4febd6b65cf98e86cb0ece73ae9718558de6a88bc00cac189c06abc46bf40a3e9970e1a00c6b4d7f67c6ac86a9dc +MISC ChangeLog-2015 7164 SHA256 ff836d6145c26263e2c17e4f3647551a8a323d45d6520ceb771d6ac1e3729b33 SHA512 9fee0cbafa69edf7c03eca31abdb8970fcde2740ad29df60f9defc4ea2680bd4716053a5cff06cf9a217760202f26c94dc2e57e5f9ca7025af4c3de088b58c8d WHIRLPOOL 4edb5ac9159788c977d7999727a9bfd85efdf1dd5fcc69d718eedbc3e258869becacb8cf7f6ab706ad1522f65d2379af05308f82c7c79c036225af08122c58d3 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-puzzle/neverball/metadata.xml b/games-puzzle/neverball/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-puzzle/neverball/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-puzzle/neverball/neverball-1.6.0.ebuild b/games-puzzle/neverball/neverball-1.6.0.ebuild new file mode 100644 index 000000000000..4466cbdedcf4 --- /dev/null +++ b/games-puzzle/neverball/neverball-1.6.0.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="Clone of Super Monkey Ball using SDL/OpenGL" +HOMEPAGE="http://neverball.org/" +SRC_URI="http://neverball.org/${P}.tar.gz" + +LICENSE="GPL-2+ IJG" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" +RESTRICT="test" + +RDEPEND="media-libs/libsdl2[sound,joystick,opengl,video] + media-libs/sdl2-ttf + media-libs/libpng:0 + virtual/jpeg:0 + media-libs/libvorbis + virtual/opengl + dev-games/physfs + media-fonts/dejavu + media-fonts/wqy-microhei + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + sed -i \ + -e 's:mapc:neverball-mapc:g' \ + -e 's:MAPC:NEVERBALL-MAPC:g' \ + -e '1 s/ 1 / 6 /' \ + dist/mapc.1 || die + sed -i \ + -e '/CFLAGS.*O2/s:-O2:$(E_CFLAGS):' \ + -e '/CXXFLAGS.*O2/s:-O2:$(E_CXXFLAGS):' \ + -e "/^MAPC_TARG/s/mapc/${PN}-mapc/" \ + Makefile || die +} + +src_compile() { + emake \ + ENABLE_NLS=$(use nls && echo 1 || echo 0) \ + E_CFLAGS="${CFLAGS}" \ + E_CXXFLAGS="${CXXFLAGS}" \ + LOCALEDIR=/usr/share/locale \ + DATADIR="${GAMES_DATADIR}/${PN}" +} + +src_install() { + local font + + dogamesbin ${PN}-mapc neverball neverputt + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* + for font in DejaVuSans-Bold.ttf wqy-microhei.ttc + do + rm -f "${D}${GAMES_DATADIR}/${PN}"/ttf/${font} + dosym /usr/share/fonts/*/${font} \ + "${GAMES_DATADIR}/${PN}"/ttf/${font} + done + if [[ -d locale ]] ; then + insinto /usr/share + doins -r locale + fi + dodoc doc/{authors.txt,manual.txt,release-notes.md} README.md + + local res name + for name in ball putt; do + for res in 16 32 64 128 256; do + newicon -s ${res} dist/never${name}_${res}.png never${name}.png + done + done + + doman dist/*.6 + newman dist/mapc.1 neverball-mapc.6 + make_desktop_entry neverball Neverball + make_desktop_entry neverputt Neverputt neverputt + + prepgamesdirs +} + +pkg_postinst() { + gnome2_icon_cache_update + games_pkg_postinst + elog "${P} will overwrite existing high-score files, so back them up if" + elog "you want to preserve your old scores and progress." +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postrm() { + gnome2_icon_cache_update +} |