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

Collapse All | Expand All

(-)audio/py-karaoke/Makefile (-11 / +46 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	karaoke
4
PORTNAME=	karaoke
5
PORTVERSION=	0.7.5
5
PORTVERSION=	0.7.5
6
PORTREVISION=	8
6
PORTREVISION=	9
7
CATEGORIES=	audio python
7
CATEGORIES=	audio python
8
MASTER_SITES=	SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
8
MASTER_SITES=	SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 14-41 Link Here
14
14
15
LICENSE=	LGPL21 # (or later)
15
LICENSE=	LGPL21 # (or later)
16
16
17
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game
17
BUILD_DEPENDS=	${PYGAME}
18
LIB_DEPENDS=	libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
18
LIB_DEPENDS=	libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
19
		libaa.so:${PORTSDIR}/graphics/aalib
19
		libaa.so:${PORTSDIR}/graphics/aalib
20
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game \
20
RUN_DEPENDS=	dejavu>0:${PORTSDIR}/x11-fonts/dejavu \
21
		dejavu>0:${PORTSDIR}/x11-fonts/dejavu \
21
		${PYGAME} \
22
		${PYNUMPY}
22
		${PYNUMPY}
23
23
24
USES=		desktop-file-utils iconv python:2 zip
24
USES=		compiler:c++11-lib desktop-file-utils iconv python:2 zip
25
USE_SDL=	sdl
26
USE_XORG=	x11 xau xcb xdmcp
25
USE_XORG=	x11 xau xcb xdmcp
26
USE_SDL=	sdl
27
USE_PYTHON=	distutils autoplist
27
USE_WX=		3.0+
28
USE_WX=		3.0+
28
WX_COMPS=	python:lib
29
WX_COMPS=	python:lib
29
30
30
USE_PYTHON=	distutils autoplist
31
32
DATADIR=	${PREFIX}/share/py${PORTNAME}
31
DATADIR=	${PREFIX}/share/py${PORTNAME}
33
32
34
OPTIONS_DEFINE=	MUTAGEN
33
PLIST_FILES=	${BIN_SCRIPTS:S,^,bin/,} \
34
		${DATA_FONTS:S,^,%%DATADIR%%/fonts/,}
35
36
OPTIONS_DEFINE=		MUTAGEN
35
37
36
MUTAGEN_DESC=		Mutagen support
38
MUTAGEN_DESC=		Mutagen support
37
MUTAGEN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
39
MUTAGEN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
38
40
41
BIN_SCRIPTS=	cdg2mpg pycdg pykar pykaraoke pykaraoke_mini pympg
42
DATA_FONTS=	DejaVuSans.ttf DejaVuSansCondensed.ttf \
43
		DejaVuSansCondensed-Bold.ttf
44
45
.include <bsd.port.pre.mk>
46
47
.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == gcc
48
MAKE_ENV+=	LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH"
49
.endif
50
39
post-patch:
51
post-patch:
40
	@${REINPLACE_CMD} -e \
52
	@${REINPLACE_CMD} -e \
41
		's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.cfg
53
		's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.cfg
Lines 49-60 Link Here
49
		 /^Categories=/s|Application;||' ${WRKSRC}/install/${i}
61
		 /^Categories=/s|Application;||' ${WRKSRC}/install/${i}
50
.endfor
62
.endfor
51
63
64
post-build:
65
	@${MKDIR} ${WRKDIR}/wrappers
66
.for i in ${BIN_SCRIPTS}
67
	@${ECHO_CMD} -n \
68
		>> ${WRKDIR}/wrappers/${i}
69
	@${ECHO_CMD} '#!/bin/sh' \
70
		>> ${WRKDIR}/wrappers/${i}
71
.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == gcc
72
	@${ECHO_CMD} 'LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH"' \
73
		>> ${WRKDIR}/wrappers/${i}
74
	@${ECHO_CMD} 'export LD_LIBRARY_PATH' \
75
		>> ${WRKDIR}/wrappers/${i}
76
	@${ECHO_CMD} \
77
		>> ${WRKDIR}/wrappers/${i}
78
.endif
79
	@${ECHO_CMD} 'exec ${PREFIX}/libexec/${i} "$$@"' \
80
		>> ${WRKDIR}/wrappers/${i}
81
.endfor
82
52
post-install:
83
post-install:
84
.for i in ${BIN_SCRIPTS}
85
	(cd ${WRKDIR}/wrappers && ${INSTALL_SCRIPT} ${i} \
86
		${STAGEDIR}${PREFIX}/bin)
87
.endfor
53
	@${MKDIR} ${STAGEDIR}${DATADIR}/fonts
88
	@${MKDIR} ${STAGEDIR}${DATADIR}/fonts
54
.for i in DejaVuSans.ttf DejaVuSansCondensed-Bold.ttf DejaVuSansCondensed.ttf
89
.for i in ${DATA_FONTS}
55
	@${LN} -sf ${LOCALBASE}/share/fonts/dejavu/${i} \
90
	@${LN} -sf ${LOCALBASE}/share/fonts/dejavu/${i} \
56
		${STAGEDIR}${DATADIR}/fonts
91
		${STAGEDIR}${DATADIR}/fonts
57
.endfor
92
.endfor
58
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pycdgAux.so
93
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pycdgAux.so
59
94
60
.include <bsd.port.mk>
95
.include <bsd.port.post.mk>
(-)audio/py-karaoke/files/patch-setup.py (-1 / +7 lines)
Lines 1-6 Link Here
1
--- setup.py.orig	2011-06-15 03:59:31.000000000 +0900
1
--- setup.py.orig	2011-06-15 03:59:31.000000000 +0900
2
+++ setup.py	2012-09-28 07:03:50.000000000 +0900
2
+++ setup.py	2012-09-28 07:03:50.000000000 +0900
3
@@ -61,12 +61,7 @@
3
@@ -61,17 +61,12 @@
4
       'icons/microphone.ico',
4
       'icons/microphone.ico',
5
       'icons/microphone.png',
5
       'icons/microphone.png',
6
       'icons/pykaraoke.xpm',
6
       'icons/pykaraoke.xpm',
Lines 14-16 Link Here
14
 
14
 
15
 # These data files only make sense on Unix-like systems.
15
 # These data files only make sense on Unix-like systems.
16
 if env != ENV_WINDOWS:
16
 if env != ENV_WINDOWS:
17
     data_files += [
18
-        ('bin', ['install/pykaraoke',
19
+        ('libexec', ['install/pykaraoke',
20
                  'install/pykaraoke_mini',
21
                  'install/pycdg',
22
                  'install/pykar',
(-)audio/py-karaoke/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
%%DATADIR%%/fonts/DejaVuSans.ttf
2
%%DATADIR%%/fonts/DejaVuSansCondensed-Bold.ttf
3
%%DATADIR%%/fonts/DejaVuSansCondensed.ttf

Return to bug 199216