]> Pileus Git - ~andy/sunrise/commitdiff
dev-games/game-editor: Patch file removed and fix src_prepare
authorAngelo D'Autilia (sYdRo) <sydro@salug.it>
Mon, 22 Mar 2010 17:15:06 +0000 (17:15 +0000)
committerAngelo D'Autilia (sYdRo) <sydro@salug.it>
Mon, 22 Mar 2010 17:15:06 +0000 (17:15 +0000)
svn path=/sunrise/; revision=10330

dev-games/game-editor/ChangeLog
dev-games/game-editor/Manifest
dev-games/game-editor/files/game-editor-9999.patch [deleted file]
dev-games/game-editor/game-editor-9999.ebuild

index 0c0c8a262f19837a6b0384ce52b12688e5ed27d6..3cecb308954887f203a165390390b608ca9ffd39 100644 (file)
@@ -2,6 +2,10 @@
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  22 Mar 2010; Angelo D'Autilia (sYdRo) <sydro@salug.it>
+  game-editor-9999.ebuild, -files/game-editor-9999.patch:
+  Patch file removed and fix src_prepare
+
   05 Mar 2010; Angelo D'Autilia (sYdRo) <sydro@salug.it>
   +game-editor-9999.ebuild, +files/game-editor-9999.patch, +metadata.xml:
   New ebuild for bug 289276
index f1b251ae2f3978295f6a9f5b37f48a73bd4e5372..8e29c10b41f94b08de4535240cf2bd5188783441 100644 (file)
@@ -1,4 +1,3 @@
-AUX game-editor-9999.patch 3517 RMD160 5d9844a237253b550e40ecbe59a8dad35a136949 SHA1 83870269457213db01334de9bb9e073a9f3761cb SHA256 707c20fbe065d302554da963e2e781f6bb2c9aa4c1859689ab83a7a179dc4c74
-EBUILD game-editor-9999.ebuild 608 RMD160 b5294239e1ac4bbdcc4499049c2c08707529f639 SHA1 956d4ce2bfdbf3b93de5326ee140c804603902d2 SHA256 6e3a52e388d1e9d26ee99895c049dc7f25559c2e8042b0a7b383252ffd0309b2
-MISC ChangeLog 282 RMD160 8617238d510d475d7f067464606f1f74be942bb9 SHA1 fe8d1354ba37eb40ed61ea42a16f70a3d814c8b8 SHA256 68dc8402df43f6a6c351a04e40a724e99211340f74e1d34bfe701d999dfb0811
+EBUILD game-editor-9999.ebuild 1076 RMD160 827d4985e4bb7bae42f626b40d88f048713ae6a3 SHA1 66500226763081707553160361cf42090cb615e1 SHA256 73659447e6a154a399a32ca862b5c880003548934bc20a84211aad52529b08c8
+MISC ChangeLog 439 RMD160 5ffa78da69bc4b49b404c8deeef5ae69bd8be87f SHA1 881f50330da43a8c470c2d5609a8632dac57e2e7 SHA256 fd0eab6c81f5809e791f3e3a0571036b4734fb3d272c106bb2ed7961fffe8f9e
 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/dev-games/game-editor/files/game-editor-9999.patch b/dev-games/game-editor/files/game-editor-9999.patch
deleted file mode 100644 (file)
index 12a6554..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-diff -ruN -x .svn game_editor-origin/gameEditor/FunctionPanel.cpp game_editor-fixed/gameEditor/FunctionPanel.cpp
---- game_editor-origin/gameEditor/FunctionPanel.cpp    2010-03-02 15:50:39.000000000 +0100
-+++ game_editor-fixed/gameEditor/FunctionPanel.cpp     2010-03-02 15:41:02.000000000 +0100
-@@ -210,7 +210,7 @@
-       EditorDirectory editDir;\r
\r
-       TiXmlDocument doc;\r
--      if(!doc.LoadFile("functions.xml")) return false;\r
-+      if(!doc.LoadFile("/usr/share/games/game-editor/functions.xml")) return false;\r
-       \r
-       //Check tree\r
-       TiXmlElement* root = NULL;\r
-@@ -1213,4 +1213,4 @@
- }\r
\r
\r
--#endif
-\ No newline at end of file
-+#endif\r
-diff -ruN -x .svn game_editor-origin/gameEditor/makefile.editor game_editor-fixed/gameEditor/makefile.editor
---- game_editor-origin/gameEditor/makefile.editor      2010-03-02 15:50:39.000000000 +0100
-+++ game_editor-fixed/gameEditor/makefile.editor       2010-03-02 15:46:13.000000000 +0100
-@@ -10,7 +10,7 @@
- CFLAGS = $(INCS) $(TARGET) -DNO_STDIO_REDIRECT -DNO_LONG_LONG -DNO_DIRENT -DNO_FCNTL -DNO_STAT -DNO_UNISTD -DNO_TERMIOS -DNO_PIPE -DNO_POSIX -DNO_LONGLONG -DNO_HISTORY $(BUILD_TYPE) $(GAMEEDITOR_TYPE)\r
\r
- ifeq (,$(findstring LLVM,$(TARGET)))\r
--        LIBSYSTEM = -lstdc++ -lpthread -lX11 /usr/lib32/libXext.so\r
-+        LIBSYSTEM = -lstdc++ -lpthread -lX11 /usr/lib/libXext.so\r
-         CL=$(CC)\r
-         CLFLAGS=$(CFLAGS)\r
- else\r
-diff -ruN -x .svn game_editor-origin/gameEngine/EditBox.cpp game_editor-fixed/gameEngine/EditBox.cpp
---- game_editor-origin/gameEngine/EditBox.cpp  2010-03-02 15:52:30.000000000 +0100
-+++ game_editor-fixed/gameEngine/EditBox.cpp   2010-03-02 15:43:46.000000000 +0100
-@@ -264,7 +264,7 @@
-               EditorDirectory dir;\r
\r
-               icon = new Actor("ged_VariableSelector_icon", this);\r
--              icon->AddAnimation("icon", "b_xy.png", 1, 1);\r
-+              icon->AddAnimation("icon", "/usr/share/games/game-editor/b_xy.png", 1, 1);\r
-               icon->SetPos(9 + (Width() - icon->Width()) / 2, 10 + (Height() - icon->Height()) / 2);\r
-               icon->getSprite()->SetHitTest(false);   \r
-       }\r
-diff -ruN -x .svn game_editor-origin/gameEngine/GameControl.cpp game_editor-fixed/gameEngine/GameControl.cpp
---- game_editor-origin/gameEngine/GameControl.cpp      2010-03-02 15:52:30.000000000 +0100
-+++ game_editor-fixed/gameEngine/GameControl.cpp       2010-03-02 15:42:06.000000000 +0100
-@@ -859,7 +859,7 @@
\r
- #define EDITOR_FRAME_RATE 120 //Use >= 60 to avoid flick in editor mode\r
\r
--gedString EDITOR_DAT("editor.dat");\r
-+gedString EDITOR_DAT("/usr/share/games/game-editor/editor.dat");\r
\r
- gedString AXIS_NAME("Axis");\r
- gedString REGION_NAME("gedRegion");\r
-diff -ruN -x .svn game_editor-origin/wxGameEditor/Behavior/wxJigsawEditor/wxJigsawEditorMainFrame.cpp game_editor-fixed/wxGameEditor/Behavior/wxJigsawEditor/wxJigsawEditorMainFrame.cpp
---- game_editor-origin/wxGameEditor/Behavior/wxJigsawEditor/wxJigsawEditorMainFrame.cpp        2010-03-02 15:52:23.000000000 +0100
-+++ game_editor-fixed/wxGameEditor/Behavior/wxJigsawEditor/wxJigsawEditorMainFrame.cpp 2010-03-02 15:40:36.000000000 +0100
-@@ -535,7 +535,7 @@
\r
- void wxJigsawEditorMainFrame::LoadConfig()\r
- {\r
--      wxString configFileName = wxT("config.xml");\r
-+      wxString configFileName = wxT("/usr/share/game/game-editor/config.xml");\r
-       if(wxFileExists(configFileName))\r
-       {\r
-               m_XmlIO.DeserializeFromXml(configFileName);\r
-@@ -544,7 +544,7 @@
\r
- void wxJigsawEditorMainFrame::SaveConfig()\r
- {\r
--      wxString configFileName = wxT("config.xml");\r
-+      wxString configFileName = wxT("/usr/share/game/game-editor/config.xml");\r
-       m_XmlIO.SerializeToXml(configFileName, true);\r
- }\r
\r
index 3af6d9fcd75d8294a4dc7b13cbbf6482c6475a63..ab173f3a24bfd90f4e886709232864a889a78120 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI="2"
 
-inherit games subversion
+inherit games multilib subversion
 
 DESCRIPTION="2D Game editor"
 HOMEPAGE="http://game-editor.com"
@@ -12,7 +12,7 @@ ESVN_REPO_URI="https://game-editor.svn.sourceforge.net/svnroot/game-editor/trunk
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~x86"
 IUSE=""
 
 DEPEND="x11-libs/libXext
@@ -20,7 +20,11 @@ DEPEND="x11-libs/libXext
 RDEPEND="${DEPEND}"
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}.patch
+       sed -i -e "s:lib32:$(get_libdir):" gameEditor/makefile.editor || die
+       sed -i -e "s:functions.xml:${GAMES_DATADIR}/${PN}/functions.xml:" gameEditor/FunctionPanel.cpp || die
+       sed -i -e "s:b_xy.png:${GAMES_DATADIR}/${PN}/b_xy.png:" gameEngine/EditBox.cpp || die
+       sed -i -e "s:editor.dat:${GAMES_DATADIR}/${PN}/editor.dat:" gameEngine/GameControl.cpp || die
+       sed -i -e "s:config.xml:${GAMES_DATADIR}/${PN}/config.xml:" wxGameEditor/Behavior/wxJigsawEditor/wxJigsawEditorMainFrame.cpp || die
 }
 
 src_install() {