svn commit: r481328 - in head/german/tipp10: . files

Tobias Kortkamp tobik at FreeBSD.org
Sat Oct 6 08:35:33 UTC 2018


Author: tobik
Date: Sat Oct  6 08:35:32 2018
New Revision: 481328
URL: https://svnweb.freebsd.org/changeset/ports/481328

Log:
  german/tipp10: Fix runtime, cleanup dependencies
  
  - Drop unnecessary sqlite2 plugin run, and unused qtestlib and
    script dependencies
  - Make sure DATADIR is actually passed through to the build.
    Currently qmake passes it as "" to the compiler which leads to
    tipp10 not finding its data files on first startup.

Deleted:
  head/german/tipp10/files/patch-tipp10.pro
Modified:
  head/german/tipp10/Makefile

Modified: head/german/tipp10/Makefile
==============================================================================
--- head/german/tipp10/Makefile	Sat Oct  6 08:19:19 2018	(r481327)
+++ head/german/tipp10/Makefile	Sat Oct  6 08:35:32 2018	(r481328)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	tipp10
-PORTVERSION=	2.1.0
-PORTREVISION=	2
+DISTVERSION=	2-1-0
+PORTREVISION=	3
 CATEGORIES=	german
 MASTER_SITES=	http://www.tipp10.com/en/download/
-DISTNAME=	tipp10_source_v2-1-0
+DISTNAME=	tipp10_source_v${DISTVERSION}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	10-finger touch typing learning program
@@ -16,15 +16,13 @@ LICENSE_FILE=	${WRKSRC}/license_en.txt
 
 USES=		qmake dos2unix qt:4 zip
 DOS2UNIX_GLOB=	*.pro *.cpp
-USE_QT=		gui sql corelib network script qtestlib \
-		rcc_build uic_build moc_build \
-		sql-sqlite2_run sql-sqlite3_run
-QMAKE_ARGS+=	DATADIR="${DATADIR}"
-WRKSRC=		${WRKDIR}/tipp10_source_v2-1-0
+USE_QT=		corelib gui network sql rcc_build uic_build moc_build \
+		sql-sqlite3_run
 
 pre-configure:
-	@cd ${WRKSRC} \
-	&& for i in `grep -lR 'QCoreApplication::applicationDirPath()' *`; do ${REINPLACE_CMD} -e 's/QCoreApplication::applicationDirPath()/QString(DATADIR)/g' $$i ; done
+	cd ${WRKSRC} \
+	&& for i in `grep -lR 'QCoreApplication::applicationDirPath()' *`; do \
+		${REINPLACE_CMD} -e 's,QCoreApplication::applicationDirPath(),QString("${DATADIR}"),g' $$i ; done
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/tipp10 ${STAGEDIR}${PREFIX}/bin


More information about the svn-ports-all mailing list