aboutsummaryrefslogtreecommitdiff
path: root/devel/kdebindings4-ruby
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2011-10-17 00:03:42 +0000
committerAlberto Villa <avilla@FreeBSD.org>2011-10-17 00:03:42 +0000
commita2d3b5a4bc5047210b788a128596ec34749ffa11 (patch)
treec3c20b47c3435ddcaf02b8570db6aab5b70011af /devel/kdebindings4-ruby
parentda6ade2349d0bdc372133d4d97bc6988aee94238 (diff)
downloadports-a2d3b5a4bc5047210b788a128596ec34749ffa11.tar.gz
ports-a2d3b5a4bc5047210b788a128596ec34749ffa11.zip
Notes
Diffstat (limited to 'devel/kdebindings4-ruby')
-rw-r--r--devel/kdebindings4-ruby/Makefile72
-rw-r--r--devel/kdebindings4-ruby/distinfo2
-rw-r--r--devel/kdebindings4-ruby/files/patch-ruby__CMakeLists.txt9
-rw-r--r--devel/kdebindings4-ruby/files/patch-ruby__korundum__CMakeLists.txt7
-rw-r--r--devel/kdebindings4-ruby/files/patch-ruby__korundum__modules__plasma__CMakeLists.txt5
-rw-r--r--devel/kdebindings4-ruby/files/patch-ruby__qtruby__src__CMakeLists.txt21
-rw-r--r--devel/kdebindings4-ruby/files/pkg-message.in10
-rw-r--r--devel/kdebindings4-ruby/files/ruby-kdebindings-env.sh.in6
-rw-r--r--devel/kdebindings4-ruby/pkg-descr2
-rw-r--r--devel/kdebindings4-ruby/pkg-plist88
10 files changed, 30 insertions, 192 deletions
diff --git a/devel/kdebindings4-ruby/Makefile b/devel/kdebindings4-ruby/Makefile
index c78b2d4b7cfe..14847f6430bb 100644
--- a/devel/kdebindings4-ruby/Makefile
+++ b/devel/kdebindings4-ruby/Makefile
@@ -1,6 +1,6 @@
# New ports collection makefile for: kdebindings4-ruby
-# Date created: 2008-08-19
-# Whom: Max Brazhnikov <makc@issp.ac.ru>
+# Date created: 1 September 2011
+# Whom: Alberto Villa <avilla@FreeBSD.org>
#
# $FreeBSD$
#
@@ -8,54 +8,40 @@
PORTNAME= kdebindings
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= devel kde
+MASTER_SITES= # empty
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTFILES= # empty
MAINTAINER= kde@FreeBSD.org
-COMMENT= Ruby bindings for Qt/KDE
+COMMENT= Meta port of Ruby bindings for KDE
-LIB_DEPENDS= smokebase.3:${PORTSDIR}/devel/kdebindings4-smoke \
- okularcore.1:${PORTSDIR}/graphics/kdegraphics4 \
- kateinterfaces.5:${PORTSDIR}/devel/kdesdk4 \
- qwt.5:${PORTSDIR}/x11-toolkits/qwt5
+USE_KDE4= kdeprefix
+USE_RUBY= yes
+RUBY_NO_BUILD_DEPENDS= yes
+RUBY_NO_RUN_DEPENDS= yes
+NO_BUILD= yes
-BINDLANG= ruby
+OPTIONS= KORUNDUM "KDE bindings (requires QTRUBY)" on \
+ KROSSRUBY "Kross Ruby scripting library (broken with Ruby 1.9)" on \
+ QTRUBY "Qt bindings" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_KORUNDUM)
+RUN_DEPENDS+= ${KDE4_PREFIX}/lib/kde4/krubypluginfactory.so:${PORTSDIR}/devel/kdebindings4-ruby-korundum
+.endif
+
+.if !defined(WITHOUT_QTRUBY) || !defined(WITHOUT_KORUNDUM)
+RUN_DEPENDS+= ${KDE4_PREFIX}/lib/libqtruby4shared.so:${PORTSDIR}/devel/kdebindings4-ruby-qtruby
+.endif
-USE_RUBY= yes
-USE_KDE4= pimlibs
-USE_LDCONFIG= yes
-MAKE_JOBS_SAFE= yes
-
-BUILD_WRKSRC= ${WRKSRC}/${BINDLANG}
-
-CMAKE_ARGS+= -DRUBY_LIBRARY=${LOCALBASE}/lib/lib${RUBY_NAME}.so \
- -DRUBY_INCLUDE_PATH=${LOCALBASE}/lib/ruby/${RUBY_VER}/${RUBY_ARCH} \
- -DCUSTOM_RUBY_SITE_LIB_DIR=${RUBY_SITELIBDIR} \
- -DCUSTOM_RUBY_SITE_ARCH_DIR=${RUBY_SITEARCHLIBDIR}
-
-SUB_FILES= ${BINDLANG}-${PORTNAME}-env.sh pkg-message
-SUB_LIST+= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} \
- RUBY_SITEARCHLIBDIR=${RUBY_SITEARCHLIBDIR}
-
-post-patch:
-.for f in Qt.cpp handlers.cpp marshall.h marshall_types.h marshall_types.cpp qtruby.cpp qtruby.h smokeruby.h
- ${REINPLACE_CMD} -e '/include/s,smoke/smoke.h,smoke.h,' ${BUILD_WRKSRC}/qtruby/src/${f}
-.endfor
- ${GREP} -H -r "#include <smoke" ${WRKSRC} | ${CUT} -d: -f1 | uniq | \
- ${XARGS} ${REINPLACE_CMD} -e '/include/s,smoke/qt/,smoke/,' -e '/include/s,smoke/kde/,smoke/,'
-
-post-install:
- ${MKDIR} ${PREFIX}/env
- ${INSTALL_SCRIPT} ${WRKDIR}/${BINDLANG}-${PORTNAME}-env.sh ${PREFIX}/env
- @${CAT} ${PKGMESSAGE}
-
-.include "${.CURDIR}/../../devel/kdebindings4/files/Makefile.kdebindings"
.include <bsd.port.pre.mk>
-#KrossRuby is broken with Ruby 1.9, see http://bugs.kde.org/243565
-.if ${RUBY_VER} == 1.9
-CMAKE_ARGS+= -DENABLE_KROSSRUBY=OFF
-PLIST_SUB+= KROSS="@comment "
-.else
-PLIST_SUB+= KROSS=""
+.if !defined(WITHOUT_KROSSRUBY) && ${RUBY_VER} != 1.9
+RUN_DEPENDS+= ${KDE4_PREFIX}/lib/kde4/krossruby.so:${PORTSDIR}/devel/kdebindings4-ruby-krossruby
.endif
+do-install:
+ ${DO_NADA}
+
.include <bsd.port.post.mk>
diff --git a/devel/kdebindings4-ruby/distinfo b/devel/kdebindings4-ruby/distinfo
deleted file mode 100644
index a151a6d05c49..000000000000
--- a/devel/kdebindings4-ruby/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (KDE/kdebindings-4.6.5.tar.bz2) = b87cf7ccd30a75121b032311c5f625d0a4d44c8c7b1f08c45b9292451da8ff91
-SIZE (KDE/kdebindings-4.6.5.tar.bz2) = 7078088
diff --git a/devel/kdebindings4-ruby/files/patch-ruby__CMakeLists.txt b/devel/kdebindings4-ruby/files/patch-ruby__CMakeLists.txt
deleted file mode 100644
index ab46d3218839..000000000000
--- a/devel/kdebindings4-ruby/files/patch-ruby__CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
---- ./ruby/CMakeLists.txt.orig 2010-08-27 12:11:01.000000000 +0400
-+++ ./ruby/CMakeLists.txt 2010-08-28 12:11:12.098116402 +0400
-@@ -1,3 +1,6 @@
-+include_directories(${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}/smoke)
-+link_directories(${KDE4_LIB_DIR})
-+
- project(Ruby)
-
- set(COMPILE_RUBY FALSE CACHE INTERNAL "")
diff --git a/devel/kdebindings4-ruby/files/patch-ruby__korundum__CMakeLists.txt b/devel/kdebindings4-ruby/files/patch-ruby__korundum__CMakeLists.txt
deleted file mode 100644
index 12f38311fc0b..000000000000
--- a/devel/kdebindings4-ruby/files/patch-ruby__korundum__CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
---- ./ruby/korundum/CMakeLists.txt.orig 2009-12-31 16:35:16.000000000 +0300
-+++ ./ruby/korundum/CMakeLists.txt 2010-06-29 23:56:33.355956607 +0400
-@@ -1,4 +1,3 @@
--add_subdirectory( examples )
- add_subdirectory( src )
- add_subdirectory( tools )
-
diff --git a/devel/kdebindings4-ruby/files/patch-ruby__korundum__modules__plasma__CMakeLists.txt b/devel/kdebindings4-ruby/files/patch-ruby__korundum__modules__plasma__CMakeLists.txt
deleted file mode 100644
index a3a08b7a9d4f..000000000000
--- a/devel/kdebindings4-ruby/files/patch-ruby__korundum__modules__plasma__CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
---- ./ruby/korundum/modules/plasma/CMakeLists.txt.orig 2009-12-31 16:35:17.000000000 +0300
-+++ ./ruby/korundum/modules/plasma/CMakeLists.txt 2010-06-29 23:53:54.555676654 +0400
-@@ -1,2 +1 @@
--add_subdirectory( examples )
- add_subdirectory( src )
diff --git a/devel/kdebindings4-ruby/files/patch-ruby__qtruby__src__CMakeLists.txt b/devel/kdebindings4-ruby/files/patch-ruby__qtruby__src__CMakeLists.txt
deleted file mode 100644
index fdb5d6dac694..000000000000
--- a/devel/kdebindings4-ruby/files/patch-ruby__qtruby__src__CMakeLists.txt
+++ /dev/null
@@ -1,21 +0,0 @@
---- ./ruby/qtruby/src/CMakeLists.txt.orig 2010-12-05 02:02:26.122175928 +1000
-+++ ./ruby/qtruby/src/CMakeLists.txt 2010-12-05 02:02:41.605171951 +1000
-@@ -5,15 +5,15 @@
- ADD_DEFINITIONS (-DQT_QTDBUS)
- ENDIF(QT_QTDBUS_FOUND)
-
--IF(QWT_FOUND)
-+IF(Qwt5_FOUND)
- ADD_DEFINITIONS (-DQT_QWT)
--ENDIF(QWT_FOUND)
-+ENDIF(Qwt5_FOUND)
-
- if(RUBY_VERSION)
- ADD_DEFINITIONS (-DRUBY_VERSION=0x${RUBY_VERSION_NUMBER})
- ENDIF(RUBY_VERSION)
-
--include_directories( ${CMAKE_SOURCE_DIR}/smoke/qt ${CMAKE_SOURCE_DIR}/generator ${RUBY_INCLUDE_DIRS} )
-+include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/smoke/qt ${CMAKE_SOURCE_DIR}/generator ${RUBY_INCLUDE_DIRS} )
- INCLUDE_DIRECTORIES (${QT_INCLUDES})
-
-
diff --git a/devel/kdebindings4-ruby/files/pkg-message.in b/devel/kdebindings4-ruby/files/pkg-message.in
deleted file mode 100644
index 859cd8da176a..000000000000
--- a/devel/kdebindings4-ruby/files/pkg-message.in
+++ /dev/null
@@ -1,10 +0,0 @@
-===========================================================
-
-To use Ruby bindings outside KDE session set RUBYLIB
-environment variable:
-
-RUBYLIB=%%RUBY_SITELIBDIR%%:%%RUBY_SITEARCHLIBDIR%%
-
-See "man 1 ruby" for details.
-
-===========================================================
diff --git a/devel/kdebindings4-ruby/files/ruby-kdebindings-env.sh.in b/devel/kdebindings4-ruby/files/ruby-kdebindings-env.sh.in
deleted file mode 100644
index 041908374ce9..000000000000
--- a/devel/kdebindings4-ruby/files/ruby-kdebindings-env.sh.in
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-if [ %%PREFIX%% != %%LOCALBASE%% ]; then
-RUBYLIB=${RUBYLIB}:%%RUBY_SITELIBDIR%%:%%RUBY_SITEARCHLIBDIR%%
-export RUBYLIB
-fi
diff --git a/devel/kdebindings4-ruby/pkg-descr b/devel/kdebindings4-ruby/pkg-descr
index 88da7c97f8a0..bd5a85c820bf 100644
--- a/devel/kdebindings4-ruby/pkg-descr
+++ b/devel/kdebindings4-ruby/pkg-descr
@@ -1,3 +1,3 @@
-This port provides Ruby bindings for Qt and KDE.
+Ruby bindings for KDE.
WWW: http://www.kde.org/
diff --git a/devel/kdebindings4-ruby/pkg-plist b/devel/kdebindings4-ruby/pkg-plist
deleted file mode 100644
index e67987a7613b..000000000000
--- a/devel/kdebindings4-ruby/pkg-plist
+++ /dev/null
@@ -1,88 +0,0 @@
-bin/krubyapplication
-bin/rbkconfig_compiler4
-bin/rbqtapi
-bin/rbrcc
-bin/rbuic4
-env/ruby-kdebindings-env.sh
-include/qtruby/marshall.h
-include/qtruby/marshall_basetypes.h
-include/qtruby/marshall_complex.h
-include/qtruby/marshall_macros.h
-include/qtruby/marshall_primitives.h
-include/qtruby/marshall_types.h
-include/qtruby/qtruby.h
-include/qtruby/smokeruby.h
-%%KROSS%%lib/kde4/krossruby.so
-lib/kde4/krubypluginfactory.so
-lib/libqtruby4shared.so
-lib/libqtruby4shared.so.2
-lib/libqtruby4shared.so.2.0.0
-%%RUBY_SITELIBDIR%%/KDE/kate.rb
-%%RUBY_SITELIBDIR%%/KDE/korundum4.rb
-%%RUBY_SITELIBDIR%%/KDE/plasma.rb
-%%RUBY_SITELIBDIR%%/Qt.rb
-%%RUBY_SITELIBDIR%%/Qt/active_item_model.rb
-%%RUBY_SITELIBDIR%%/Qt/active_table_model.rb
-%%RUBY_SITELIBDIR%%/Qt/qtruby4.rb
-%%RUBY_SITELIBDIR%%/Qt3.rb
-%%RUBY_SITELIBDIR%%/Qt4.rb
-%%RUBY_SITELIBDIR%%/akonadi/akonadi.rb
-%%RUBY_SITEARCHLIBDIR%%/akonadi.so
-%%RUBY_SITEARCHLIBDIR%%/kate.so
-%%RUBY_SITEARCHLIBDIR%%/khtml.so
-%%RUBY_SITEARCHLIBDIR%%/kio.so
-%%RUBY_SITEARCHLIBDIR%%/korundum4.so
-%%RUBY_SITEARCHLIBDIR%%/ktexteditor.so
-%%RUBY_SITEARCHLIBDIR%%/nepomuk.so
-%%RUBY_SITEARCHLIBDIR%%/okular.so
-%%RUBY_SITEARCHLIBDIR%%/phonon.so
-%%RUBY_SITEARCHLIBDIR%%/plasma_applet.so
-%%RUBY_SITEARCHLIBDIR%%/qscintilla.so
-%%RUBY_SITEARCHLIBDIR%%/qtdeclarative.so
-%%RUBY_SITEARCHLIBDIR%%/qtruby4.so
-%%RUBY_SITEARCHLIBDIR%%/qtscript.so
-%%RUBY_SITEARCHLIBDIR%%/qttest.so
-%%RUBY_SITEARCHLIBDIR%%/qtuitools.so
-%%RUBY_SITEARCHLIBDIR%%/qtwebkit.so
-%%RUBY_SITEARCHLIBDIR%%/qwt.so
-%%RUBY_SITEARCHLIBDIR%%/solid.so
-%%RUBY_SITEARCHLIBDIR%%/soprano.so
-%%RUBY_SITELIBDIR%%/khtml/khtml.rb
-%%RUBY_SITELIBDIR%%/kio/kio.rb
-%%RUBY_SITELIBDIR%%/ktexteditor/ktexteditor.rb
-%%RUBY_SITELIBDIR%%/nepomuk/nepomuk.rb
-%%RUBY_SITELIBDIR%%/okular/okular.rb
-%%RUBY_SITELIBDIR%%/phonon/phonon.rb
-%%RUBY_SITELIBDIR%%/qscintilla/qscintilla.rb
-%%RUBY_SITELIBDIR%%/qtdeclarative/qtdeclarative.rb
-%%RUBY_SITELIBDIR%%/qtscript/qtscript.rb
-%%RUBY_SITELIBDIR%%/qttest/qttest.rb
-%%RUBY_SITELIBDIR%%/qtuitools/qtuitools.rb
-%%RUBY_SITELIBDIR%%/qtwebkit/qtwebkit.rb
-%%RUBY_SITELIBDIR%%/qwt/qwt.rb
-%%RUBY_SITELIBDIR%%/solid/solid.rb
-%%RUBY_SITELIBDIR%%/soprano/soprano.rb
-@dirrm %%RUBY_SITELIBDIR%%/soprano
-@dirrm %%RUBY_SITELIBDIR%%/solid
-@dirrm %%RUBY_SITELIBDIR%%/qwt
-@dirrm %%RUBY_SITELIBDIR%%/qtwebkit
-@dirrm %%RUBY_SITELIBDIR%%/qtuitools
-@dirrm %%RUBY_SITELIBDIR%%/qttest
-@dirrm %%RUBY_SITELIBDIR%%/qtscript
-@dirrm %%RUBY_SITELIBDIR%%/qtdeclarative
-@dirrm %%RUBY_SITELIBDIR%%/qscintilla
-@dirrm %%RUBY_SITELIBDIR%%/phonon
-@dirrm %%RUBY_SITELIBDIR%%/okular
-@dirrm %%RUBY_SITELIBDIR%%/nepomuk
-@dirrm %%RUBY_SITELIBDIR%%/ktexteditor
-@dirrm %%RUBY_SITELIBDIR%%/kio
-@dirrm %%RUBY_SITELIBDIR%%/khtml
-@dirrmtry %%RUBY_SITEARCHLIBDIR%%
-@dirrm %%RUBY_SITELIBDIR%%/akonadi
-@dirrm %%RUBY_SITELIBDIR%%/Qt
-@dirrm %%RUBY_SITELIBDIR%%/KDE
-@dirrmtry %%RUBY_SITELIBDIR%%
-@dirrmtry lib/ruby/site_ruby
-@dirrmtry lib/ruby
-@dirrm include/qtruby
-@dirrmtry env