View | Details | Raw Unified | Return to bug 224319 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-26 / +37 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	fet
4
PORTNAME=	fet
5
DISTVERSION=	5.34.0
5
DISTVERSION=	5.35.3
6
CATEGORIES=	deskutils kde
6
CATEGORIES=	deskutils kde
7
MASTER_SITES=	http://lalescu.ro/liviu/fet/download/ \
7
MASTER_SITES=	http://lalescu.ro/liviu/fet/download/ \
8
		http://lalescu.ro/liviu/fet/download/old/ \
8
		http://lalescu.ro/liviu/fet/download/old/ \
Lines 15-67 Link Here
15
LICENSE=	GPLv3+
15
LICENSE=	GPLv3+
16
LICENSE_FILE=	${WRKSRC}/COPYING
16
LICENSE_FILE=	${WRKSRC}/COPYING
17
17
18
USES=		qmake tar:bzip2
18
USES=		tar:bzip2
19
19
20
PORTEXAMPLES=	*
20
PORTEXAMPLES=	*
21
21
22
DESKTOP_ENTRIES="FET" \
22
OPTIONS_DEFINE=	EXAMPLES NLS
23
		"Free timetable software" \
24
		"" \
25
		"fet" \
26
		"Education;Qt;" \
27
		true
28
29
OPTIONS_DEFINE=	EXAMPLES NLS ONLYCL
30
OPTIONS_SINGLE=	QTVER
23
OPTIONS_SINGLE=	QTVER
31
OPTIONS_SINGLE_QTVER=	QT4 QT5
24
OPTIONS_SINGLE_QTVER=	QT4 QT5
32
OPTIONS_DEFAULT=	QT4
25
OPTIONS_DEFAULT=	QT4
33
ONLYCL_DESC=	Build only command line version (without Qt GUI)
26
ONLYCL_DESC=	Build only command line version (without Qt GUI)
34
27
28
FLAVORS=	gui cli
29
cli_PKGNAMESUFFIX=	-cli
30
35
OPTIONS_SUB=	yes
31
OPTIONS_SUB=	yes
36
32
37
QT4_USE=	QT4=corelib,moc_build,rcc_build,uic_build,xml
38
QT5_USE=	QT5=buildtools_build,core,xml GL=gl
39
40
.include <bsd.port.options.mk>
33
.include <bsd.port.options.mk>
41
34
35
USES+=	qmake
36
.	if ${FLAVOR:U} == cli
37
PLIST_SUB+=	CLI="" EXAMPLES="" GUI="@comment "
42
INSTALL_TARGET=	${WRKSRC}/fet-cl
38
INSTALL_TARGET=	${WRKSRC}/fet-cl
43
.if ${PORT_OPTIONS:MONLYCL}
44
QMAKE_SOURCE_PATH=	${WRKSRC}/src/src-cl.pro
39
QMAKE_SOURCE_PATH=	${WRKSRC}/src/src-cl.pro
45
.else
40
.		if ${PORT_OPTIONS:MQT4}
46
INSTALL_TARGET+=	${WRKSRC}/fet
41
USE_QT4+=corelib moc_build rcc_build uic_build xml
47
.if ${PORT_OPTIONS:MQT4}
42
.		else # not 'QT4'
48
USE_QT4+=gui network
43
USE_QT5+=	buildtools_build core xml
49
.else
44
USE_GL=	gl
45
.		endif # QT-version in 'cli' flavor
46
.	else # not 'cli'
47
DESKTOP_ENTRIES="FET" \
48
		"Free timetable software" \
49
		"" \
50
		"fet" \
51
		"Education;Qt;" \
52
		true
53
PLIST_SUB+=	CLI="@comment " EXAMPLES="" GUI=""
54
INSTALL_TARGET=	${WRKSRC}/fet
55
.		if ${PORT_OPTIONS:MQT4}
56
USE_QT4+=gui network corelib moc_build rcc_build uic_build xml
57
.		else # not 'QT4'
58
USE_QT5+=	buildtools_build core xml
59
USE_GL=	gl
50
USE_QT5+=gui network printsupport widgets
60
USE_QT5+=gui network printsupport widgets
51
.endif
61
.		endif # QT-version in 'gui' flavor
52
.endif
62
. endif # cli or gui flavor
53
63
54
post-patch:
55
	@${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \
56
		${WRKSRC}/src/interface/fet.cpp
57
58
do-install:
64
do-install:
59
	${INSTALL_PROGRAM} ${INSTALL_TARGET} ${STAGEDIR}${PREFIX}/bin
65
	${INSTALL_PROGRAM} ${INSTALL_TARGET} ${STAGEDIR}${PREFIX}/bin
60
	${INSTALL_PROGRAM} ${WRKSRC}/fet-cl ${STAGEDIR}${PREFIX}/bin
61
	${INSTALL_MAN} ${WRKSRC}/man/fet*.gz ${STAGEDIR}${MANPREFIX}/man/man1
66
	${INSTALL_MAN} ${WRKSRC}/man/fet*.gz ${STAGEDIR}${MANPREFIX}/man/man1
67
.if ${FLAVOR:U} == gui
62
	@${MKDIR} ${STAGEDIR}${DATADIR}/translations
68
	@${MKDIR} ${STAGEDIR}${DATADIR}/translations
63
	cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}/translations
69
	cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}/translations
70
.endif
64
71
72
post-patch:
73
	@${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \
74
		${WRKSRC}/src/interface/fet.cpp
75
65
do-install-EXAMPLES-on:
76
do-install-EXAMPLES-on:
66
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
77
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
67
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
78
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1509887144
1
TIMESTAMP = 1520068026
2
SHA256 (fet-5.34.0.tar.bz2) = a049cd89d7a6ed73e67758d1a01ee740fdaa245943be2911c0a9002dda27a836
2
SHA256 (fet-5.35.3.tar.bz2) = 1a9daf3741a975196a41c167eee0aad4509468ca003434f1cfab337024ad6ccc
3
SIZE (fet-5.34.0.tar.bz2) = 11200465
3
SIZE (fet-5.35.3.tar.bz2) = 11772170
(-)pkg-plist (-39 / +40 lines)
Lines 1-39 Link Here
1
%%NO_ONLYCL%%bin/fet
1
%%GUI%%bin/fet
2
bin/fet-cl
2
%%CLI%%bin/fet-cl
3
man/man1/fet.1.gz
3
%%GUI%%man/man1/fet.1.gz
4
man/man1/fet-cl.1.gz
4
%%CLI%%man/man1/fet-cl.1.gz
5
%%NLS%%%%DATADIR%%/translations/fet_ar.qm
5
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ar.qm
6
%%NLS%%%%DATADIR%%/translations/fet_ca.qm
6
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ca.qm
7
%%NLS%%%%DATADIR%%/translations/fet_cs.qm
7
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_cs.qm
8
%%NLS%%%%DATADIR%%/translations/fet_da.qm
8
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_da.qm
9
%%NLS%%%%DATADIR%%/translations/fet_de.qm
9
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_de.qm
10
%%NLS%%%%DATADIR%%/translations/fet_el.qm
10
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_el.qm
11
%%NLS%%%%DATADIR%%/translations/fet_en_GB.qm
11
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_en_GB.qm
12
%%NLS%%%%DATADIR%%/translations/fet_es.qm
12
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_es.qm
13
%%NLS%%%%DATADIR%%/translations/fet_eu.qm
13
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_eu.qm
14
%%NLS%%%%DATADIR%%/translations/fet_fa.qm
14
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_fa.qm
15
%%NLS%%%%DATADIR%%/translations/fet_fr.qm
15
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_fr.qm
16
%%NLS%%%%DATADIR%%/translations/fet_gl.qm
16
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_gl.qm
17
%%NLS%%%%DATADIR%%/translations/fet_he.qm
17
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_he.qm
18
%%NLS%%%%DATADIR%%/translations/fet_hu.qm
18
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_hu.qm
19
%%NLS%%%%DATADIR%%/translations/fet_id.qm
19
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_id.qm
20
%%NLS%%%%DATADIR%%/translations/fet_it.qm
20
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_it.qm
21
%%NLS%%%%DATADIR%%/translations/fet_lt.qm
21
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ja.qm
22
%%NLS%%%%DATADIR%%/translations/fet_mk.qm
22
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_lt.qm
23
%%NLS%%%%DATADIR%%/translations/fet_ms.qm
23
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_mk.qm
24
%%NLS%%%%DATADIR%%/translations/fet_nl.qm
24
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ms.qm
25
%%NLS%%%%DATADIR%%/translations/fet_pl.qm
25
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_nl.qm
26
%%NLS%%%%DATADIR%%/translations/fet_pt_BR.qm
26
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_pl.qm
27
%%NLS%%%%DATADIR%%/translations/fet_ro.qm
27
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_pt_BR.qm
28
%%NLS%%%%DATADIR%%/translations/fet_ru.qm
28
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ro.qm
29
%%NLS%%%%DATADIR%%/translations/fet_si.qm
29
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_ru.qm
30
%%NLS%%%%DATADIR%%/translations/fet_sk.qm
30
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_si.qm
31
%%NLS%%%%DATADIR%%/translations/fet_sr.qm
31
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_sk.qm
32
%%NLS%%%%DATADIR%%/translations/fet_sq.qm
32
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_sr.qm
33
%%NLS%%%%DATADIR%%/translations/fet_tr.qm
33
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_sq.qm
34
%%NLS%%%%DATADIR%%/translations/fet_uk.qm
34
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_tr.qm
35
%%NLS%%%%DATADIR%%/translations/fet_untranslated.qm
35
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_uk.qm
36
%%NLS%%%%DATADIR%%/translations/fet_uz.qm
36
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_untranslated.qm
37
%%NLS%%%%DATADIR%%/translations/fet_vi.qm
37
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_uz.qm
38
%%NLS%%%%DATADIR%%/translations/fet_zh_CN.qm
38
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_vi.qm
39
%%NLS%%%%DATADIR%%/translations/fet_zh_TW.qm
39
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_zh_CN.qm
40
%%NLS%%%%GUI%%%%DATADIR%%/translations/fet_zh_TW.qm

Return to bug 224319