New ebuild. Bug #96781
authorAlfredo Tupone <tupone@gentoo.org>
Tue, 16 Jan 2007 16:21:18 +0000 (16:21 +0000)
committerAlfredo Tupone <tupone@gentoo.org>
Tue, 16 Jan 2007 16:21:18 +0000 (16:21 +0000)
Package-Manager: portage-2.1.1-r2

games-strategy/dark-oberon/ChangeLog [new file with mode: 0644]
games-strategy/dark-oberon/Manifest [new file with mode: 0644]
games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild [new file with mode: 0644]
games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gcc41.patch [new file with mode: 0644]
games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gentoo.patch [new file with mode: 0644]
games-strategy/dark-oberon/files/digest-dark-oberon-1.0.2_rc1 [new file with mode: 0644]
games-strategy/dark-oberon/metadata.xml [new file with mode: 0644]

diff --git a/games-strategy/dark-oberon/ChangeLog b/games-strategy/dark-oberon/ChangeLog
new file mode 100644 (file)
index 0000000..e80f8b3
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for games-strategy/dark-oberon
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dark-oberon/ChangeLog,v 1.1 2007/01/16 16:21:18 tupone Exp $
+
+*dark-oberon-1.0.2_rc1 (16 Jan 2007)
+
+  16 Jan 2007; <tupone@gentoo.org> +files/dark-oberon-1.0.2_rc1-gcc41.patch,
+  +files/dark-oberon-1.0.2_rc1-gentoo.patch, +metadata.xml,
+  +dark-oberon-1.0.2_rc1.ebuild:
+  New ebuild. Bug #96781 by Christoph Brill (egore)
+
diff --git a/games-strategy/dark-oberon/Manifest b/games-strategy/dark-oberon/Manifest
new file mode 100644 (file)
index 0000000..1b6a51f
--- /dev/null
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX dark-oberon-1.0.2_rc1-gcc41.patch 4888 RMD160 f7276c553dfcc197cb03a227f4e8af029454e2d1 SHA1 0f1c6db414af1b0a52cc1fb5b4ce39bcb3b04308 SHA256 4d699edf129f34cbf2b0f0580899071bb254b68b8b23159fbe4fb7af43639b40
+MD5 d5041889e4b9a35d7de8e8e2beaecf79 files/dark-oberon-1.0.2_rc1-gcc41.patch 4888
+RMD160 f7276c553dfcc197cb03a227f4e8af029454e2d1 files/dark-oberon-1.0.2_rc1-gcc41.patch 4888
+SHA256 4d699edf129f34cbf2b0f0580899071bb254b68b8b23159fbe4fb7af43639b40 files/dark-oberon-1.0.2_rc1-gcc41.patch 4888
+AUX dark-oberon-1.0.2_rc1-gentoo.patch 2072 RMD160 ccb14124b10b0594fc7818ca202db48370d68353 SHA1 88c3052420ca99206a62ede961209b76fea7af20 SHA256 6a8f44189744c72c07d4114e9efdc782dcf7ed8d574c4814d11027bc7fd55d08
+MD5 f5f665f18e910b0b0e72523151fdef85 files/dark-oberon-1.0.2_rc1-gentoo.patch 2072
+RMD160 ccb14124b10b0594fc7818ca202db48370d68353 files/dark-oberon-1.0.2_rc1-gentoo.patch 2072
+SHA256 6a8f44189744c72c07d4114e9efdc782dcf7ed8d574c4814d11027bc7fd55d08 files/dark-oberon-1.0.2_rc1-gentoo.patch 2072
+DIST dark-oberon-1.0.2-RC1.tar.gz 28487655 RMD160 078de205c884ff1255b9600c9a763d526fed066d SHA1 1708a1e6ed762c674bd7aa3296d3d28e297bc589 SHA256 d867bac1f75c844a005d1f873059090d25f9f266730fcd7d0d261a5b84a420b1
+EBUILD dark-oberon-1.0.2_rc1.ebuild 1077 RMD160 ad12fc0304cc32fef562cc49cc55f6affb694e4d SHA1 d8eb8eb4095fe62136d4c23d2a0143db749de052 SHA256 1275a503d8a7a4aebf37213d6606bdc3fa72ed81ea44adf54849253033911d9a
+MD5 c8c009961543b8122921f92362d7529a dark-oberon-1.0.2_rc1.ebuild 1077
+RMD160 ad12fc0304cc32fef562cc49cc55f6affb694e4d dark-oberon-1.0.2_rc1.ebuild 1077
+SHA256 1275a503d8a7a4aebf37213d6606bdc3fa72ed81ea44adf54849253033911d9a dark-oberon-1.0.2_rc1.ebuild 1077
+MISC ChangeLog 486 RMD160 83ee4d85939e2011a082ecb59a446c14c9e7cafa SHA1 4a367ec8537dc4c3b7b0785881ca1a757d8a833c SHA256 543298ff262534ca2f508a3399d71e4f3a83b91e53c6590854786fd5f54ef34b
+MD5 db994662b2d2edcebfb46f5450692244 ChangeLog 486
+RMD160 83ee4d85939e2011a082ecb59a446c14c9e7cafa ChangeLog 486
+SHA256 543298ff262534ca2f508a3399d71e4f3a83b91e53c6590854786fd5f54ef34b ChangeLog 486
+MISC metadata.xml 399 RMD160 29dd17115e53323d0d80c445c4cfa7b0b0285d56 SHA1 6a496aa231f4d91f0ecc18fe256b56198dcdc120 SHA256 036e21f06131ada040bf03addaed5b6cd9e9bcea6b5ec06291c23d19db3953ed
+MD5 3c87995d8932940266a6ab4c6aca8390 metadata.xml 399
+RMD160 29dd17115e53323d0d80c445c4cfa7b0b0285d56 metadata.xml 399
+SHA256 036e21f06131ada040bf03addaed5b6cd9e9bcea6b5ec06291c23d19db3953ed metadata.xml 399
+MD5 0621bbee28e3ec9623b0896f1c1ee885 files/digest-dark-oberon-1.0.2_rc1 271
+RMD160 7e05d237e833dd0c6f89ea8580fbf8416e4298c9 files/digest-dark-oberon-1.0.2_rc1 271
+SHA256 9dc65a24039de3d069019382059dec302b099caf0431b5ce621dddbb7c111ff3 files/digest-dark-oberon-1.0.2_rc1 271
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFrPuMbfN2jvlVAhwRAr3UAJ4tNtqyUWmK7mIk3z1WocRwrwYj3ACdGxNU
+bEWiZuTXMw+T3a5iOh+B4A4=
+=P59P
+-----END PGP SIGNATURE-----
diff --git a/games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild b/games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild
new file mode 100644 (file)
index 0000000..4a64e38
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild,v 1.1 2007/01/16 16:21:18 tupone Exp $
+
+inherit eutils games
+
+MY_PV=${PV/_rc/-RC}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="a Warcraft like RTS game"
+HOMEPAGE="http://dark-oberon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="fmod"
+
+DEPEND="virtual/opengl
+       virtual/glu
+       media-libs/glfw
+       fmod? ( media-libs/fmod )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}/${P}"-gcc41.patch \
+               "${FILESDIR}/${P}"-gentoo.patch
+}
+
+src_compile() {
+       cd src
+       if use fmod; then
+               emake SOUND=1 ../${PN} || die "emake failed"
+       else
+               emake ../${PN} || die "emake failed"
+       fi
+}
+
+src_install() {
+       dogamesbin dark-oberon || die "dogamesbin failed"
+
+       insinto "${GAMES_DATADIR}/${PN}"
+       doins -r dat maps races schemes || die "doins failed"
+       dodoc README docs/* || die "dodoc failed"
+
+       prepgamesdirs
+}
diff --git a/games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gcc41.patch b/games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gcc41.patch
new file mode 100644 (file)
index 0000000..a579deb
--- /dev/null
@@ -0,0 +1,111 @@
+--- src/donet.h.old    2007-01-16 13:53:05.000000000 +0100
++++ src/donet.h        2007-01-16 13:53:20.000000000 +0100
+@@ -489,7 +489,7 @@
+   /** Exception throwed when there was an error with resolving hostname. */
+   class ResolveException {};
+-  TNET_RESOLVER::TNET_RESOLVER ();
++  TNET_RESOLVER ();
+   static std::string GetHostName ();
+--- src/dofight.h.old  2007-01-16 13:53:31.000000000 +0100
++++ src/dofight.h      2007-01-16 13:53:43.000000000 +0100
+@@ -230,7 +230,7 @@
+   void SetProtection(const float new_value)
+     {if (new_value > 1.0f) protection = 1.0f; else if (new_value < 0) protection = 0; else protection = new_value;};
+-  TDEFENSE::TDEFENSE()
++  TDEFENSE()
+     { armour = 0; protection = 0; }
+ private:
+--- src/doraces.h.old  2007-01-16 13:53:50.000000000 +0100
++++ src/doraces.h      2007-01-16 13:54:02.000000000 +0100
+@@ -755,7 +755,7 @@
+   //!<Sets if unit can walk on source or building can be built on source when is empty.
+   void SetHideable(bool hide) {hideable = hide;};
+   //!<Tests whether position is available for this kind of the building.
+-  bool TSOURCE_ITEM::IsPositionAvailable(int pos_x, int pos_y);
++  bool IsPositionAvailable(int pos_x, int pos_y);
+   //! Specifies on which terrains it is able to build the item.
+   TINTERVAL<TTERRAIN_ID> buildable[DAT_SEGMENTS_COUNT];
+--- src/dodraw.h.old   2007-01-16 13:54:12.000000000 +0100
++++ src/dodraw.h       2007-01-16 13:54:25.000000000 +0100
+@@ -140,7 +140,7 @@
+   void SetProjection(TPROJECTION_TYPE projection);
+   void Update();
+-  TPROJECTION::TPROJECTION() { SetProjection(PRO_MENU); };
++  TPROJECTION() { SetProjection(PRO_MENU); };
+ };
+--- src/dounits.h.old  2007-01-16 13:54:41.000000000 +0100
++++ src/dounits.h      2007-01-16 13:55:05.000000000 +0100
+@@ -1094,7 +1094,7 @@
+   TSOURCE_UNIT * FindNewSource(TPOSITION_3D position);
+   //bool FindNewSource(TPOSITION_3D position);
+-  TSOURCE_UNIT * TWORKER_UNIT::IsSourceOnPosition(int pos_x, int pos_y);
++  TSOURCE_UNIT * IsSourceOnPosition(int pos_x, int pos_y);
+   //! Constructor.
+   TWORKER_UNIT(int uplayer, int ux, int uy, int uz, int udirection, TFORCE_ITEM *mi, int new_unit_id, bool global_unit)
+--- src/dowalk.h.old   2007-01-16 13:55:13.000000000 +0100
++++ src/dowalk.h       2007-01-16 13:55:39.000000000 +0100
+@@ -270,7 +270,7 @@
+   bool TestLastPathPosition(void);              //!< Tests if a_stem is last step.
+   TPOSITION_3D GetGoalPosition();                       //!<Get goal of the path.
+   TPATH_LIST* CreateCopy(int shift_x, int shift_y, int shift_z);          //!<The path list create copy of the itself with shift.
+-  double TPATH_LIST::CountTime(TFORCE_UNIT *unit);      //!<Counts the time, which unit spends on the exact way.
++  double CountTime(TFORCE_UNIT *unit);      //!<Counts the time, which unit spends on the exact way.
+   void DecreaseSteps(int st_count) { steps -= st_count;};    //! Decreases variable steps, used when building is build, unit cant go to the goal, but just near the newly built building.
+   void IncreaseASteps();                        //!< Increases actuall step
+   void DecreaseASteps();                        //!< Decrease actuall step
+@@ -297,10 +297,10 @@
+   //! Coordinates in the map, each step of the path is storaged in this array.
+   TPOSITION_3D path_pos[WLK_NODES_NUM];
+-  TPATH_NODE::TPATH_NODE(TPATH_NODE *first, TPOSITION_3D adding);  //!< Adding constructor.
+-  TPATH_NODE::TPATH_NODE(TPOSITION_3D goal);    //!< Constructor.
++  TPATH_NODE(TPATH_NODE *first, TPOSITION_3D adding);  //!< Adding constructor.
++  TPATH_NODE(TPOSITION_3D goal);    //!< Constructor.
+ private:
+-  TPATH_NODE::TPATH_NODE(TPATH_NODE &origin, int sx, int sy, int sz);   //!< Constructor creates copy with shift.
++  TPATH_NODE(TPATH_NODE &origin, int sx, int sy, int sz);   //!< Constructor creates copy with shift.
+   friend TPATH_LIST* TPATH_LIST::CreateCopy(int, int, int);
+ };
+--- src/doconfig.h.old 2007-01-16 13:55:48.000000000 +0100
++++ src/doconfig.h     2007-01-16 13:56:01.000000000 +0100
+@@ -211,7 +211,7 @@
+   GLubyte pr_warfog_color[4];         //!< Precomputed warfog color and alfa-channel. [-128..127]
+   double pr_expected_frame_duration;  //!< Precomputed expected frame duration from max_frame_rate. [seconds]
+-  TCONFIG::TCONFIG();
++  TCONFIG();
+ };
+--- src/doengine.h.old 2007-01-16 13:56:08.000000000 +0100
++++ src/doengine.h     2007-01-16 13:56:25.000000000 +0100
+@@ -212,7 +212,7 @@
+   std::string GetRacIdName (std::string name);
+   std::string GetRacName (std::string id_name);
+-  std::string TMAP_INFO_LIST::GetMapName (std::string id_name);
++  std::string GetMapName (std::string id_name);
+   TMAP_INFO_LIST (void) { map_list = NULL; rac_list = NULL;};
+   ~TMAP_INFO_LIST (void) { ClearMapList(); ClearRacList();};
+@@ -276,7 +276,7 @@
+     order_panel = NULL;
+   }
+-  TPANEL_INFO::TPANEL_INFO() { Clear(); }
++  TPANEL_INFO() { Clear(); }
+ };
+ extern TPANEL_INFO panel_info;
diff --git a/games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gentoo.patch b/games-strategy/dark-oberon/files/dark-oberon-1.0.2_rc1-gentoo.patch
new file mode 100644 (file)
index 0000000..7570442
--- /dev/null
@@ -0,0 +1,43 @@
+--- src/doconfig.h.old 2007-01-16 16:17:17.000000000 +0100
++++ src/doconfig.h     2007-01-16 16:17:58.000000000 +0100
+@@ -40,7 +40,7 @@
+ /** Filename of the configuration file.
+  *  @sa DATA_DIR */
+-#define CFG_FILE_NAME      (user_dir + DATA_DIR "config.cfg").c_str()
++#define CFG_FILE_NAME      (user_dir + "config.cfg").c_str()
+ /** Default configuration's screen resolution. From this value the
+  *  TCONFIG::width and TCONFIG::height are set. */
+--- src/dologs.h.old   2007-01-16 16:17:26.000000000 +0100
++++ src/dologs.h       2007-01-16 16:18:12.000000000 +0100
+@@ -37,7 +37,7 @@
+  *   Directory, where log files are created.
+  *   @note Macro is only available if #LOG_TO_LOGFILES is specified.
+  */
+-# define LOG_PATH        (user_dir + DATA_DIR "logs/").c_str()
++# define LOG_PATH        (user_dir + "logs/").c_str()
+ /**
+  *   Filename of the error log #err_log.
+  *   @note Macro is only available if #LOG_TO_LOGFILES is specified.
+--- src/Makefile.old   2007-01-16 16:50:19.000000000 +0100
++++ src/Makefile       2007-01-16 16:51:39.000000000 +0100
+@@ -1,12 +1,15 @@
+ SOUND ?= 0
+ DEBUG ?= 0
+-CPP = g++ $(CPPFLAGS) $(INCLUDES) $(DEFINES)
++CPP = $(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES)
+ CPPFLAGS = -g -Wall -O
+-DEFINES = -DDATA_DIR='""' -DUNIX=1 -DSOUND=$(SOUND) -DDEBUG=$(DEBUG)
++DEFINES = -DDATA_DIR='"$(GAMES_DATADIR)/$(PN)/"' -DUNIX=1 -DSOUND=$(SOUND) -DDEBUG=$(DEBUG)
+ INCLUDES = -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
+ LIBPATHS = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib -L../libs
+-LIBRARIES = -pthread -lglfw -lGL -lX11 -lGLU
++LIBRARIES = -pthread -lglfw -lGL -lX11 -lGLU -lXxf86vm
++ifneq ($(SOUND),0)
++LIBRARIES += -lfmod
++endif
+ OBJECTS = doalloc.o doberon.o dobuildings.o doconfig.o dodata.o dodraw.o doengine.o doevents.o dofactories.o dofight.o dofile.o dofollower.o doforces.o dohost.o doipc.o dolayout.o doleader.o dologs.o domap.o domapunits.o domouse.o donet.o doplayers.o doraces.o doschemes.o doselection.o dosimpletypes.o dosound.o dosources.o dounits.o dowalk.o doworkers.o glfont.o glgui.o tga.o utils.o
+ TARGETS = ../dark-oberon
diff --git a/games-strategy/dark-oberon/files/digest-dark-oberon-1.0.2_rc1 b/games-strategy/dark-oberon/files/digest-dark-oberon-1.0.2_rc1
new file mode 100644 (file)
index 0000000..2f4f778
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 62e5f4593b282b630a06675127afc840 dark-oberon-1.0.2-RC1.tar.gz 28487655
+RMD160 078de205c884ff1255b9600c9a763d526fed066d dark-oberon-1.0.2-RC1.tar.gz 28487655
+SHA256 d867bac1f75c844a005d1f873059090d25f9f266730fcd7d0d261a5b84a420b1 dark-oberon-1.0.2-RC1.tar.gz 28487655
diff --git a/games-strategy/dark-oberon/metadata.xml b/games-strategy/dark-oberon/metadata.xml
new file mode 100644 (file)
index 0000000..77ef51e
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Dark Oberon is an open source real-time strategy game similar to Warcraft II
+released under GPL. It has got unique graphics - textures created from shots of
+real models made out of plasticine!
+</longdescription>
+</pkgmetadata>
+