View | Details | Raw Unified | Return to bug 159168
Collapse All | Expand All

(-)tipp10/Makefile (-17 / +25 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	tipp10
8
PORTNAME=	tipp10
9
PORTVERSION=	2.0.1
9
PORTVERSION=	2.1.0
10
PORTREVISION=	4
11
CATEGORIES=	german
10
CATEGORIES=	german
12
MASTER_SITES=	http://www.tipp10.de/download/
11
MASTER_SITES=	http://www.tipp10.com/en/download/
13
DISTNAME=	tipp10_source_v2-0-1
12
DISTNAME=	tipp10_source_v2-1-0
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A 10 finger touch typing learning program
15
COMMENT=	A 10 finger touch typing learning program
Lines 18-42 Link Here
18
RUN_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite2.so:${PORTSDIR}/databases/qt4-sqlite-plugin \
17
RUN_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite2.so:${PORTSDIR}/databases/qt4-sqlite-plugin \
19
		${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite.so:${PORTSDIR}/databases/qt4-sqlite3-plugin
18
		${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite.so:${PORTSDIR}/databases/qt4-sqlite3-plugin
20
19
20
LICENSE=        GPLv2
21
LICENSE_FILE=   ${WRKSRC}/license_en.txt
22
21
USE_ZIP=	yes
23
USE_ZIP=	yes
22
USE_QT_VER=	4
24
USE_QT_VER=	4
23
QT_COMPONENTS=	gui sql corelib network script qtestlib \
25
QT_COMPONENTS=	gui sql corelib network script qtestlib \
24
		qmake_build rcc_build uic_build moc_build
26
		qmake_build rcc_build uic_build moc_build
25
WRKSRC=		${WRKDIR}/source
27
WRKSRC=		${WRKDIR}/tipp10_source_v2-1-0
26
28
27
do-configure:
29
pre-configure:
28
	@cd ${WRKSRC} \
30
	@cd ${WRKSRC} \
29
	&&  ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}
31
	&& for i in `grep -lR 'QCoreApplication::applicationDirPath()' *`; do ${REINPLACE_CMD} -e 's/QCoreApplication::applicationDirPath()/QString(DATADIR)/g' $$i ; done
30
32
31
do-install:
33
do-configure:
32
	${INSTALL_DATA} -d ${DATADIR}/help/img
34
	cd ${WRKSRC} \
33
	${INSTALL_DATA} -d ${DATADIR}/help/content
35
	&&  ${SETENV} ${MAKE_ENV} DATADIR="${DATADIR}" ${QMAKE} -spec ${QMAKESPEC}
34
	${INSTALL_PROGRAM} ${WRKSRC}/tipp10 ${DATADIR}
35
	${INSTALL_DATA} ${WRKSRC}/tipp10v2.template ${WRKSRC}/license.txt ${WRKSRC}/wrong.wav ${DATADIR}
36
	${INSTALL_DATA} ${WRKSRC}/help/content/* ${DATADIR}/help/content
37
	${INSTALL_DATA} ${WRKSRC}/help/img/* ${DATADIR}/help/img
38
	${INSTALL_DATA} ${WRKSRC}/help/index.html ${DATADIR}/help
39
	${INSTALL_DATA} ${WRKSRC}/help/Thumbs.db ${DATADIR}/help
40
	${LN} -s ${DATADIR}/tipp10 ${PREFIX}/bin
41
36
37
do-install:
38
	${INSTALL_PROGRAM} ${WRKSRC}/tipp10 ${PREFIX}/bin
39
	${INSTALL_DATA} -d ${DATADIR}/help/de/img
40
	${INSTALL_DATA} -d ${DATADIR}/help/de/content
41
	${INSTALL_DATA} -d ${DATADIR}/help/en/img
42
	${INSTALL_DATA} -d ${DATADIR}/help/en/content
43
	${INSTALL_DATA} ${WRKSRC}/release/tipp10v2.template ${WRKSRC}/metronome.wav ${WRKSRC}/error.wav ${DATADIR}
44
	${INSTALL_DATA} ${WRKSRC}/release/help/de/index.html ${DATADIR}/help/de
45
	${INSTALL_DATA} ${WRKSRC}/release/help/de/content/* ${DATADIR}/help/de/content
46
	${INSTALL_DATA} ${WRKSRC}/release/help/de/img/* ${DATADIR}/help/de/img
47
	${INSTALL_DATA} ${WRKSRC}/release/help/en/index.html ${DATADIR}/help/en
48
	${INSTALL_DATA} ${WRKSRC}/release/help/en/content/* ${DATADIR}/help/en/content
49
	${INSTALL_DATA} ${WRKSRC}/release/help/en/img/* ${DATADIR}/help/en/img
42
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)tipp10/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (tipp10_source_v2-0-1.zip) = 8fe9f116d4df31f3ab4a22f104526783a72f8162c59d9156ef308e46a6885983
1
SHA256 (tipp10_source_v2-1-0.zip) = 016dba017ead4a26fe8267b19f061d974b35831d65650c6944b5cfb7e4d38185
2
SIZE (tipp10_source_v2-0-1.zip) = 1441904
2
SIZE (tipp10_source_v2-1-0.zip) = 2106535
(-)tipp10/files/patch-sql-connection.h (-18 lines)
Lines 1-18 Link Here
1
--- ./sql/connection.h.orig	2007-10-02 20:22:22.000000000 +0800
2
+++ ./sql/connection.h	2008-08-24 16:25:30.000000000 +0800
3
@@ -170,6 +170,7 @@
4
 				// -> copy database to user home dir
5
 				QFile file(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate);
6
 				if (file.copy(dbPath)) {
7
+ 					QFile::setPermissions(dbPath, QFile::permissions(dbPath) | QFile::WriteUser);
8
 					dbExist = true;
9
 				} else {
10
 					ErrorMessage *errorMessage = new ErrorMessage();
11
@@ -201,6 +202,7 @@
12
 				dir.cd("tipp10");
13
 				QFile file(dbPath);
14
 				if (file.copy(dir.path() + "/" + dbNameUser)) {
15
+ 					QFile::setPermissions(dir.path() + "/" + dbNameUser, QFile::permissions(dir.path() + "/" + dbNameUser) | QFile::WriteUser);
16
 					dbPath = dir.path() + "/" + dbNameUser;
17
 				} else {
18
 					ErrorMessage *errorMessage = new ErrorMessage();
(-)tipp10/files/patch-tipp10.pro (+8 lines)
Line 0 Link Here
1
--- tipp10.pro	2011-03-12 20:22:32.000000000 +0100
2
+++ tipp10.pro	2011-07-24 14:24:03.000000000 +0200
3
@@ -88,3 +88,5 @@
4
                     sql/startsql.cpp \
5
                     games/abcrainwidget.cpp \
6
                     games/charball.cpp
7
+
8
+DEFINES += "DATADIR=\"\\\"$$(DATADIR)\\\"\""
(-)tipp10/files/patch-widget-keyboard.cpp (-12 lines)
Lines 1-12 Link Here
1
--- widget/keyboard.cpp.orig	Tue Nov 27 22:06:05 2007
2
+++ widget/keyboard.cpp	Tue Nov 27 22:07:15 2007
3
@@ -293,7 +293,8 @@
4
 		// Emit the help text of current key(s)
5
 		emit statusRefreshed(statusText);
6
     	// Call the paint event (refresh the keyboard)
7
-		repaint();
8
+		if (keyColoring || keyColoringStart)
9
+			repaint();
10
 	}
11
 }
12
 
(-)tipp10/pkg-plist (-75 / +107 lines)
Lines 1-79 Link Here
1
bin/tipp10
1
bin/tipp10
2
share/tipp10/help/Thumbs.db
2
share/tipp10/help/de/img/Thumbs.db
3
share/tipp10/help/content/about.html
3
share/tipp10/help/de/img/arrow_left.png
4
share/tipp10/help/content/behaviour.html
4
share/tipp10/help/de/img/arrow_right.png
5
share/tipp10/help/content/characteristics.html
5
share/tipp10/help/de/img/h_fingers.png
6
share/tipp10/help/content/evaluation.html
6
share/tipp10/help/de/img/h_game.png
7
share/tipp10/help/content/help.html
7
share/tipp10/help/de/img/h_home_settings.png
8
share/tipp10/help/content/helpdocs.html
8
share/tipp10/help/de/img/h_installer_mac.png
9
share/tipp10/help/content/installation.html
9
share/tipp10/help/de/img/h_installer_win.png
10
share/tipp10/help/content/introduction.html
10
share/tipp10/help/de/img/h_key_blue.png
11
share/tipp10/help/content/lessons.html
11
share/tipp10/help/de/img/h_key_green.png
12
share/tipp10/help/content/lessonsettings.html
12
share/tipp10/help/de/img/h_key_greydark.png
13
share/tipp10/help/content/license.html
13
share/tipp10/help/de/img/h_key_greylight.png
14
share/tipp10/help/content/runprogram.html
14
share/tipp10/help/de/img/h_key_red.png
15
share/tipp10/help/content/settings.html
15
share/tipp10/help/de/img/h_key_yellow.png
16
share/tipp10/help/content/support.html
16
share/tipp10/help/de/img/h_lesson_own.png
17
share/tipp10/help/content/training.html
17
share/tipp10/help/de/img/h_lesson_own_menu.png
18
share/tipp10/help/content/update.html
18
share/tipp10/help/de/img/h_lesson_tabs.png
19
share/tipp10/help/img/Thumbs.db
19
share/tipp10/help/de/img/h_program_shortcut.png
20
share/tipp10/help/img/arrow_left.png
20
share/tipp10/help/de/img/h_results_chars.png
21
share/tipp10/help/img/arrow_right.png
21
share/tipp10/help/de/img/h_results_comparison.png
22
share/tipp10/help/img/h_comparison_table.png
22
share/tipp10/help/de/img/h_results_fingers.png
23
share/tipp10/help/img/h_desktop_mac.png
23
share/tipp10/help/de/img/h_results_lessons.png
24
share/tipp10/help/img/h_evaluation_attention.png
24
share/tipp10/help/de/img/h_results_progress.png
25
share/tipp10/help/img/h_evaluation_chars.png
25
share/tipp10/help/de/img/h_results_report.png
26
share/tipp10/help/img/h_evaluation_formula_error.png
26
share/tipp10/help/de/img/h_settings_database.png
27
share/tipp10/help/img/h_evaluation_formula_grade.png
27
share/tipp10/help/de/img/h_settings_language.png
28
share/tipp10/help/img/h_evaluation_lessons.png
28
share/tipp10/help/de/img/h_settings_other.png
29
share/tipp10/help/img/h_evaluation_lessons_filter.png
29
share/tipp10/help/de/img/h_settings_training.png
30
share/tipp10/help/img/h_evaluation_progress.png
30
share/tipp10/help/de/img/h_terminal_mac.png
31
share/tipp10/help/img/h_evaluation_progress_sort.png
31
share/tipp10/help/de/img/h_training_lesson.png
32
share/tipp10/help/img/h_evaluation_tabs.png
32
share/tipp10/help/de/img/h_training_numpad.png
33
share/tipp10/help/img/h_fingers.png
33
share/tipp10/help/de/img/logo.png
34
share/tipp10/help/img/h_installer_exit.png
34
share/tipp10/help/de/img/tt_logo.png
35
share/tipp10/help/img/h_installer_language.png
35
share/tipp10/help/de/content/about.html
36
share/tipp10/help/img/h_installer_license.png
36
share/tipp10/help/de/content/behaviour.html
37
share/tipp10/help/img/h_introduction.png
37
share/tipp10/help/de/content/donate.html
38
share/tipp10/help/img/h_key_blue.png
38
share/tipp10/help/de/content/features.html
39
share/tipp10/help/img/h_key_green.png
39
share/tipp10/help/de/content/game.html
40
share/tipp10/help/img/h_key_greydark.png
40
share/tipp10/help/de/content/installation.html
41
share/tipp10/help/img/h_key_greylight.png
41
share/tipp10/help/de/content/introduction.html
42
share/tipp10/help/img/h_key_red.png
42
share/tipp10/help/de/content/lessons.html
43
share/tipp10/help/img/h_key_yellow.png
43
share/tipp10/help/de/content/license.html
44
share/tipp10/help/img/h_lesson_open_theme.png
44
share/tipp10/help/de/content/parameters.html
45
share/tipp10/help/img/h_lesson_own_menu.png
45
share/tipp10/help/de/content/results.html
46
share/tipp10/help/img/h_lesson_own_menu_edit.png
46
share/tipp10/help/de/content/settings.html
47
share/tipp10/help/img/h_lesson_own_new.png
47
share/tipp10/help/de/content/start.html
48
share/tipp10/help/img/h_lesson_own_ws.png
48
share/tipp10/help/de/content/style.css
49
share/tipp10/help/img/h_lesson_tabs.png
49
share/tipp10/help/de/content/support.html
50
share/tipp10/help/img/h_lesson_training_done.png
50
share/tipp10/help/de/content/training.html
51
share/tipp10/help/img/h_main_duration.png
51
share/tipp10/help/de/index.html
52
share/tipp10/help/img/h_main_empty.png
52
share/tipp10/help/en/img/arrow_left.png
53
share/tipp10/help/img/h_main_linux_cut.png
53
share/tipp10/help/en/img/arrow_right.png
54
share/tipp10/help/img/h_main_settings.png
54
share/tipp10/help/en/img/h_fingers.png
55
share/tipp10/help/img/h_program_shortcut.png
55
share/tipp10/help/en/img/h_game.png
56
share/tipp10/help/img/h_settings_database.png
56
share/tipp10/help/en/img/h_home_settings.png
57
share/tipp10/help/img/h_settings_font.png
57
share/tipp10/help/en/img/h_installer_mac.png
58
share/tipp10/help/img/h_settings_mac.png
58
share/tipp10/help/en/img/h_installer_win.png
59
share/tipp10/help/img/h_settings_other.png
59
share/tipp10/help/en/img/h_key_blue.png
60
share/tipp10/help/img/h_settings_training.png
60
share/tipp10/help/en/img/h_key_green.png
61
share/tipp10/help/img/h_terminal_mac.png
61
share/tipp10/help/en/img/h_key_greydark.png
62
share/tipp10/help/img/h_training_first_char.png
62
share/tipp10/help/en/img/h_key_greylight.png
63
share/tipp10/help/img/h_training_progress.png
63
share/tipp10/help/en/img/h_key_red.png
64
share/tipp10/help/img/h_training_start.png
64
share/tipp10/help/en/img/h_key_yellow.png
65
share/tipp10/help/img/h_training_without_keyboard.png
65
share/tipp10/help/en/img/h_lesson_own.png
66
share/tipp10/help/img/h_update.png
66
share/tipp10/help/en/img/h_lesson_own_menu.png
67
share/tipp10/help/img/h_update_mac.png
67
share/tipp10/help/en/img/h_lesson_tabs.png
68
share/tipp10/help/img/h_update_proxy.png
68
share/tipp10/help/en/img/h_program_shortcut.png
69
share/tipp10/help/img/logo.png
69
share/tipp10/help/en/img/h_results_chars.png
70
share/tipp10/help/img/tt_logo.png
70
share/tipp10/help/en/img/h_results_comparison.png
71
share/tipp10/help/index.html
71
share/tipp10/help/en/img/h_results_fingers.png
72
share/tipp10/license.txt
72
share/tipp10/help/en/img/h_results_lessons.png
73
share/tipp10/tipp10
73
share/tipp10/help/en/img/h_results_progress.png
74
share/tipp10/help/en/img/h_results_report.png
75
share/tipp10/help/en/img/h_settings_database.png
76
share/tipp10/help/en/img/h_settings_language.png
77
share/tipp10/help/en/img/h_settings_other.png
78
share/tipp10/help/en/img/h_settings_training.png
79
share/tipp10/help/en/img/h_terminal_mac.png
80
share/tipp10/help/en/img/h_training_lesson.png
81
share/tipp10/help/en/img/h_training_numpad.png
82
share/tipp10/help/en/img/logo.png
83
share/tipp10/help/en/img/tt_logo.png
84
share/tipp10/help/en/content/about.html
85
share/tipp10/help/en/content/behaviour.html
86
share/tipp10/help/en/content/donate.html
87
share/tipp10/help/en/content/features.html
88
share/tipp10/help/en/content/game.html
89
share/tipp10/help/en/content/installation.html
90
share/tipp10/help/en/content/introduction.html
91
share/tipp10/help/en/content/lessons.html
92
share/tipp10/help/en/content/license.html
93
share/tipp10/help/en/content/parameters.html
94
share/tipp10/help/en/content/results.html
95
share/tipp10/help/en/content/settings.html
96
share/tipp10/help/en/content/start.html
97
share/tipp10/help/en/content/style.css
98
share/tipp10/help/en/content/support.html
99
share/tipp10/help/en/content/training.html
100
share/tipp10/help/en/index.html
74
share/tipp10/tipp10v2.template
101
share/tipp10/tipp10v2.template
75
share/tipp10/wrong.wav
102
share/tipp10/metronome.wav
76
@dirrm share/tipp10/help/img
103
share/tipp10/error.wav
77
@dirrm share/tipp10/help/content
104
@dirrm share/tipp10/help/de/img
105
@dirrm share/tipp10/help/de/content
106
@dirrm share/tipp10/help/de
107
@dirrm share/tipp10/help/en/img
108
@dirrm share/tipp10/help/en/content
109
@dirrm share/tipp10/help/en
78
@dirrm share/tipp10/help
110
@dirrm share/tipp10/help
79
@dirrm share/tipp10
111
@dirrm share/tipp10

Return to bug 159168