diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/sable |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/sable')
-rw-r--r-- | games-arcade/sable/Manifest | 7 | ||||
-rw-r--r-- | games-arcade/sable/files/sable-1.0-gentoo.patch | 57 | ||||
-rw-r--r-- | games-arcade/sable/metadata.xml | 18 | ||||
-rw-r--r-- | games-arcade/sable/sable-1.0.ebuild | 43 |
4 files changed, 125 insertions, 0 deletions
diff --git a/games-arcade/sable/Manifest b/games-arcade/sable/Manifest new file mode 100644 index 000000000000..e087367b6522 --- /dev/null +++ b/games-arcade/sable/Manifest @@ -0,0 +1,7 @@ +AUX sable-1.0-gentoo.patch 1424 SHA256 3851e6dd970568f7a569ad50b492eb2ef3ee554fed5c5a16e146a9c5d83179b5 SHA512 d601bb708f982cc22c32b7006a6abeba866dcad577abe26662d7aa23c1c80360f8dad1424bec2b46e6e00619e3f01ffda0e9af77dd96432f8d0f3f2d26b27a35 WHIRLPOOL c3905f9db7b682ee3e1e5bf63b16a3572f7bcfc5c04efd851fa5ac29eba2cc7f81f66ee9175a3b3b0593a516f2a7d1de14b350d9e870cd6f05a3e01799f8defc +DIST sable-1.0-src.tgz 247200 SHA256 fb7864633fc5ef5c4999410929a9401deaf2f95b15cdd49f4a3c4823f6b1353b SHA512 ec8a8b76695b7767f04405c3bdb24f6f506116a775124e771c0c58a64f0412afd26aa88b1153945ceb36705a63b1fe905569b0b050dcf4a25880834cca158bb9 WHIRLPOOL 28ac854627537ea9382490709ec045df51e0cef35557207d469ed8a8333e349f6e37fd368fe8bd6f65aea737805e1cd8313182d33c25ec61c234b3a9269c5b5d +DIST sable.png 1669 SHA256 94f535353e0bcdb7018126ca8e422694484479515484c3499a24931aa00eae86 SHA512 08aa0ac33cefcab317df7876838141c21f3fca79995922e6f773f2b4a3f7c460d1e594b4ca742666ddefe9102a64e20f2f3839cc166b94207e0e512d42ee78dd WHIRLPOOL 8e558bc632954cd126ff78c260e5225cabed25222eee9c492c90bba0babbd6dbcc8c10392cd6083cff581b8ef671f463b4759151a3bd8c6c9727868b5527257f +EBUILD sable-1.0.ebuild 836 SHA256 599dccc3a1755a1e6096b386946c6f8e987cf35d75e818a673681d98cf34cd93 SHA512 3f4c3361d000c50c473d4302faf47f7980b4144523f4dc9836714859367ed2b913fbf3cd74a69acfbeb26012978e749326bf6b18798d99dd4259ffe0abbb9d50 WHIRLPOOL 806b25ccd2c7c777d25c1bb6b0fc13ae8e85cb7bc7461d9be0ae07634e4c72e78dc2e09fdb7e124ac22103e6010a63e165db118bc382bea4c27f4bfb5343d909 +MISC ChangeLog 2621 SHA256 b3f13e20b8119de9cfc8232f6eae22b144771154fc294b9f6bdca4cd51b3809a SHA512 d06d5e0a2f4052cdf0eb112fe92fe8bf14b8baaac3d2ea2063eb0735c4ab4725fbe59ae67cfaed16ac415b3b7f6cbebc22d6faa3b09450a19ec5f02ed3280ad9 WHIRLPOOL f25256527fcd2b7a9010699a89118504dfa5c82102575e794151db5603d5546c78a9c409b565e9f56be41f49225d85e550cb64bfcfd3bcdb71f51b2d7b295f8d +MISC ChangeLog-2015 1018 SHA256 59ba0200a9cf4cdaeb4b02657b99c83873e88a3785c7e055a431f8dbaa8ee471 SHA512 1d51d774580be27755bfb810d001bdfaf5d27e61f6a5b3df90ed170dcc09d52e97ca67b29a8667df34824d599f0368436bb0c8ff7280ad125eb84a86a1cd0b03 WHIRLPOOL 951716293dec8a2eac0c9ced0d478a5d7623d9db1c42d03f057ae47dcf356268c164a5280c9fc001f27c1e9d779ff94b574015069518111ed71c291cc49bd659 +MISC metadata.xml 761 SHA256 e9131f98f56fb7cda6b6b70e7c7b5489de98e7aea9d2467114ae681cd8b54910 SHA512 ccebc168e2f7c941ec65238b69f28743e40c75e0c4e9a588d404a74119704448f5b692ddfbd329e8a5a8efd151d6b10de88a5000bda78459d97902852716f7eb WHIRLPOOL e5f55b6261c2448739b544aa98d785fbc563b5c339bee8e9e83129db9b7a7f01300640d95ac8c0c7f74e5a44399446f310ffc69c32b26f84f240ece1a2744ede diff --git a/games-arcade/sable/files/sable-1.0-gentoo.patch b/games-arcade/sable/files/sable-1.0-gentoo.patch new file mode 100644 index 000000000000..b809936ff964 --- /dev/null +++ b/games-arcade/sable/files/sable-1.0-gentoo.patch @@ -0,0 +1,57 @@ +diff -ru sable.orig/src/Makefile sable/src/Makefile +--- sable.orig/src/Makefile 2006-03-14 00:57:31.000000000 -0500 ++++ sable/src/Makefile 2009-01-21 15:15:02.000000000 -0500 +@@ -1,30 +1,10 @@ +-# are we on OSX? +-ifeq ($(shell uname), Darwin) +-OSX:=1 +-endif +- +-# C options +-CC = gcc +-NOOSXFLAGS = -c `sdl-config --cflags` -O2 -Wall -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude $(CFLAGS) +-ifdef OSX +-FLAGS = $(NOOSXFLAGS) -D_SABLE_OSX_ +-else +-FLAGS = $(NOOSXFLAGS) +-endif +- +-# C++ options. +-CXX = g++ +-CXXFLAGS = $(FLAGS) ++NOOSXFLAGS = -c `sdl-config --cflags` -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude ++ ++CFLAGS += $(NOOSXFLAGS) ++CXXFLAGS += $(NOOSXFLAGS) + + # Linker options. +-LD = g++ +-LDFLAGS = +-NOOSXLIBS = -lSDL_image -lSDL_mixer +-ifdef OSX +-LIBS = `sdl-config --static-libs` $(NOOSXLIBS) +-else +-LIBS = `sdl-config --libs` $(NOOSXLIBS) -lGL -lGLU +-endif ++LIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU + + COBJS = vcontrol/vcontrol.o \ + bcplrandom.o \ +@@ -35,7 +15,7 @@ + OBJS = $(COBJS) $(CXXOBJS) + + sable: $(OBJS) +- $(LD) $(LDFLAGS) -o sable $(OBJS) $(LIBS) ++ $(CXX) $(LDFLAGS) -o sable $(OBJS) $(LIBS) + + clean: + rm -f sable *.o vcontrol/*.o svaf/*.o +@@ -44,7 +24,7 @@ + find . -name \*.c\* | xargs makedepend -Y. -Iinclude >& /dev/null + + $(COBJS): %.o: %.c +- $(CC) $(FLAGS) -o $@ $< ++ $(CC) $(CFLAGS) -o $@ $< + + $(CXXOBJS): %.o: %.cpp + $(CXX) $(CXXFLAGS) -o $@ $< diff --git a/games-arcade/sable/metadata.xml b/games-arcade/sable/metadata.xml new file mode 100644 index 000000000000..2c66a7711fa8 --- /dev/null +++ b/games-arcade/sable/metadata.xml @@ -0,0 +1,18 @@ +<?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> +<longdescription lang="en"> +Sable is a frantic 3d space shooter inspired by games such as After Burner and +Space Harrier. You pilot a ship through an obstacle-laden landscape and attack +or evade swarms of enemies. + +The game itself is quite easy to play. The arrow keys move your ship, and the +space bar fires your cannons. Holding down the space bar produces a rapid-fire +effect. Avoid enemy craft, enemy shots, and the pylons. Pylons are destroyable +but require concentrated fire to destroy. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/sable/sable-1.0.ebuild b/games-arcade/sable/sable-1.0.ebuild new file mode 100644 index 000000000000..f896973fa965 --- /dev/null +++ b/games-arcade/sable/sable-1.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="A frantic 3D space shooter" +HOMEPAGE="http://jeuxlibres.net/showgame/sable.html" +SRC_URI="mirror://gentoo/${P}-src.tgz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/libsdl[joystick,opengl,sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + emake INSTALL_RESDIR="${GAMES_DATADIR}" +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r models sfx textures + dodoc ChangeLog README + + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Sable + + prepgamesdirs +} |