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

Collapse All | Expand All

(-)databases/mysql-workbench52/Makefile (-22 / +39 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mysql-workbench-gpl
4
PORTNAME=	mysql-workbench-gpl
5
PORTVERSION=	5.2.47
5
PORTVERSION=	5.2.47
6
PORTREVISION=	1
6
DISTVERSIONSUFFIX=	-src
7
DISTVERSIONSUFFIX=	-src
7
CATEGORIES=	databases
8
CATEGORIES=	databases
8
MASTER_SITES=	MYSQL/MySQLGUITools
9
MASTER_SITES=	MYSQL/MySQLGUITools
Lines 14-29 Link Here
14
LICENSE=	GPLv2 LGPL21
15
LICENSE=	GPLv2 LGPL21
15
LICENSE_COMB=	multi
16
LICENSE_COMB=	multi
16
17
17
LIB_DEPENDS=	zip:${PORTSDIR}/archivers/libzip \
18
LIB_DEPENDS=	libzip.so:${PORTSDIR}/archivers/libzip \
18
		boost_system:${PORTSDIR}/devel/boost-libs \
19
		libboost_system.so:${PORTSDIR}/devel/boost-libs \
19
		sigc-2.0:${PORTSDIR}/devel/libsigc++20 \
20
		libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
20
		pcre:${PORTSDIR}/devel/pcre \
21
		libpcre.so:${PORTSDIR}/devel/pcre \
21
		cairo:${PORTSDIR}/graphics/cairo \
22
		libcairo.so:${PORTSDIR}/graphics/cairo \
22
		uuid:${PORTSDIR}/misc/e2fsprogs-libuuid \
23
		libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
23
		gnome-keyring:${PORTSDIR}/security/libgnome-keyring \
24
		libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring \
24
		ctemplate:${PORTSDIR}/textproc/google-ctemplate \
25
		libctemplate.so:${PORTSDIR}/textproc/google-ctemplate \
25
		tinyxml:${PORTSDIR}/textproc/tinyxml \
26
		libtinyxml.so:${PORTSDIR}/textproc/tinyxml \
26
		gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
27
		libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
27
RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils \
28
RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils \
28
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
29
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
29
		${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect \
30
		${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect \
Lines 32-38 Link Here
32
OPTIONS_DEFINE=	PYTHON_UTILS UNIXODBC
33
OPTIONS_DEFINE=	PYTHON_UTILS UNIXODBC
33
PYTHON_UTILS_DESC=	Python scripts useful for administering MySQL
34
PYTHON_UTILS_DESC=	Python scripts useful for administering MySQL
34
35
35
USES=		gettext gmake pathfix pkgconfig shared-mime-info
36
USES=		desktop-file-utils gettext gmake pathfix pkgconfig \
37
		shebangfix shared-mime-info
38
SHEBANG_FILES=	ext/ctemplate/ctemplate-src/src/htmlparser/*.py \
39
		ext/mysql-utilities/*.py \
40
		ext/mysql-utilities/scripts/*.py \
41
		ext/scintilla/qt/ScintillaEditPy/*.py \
42
		library/sshtunnel/*.py \
43
		plugins/wb.admin/backend/config/gen-opt/*.py \
44
		plugins/wb.admin/gen-opt/*.py \
45
		plugins/wb.admin/gen-opt/new/*.py \
46
		plugins/wb.admin/gen-opt/recat/*.py \
47
		plugins/wb.query.analysis/*.py \
48
		po/*.py
36
USE_GCC=	any
49
USE_GCC=	any
37
USE_GL=		gl
50
USE_GL=		gl
38
USE_GNOME=	gnomehier gtk20 libxml2
51
USE_GNOME=	gnomehier gtk20 libxml2
Lines 43-50 Link Here
43
USE_SQLITE=	3
56
USE_SQLITE=	3
44
USE_AUTOTOOLS=	libtoolize aclocal automake autoheader autoconf
57
USE_AUTOTOOLS=	libtoolize aclocal automake autoheader autoconf
45
LIBTOOLIZE_ARGS=--copy --force
58
LIBTOOLIZE_ARGS=--copy --force
46
ACLOCAL_ARGS=	# none
59
AUTOMAKE_ARGS=	--add-missing --copy --force-missing --foreign
47
AUTOMAKE_ARGS=	--copy --force-missing --foreign
48
CONFIGURE_ENV=	LUA_CFLAGS="$$(pkg-config --cflags lua-${LUA_VER})" \
60
CONFIGURE_ENV=	LUA_CFLAGS="$$(pkg-config --cflags lua-${LUA_VER})" \
49
		LUA_LIBS="$$(pkg-config --libs lua-${LUA_VER})" \
61
		LUA_LIBS="$$(pkg-config --libs lua-${LUA_VER})" \
50
		TINYXML_CFLAGS="-I${LOCALBASE}/include" \
62
		TINYXML_CFLAGS="-I${LOCALBASE}/include" \
Lines 61-67 Link Here
61
73
62
CONFLICTS=	mysql-workbench-oss*
74
CONFLICTS=	mysql-workbench-oss*
63
75
64
NO_STAGE=	yes
65
.include <bsd.port.options.mk>
76
.include <bsd.port.options.mk>
66
77
67
.if ${PORT_OPTIONS:MPYTHON_UTILS}
78
.if ${PORT_OPTIONS:MPYTHON_UTILS}
Lines 72-85 Link Here
72
.endif
83
.endif
73
84
74
.if ${PORT_OPTIONS:MUNIXODBC}
85
.if ${PORT_OPTIONS:MUNIXODBC}
75
LIB_DEPENDS+=	odbccr:${PORTSDIR}/databases/unixODBC
86
LIB_DEPENDS+=	libodbccr.so:${PORTSDIR}/databases/unixODBC
76
CONFIGURE_ARGS+=--with-unixodbc
87
CONFIGURE_ARGS+=--with-unixodbc
77
.else
88
.else
78
LIB_DEPENDS+=	iodbc:${PORTSDIR}/databases/libiodbc
89
LIB_DEPENDS+=	libiodbc.so:${PORTSDIR}/databases/libiodbc
79
.endif
90
.endif
80
91
81
post-patch:
92
post-patch:
82
	@${REINPLACE_CMD} -e \
93
	@${REINPLACE_CMD} -e \
94
		's|/bin/bash|/bin/sh|' \
95
		${WRKSRC}/build/build_freetds.sh
96
	@${REINPLACE_CMD} -e \
97
		's| $$(pkgdatadir)| $$(DESTDIR)$$(pkgdatadir)|' \
98
		${WRKSRC}/ext/Makefile.am
99
	@${REINPLACE_CMD} -e \
83
		'/spawn/s|/bin/bash|/bin/sh|' \
100
		'/spawn/s|/bin/bash|/bin/sh|' \
84
		${WRKSRC}/ext/python/pexpect/pexpect.py
101
		${WRKSRC}/ext/python/pexpect/pexpect.py
85
	@${REINPLACE_CMD} -e \
102
	@${REINPLACE_CMD} -e \
Lines 97-113 Link Here
97
		's|/usr/bin/sudo|${LOCALBASE}/bin/sudo| ; \
114
		's|/usr/bin/sudo|${LOCALBASE}/bin/sudo| ; \
98
		 s|/bin/bash|/bin/sh|' \
115
		 s|/bin/bash|/bin/sh|' \
99
		${WRKSRC}/plugins/wb.admin/frontend/wb_admin_grt.py
116
		${WRKSRC}/plugins/wb.admin/frontend/wb_admin_grt.py
100
	@${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e \
101
		'/^#!/s|/usr/bin/python.*|${SETENV} python|'
102
117
103
post-install:
118
post-install:
104
.for i in lib/mysql-workbench/modules share/mysql-workbench/libraries
119
.for i in lib/mysql-workbench/modules share/mysql-workbench/libraries
105
	@${PYTHON_CMD} -m compileall ${PREFIX}/${i}
120
	@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
121
		-d ${PREFIX} -f ${i})
106
.endfor
122
.endfor
107
.if ${PORT_OPTIONS:MPYTHON_UTILS}
123
.if ${PORT_OPTIONS:MPYTHON_UTILS}
108
	(cd ${WRKSRC}/ext && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
124
	(cd ${WRKSRC}/ext && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
109
		${MAKEFILE} ${MAKE_ARGS} DESTDIR="${DESTDIR}/"  \
125
		${MAKEFILE} ${MAKE_ARGS} install-utils install-connector)
110
		install-utils install-connector)
126
	@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
127
		-d ${PREFIX} -f share/mysql-workbench/python)
111
.endif
128
.endif
112
129
113
.include <bsd.port.mk>
130
.include <bsd.port.mk>

Return to bug 181875