diff options
Diffstat (limited to 'x11/ruby-kde/Makefile')
-rw-r--r-- | x11/ruby-kde/Makefile | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/x11/ruby-kde/Makefile b/x11/ruby-kde/Makefile index f446fc5f457b..95112fab5616 100644 --- a/x11/ruby-kde/Makefile +++ b/x11/ruby-kde/Makefile @@ -9,29 +9,24 @@ PORTNAME= kde PORTVERSION= 0.12 CATEGORIES= x11 kde ruby MASTER_SITES= http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= kdecore.${KDELIB_SHLIBVER}:${PORTSDIR}/x11/${KDE_PORTNAME} -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \ - ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/qt.rb:${PORTSDIR}/x11-toolkits/${RUBY_QT_PORTNAME} +RUN_DEPENDS= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/qt.rb:${PORTSDIR}/x11-toolkits/${RUBY_QT_PORTNAME} -INSTALL_TARGET= site-install +USE_RUBY= yes +USE_RUBY_EXTCONF= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} CONFIGURE_ARGS= --with-x-dir=${X11BASE} \ --with-qt-include=${X11BASE}/include/X11/qt \ --with-qt-lib=${X11BASE}/lib \ --with-kde-dir=${LOCALBASE} - -WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} +INSTALL_TARGET= site-install .if defined(WITH_I18N) QTLIB= qti18n @@ -46,17 +41,15 @@ KDE_PORTNAME= kdelibs11 RUBY_QT_PORTNAME= ruby-qt .endif -do-configure: - @cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} - post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/ruby/kde - ${CP} -R ${WRKSRC}/examples/ ${PREFIX}/share/examples/ruby/kde/ - ${MKDIR} ${PREFIX}/share/doc/ruby/kde/ja - ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/ruby/kde/ - ${INSTALL_DATA} ${WRKSRC}/README.jp.txt ${PREFIX}/share/doc/ruby/kde/ja/ + ${MKDIR} ${RUBY_EXAMPLESDIR}/kde + ${CP} -R ${WRKSRC}/examples/ ${RUBY_EXAMPLESDIR}/kde/ + ${MKDIR} ${RUBY_DOCDIR}/kde/ja + ${INSTALL_DATA} ${WRKSRC}/README.txt ${RUBY_DOCDIR}/kde/ + ${INSTALL_DATA} ${WRKSRC}/README.jp.txt ${RUBY_DOCDIR}/kde/ja/ .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> |