Hi! Attached is the freecol-0.3.0.ebuild I would be very thankful if this ebuild could be added to portage. FreeCol is a free clone of the classic strategy game Colonization. Colonization is a turn-based game similar to Civilization. The object is for the player to build an empire in America and to become independent of Europe. It has been written entirely in Java and depends on the Java and Ant ebuilds. This ebuild is being submitted at this point in prepartion of the upcoming 0.3.0 release of FreeCol. games-strategy would be an excellent category for this ebuild. I have never written an ebuild before so let me know if I can fix anything :-) Cheers, Lars Reproducible: Always Steps to Reproduce:
Created attachment 39902 [details] freecol-0.3.0.ebuild
Comments: Move the JAVA_HOME check to pkg_setup Create the wrapper in src_unpack, not src_install call cp once in src_install set S to ${WORKDIR}/${PN} so you don't have to cd or refer to it use mirror://sourceforge in SRC_URI
Created attachment 40881 [details] freecol-0.3.0.ebuild Made fixes as suggested at comment #2.
RDEPEND="|| ( >=virtual/jdk-1.4 >=virtual/jre-1.4 )" is unneeded since all the jdk's provide a virtual/jre so just RDEPEND=">=virtual/jre-1.4" should be enough.
Also, there's no need for cd ${S} in src_compile() AFAIK.
About comment 4: how can a jre be enough? The FreeCol sourcecode is compiled during the ebuild so you would need a JDK to make it through the ebuild. Shouldn't it be: RDEPEND=">=virtual/jdk-1.4"
> The FreeCol sourcecode is compiled during the ebuild so you would need a JDK to make it through the ebuild. You're right... I missed the fact that you compile it... I thought it was binary only. In that case you should move the virtual/jdk to DEPEND and leave just the virtual/jre in RDEPEND... no sense on DEPEND-ing on the jdk.
Created attachment 45544 [details] freecol-0.3.0.ebuild The latest attachment should fix any remaining issues. Note that the game will issue a warning that it can't load any music, but this is normal because music will be added in the next release.
ok, since this comes with no docs to speak of, somebody clue me in on how this game is supposed to work. Seems unplayable at this point.
games-strategy/freecol added to portage. Thanks for the bug report and ebuild.