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

(-)emulators/wine-doors/Makefile (-19 / +48 lines)
Lines 2-40 Link Here
2
# $FreeBSD: head/emulators/wine-doors/Makefile 360256 2014-07-02 20:22:55Z antoine $
2
# $FreeBSD: head/emulators/wine-doors/Makefile 360256 2014-07-02 20:22:55Z antoine $
3
3
4
PORTNAME=	wine-doors
4
PORTNAME=	wine-doors
5
PORTVERSION=	0.1.2
5
PORTVERSION=	0.1.3
6
PORTREVISION=	7
6
DISTVERSIONPREFIX=	src-
7
CATEGORIES=	emulators
7
CATEGORIES=	emulators
8
MASTER_SITES=	http://www.wine-doors.org/releases/
8
MASTER_SITES=	SF/${PORTNAME:S/-//}/archive
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Windows application management for the GNOME Desktop
11
COMMENT=	Windows application management for the GNOME Desktop
12
12
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
13
LICENSE=	GPLv2 # (or later)
14
		${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo \
14
15
		${PYTHON_SITELIBDIR}/gtk-2.0/gtksourceview.so:${PORTSDIR}/x11-toolkits/py-gnome-desktop \
15
RUN_DEPENDS=	cabextract:${PORTSDIR}/archivers/cabextract \
16
		bash:${PORTSDIR}/shells/bash \
17
		cabextract:${PORTSDIR}/archivers/cabextract \
18
		orange:${PORTSDIR}/archivers/liborange \
16
		orange:${PORTSDIR}/archivers/liborange \
19
		unzip:${PORTSDIR}/archivers/unzip \
17
		unzip:${PORTSDIR}/archivers/unzip \
20
		wine:${PORTSDIR}/emulators/wine
18
		${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
21
19
		${PYTHON_PKGNAMEPREFIX}cairo>0:${PORTSDIR}/graphics/py-cairo \
22
USE_PYTHON=	yes
20
		bash:${PORTSDIR}/shells/bash
23
21
22
NO_ARCH=	yes
24
NO_BUILD=	yes
23
NO_BUILD=	yes
24
NO_WRKSUBDIR=	yes
25
26
USES=		python:run shebangfix
27
python_OLD_CMD=	/usr/bin/env python
28
python_CMD=	${PYTHON_CMD}
29
SHEBANG_FILES=	src/winedoors.py
30
USE_GNOME=	pygnomedesktop:run
25
31
26
SUB_FILES=	preferences.xml
32
SUB_FILES=	preferences.xml
27
33
28
NO_STAGE=	yes
34
.include <bsd.port.options.mk>
35
36
.if ${ARCH} == i386
37
RUN_DEPENDS+=	wine>0:${PORTSDIR}/emulators/wine
38
.else
39
RUN_DEPENDS+=	i386-wine>0:${PORTSDIR}/emulators/i386-wine
40
.endif
41
29
post-patch:
42
post-patch:
30
	@${REINPLACE_CMD} 's|/etc/${PORTNAME}|${PREFIX}/etc/${PORTNAME}|g' \
43
	@${REINPLACE_CMD} -e \
31
		${WRKSRC}/src/preferences.py
44
		's|"/etc/wine-doors|"${ETCDIR}|' ${WRKSRC}/src/preferences.py
32
	@${GREP} -lr '^#!/bin/bash' ${WRKDIR} | ${XARGS} \
45
	@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} \
33
		${REINPLACE_CMD} 's|^#!/bin/bash|#!${LOCALBASE}/bin/bash|'
46
		${REINPLACE_CMD} -e \
47
		's|^#!/bin/bash|#!${LOCALBASE}/bin/bash|'
34
48
35
do-install:
49
do-install:
36
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
50
	@${MKDIR} ${STAGEDIR}${ETCDIR}
37
	${INSTALL_DATA} ${WRKDIR}/preferences.xml ${PREFIX}/etc/${PORTNAME}
51
	(cd ${WRKDIR} && ${INSTALL_DATA} preferences.xml \
38
	${PYTHON_CMD} ${WRKSRC}/setup.py install --prefix=${PREFIX}
52
		${STAGEDIR}${ETCDIR})
53
	(cd ${WRKSRC}/dist && ${INSTALL_DATA} wine-doors.desktop \
54
		${STAGEDIR}${PREFIX}/share/applications)
55
	@${MKDIR} ${STAGEDIR}${DATADIR}
56
.for i in dtd pixmaps registry src
57
	@${TAR} -C ${WRKSRC} --exclude "*.bak" -cf - ${i} | \
58
		${TAR} -C ${STAGEDIR}${DATADIR} --unlink -xf -
59
.endfor
60
	@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
61
		-d ${DATADIR} -f ${DATADIR_REL})
62
	@${LN} -sf ${DATADIR}/src/winedoors.py \
63
		${STAGEDIR}${PREFIX}/bin/wine-doors
64
	@${LN} -sf ${DATADIR}/pixmaps/wine-doors.png \
65
		${STAGEDIR}${PREFIX}/share/pixmaps/wine-doors.png
66
	@${LN} -sf ${DATADIR}/pixmaps/wine-doors.svg \
67
		${STAGEDIR}${PREFIX}/share/pixmaps/wine-doors.svg
39
68
40
.include <bsd.port.mk>
69
.include <bsd.port.mk>
(-)emulators/wine-doors/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (wine-doors-0.1.2.tar.gz) = 7ec60e8e7eaa91a92f172b81c76a6e0ec23e4b1e60c1af866e735e10285269af
1
SHA256 (wine-doors-src-0.1.3.tar.gz) = e5214d86afbd95d0cb4a7b07c2bd60ed39595f0310d506f4519cff80b8a54ab5
2
SIZE (wine-doors-0.1.2.tar.gz) = 267430
2
SIZE (wine-doors-src-0.1.3.tar.gz) = 24361309
(-)emulators/wine-doors/files/patch-setup.py (-48 lines)
Lines 1-48 Link Here
1
--- setup.py.orig	Mon Feb 18 18:49:23 2008
2
+++ setup.py	Mon Feb 18 19:08:38 2008
3
@@ -75,24 +75,18 @@
4
     if os.getuid() == 0:
5
         sysinstall = True
6
 
7
-    if sysinstall:
8
-        if not install_root:
9
-            install_root = "/"
10
-        if not prefix:
11
-            prefix = install_root + "usr/"
12
-        bin_path = prefix + "bin/"
13
-        data_path = prefix + "share/"
14
-        conf_path = install_root + "etc/" + wine_doors + "/"
15
-        winedoors_path = data_path + wine_doors + "/"
16
-        real_winedoors_path = "/usr/share/"+wine_doors+"/"
17
-    else:
18
-        install_root = os.path.expanduser( "~/")
19
-        prefix = os.path.expanduser( "~/.local" )
20
-        bin_path = install_root + "bin/"
21
-        data_path = prefix + "share/"
22
-        conf_path = os.getenv('WINEPREFIX', install_root + ".wine") + "/wine-doors"
23
-        winedoors_path = data_path + wine_doors + "/"
24
-        real_winedoors_path = winedoors_path
25
+    if prefix == None:
26
+        print "You must provide a --prefix"
27
+        sys.exit(1)
28
+
29
+    if not prefix.endswith("/"):
30
+        prefix = prefix + "/"
31
+
32
+    bin_path = prefix + "bin/"
33
+    data_path = prefix + "share/"
34
+    conf_path = prefix + "etc/" + wine_doors + "/"
35
+    winedoors_path = data_path + wine_doors + "/"
36
+    real_winedoors_path = winedoors_path
37
 
38
     if command in ("install", "uninstall"):
39
         from preferences import preferences
40
@@ -208,7 +202,7 @@
41
         # Fix perms
42
         if sysinstall:
43
             print "Setting permissions"
44
-            os.system( "chmod og+r -R "+winedoors_path )
45
+            os.system( "chmod -R og+r "+winedoors_path )
46
         
47
         # Write preferences.xml
48
         print "Creating initial preferences"
(-)emulators/wine-doors/pkg-descr (-6 / +6 lines)
Lines 1-7 Link Here
1
Wine-doors is an application designed to make installing windows software on
1
Wine-doors is an application designed to make installing windows
2
Linux, Solaris or other Unix systems easier. Wine-doors is essentially a
2
software on Unix systems easier. Wine-doors is essentially a package
3
package management tool for windows software on Linux systems. Most Linux
3
management tool for windows software on Unix systems. Most Unix
4
desktop users are familiar with package management style application delivery,
4
desktop users are familiar with package management style application
5
so it made sense to apply this model to windows software.
5
delivery, so it made sense to apply this model to windows software.
6
6
7
WWW: http://www.wine-doors.org/
7
WWW: http://sourceforge.net/projects/winedoors/
(-)emulators/wine-doors/pkg-plist (-13 / +53 lines)
Lines 1-17 Link Here
1
bin/wine-doors
1
bin/wine-doors
2
etc/wine-doors/preferences.xml
2
%%ETCDIR%%/preferences.xml
3
@dirrm etc/wine-doors
4
share/applications/wine-doors.desktop
3
share/applications/wine-doors.desktop
5
share/pixmaps/wine-doors.png
4
share/pixmaps/wine-doors.png
6
share/pixmaps/wine-doors.svg
5
share/pixmaps/wine-doors.svg
7
%%DATADIR%%/dtd/applicationpack.dtd
6
%%DATADIR%%/dtd/applicationpack.dtd
8
%%DATADIR%%/dtd/packlist.dtd
9
%%DATADIR%%/dtd/config.dtd
7
%%DATADIR%%/dtd/config.dtd
10
@dirrm %%DATADIR%%/dtd
8
%%DATADIR%%/dtd/packlist.dtd
9
%%DATADIR%%/pixmaps/ahk.png
10
%%DATADIR%%/pixmaps/ahk.svg
11
%%DATADIR%%/pixmaps/cdex.png
11
%%DATADIR%%/pixmaps/cedega.svg
12
%%DATADIR%%/pixmaps/cedega.svg
13
%%DATADIR%%/pixmaps/cod.png
14
%%DATADIR%%/pixmaps/cod.svg
12
%%DATADIR%%/pixmaps/crossover.svg
15
%%DATADIR%%/pixmaps/crossover.svg
16
%%DATADIR%%/pixmaps/directx.png
17
%%DATADIR%%/pixmaps/directx.svg
18
%%DATADIR%%/pixmaps/dreamweaver.svg
19
%%DATADIR%%/pixmaps/eudora.png
20
%%DATADIR%%/pixmaps/firefox.png
21
%%DATADIR%%/pixmaps/firefox.svg
22
%%DATADIR%%/pixmaps/flash.svg
23
%%DATADIR%%/pixmaps/font.png
24
%%DATADIR%%/pixmaps/gecko.png
25
%%DATADIR%%/pixmaps/gecko.svg
26
%%DATADIR%%/pixmaps/ie.png
27
%%DATADIR%%/pixmaps/ie.svg
13
%%DATADIR%%/pixmaps/installed.png
28
%%DATADIR%%/pixmaps/installed.png
14
%%DATADIR%%/pixmaps/installed.svg
29
%%DATADIR%%/pixmaps/installed.svg
30
%%DATADIR%%/pixmaps/microsoft-library.svg
31
%%DATADIR%%/pixmaps/mozcontrol.png
32
%%DATADIR%%/pixmaps/mozcontrol.svg
33
%%DATADIR%%/pixmaps/ms-library.png
34
%%DATADIR%%/pixmaps/opera.png
35
%%DATADIR%%/pixmaps/prey.png
36
%%DATADIR%%/pixmaps/prey.svg
37
%%DATADIR%%/pixmaps/quicktime.svg
15
%%DATADIR%%/pixmaps/rating.bronze.svg
38
%%DATADIR%%/pixmaps/rating.bronze.svg
16
%%DATADIR%%/pixmaps/rating.garbage.svg
39
%%DATADIR%%/pixmaps/rating.garbage.svg
17
%%DATADIR%%/pixmaps/rating.gold.png
40
%%DATADIR%%/pixmaps/rating.gold.png
Lines 19-24 Link Here
19
%%DATADIR%%/pixmaps/rating.platinum.png
42
%%DATADIR%%/pixmaps/rating.platinum.png
20
%%DATADIR%%/pixmaps/rating.platinum.svg
43
%%DATADIR%%/pixmaps/rating.platinum.svg
21
%%DATADIR%%/pixmaps/rating.silver.svg
44
%%DATADIR%%/pixmaps/rating.silver.svg
45
%%DATADIR%%/pixmaps/roguespear.png
46
%%DATADIR%%/pixmaps/roguespear.svg
47
%%DATADIR%%/pixmaps/tc.png
22
%%DATADIR%%/pixmaps/throbber.0.png
48
%%DATADIR%%/pixmaps/throbber.0.png
23
%%DATADIR%%/pixmaps/throbber.0.svg
49
%%DATADIR%%/pixmaps/throbber.0.svg
24
%%DATADIR%%/pixmaps/throbber.1.png
50
%%DATADIR%%/pixmaps/throbber.1.png
Lines 44-50 Link Here
44
%%DATADIR%%/pixmaps/throbber.9.png
70
%%DATADIR%%/pixmaps/throbber.9.png
45
%%DATADIR%%/pixmaps/throbber.9.svg
71
%%DATADIR%%/pixmaps/throbber.9.svg
46
%%DATADIR%%/pixmaps/upgrade.svg
72
%%DATADIR%%/pixmaps/upgrade.svg
73
%%DATADIR%%/pixmaps/winamp.png
74
%%DATADIR%%/pixmaps/winamp.svg
47
%%DATADIR%%/pixmaps/windows-logo.svg
75
%%DATADIR%%/pixmaps/windows-logo.svg
76
%%DATADIR%%/pixmaps/wine-doors-0.0.9.svg
48
%%DATADIR%%/pixmaps/wine-doors-0.1.svg
77
%%DATADIR%%/pixmaps/wine-doors-0.1.svg
49
%%DATADIR%%/pixmaps/wine-doors-header.svg
78
%%DATADIR%%/pixmaps/wine-doors-header.svg
50
%%DATADIR%%/pixmaps/wine-doors.128.png
79
%%DATADIR%%/pixmaps/wine-doors.128.png
Lines 54-60 Link Here
54
%%DATADIR%%/pixmaps/wine-doors16.gif
83
%%DATADIR%%/pixmaps/wine-doors16.gif
55
%%DATADIR%%/pixmaps/wine-doors16.png
84
%%DATADIR%%/pixmaps/wine-doors16.png
56
%%DATADIR%%/pixmaps/wine-doors16.xpm
85
%%DATADIR%%/pixmaps/wine-doors16.xpm
57
@dirrm %%DATADIR%%/pixmaps
86
%%DATADIR%%/pixmaps/wmp.png
87
%%DATADIR%%/pixmaps/wmp.svg
88
%%DATADIR%%/pixmaps/wow.png
89
%%DATADIR%%/pixmaps/wow.svg
58
%%DATADIR%%/registry/audio-alsa.reg
90
%%DATADIR%%/registry/audio-alsa.reg
59
%%DATADIR%%/registry/audio-oss.reg
91
%%DATADIR%%/registry/audio-oss.reg
60
%%DATADIR%%/registry/fakeie6.reg
92
%%DATADIR%%/registry/fakeie6.reg
Lines 62-97 Link Here
62
%%DATADIR%%/registry/winver-win2k.reg
94
%%DATADIR%%/registry/winver-win2k.reg
63
%%DATADIR%%/registry/winver-win98.reg
95
%%DATADIR%%/registry/winver-win98.reg
64
%%DATADIR%%/registry/winver-winxp.reg
96
%%DATADIR%%/registry/winver-winxp.reg
65
@dirrm %%DATADIR%%/registry
66
%%DATADIR%%/src/antivirus.py
67
%%DATADIR%%/src/application.py
97
%%DATADIR%%/src/application.py
98
%%DATADIR%%/src/application.pyc
68
%%DATADIR%%/src/autorun.py
99
%%DATADIR%%/src/autorun.py
100
%%DATADIR%%/src/autorun.pyc
69
%%DATADIR%%/src/build-repos.sh
101
%%DATADIR%%/src/build-repos.sh
70
%%DATADIR%%/src/build-repos.sh.bak
71
%%DATADIR%%/src/cedega.svg
102
%%DATADIR%%/src/cedega.svg
72
%%DATADIR%%/src/const.py
103
%%DATADIR%%/src/const.py
73
%%DATADIR%%/src/create-packs.sh
104
%%DATADIR%%/src/const.pyc
74
%%DATADIR%%/src/create-packs.sh.bak
75
%%DATADIR%%/src/crossover.svg
105
%%DATADIR%%/src/crossover.svg
76
%%DATADIR%%/src/ctile.py
106
%%DATADIR%%/src/ctile.py
107
%%DATADIR%%/src/ctile.pyc
77
%%DATADIR%%/src/log.py
108
%%DATADIR%%/src/log.py
109
%%DATADIR%%/src/log.pyc
78
%%DATADIR%%/src/packlist.py
110
%%DATADIR%%/src/packlist.py
111
%%DATADIR%%/src/packlist.pyc
79
%%DATADIR%%/src/preferences.py
112
%%DATADIR%%/src/preferences.py
80
%%DATADIR%%/src/preferences.py.bak
81
%%DATADIR%%/src/preferences.pyc
113
%%DATADIR%%/src/preferences.pyc
82
%%DATADIR%%/src/queue.py
114
%%DATADIR%%/src/queue.py
83
%%DATADIR%%/src/setdefaultxkbmap.sh
115
%%DATADIR%%/src/queue.pyc
84
%%DATADIR%%/src/setdefaultxkbmap.sh.bak
85
%%DATADIR%%/src/ui.py
116
%%DATADIR%%/src/ui.py
117
%%DATADIR%%/src/ui.pyc
86
%%DATADIR%%/src/utils.py
118
%%DATADIR%%/src/utils.py
119
%%DATADIR%%/src/utils.pyc
87
%%DATADIR%%/src/wine-doors.128.png
120
%%DATADIR%%/src/wine-doors.128.png
88
%%DATADIR%%/src/wine-doors.png
121
%%DATADIR%%/src/wine-doors.png
89
%%DATADIR%%/src/wine-doors16.png
122
%%DATADIR%%/src/wine-doors16.png
90
%%DATADIR%%/src/wine.py
123
%%DATADIR%%/src/wine.py
124
%%DATADIR%%/src/wine.pyc
91
%%DATADIR%%/src/winedoors-header.png
125
%%DATADIR%%/src/winedoors-header.png
92
%%DATADIR%%/src/winedoors.glade
126
%%DATADIR%%/src/winedoors.glade
93
%%DATADIR%%/src/winedoors.gladep
127
%%DATADIR%%/src/winedoors.gladep
94
%%DATADIR%%/src/winedoors.py
128
%%DATADIR%%/src/winedoors.py
129
%%DATADIR%%/src/winedoors.pyc
95
%%DATADIR%%/src/wtparser.py
130
%%DATADIR%%/src/wtparser.py
131
%%DATADIR%%/src/wtparser.pyc
96
@dirrm %%DATADIR%%/src
132
@dirrm %%DATADIR%%/src
133
@dirrm %%DATADIR%%/registry
134
@dirrm %%DATADIR%%/pixmaps
135
@dirrm %%DATADIR%%/dtd
97
@dirrm %%DATADIR%%
136
@dirrm %%DATADIR%%
137
@dirrm %%ETCDIR%%

Return to bug 193032