Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 21:35:10 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496214 - head/print/lyx
Message-ID:  <201903182135.x2ILZA1i024095@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Mar 18 21:35:10 2019
New Revision: 496214
URL: https://svnweb.freebsd.org/changeset/ports/496214

Log:
  print/lyx: Correct the python executable location in .py, .cpp, .lyx files; Add missing USExx clauses
  
  lyx was broken without being able to call the python executable.
  
  PR:		236619
  Approved by:	rakuco
  MFH:		2019Q1

Modified:
  head/print/lyx/Makefile

Modified: head/print/lyx/Makefile
==============================================================================
--- head/print/lyx/Makefile	Mon Mar 18 21:25:27 2019	(r496213)
+++ head/print/lyx/Makefile	Mon Mar 18 21:35:10 2019	(r496214)
@@ -3,7 +3,7 @@
 
 PORTNAME=	lyx
 PORTVERSION=	${MAJOR_VERSION}.${MINOR_VERSION}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	print editors
 MASTER_SITES=	ftp://ftp.lyx.org/pub/lyx/stable/${MAJOR_VERSION}.x/ \
 		http://www-ftp.lip6.fr/ftp/pub/lyx/stable/${MAJOR_VERSION}.x/ \
@@ -24,7 +24,8 @@ MINOR_VERSION=	2
 
 USES=		compiler:c++11-lang desktop-file-utils gmake iconv pkgconfig \
 		perl5 python:2.7 qt:5 shebangfix tar:xz
-USE_QT=		core concurrent gui svg widgets buildtools_build qmake_build
+USE_QT=		core concurrent gui svg widgets x11extras buildtools_build qmake_build
+USE_XORG=	xcb
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--without-included-boost \
 		--without-included-mythes \
@@ -54,5 +55,8 @@ HUNSPELL_CONFIGURE_OFF=	--without-hunspell
 HUNSPELL_LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
 NLS_CONFIGURE_OFF=	--disable-nls
 NLS_USES=		gettext
+
+post-patch:
+	@${GREP} -rl "python -tt" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -i '' 's|python -tt|${PYTHON_CMD} -tt|'
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903182135.x2ILZA1i024095>