[Midnightbsd-cvs] mports: mports/devel: add qtestlib

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Oct 10 14:01:22 EDT 2008


Log Message:
-----------
add qtestlib

Modified Files:
--------------
    mports/devel:
        Makefile (r1.259 -> r1.260)

Added Files:
-----------
    mports/devel/qt4-qtestlib:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/devel/qt4-qtestlib/files:
        patch-0185-fix-format-strings.diff (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/devel/Makefile,v
retrieving revision 1.259
retrieving revision 1.260
diff -L devel/Makefile -L devel/Makefile -u -r1.259 -r1.260
--- devel/Makefile
+++ devel/Makefile
@@ -284,6 +284,7 @@
     SUBDIR += qt4-porting
     SUBDIR += qt4-qdbusviewer
     SUBDIR += qt4-qt3support
+    SUBDIR += qt4-qtestlib
     SUBDIR += qt4-rcc
     SUBDIR += qt4-uic
     SUBDIR += re2c
--- /dev/null
+++ devel/qt4-qtestlib/pkg-descr
@@ -0,0 +1,12 @@
+Qt is a C++ toolkit for application development.  It lets application
+developers target all major operating systems with a single application
+source code.
+
+Qt provides a platform-independent API to all central platform functionality:
+GUI, database access, networking, file handling, etc.  The Qt library
+encapsulates the different APIs of different operating systems, providing
+the application programmer with a single, common API for all operating systems.
+The native C APIs are encapsulated in a set of well-designed, fully
+object-oriented C++ classes. 
+
+WWW: http://www.trolltech.com/products/qt/index.html
--- /dev/null
+++ devel/qt4-qtestlib/pkg-plist
@@ -0,0 +1,55 @@
+include/qt4/Qt/QtTest
+include/qt4/Qt/qsignalspy.h
+include/qt4/Qt/qtest.h
+include/qt4/Qt/qtest_global.h
+include/qt4/Qt/qtest_gui.h
+include/qt4/Qt/qtestaccessible.h
+include/qt4/Qt/qtestassert.h
+include/qt4/Qt/qtestcase.h
+include/qt4/Qt/qtestdata.h
+include/qt4/Qt/qtestevent.h
+include/qt4/Qt/qtesteventloop.h
+include/qt4/Qt/qtestkeyboard.h
+include/qt4/Qt/qtestmouse.h
+include/qt4/Qt/qtestspontaneevent.h
+include/qt4/Qt/qtestsystem.h
+include/qt4/QtTest/QEventSizeOfChecker
+include/qt4/QtTest/QSignalSpy
+include/qt4/QtTest/QSpontaneKeyEvent
+include/qt4/QtTest/QTest
+include/qt4/QtTest/QTestAccessibility
+include/qt4/QtTest/QTestAccessibilityEvent
+include/qt4/QtTest/QTestData
+include/qt4/QtTest/QTestDelayEvent
+include/qt4/QtTest/QTestEvent
+include/qt4/QtTest/QTestEventList
+include/qt4/QtTest/QTestEventLoop
+include/qt4/QtTest/QTestKeyClicksEvent
+include/qt4/QtTest/QTestKeyEvent
+include/qt4/QtTest/QTestMouseEvent
+include/qt4/QtTest/QtTest
+include/qt4/QtTest/qsignalspy.h
+include/qt4/QtTest/qtest.h
+include/qt4/QtTest/qtest_global.h
+include/qt4/QtTest/qtest_gui.h
+include/qt4/QtTest/qtestaccessible.h
+include/qt4/QtTest/qtestassert.h
+include/qt4/QtTest/qtestcase.h
+include/qt4/QtTest/qtestdata.h
+include/qt4/QtTest/qtestevent.h
+include/qt4/QtTest/qtesteventloop.h
+include/qt4/QtTest/qtestkeyboard.h
+include/qt4/QtTest/qtestmouse.h
+include/qt4/QtTest/qtestspontaneevent.h
+include/qt4/QtTest/qtestsystem.h
+lib/qt4/libQtTest.la
+lib/qt4/libQtTest.prl
+lib/qt4/libQtTest.so
+lib/qt4/libQtTest.so.4
+lib/qt4/libQtTest.so.4.4
+lib/qt4/libQtTest.so.4.4.1
+%%DEBUG%%lib/qt4/libQtTest.so.4.4.1.debug
+libdata/pkgconfig/QtTest.pc
+ at dirrm include/qt4/QtTest
+ at dirrmtry include/qt4/Qt
+ at dirrmtry include/qt4
--- /dev/null
+++ devel/qt4-qtestlib/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for:	qt40
+# Date created:				Wed Jun 29 11:49:42 CEST 2005
+# Whom:					lofi at freebsd.org
+#
+# $MidnightBSD: mports/devel/qt4-qtestlib/Makefile,v 1.1 2008/10/10 18:01:19 laffer1 Exp $
+# $FreeBSD: ports/devel/qt4-qtestlib/Makefile,v 1.13 2008/08/04 23:30:35 miwi Exp $
+#
+
+PORTNAME=	qtestlib
+PORTVERSION=	${QT4_VERSION}
+CATEGORIES?=	devel
+MASTER_SITES=	${MASTER_SITE_QT}
+PKGNAMEPREFIX=	qt4-
+DISTNAME=	qt-x11-opensource-src-${PORTVERSION}
+DIST_SUBDIR=	KDE
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Qt unit testing library
+LICENSE=	gpl2
+
+USE_QT_VER=	4
+QT_COMPONENTS=	qmake_build moc_build corelib
+QT_NONSTANDARD=	yes
+QT_DIST=	yes
+
+HAS_CONFIGURE=	yes
+USE_LDCONFIG=	${PREFIX}/lib/qt4
+
+ALL_TARGET=	first
+CONFIGURE_ENV?=	QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
+MAKE_ENV?=	QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib \
+		PATH=${WRKSRC}/bin:$$PATH ${FAKE_MAKEARGS} destdir=${FAKE_DESTDIR} \
+		INSTALL_ROOT=${FAKE_DESTDIR}
+
+DO_NOT_EXTRACT=	demos doc examples mkspecs qmake tools translations \
+		src/dbus src/gui src/network src/opengl src/phonon \
+		src/qt3support src/script src/sql src/svg \
+		src/tools src/xml src/xmlpatterns src/3rdparty/clucene \
+		src/3rdparty/kdebase src/3rdparty/kdelibs src/3rdparty/webkit
+EXTRACT_AFTER_ARGS=	| ${TAR} -xf -
+.for dne in ${DO_NOT_EXTRACT}
+EXTRACT_AFTER_ARGS+=	--exclude '${DISTNAME}/${dne}'
+.endfor
+
+WRKSRC=		${WRKDIR}/${DISTNAME}/src/testlib
+CONFIGURE_WRKSRC=${WRKSRC}/../../
+PATCH_WRKSRC=${CONFIGURE_WRKSRC}
+
+pre-configure:
+	${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
+	${MKDIR} ${WRKSRC}/../../mkspecs
+	${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
+	${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/../../bin/moc
+post-configure:
+	${REINPLACE_CMD} -e 's|${PREFIX}/lib/qt4/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
+		-e 's|.*$$(QMAKE).*||g' ${WRKSRC}/Makefile
+	${REINPLACE_CMD} -E -e 's|-L.[^[:space:]]*qt-x11-opensource.[^[:space:]]*lib||g' \
+			-E -e 's|(.*location=).*moc|\1${PREFIX}/bin/moc-qt4|g' \
+		${WRKSRC}/../../lib/pkgconfig/QtTest.pc
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/qt4-qtestlib/distinfo
@@ -0,0 +1,3 @@
+MD5 (KDE/qt-x11-opensource-src-4.4.1.tar.gz) = b09decad252b5181f300135e3122481d
+SHA256 (KDE/qt-x11-opensource-src-4.4.1.tar.gz) = 5aca7b784fc4de3db292666490ade84cfd1810f189c089c5c2810a710993f386
+SIZE (KDE/qt-x11-opensource-src-4.4.1.tar.gz) = 108774120
--- /dev/null
+++ devel/qt4-qtestlib/files/patch-0185-fix-format-strings.diff
@@ -0,0 +1,15 @@
+--- src/testlib/qtest_global.h
++++ src/testlib/qtest_global.h
+@@ -59,7 +59,11 @@ namespace QTest
+     enum SkipMode { SkipSingle = 1, SkipAll = 2 };
+     enum TestFailMode { Abort = 1, Continue = 2 };
+ 
+-    int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format, ...);
++    int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format, ...)
++#if defined(Q_CC_GNU) && !defined(__INSURE__)
++        __attribute__ ((format (printf, 3, 4)))
++#endif
++        ;
+ }
+ 
+ QT_END_HEADER
\ No newline at end of file


More information about the Midnightbsd-cvs mailing list