* [gentoo-commits] proj/gamerlay:master commit in: games-strategy/ja2-stracciatella/, games-strategy/ja2-stracciatella/files/
@ 2011-05-04 12:56 Azamat H. Hackimov
0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2011-05-04 12:56 UTC (permalink / raw
To: gentoo-commits
commit: a76031ef5eb04f381ef4acd506c606877f2c2a9a
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Wed May 4 12:56:22 2011 +0000
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Wed May 4 12:56:22 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=a76031ef
[games-strategy/ja2-stracciatella] Jagged Alliance 2, Stracciatella port
Latest trunk snapshot from svn.
(Portage version: 2.1.9.42/git/Linux x86_64, unsigned Manifest commit)
---
games-strategy/ja2-stracciatella/files/jagged2.png | Bin 0 -> 1299 bytes
.../ja2-stracciatella-0.12.1_p7072.ebuild | 100 ++++++++++++++++++++
games-strategy/ja2-stracciatella/metadata.xml | 16 +++
3 files changed, 116 insertions(+), 0 deletions(-)
diff --git a/games-strategy/ja2-stracciatella/files/jagged2.png b/games-strategy/ja2-stracciatella/files/jagged2.png
new file mode 100644
index 0000000..808e6c4
Binary files /dev/null and b/games-strategy/ja2-stracciatella/files/jagged2.png differ
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 0000000..b1b69d5
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit games
+
+DESCRIPTION="A port of Jagged Alliance 2 to SDL."
+HOMEPAGE="http://tron.homeunix.org/ja2/"
+SRC_URI="http://ftp.gentoo.ru/people/winterheart/distfiles/ja2-${PV}-source.tar.bz2
+ editor? ( http://tron.homeunix.org/ja2/editor.slf.gz )"
+
+LICENSE="SFI-SCLA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug editor linguas_nl linguas_en linguas_fr linguas_de linguas_it linguas_pl
+linguas_ru linguas_ru_gold zlib"
+
+RDEPEND="media-libs/libsdl
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/ja2-${PV}-source"
+
+src_prepare() {
+
+ myconf=""
+ for i in ${LINGUAS}; do
+ ewarn "${i} is chosen for primary language"
+ 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" ;;
+ *) myconf="LNG=ENGLISH" ;;
+ esac
+ break
+ done
+
+ sed -i \
+ -e "s:\(CFLAGS += \$(CFLAGS_SDL)\):\1 ${CFLAGS}:" \
+ -e "s:\(LDFLAGS += \$(LDFLAGS_SDL)\):\1 ${LDFLAGS}:" \
+ Makefile || die "sed failed"
+ sed -ie "s:\(Icon=jagged2\).ico:\1:" ${PN}.desktop || die "sed failed"
+
+ sed -ie "s:/some/place/where/the/data/is:${GAMES_DATADIR}/ja2:" \
+ sgp/FileMan.cc || die "sed failed"
+
+ use editor && myconf="${myconf} JA2EDITOR=yes JA2BETAVERSION=yes"
+ use zlib && myconf="${myconf} WITH_ZLIB=yes"
+}
+
+src_compile() {
+ emake ${myconf} || die
+}
+
+src_install() {
+ dogamesbin ja2 || die
+ doman ja2.6
+ doicon "${FILESDIR}"/jagged2.png
+ insinto /usr/share/applications
+ doins ${PN}.desktop
+
+ if use editor; then
+ insinto "${GAMES_DATADIR}"/ja2/data
+ doins "${WORKDIR}"/editor.slf
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ einfo
+ elog "Copy all files from Data directory of Jagged Alliance 2 installation to"
+ elog "${GAMES_DATADIR}/ja2/data and then run"
+ elog
+ elog "# emerge --config \"=${CATEGORY}/${PF}\""
+ elog
+ einfo
+}
+
+pkg_config() {
+ einfo
+ einfo "Convert names of data-files to lower-case"
+ einfo
+ for i in \
+ "${GAMES_DATADIR}"/ja2/data/*.[Ss][Ll][Ff] \
+ "${GAMES_DATADIR}"/ja2/data/[Tt][Ii][Ll][Ee][Cc][Aa][Cc][Hh][Ee]/*.[Jj][Ss][Dd] \
+ "${GAMES_DATADIR}"/ja2/data/[Tt][Ii][Ll][Ee][Cc][Aa][Cc][Hh][Ee]/*.[Ss][Tt][Ii]; \
+ do
+ einfo "$i"
+ lower="`echo "$i" | LANG=C tr '[A-Z]' '[a-z]'`"
+ [ -d `dirname "$lower"` ] || mkdir `dirname $lower`
+ [ "$i" = "$lower" ] || mv "$i" "$lower"
+ done
+}
diff --git a/games-strategy/ja2-stracciatella/metadata.xml b/games-strategy/ja2-stracciatella/metadata.xml
new file mode 100644
index 0000000..fe2be3c
--- /dev/null
+++ b/games-strategy/ja2-stracciatella/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>azamat.hackimov@gmail.com</email>
+<name>Azamat H. Hackimov</name>
+</maintainer>
+<longdescription lang="en">
+A port of Jagged Alliance 2 to SDL.
+</longdescription>
+<use>
+<flag name='editor'>Enable editor support</flag>
+<flag name='linguas_ru_gold'>Use Russian localization from Jagged Alliance 2: Gold edition</flag>
+</use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: games-strategy/ja2-stracciatella/, games-strategy/ja2-stracciatella/files/
@ 2012-05-14 14:07 Azamat H. Hackimov
0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2012-05-14 14:07 UTC (permalink / raw
To: gentoo-commits
commit: 64d0fe1ea37944654eb1cf06108e009f45640bc3
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Mon May 14 14:08:34 2012 +0000
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Mon May 14 14:08:34 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=64d0fe1e
[games-strategy/ja2-stracciatella] Removed - in portage now.
---
games-strategy/ja2-stracciatella/files/jagged2.png | Bin 1299 -> 0 bytes
.../ja2-stracciatella-0.12.1_p7072.ebuild | 100 --------------------
games-strategy/ja2-stracciatella/metadata.xml | 16 ---
3 files changed, 0 insertions(+), 116 deletions(-)
diff --git a/games-strategy/ja2-stracciatella/files/jagged2.png b/games-strategy/ja2-stracciatella/files/jagged2.png
deleted file mode 100644
index 808e6c4..0000000
Binary files a/games-strategy/ja2-stracciatella/files/jagged2.png and /dev/null differ
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
deleted file mode 100644
index b1b69d5..0000000
--- a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit games
-
-DESCRIPTION="A port of Jagged Alliance 2 to SDL."
-HOMEPAGE="http://tron.homeunix.org/ja2/"
-SRC_URI="http://ftp.gentoo.ru/people/winterheart/distfiles/ja2-${PV}-source.tar.bz2
- editor? ( http://tron.homeunix.org/ja2/editor.slf.gz )"
-
-LICENSE="SFI-SCLA"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug editor linguas_nl linguas_en linguas_fr linguas_de linguas_it linguas_pl
-linguas_ru linguas_ru_gold zlib"
-
-RDEPEND="media-libs/libsdl
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/ja2-${PV}-source"
-
-src_prepare() {
-
- myconf=""
- for i in ${LINGUAS}; do
- ewarn "${i} is chosen for primary language"
- 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" ;;
- *) myconf="LNG=ENGLISH" ;;
- esac
- break
- done
-
- sed -i \
- -e "s:\(CFLAGS += \$(CFLAGS_SDL)\):\1 ${CFLAGS}:" \
- -e "s:\(LDFLAGS += \$(LDFLAGS_SDL)\):\1 ${LDFLAGS}:" \
- Makefile || die "sed failed"
- sed -ie "s:\(Icon=jagged2\).ico:\1:" ${PN}.desktop || die "sed failed"
-
- sed -ie "s:/some/place/where/the/data/is:${GAMES_DATADIR}/ja2:" \
- sgp/FileMan.cc || die "sed failed"
-
- use editor && myconf="${myconf} JA2EDITOR=yes JA2BETAVERSION=yes"
- use zlib && myconf="${myconf} WITH_ZLIB=yes"
-}
-
-src_compile() {
- emake ${myconf} || die
-}
-
-src_install() {
- dogamesbin ja2 || die
- doman ja2.6
- doicon "${FILESDIR}"/jagged2.png
- insinto /usr/share/applications
- doins ${PN}.desktop
-
- if use editor; then
- insinto "${GAMES_DATADIR}"/ja2/data
- doins "${WORKDIR}"/editor.slf
- fi
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- einfo
- elog "Copy all files from Data directory of Jagged Alliance 2 installation to"
- elog "${GAMES_DATADIR}/ja2/data and then run"
- elog
- elog "# emerge --config \"=${CATEGORY}/${PF}\""
- elog
- einfo
-}
-
-pkg_config() {
- einfo
- einfo "Convert names of data-files to lower-case"
- einfo
- for i in \
- "${GAMES_DATADIR}"/ja2/data/*.[Ss][Ll][Ff] \
- "${GAMES_DATADIR}"/ja2/data/[Tt][Ii][Ll][Ee][Cc][Aa][Cc][Hh][Ee]/*.[Jj][Ss][Dd] \
- "${GAMES_DATADIR}"/ja2/data/[Tt][Ii][Ll][Ee][Cc][Aa][Cc][Hh][Ee]/*.[Ss][Tt][Ii]; \
- do
- einfo "$i"
- lower="`echo "$i" | LANG=C tr '[A-Z]' '[a-z]'`"
- [ -d `dirname "$lower"` ] || mkdir `dirname $lower`
- [ "$i" = "$lower" ] || mv "$i" "$lower"
- done
-}
diff --git a/games-strategy/ja2-stracciatella/metadata.xml b/games-strategy/ja2-stracciatella/metadata.xml
deleted file mode 100644
index fe2be3c..0000000
--- a/games-strategy/ja2-stracciatella/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>no-herd</herd>
-<maintainer>
-<email>azamat.hackimov@gmail.com</email>
-<name>Azamat H. Hackimov</name>
-</maintainer>
-<longdescription lang="en">
-A port of Jagged Alliance 2 to SDL.
-</longdescription>
-<use>
-<flag name='editor'>Enable editor support</flag>
-<flag name='linguas_ru_gold'>Use Russian localization from Jagged Alliance 2: Gold edition</flag>
-</use>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-14 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 12:56 [gentoo-commits] proj/gamerlay:master commit in: games-strategy/ja2-stracciatella/, games-strategy/ja2-stracciatella/files/ Azamat H. Hackimov
-- strict thread matches above, loose matches on Subject: below --
2012-05-14 14:07 Azamat H. Hackimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox