Bug 181875 - databases/mysql-workbench52: Fix build
Summary: databases/mysql-workbench52: Fix build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Antoine Brodin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-06 19:10 UTC by tkato432
Modified: 2013-12-05 20:51 UTC (History)
0 users

See Also:


Attachments
file.diff (690 bytes, patch)
2013-09-06 19:10 UTC, tkato432
no flags Details | Diff
databases_mysql-workbench52.diff (4.51 KB, patch)
2013-11-07 17:56 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-09-06 19:10:00 UTC
- Fix build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-06 19:11:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2013-09-22 15:11:43 UTC
Responsible Changed
From-To: miwi->freebsd-ports-bugs

Back to the heap due to timeout
Comment 3 tkato432 2013-11-07 17:56:58 UTC
Remake of the patch against current tree.
Comment 4 Antoine Brodin freebsd_committer freebsd_triage 2013-12-05 17:15:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->antoine

Take
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-12-05 20:17:41 UTC
Author: antoine
Date: Thu Dec  5 20:17:33 2013
New Revision: 335683
URL: http://svnweb.freebsd.org/changeset/ports/335683

Log:
  - Fix build on 8 and 9, AUTOMAKE_ARGS was missing --add-missing
  (the port is still broken on 10/head it seems)
  - Use new LIB_DEPENDS syntax and new USES
  - Stage support
  
  PR:		ports/181875
  Submitted by:	Kato Tsuguru

Modified:
  head/databases/mysql-workbench52/Makefile

Modified: head/databases/mysql-workbench52/Makefile
==============================================================================
--- head/databases/mysql-workbench52/Makefile	Thu Dec  5 19:58:01 2013	(r335682)
+++ head/databases/mysql-workbench52/Makefile	Thu Dec  5 20:17:33 2013	(r335683)
@@ -14,16 +14,16 @@ COMMENT=	Visual database design tool
 LICENSE=	GPLv2 LGPL21
 LICENSE_COMB=	multi
 
-LIB_DEPENDS=	zip:${PORTSDIR}/archivers/libzip \
-		boost_system:${PORTSDIR}/devel/boost-libs \
-		sigc-2.0:${PORTSDIR}/devel/libsigc++20 \
-		pcre:${PORTSDIR}/devel/pcre \
-		cairo:${PORTSDIR}/graphics/cairo \
-		uuid:${PORTSDIR}/misc/e2fsprogs-libuuid \
-		gnome-keyring:${PORTSDIR}/security/libgnome-keyring \
-		ctemplate:${PORTSDIR}/textproc/google-ctemplate \
-		tinyxml:${PORTSDIR}/textproc/tinyxml \
-		gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
+LIB_DEPENDS=	libzip.so:${PORTSDIR}/archivers/libzip \
+		libboost_system.so:${PORTSDIR}/devel/boost-libs \
+		libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
+		libpcre.so:${PORTSDIR}/devel/pcre \
+		libcairo.so:${PORTSDIR}/graphics/cairo \
+		libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
+		libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring \
+		libctemplate.so:${PORTSDIR}/textproc/google-ctemplate \
+		libtinyxml.so:${PORTSDIR}/textproc/tinyxml \
+		libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
 RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
 		${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect \
@@ -32,7 +32,19 @@ RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/
 OPTIONS_DEFINE=	PYTHON_UTILS UNIXODBC
 PYTHON_UTILS_DESC=	Python scripts useful for administering MySQL
 
-USES=		gettext gmake pathfix pkgconfig shared-mime-info
+USES=		desktop-file-utils gettext gmake pathfix pkgconfig \
+		shebangfix shared-mime-info
+SHEBANG_FILES=	ext/ctemplate/ctemplate-src/src/htmlparser/*.py \
+		ext/mysql-utilities/*.py \
+		ext/mysql-utilities/scripts/*.py \
+		ext/scintilla/qt/ScintillaEditPy/*.py \
+		library/sshtunnel/*.py \
+		plugins/wb.admin/backend/config/gen-opt/*.py \
+		plugins/wb.admin/gen-opt/*.py \
+		plugins/wb.admin/gen-opt/new/*.py \
+		plugins/wb.admin/gen-opt/recat/*.py \
+		plugins/wb.query.analysis/*.py \
+		po/*.py
 USE_GCC=	any
 USE_GL=		gl
 USE_GNOME=	gnomehier gtk20 libxml2
@@ -43,8 +55,7 @@ USE_MYSQL=	client
 USE_SQLITE=	3
 USE_AUTOTOOLS=	libtoolize aclocal automake autoheader autoconf
 LIBTOOLIZE_ARGS=--copy --force
-ACLOCAL_ARGS=	# none
-AUTOMAKE_ARGS=	--copy --force-missing --foreign
+AUTOMAKE_ARGS=	--add-missing --copy --force-missing --foreign
 CONFIGURE_ENV=	LUA_CFLAGS="$$(pkg-config --cflags lua-${LUA_VER})" \
 		LUA_LIBS="$$(pkg-config --libs lua-${LUA_VER})" \
 		TINYXML_CFLAGS="-I${LOCALBASE}/include" \
@@ -61,7 +72,6 @@ PLIST_SUB=	VERSION="${PORTVERSION}" PYTH
 
 CONFLICTS=	mysql-workbench-oss*
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MPYTHON_UTILS}
@@ -72,14 +82,20 @@ PLIST_SUB+=	PYTHON_UTILS="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MUNIXODBC}
-LIB_DEPENDS+=	odbccr:${PORTSDIR}/databases/unixODBC
+LIB_DEPENDS+=	libodbccr.so:${PORTSDIR}/databases/unixODBC
 CONFIGURE_ARGS+=--with-unixodbc
 .else
-LIB_DEPENDS+=	iodbc:${PORTSDIR}/databases/libiodbc
+LIB_DEPENDS+=	libiodbc.so:${PORTSDIR}/databases/libiodbc
 .endif
 
 post-patch:
 	@${REINPLACE_CMD} -e \
+		's|/bin/bash|/bin/sh|' \
+		${WRKSRC}/build/build_freetds.sh
+	@${REINPLACE_CMD} -e \
+		's| $$(pkgdatadir)| $$(DESTDIR)$$(pkgdatadir)|' \
+		${WRKSRC}/ext/Makefile.am
+	@${REINPLACE_CMD} -e \
 		'/spawn/s|/bin/bash|/bin/sh|' \
 		${WRKSRC}/ext/python/pexpect/pexpect.py
 	@${REINPLACE_CMD} -e \
@@ -97,17 +113,17 @@ post-patch:
 		's|/usr/bin/sudo|${LOCALBASE}/bin/sudo| ; \
 		 s|/bin/bash|/bin/sh|' \
 		${WRKSRC}/plugins/wb.admin/frontend/wb_admin_grt.py
-	@${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e \
-		'/^#!/s|/usr/bin/python.*|${SETENV} python|'
 
 post-install:
 .for i in lib/mysql-workbench/modules share/mysql-workbench/libraries
-	@${PYTHON_CMD} -m compileall ${PREFIX}/${i}
+	@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
+		-d ${PREFIX} -f ${i})
 .endfor
 .if ${PORT_OPTIONS:MPYTHON_UTILS}
-	(cd ${WRKSRC}/ext && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
-		${MAKEFILE} ${MAKE_ARGS} DESTDIR="${DESTDIR}/"  \
-		install-utils install-connector)
+	(cd ${WRKSRC}/ext && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
+		${MAKEFILE} ${MAKE_ARGS} install-utils install-connector)
+	@(cd ${STAGEDIR}/${PREFIX} && ${PYTHON_CMD} -m compileall \
+		-d ${PREFIX} -f share/mysql-workbench/python)
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Antoine Brodin freebsd_committer freebsd_triage 2013-12-05 20:51:13 UTC
State Changed
From-To: open->closed

Patch committed, thanks!