The particular problem with games/easyrpg was that ruby-iconv is
deprecated for ruby>1.8.

Btw, FindRuby.cmake CMake's module needs to be fixed/extended...
I've started working on it.

OK with this in the meantime?

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/easyrpg/Makefile,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 Makefile
--- Makefile    6 Oct 2013 17:41:57 -0000       1.5
+++ Makefile    14 Oct 2013 08:47:55 -0000
@@ -5,7 +5,7 @@ COMMENT =       free interpreter for RPG Maker
 DISTFILES =    EasyRPG_Player-${V}-src.zip \
                EasyRPG_Readers-${V}-src.zip
 PKGNAME =      easyrpg-${V}
-REVISION =     2
+REVISION =     3
 CATEGORIES =   games x11
 
 HOMEPAGE =     https://easy-rpg.org/
@@ -25,6 +25,11 @@ MODULES +=   converters/libiconv \
                devel/cmake \
                lang/lua \
                lang/ruby
+
+# iconv is deprecated with ruby>1.8
+MODRUBY_REV =  1.8
+
+BUILD_DEPENDS =        ${MODRUBY_ICONV_DEPENDS}
 
 LIB_DEPENDS =  audio/libsndfile \
                audio/openal \
Index: patches/patch-builds_cmake_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/games/easyrpg/patches/patch-builds_cmake_CMakeLists_txt,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-builds_cmake_CMakeLists_txt
--- patches/patch-builds_cmake_CMakeLists_txt   23 Jun 2013 15:30:41 -0000      
1.3
+++ patches/patch-builds_cmake_CMakeLists_txt   14 Oct 2013 08:47:56 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-builds_cmake_CMakeLists_
 We don't need Git because we're using releases.
 
 --- builds/cmake/CMakeLists.txt.orig   Sat Apr 20 19:12:11 2013
-+++ builds/cmake/CMakeLists.txt        Sun Jun 23 16:56:34 2013
++++ builds/cmake/CMakeLists.txt        Mon Oct 14 10:14:50 2013
 @@ -9,12 +9,6 @@ set(DEFAULT_EASYRPG_READERS_PATH "${CMAKE_CURRENT_SOUR
  if(NOT EASYRPG_READERS_PATH)
    set(EASYRPG_READERS_PATH "${DEFAULT_EASYRPG_READERS_PATH}")
@@ -17,19 +17,29 @@ We don't need Git because we're using re
  add_subdirectory(
    ${EASYRPG_READERS_PATH}/builds/cmake
    ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${EASYRPG_READERS_PATH}/builds/cmake)
-@@ -27,13 +21,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_
+@@ -27,14 +21,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_
  
  add_definitions(
    ${PNG_DEFINITIONS}
 -
    -D UNIX=1
 -  -D USE_SDL=1)
--
--if(CMAKE_GENERATOR MATCHES "Makefile")
--  add_definitions(-fno-rtti)
--endif()
 +  -D USE_SDL=1
 +  -pthread)
  
+-if(CMAKE_GENERATOR MATCHES "Makefile")
+-  add_definitions(-fno-rtti)
+-endif()
+-
  # wine checking
  find_program(WINE_EXECUTABLE wine)
+ if(EXISTS ${WINE_EXECUTABLE})
+@@ -45,7 +35,7 @@ endif()
+ set(SHINONOME_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../lib/shinonome")
+ set(SHINONOME_SRCS "${SHINONOME_PATH}/gothic.cxx" 
"${SHINONOME_PATH}/mincho.cxx")
+ include_directories(${SHINONOME_PATH})
+-find_package(Ruby)
++find_package(Ruby 1.8)
+ if(RUBY_FOUND)
+   set(SHINONOME_GENERATOR "${SHINONOME_PATH}/generate_cxx_font.rb")
+   add_custom_command(

Reply via email to