mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
a5de80209a
The last upstream release supporting KDE4 was 10 months ago, https://www.kde.org/announcements/announce-applications-17.08.3.php , and the kde@ team for FreeBSD has supported modern KDE (i.e. KDE Frameworks, Plasma 5 and KDE Applications) for 4 months. Give a 4 month deprecation period to allow users to switch over. Not marked deprecated: games/knights-kde4, that's not ours.
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= qtruby
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel kde kde-kde4 ruby
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Ruby bindings for Qt
|
|
|
|
DEPRECATED= KDE4 is EOL upstream
|
|
EXPIRATION_DATE= 2018-12-31
|
|
|
|
BROKEN_powerpc64= fails to compile: ruby.h:1381: wrong number of arguments specified for '__deprecated__' attribute
|
|
|
|
LIB_DEPENDS= libqwt.so:x11-toolkits/qwt5 \
|
|
libqscintilla2_qt4.so:devel/qscintilla2
|
|
|
|
USES= cmake:outsource kde:4 qt:4 tar:xz
|
|
USE_KDE= smokeqt
|
|
USE_QT= corelib dbus declarative gui network phonon script webkit xml \
|
|
qmake_build moc_build uic_build rcc_build
|
|
USE_RUBY= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
SUB_FILES= ruby-kdebindings-env.sh pkg-message
|
|
SUB_LIST+= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} \
|
|
RUBY_SITEARCHLIBDIR=${RUBY_SITEARCHLIBDIR}
|
|
|
|
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}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|QWT_FOUND|Qwt5_FOUND|g' \
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
${REINPLACE_CMD} -e 's|share/qtruby4/cmake|lib/cmake/qtruby4|g' \
|
|
${WRKSRC}/cmake/CMakeLists.txt \
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/env
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ruby-kdebindings-env.sh ${STAGEDIR}${PREFIX}/env
|
|
|
|
.include <bsd.port.mk>
|