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

Collapse All | Expand All

(-)py-openlp/Makefile (-25 / +29 lines)
Lines 1-10 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	OpenLP
3
PORTNAME=	OpenLP
4
PORTVERSION=	2.1.6
4
PORTVERSION=	2.4.6
5
PORTREVISION=	2
6
CATEGORIES=	multimedia python
5
CATEGORIES=	multimedia python
7
MASTER_SITES=	SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
6
MASTER_SITES=	https://get.openlp.org/${PORTVERSION}/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
Lines 11-57 Link Here
11
COMMENT=	Open Source Lyrics Projection
10
COMMENT=	Open Source Lyrics Projection
12
11
13
LICENSE=	GPLv2
12
LICENSE=	GPLv2
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sip>=0:devel/py-sip@${PY_FLAVOR} \
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}alembic>=0:databases/py-alembic@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}sqlalchemy12>=0:databases/py-sqlalchemy12@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=1.0.13:databases/py-sqlalchemy10@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup32>0:www/py-beautifulsoup32@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=1.0.13:databases/py-sqlalchemy10@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}enchant>0:textproc/py-enchant@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}enchant>0:textproc/py-enchant@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.6.1:databases/py-sqlalchemy-migrate@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
26
		unoconv:textproc/unoconv
22
		unoconv:textproc/unoconv
27
23
28
USES=		desktop-file-utils pyqt:4 python:2.7 qt:4
24
USES=		desktop-file-utils pyqt:5 python:3.4+ qt:5
29
USE_PYQT=	core gui \
25
USE_PYQT=	core_run gui_run multimedia_run network_run opengl_run printsupport_run \
30
		network_run opengl_run phonon_run svg_run test_run webkit_run
26
	       	sip_run svg_run webkit_run webkitwidgets_run widgets_run
31
USE_PYTHON=	distutils autoplist
27
USE_PYTHON=	distutils autoplist
28
USE_QT=		linguist_build
32
USE_GSTREAMER=	good bad ugly
29
USE_GSTREAMER=	good bad ugly
33
USE_QT=		linguist phonon-gst
30
34
QT_LRELEASE=	${LRELEASE}
31
INSTALLS_ICONS=	yes
35
NO_ARCH=	yes
32
NO_ARCH=	yes
36
33
37
pre-build:
34
ICON_SIZES=	16x16 32x32 48x48 64x64 128x128 256x256
38
	@${RM} ${WRKSRC}/resources/__init__.py
35
36
post-patch:
37
	@${REINPLACE_CMD} -e 's|openlp\.py|OpenLP|' ${WRKSRC}/setup.py
38
	@${REINPLACE_CMD} -Ee 's|^(Exec=)openlp|\1OpenLP|' ${WRKSRC}/resources/openlp.desktop
39
	@(cd ${WRKSRC} && ${MV} openlp.py OpenLP)
40
41
post-build:
42
	@${RM} -r ${WRKSRC}/build/lib/tests
39
	@${MKDIR} ${WRKSRC}/resources/i18n/qm
43
	@${MKDIR} ${WRKSRC}/resources/i18n/qm
40
	@set -e; \
44
	@set -e; \
41
	for TSFILE in ${WRKSRC}/resources/i18n/*.ts; do \
45
	for TSFILE in ${WRKSRC}/resources/i18n/*.ts; do \
42
		${QT_LRELEASE} $$TSFILE -qm ${WRKSRC}/resources/i18n/qm/`basename $$TSFILE .ts`.qm; \
46
		${LRELEASE} $$TSFILE -qm ${WRKSRC}/resources/i18n/qm/`basename $$TSFILE .ts`.qm; \
43
	done
47
	done
44
48
45
post-install:
49
post-install:
46
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/openlp/i18n
50
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/openlp/i18n
47
	${INSTALL_DATA} ${WRKSRC}/resources/i18n/qm/*.qm ${STAGEDIR}${PREFIX}/share/openlp/i18n
51
	${INSTALL_DATA} ${WRKSRC}/resources/i18n/qm/*.qm ${STAGEDIR}${PREFIX}/share/openlp/i18n
48
	${LN} -sf openlp.pyw ${STAGEDIR}${PREFIX}/bin/openlp
49
	${INSTALL_DATA} ${WRKSRC}/resources/openlp.desktop ${STAGEDIR}${PREFIX}/share/applications
52
	${INSTALL_DATA} ${WRKSRC}/resources/openlp.desktop ${STAGEDIR}${PREFIX}/share/applications
50
	set -e; \
53
51
	for SIZE in 16x16 32x32 48x48 64x64 128x128 256x256; do \
54
.for s in ${ICON_SIZES}
52
		${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/$$SIZE/apps && \
55
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
53
		${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo-$$SIZE.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/$$SIZE/apps/openlp.png; \
56
	${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo-${s}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/openlp.png
54
	done
57
.endfor
58
55
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
59
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
56
	${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/openlp.svg
60
	${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/openlp.svg
57
61
(-)py-openlp/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (OpenLP-2.1.6.tar.gz) = 15e8e6cbf2cbf1348cfceb74520b0d3e90e52d089eab92895779dc1df644bbce
1
TIMESTAMP = 1533634074
2
SIZE (OpenLP-2.1.6.tar.gz) = 7199150
2
SHA256 (OpenLP-2.4.6.tar.gz) = f63dcf5f1f8a8199bf55e806b44066ad920d26c9cf67ae432eb8cdd1e761fc30
3
SIZE (OpenLP-2.4.6.tar.gz) = 7303683
(-)py-openlp/pkg-descr (-5 / +4 lines)
Lines 1-6 Link Here
1
OpenLP is free church presentation software, or lyrics projection
1
OpenLP is a free church presentation software, or lyrics projection software,
2
software, used to display slides of songs, Bible verses, videos,
2
used to display slides of songs, Bible verses, videos, images, and even
3
images, and even presentations for church worship using a computer
3
presentations for church worship using a computer and a data projector.
4
and a data projector.
5
4
6
WWW: http://openlp.org
5
WWW: https://openlp.org
(-)py-openlp/pkg-plist (-1 lines)
Lines 1-4 Link Here
1
bin/openlp
2
share/applications/openlp.desktop
1
share/applications/openlp.desktop
3
share/icons/hicolor/128x128/apps/openlp.png
2
share/icons/hicolor/128x128/apps/openlp.png
4
share/icons/hicolor/16x16/apps/openlp.png
3
share/icons/hicolor/16x16/apps/openlp.png

Return to bug 211665