summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-10 20:05:37 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-10 20:05:37 +0000
commit3903eb034e4ba7a165cb20f72004a30246f4ea10 (patch)
tree8c68fe15a1eaa6b7a236537c43baa1760ec3ebfd /games-strategy/ja2-stracciatella
parentBumping to 1.0 and removing old version (diff)
downloadhistorical-3903eb034e4ba7a165cb20f72004a30246f4ea10.tar.gz
historical-3903eb034e4ba7a165cb20f72004a30246f4ea10.tar.bz2
historical-3903eb034e4ba7a165cb20f72004a30246f4ea10.zip
initital import wrt #171475
Package-Manager: portage-2.2.0_alpha103/cvs/Linux x86_64
Diffstat (limited to 'games-strategy/ja2-stracciatella')
-rw-r--r--games-strategy/ja2-stracciatella/ChangeLog11
-rw-r--r--games-strategy/ja2-stracciatella/Manifest21
-rw-r--r--games-strategy/ja2-stracciatella/files/ja2-convert.sh16
-rw-r--r--games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch179
-rw-r--r--games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild95
-rw-r--r--games-strategy/ja2-stracciatella/metadata.xml14
6 files changed, 336 insertions, 0 deletions
diff --git a/games-strategy/ja2-stracciatella/ChangeLog b/games-strategy/ja2-stracciatella/ChangeLog
new file mode 100644
index 000000000000..171f2d3f7ced
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-strategy/ja2-stracciatella
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/ja2-stracciatella/ChangeLog,v 1.1 2012/05/10 20:05:37 hasufell Exp $
+
+*ja2-stracciatella-0.12.1_p7072 (10 May 2012)
+
+ 10 May 2012; Julian Ospald <hasufell@gentoo.org> +files/ja2-convert.sh,
+ +ja2-stracciatella-0.12.1_p7072.ebuild,
+ +files/ja2-stracciatella-0.12.1_p7072-makefile.patch, +metadata.xml:
+ initial import wrt #171475
+
diff --git a/games-strategy/ja2-stracciatella/Manifest b/games-strategy/ja2-stracciatella/Manifest
new file mode 100644
index 000000000000..fe5b77af92c0
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX ja2-convert.sh 411 RMD160 b61b583e3722f3943479f3907ae0b373d83610fa SHA1 1961be4999551e700a9b0369ef0ba913fed76a5e SHA256 da4faae4eeee35c9bacb24733da911bd735bf4b6985ce0abfef24b3a2326ef91
+AUX ja2-stracciatella-0.12.1_p7072-makefile.patch 3666 RMD160 32495717864295c715f67352c6f6da883dc1a9e1 SHA1 4d116fa0fc5000d1fb28de99546337f885c163fa SHA256 173bc8800034c1d776ea080d05364cde8579bdb15340d96f14bac4a8b8f01283
+DIST editor.slf.gz 134265 RMD160 a4fc0983f0dba6fedc7ff071547e57aefe361a60 SHA1 1126f05d78db583ad3cf5939d3e7763e3ef365a4 SHA256 a1cb444f3b3dfc509dd9498fe391b258ebfc8954689ed864f633021e9f56cde6
+DIST ja2-stracciatella-0.12.1_p7072.tar.xz 2118832 RMD160 600e8d6b17100d5109cf49b4e644605079e0e851 SHA1 51c1fb95989e8ed59d92d5308bb7af5d1481c0e8 SHA256 41729ff2d283b291af2389bbd75942373cfa6f6bd8e80eed999ad6526adf036a
+EBUILD ja2-stracciatella-0.12.1_p7072.ebuild 2292 RMD160 e35218ea1d1ccdb4ae4c1278cfa579442b5fbdfe SHA1 8ef17e20873b37a525c320333819180f864d6619 SHA256 28214c7c09f5af0ce9b158754cfeabf8fe392071a4950375b1913ec6ad8ae591
+MISC ChangeLog 503 RMD160 11e7c3d77d2bef84017261ecaf171ffff6d5287d SHA1 32818b93b2753499cf1305347682d7f86b730dd6 SHA256 029d090532130d63b4853134b315ab76113763937e7f3276890b2c80ad078494
+MISC metadata.xml 412 RMD160 3a5c30b6bfc798c9aff4f71eceb020f54e4d72d2 SHA1 cde286ddf76e316e427caef47c2f1f8c2dcbf852 SHA256 81dce67aff4b06a03c73955a6c4584d405e511465079f599cf9374f358c8a21c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPrB8gAAoJEFpvPKfnPDWzllYH/13a8ye7klqyed7n+PiyNiKl
+ZZFa/A9eHwaAlNztO1xS5Xfb/FJjGSd/4nTZvbzHhFWEfR/jsz/iB5dG4xiZXjt4
+u+Vsw3438q6alsiafbHKWsOoqQ0XZFiE0Qe2oKgLl3pPfjUdsJtRano27k9D4Pqg
+PE5CkB0sIsfMlOs7P0pABesf5AqUXk7trt8Gn7s6/SY0sIMzZpjvgKLg4Q7C14UO
+BMuh94rBQFvjToBkTbSZSZoF3umpuqx87FvHVEEM56+IgZheb608VMsNzQgwm97c
+LXodmtRRpgPqpgYAGPbhVQoeXMeKXwtP0UOCH6NvkABoa+aoVzpGLsV57+EmJ2o=
+=yKUV
+-----END PGP SIGNATURE-----
diff --git a/games-strategy/ja2-stracciatella/files/ja2-convert.sh b/games-strategy/ja2-stracciatella/files/ja2-convert.sh
new file mode 100644
index 000000000000..4f337ca75351
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/files/ja2-convert.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Convert names of data-files to lower-case
+
+# location of the data-files
+GAMES_DATADIR=@GAMES_DATADIR@
+
+cd "${GAMES_DATADIR}" || exit 1
+
+# convert to lowercase
+find . -exec sh -c 'echo "${1}"
+lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+[ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}`
+[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+
+# remove leftover
+rm -r ./TILECACHE ./STSOUNDS
diff --git a/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch
new file mode 100644
index 000000000000..0475773bd361
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch
@@ -0,0 +1,179 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Tue May 8 19:16:08 UTC 2012
+Subject: build system
+
+--- Makefile
++++ Makefile
+@@ -16,106 +16,94 @@
+ MANPREFIX ?= $(PREFIX)
+
+ INSTALL ?= install
+-INSTALL_PROGRAM ?= $(INSTALL) -m 555 -s
+-INSTALL_MAN ?= $(INSTALL) -m 444
+-INSTALL_DATA ?= $(INSTALL) -m 444
++INSTALL_PROGRAM ?= $(INSTALL) -m 755
++INSTALL_MAN ?= $(INSTALL) -m 644
++INSTALL_DATA ?= $(INSTALL) -m 644
+
++# compiler CFLAGS
++CFLAGS += -std=gnu99
+
++# sdl-flags
+ SDL_CONFIG ?= sdl-config
+ ifndef CFLAGS_SDL
+ CFLAGS_SDL := $(shell $(SDL_CONFIG) --cflags)
+ endif
+ ifndef LDFLAGS_SDL
+-LDFLAGS_SDL := $(shell $(SDL_CONFIG) --libs)
++LIBS_SDL := $(shell $(SDL_CONFIG) --libs)
+ endif
+
++# LIBS
++LIBS += $(LIBS_SDL)
++LIBS += -lm
++
++ifdef WITH_ZLIB
++LIBS += -lz
++endif
+
+-CFLAGS += $(CFLAGS_SDL)
+-CFLAGS += -I Build
+-CFLAGS += -I Build/Tactical
+-CFLAGS += -I Build/Strategic
+-CFLAGS += -I Build/Editor
+-CFLAGS += -I Build/Res
+-CFLAGS += -I Build/Laptop
+-CFLAGS += -I Build/Utils
+-CFLAGS += -I Build/TileEngine
+-CFLAGS += -I Build/TacticalAI
+-CFLAGS += -I sgp
+-
+-#CFLAGS += -Wall
+-#CFLAGS += -W
+-CFLAGS += -Wpointer-arith
+-CFLAGS += -Wreturn-type
+-CFLAGS += -Wunused-label
+-CFLAGS += -Wunused-variable
+-CFLAGS += -Wwrite-strings
+
+-CFLAGS += -DJA2
++# preprocessor flags
++CPPFLAGS += $(CFLAGS_SDL)
++CPPFLAGS += -I Build
++CPPFLAGS += -I Build/Tactical
++CPPFLAGS += -I Build/Strategic
++CPPFLAGS += -I Build/Editor
++CPPFLAGS += -I Build/Res
++CPPFLAGS += -I Build/Laptop
++CPPFLAGS += -I Build/Utils
++CPPFLAGS += -I Build/TileEngine
++CPPFLAGS += -I Build/TacticalAI
++CPPFLAGS += -I sgp
+
++CPPFLAGS += -DJA2
+
+ ifdef WITH_DEMO
+- CFLAGS += -DJA2DEMO
++ CPPFLAGS += -DJA2DEMO
+ endif
+
+ ifdef WITH_DEMO_ADS
+ ifndef WITH_DEMO
+ $(error WITH_DEMO_ADS needs WITH_DEMO)
+ endif
+- CFLAGS += -DJA2DEMOADS
++ CPPFLAGS += -DJA2DEMOADS
+ endif
+
+ ifdef WITH_FIXMES
+- CFLAGS += -DWITH_FIXMES
++ CPPFLAGS += -DWITH_FIXMES
+ endif
+
+ ifdef WITH_MAEMO
+- CFLAGS += -DWITH_MAEMO
++ CPPFLAGS += -DWITH_MAEMO
+ endif
+
+ ifdef WITH_SOUND_DEBUG
+- CFLAGS += -DWITH_SOUND_DEBUG
++ CPPFLAGS += -DWITH_SOUND_DEBUG
+ endif
+
+ ifdef _DEBUG
+- CFLAGS += -D_DEBUG
++ CPPFLAGS += -D_DEBUG
+ ifndef JA2TESTVERSION
+ JA2TESTVERSION := yes
+ endif
+ endif
+
+ ifdef JA2TESTVERSION
+- CFLAGS += -DJA2TESTVERSION
++ CPPFLAGS += -DJA2TESTVERSION
+ ifndef JA2BETAVERSION
+ JA2BETAVERSION := yes
+ endif
+ endif
+
+ ifdef JA2BETAVERSION
+-CFLAGS += -DJA2BETAVERSION -DSGP_DEBUG -DFORCE_ASSERTS_ON -DSGP_VIDEO_DEBUGGING
++CPPFLAGS += -DJA2BETAVERSION -DSGP_DEBUG -DFORCE_ASSERTS_ON -DSGP_VIDEO_DEBUGGING
+ endif
+
+ ifdef JA2EDITOR
+-CFLAGS += -DJA2EDITOR
++CPPFLAGS += -DJA2EDITOR
+ endif
+
+-CFLAGS += -D$(LNG)
+-
+-CFLAGS += -DSGPDATADIR=\"$(SGPDATADIR)\"
+-
+-CCFLAGS += $(CFLAGS)
+-CCFLAGS += -std=gnu99
+-CCFLAGS += -Werror-implicit-function-declaration
+-CCFLAGS += -Wimplicit-int
+-CCFLAGS += -Wmissing-prototypes
++CPPFLAGS += -D$(LNG)
++CPPFLAGS += -DSGPDATADIR=\"$(SGPDATADIR)\"
+
+-CXXFLAGS += $(CFLAGS)
+-
+-LDFLAGS += $(LDFLAGS_SDL)
+-LDFLAGS += -lm
+-
+-ifdef WITH_ZLIB
+-LDFLAGS += -lz
+-endif
+
+ SRCS :=
+ SRCS += Build/AniViewScreen.cc
+@@ -468,7 +456,7 @@
+ .SUFFIXES:
+ .SUFFIXES: .c .cc .d .o
+
+-Q ?= @
++Q =
+
+ all: $(BINARY)
+
+@@ -476,15 +464,15 @@
+
+ $(BINARY): $(OBJS)
+ @echo '===> LD $@'
+- $(Q)$(CXX) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $@
++ $(Q)$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $@ $(LIBS)
+
+ .c.o:
+ @echo '===> CC $<'
+- $(Q)$(CC) $(CCFLAGS) -c -MMD -o $@ $<
++ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c -MMD -o $@ $<
+
+ .cc.o:
+ @echo '===> CXX $<'
+- $(Q)$(CXX) $(CXXFLAGS) -c -MMD -o $@ $<
++ $(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -MMD -o $@ $<
+
+ clean distclean:
+ @echo '===> CLEAN'
diff --git a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
new file mode 100644
index 000000000000..7c2ce3f95a88
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild,v 1.1 2012/05/10 20:05:37 hasufell Exp $
+
+EAPI=3
+
+inherit eutils games
+
+DESCRIPTION="A port of Jagged Alliance 2 to SDL"
+HOMEPAGE="http://tron.homeunix.org/ja2/"
+SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz
+ http://tron.homeunix.org/ja2/editor.slf.gz"
+
+LICENSE="SFI-SCLA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdinstall editor zlib"
+
+RDEPEND="media-libs/libsdl[X,audio,video]
+ cdinstall? ( games-strategy/ja2-stracciatella-data )
+ zlib? ( sys-libs/zlib )"
+
+LANGS="en de fr it nl pl ru ru_gold"
+for l in ${LANGS}; do
+ IUSE="$IUSE linguas_${l}"
+done
+unset l
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ sed \
+ -e "s:/some/place/where/the/data/is:${GAMES_DATADIR}/ja2:" \
+ -i sgp/FileMan.cc || die
+
+ sed \
+ -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}/ja2/data:" \
+ "${FILESDIR}"/ja2-convert.sh > "${T}"/ja2-convert || die
+}
+
+src_compile() {
+ local myconf i
+
+ for i in ${LANGS} ; do
+ if has ${i} ${LINGUAS} ; then
+ case ${i} in
+ de) myconf="LNG=GERMAN" ;;
+ nl) myconf="LNG=DUTCH" ;;
+ fr) myconf="LNG=FRENCH" ;;
+ it) myconf="LNG=ITALIAN" ;;
+ pl) myconf="LNG=POLISH" ;;
+ ru) myconf="LNG=RUSSIAN" ;;
+ ru_gold) myconf="LNG=RUSSIAN_GOLD" ;;
+ en) myconf="LNG=ENGLISH" ;;
+ *) die "wat" ;;
+ esac
+ break
+ fi
+ done
+ elog "Chosen language is ${myconf#LNG=}"
+
+ use editor && myconf+=" JA2EDITOR=yes JA2BETAVERSION=yes"
+ use zlib && myconf+=" WITH_ZLIB=yes"
+
+ emake ${myconf} || die
+}
+
+src_install() {
+ dogamesbin ja2 "${T}"/ja2-convert || die
+
+ if use editor; then
+ insinto "${GAMES_DATADIR}"/ja2/data
+ doins "${WORKDIR}"/editor.slf || die
+ fi
+
+ make_desktop_entry ja2 ${PN}
+ doman ja2.6
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "You need ja2 in the chosen language, otherwise set it in package.use!"
+
+ if ! use cdinstall ; then
+ elog "You need to copy all files from the Data directory of"
+ elog "Jagged Alliance 2 installation to"
+ elog "${GAMES_DATADIR}/ja2/data "
+ elog "Make sure the filenames are lowercase. You may want to run the"
+ elog "script":
+ elog "${GAMES_BINDIR}/ja2-convert"
+ fi
+}
diff --git a/games-strategy/ja2-stracciatella/metadata.xml b/games-strategy/ja2-stracciatella/metadata.xml
new file mode 100644
index 000000000000..3847f6a926f1
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <use>
+ <flag name="editor">Adds necessary file to run the editor</flag>
+ <flag name="linguas_ru_gold">Support for russian gold ja2 version</flag>
+ </use>
+</pkgmetadata>
+