Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 18:10:13 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334875 - head/devel/qscintilla2
Message-ID:  <201311251810.rAPIADtK011643@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Mon Nov 25 18:10:12 2013
New Revision: 334875
URL: http://svnweb.freebsd.org/changeset/ports/334875

Log:
  - Convert to USES=qamke
  - Support staging properly

Modified:
  head/devel/qscintilla2/Makefile

Modified: head/devel/qscintilla2/Makefile
==============================================================================
--- head/devel/qscintilla2/Makefile	Mon Nov 25 18:01:08 2013	(r334874)
+++ head/devel/qscintilla2/Makefile	Mon Nov 25 18:10:12 2013	(r334875)
@@ -9,35 +9,31 @@ MASTER_SITES=	${MASTER_SITES_QSCI2}
 DISTNAME=	${QSCI2_DISTNAME}
 
 MAINTAINER=	kde@FreeBSD.org
-COMMENT=	Qt4 port of the Scintilla C++ editor class
+COMMENT=	Qt 4 port of the Scintilla C++ editor class
 
-USE_QT4=	qmake_build moc_build gui xml designer
-HAS_CONFIGURE=	yes
+USES=		qmake
+USE_QT4=	moc_build gui xml designer
 USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 BUILD_WRKSRC=		${WRKSRC}/Qt4Qt5
+CONFIGURE_WRKSRC=	${BUILD_WRKSRC}
 INSTALL_WRKSRC=		${BUILD_WRKSRC}
 
-QMAKE_ARGS=	-unix PREFIX=${PREFIX}
-
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
+OPTIONS_DEFINE=	DOCS EXAMPLES NLS
+OPTIONS_SUB=	yes
+
 .include "${.CURDIR}/../py-qt4/bsd.pyqt.mk"
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MNLS}
-PLIST_SUB+=	NLS=""
-.else
-PLIST_SUB+=	NLS="@comment "
-.endif
-
 post-patch:
 	cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e \
-		's|$$$$\[QT_INSTALL_HEADERS\]|${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}|; \
-		s|$$$$\[QT_INSTALL_LIBS\]|${STAGEDIR}${PREFIX}/${QT_LIBDIR_REL}|; \
-		s|$$$$\[QT_INSTALL_TRANSLATIONS\]|${STAGEDIR}${PREFIX}/share/qt4/translations|; \
-		s|$$$$\[QT_INSTALL_DATA\]|${STAGEDIR}${PREFIX}/share/qt4|' \
+		's|$$$$\[QT_INSTALL_HEADERS\]|${PREFIX}/${QT_INCDIR_REL}|; \
+		s|$$$$\[QT_INSTALL_LIBS\]|${PREFIX}/${QT_LIBDIR_REL}|; \
+		s|$$$$\[QT_INSTALL_TRANSLATIONS\]|${PREFIX}/share/qt4/translations|; \
+		s|$$$$\[QT_INSTALL_DATA\]|${PREFIX}/share/qt4|' \
 		qscintilla.pro
 
 .if empty(PORT_OPTIONS:MNLS)
@@ -45,10 +41,6 @@ post-patch:
 		's|trans qsci|qsci|' qscintilla.pro
 .endif
 
-do-configure:
-	cd ${BUILD_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
-		${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} qscintilla.pro
-
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
 	cd ${WRKSRC} &&\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311251810.rAPIADtK011643>