Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612570 - Propose adding Game (Tribal Trouble) to Portage
Summary: Propose adding Game (Tribal Trouble) to Portage
Status: RESOLVED DUPLICATE of bug 87472
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-14 01:17 UTC by team.penguin50
Modified: 2017-03-15 08:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description team.penguin50 2017-03-14 01:17:32 UTC
The following GitHub project is my fork: https://github.com/team-penguin/tribaltrouble

I think that I have a workable .ebuild file and propose that this game could be added to Gentoo.

I await your consideration.
Comment 1 Coacher 2017-03-14 06:21:55 UTC
Please add info about your fork and your progress to the bug referenced below.
Thanks.

*** This bug has been marked as a duplicate of bug 87472 ***
Comment 2 team.penguin50 2017-03-15 01:05:53 UTC
This fork will build from source and does not involve the binary files referenced in the original project release. A Game client will result with full game functionality enabled. Two aspects have been enhanced:

8 Players
Additional Island size: Huge

A review of my .ebuild should be more agreeable with dependcies on virtual/jre and java-pkg-2 ineritance.
Comment 3 team.penguin50 2017-03-15 01:09:50 UTC
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils java-pkg-2 java-ant-2

DESCRIPTION="Tribal Trouble is a realtime strategy game released by Oddlabs in 2004."
HOMEPAGE="https://github.com/team-penguin/tribaltrouble"
SRC_URI="https://github.com/team-penguin/tribaltrouble/archive/master.zip -> ${P}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+java"

DEPEND=">=virtual/jdk-1.6
    app-arch/unzip
    dev-java/ant-core
    dev-vcs/mercurial"

S=${WORKDIR}

EANT_NEEDS_TOOLS="true"
EANT_BUILD_XML="./tribaltrouble-master/tt/build.xml"
EANT_BUILD_TARGET="makedist"

src_compile() {
    java-pkg-2_src_compile
}

src_install() {
    dodir /usr/share/games/tribaltrouble
    cd "${S}/tribaltrouble-master/tt/build/dist/common" && cp -R . "${D}/usr/share/games/tribaltrouble"
    fowners -R root:games /usr/share/games/tribaltrouble
    fperms -R o-rwx /usr/share/games/tribaltrouble
    exeinto /usr/games/bin
    exeopts -m0750 -ggames
    doexe ${FILESDIR}/tribaltrouble
}
Comment 4 Coacher 2017-03-15 08:34:53 UTC
(In reply to team.penguin50 from comment #2)
> This fork will build from source and does not involve the binary files
> referenced in the original project release. A Game client will result with
> full game functionality enabled. Two aspects have been enhanced:
> 
> 8 Players
> Additional Island size: Huge
> 
> A review of my .ebuild should be more agreeable with dependcies on
> virtual/jre and java-pkg-2 ineritance.
Again, please add all this info to the bug 87472.
All people who are interested are already CC'ed there.