Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2014 18:20:28 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366444 - in head/editors/texmacs: . files
Message-ID:  <201408281820.s7SIKSgi094633@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Thu Aug 28 18:20:28 2014
New Revision: 366444
URL: http://svnweb.freebsd.org/changeset/ports/366444
QAT: https://qat.redports.org/buildarchive/r366444/

Log:
  - Fix build on -current
  - Use OPTIONS helpers
  - shebangfix some perl scripts
  - Add missing file to plist
  - Don't try to remove directories installed by dependencies

Added:
  head/editors/texmacs/files/patch-src__Kernel__Types__tree.cpp   (contents, props changed)
  head/editors/texmacs/files/patch-src__Kernel__Types__tree.hpp   (contents, props changed)
  head/editors/texmacs/files/patch-src__Typeset__Boxes__Basic__boxes.cpp   (contents, props changed)
  head/editors/texmacs/files/patch-src__Typeset__boxes.hpp   (contents, props changed)
Modified:
  head/editors/texmacs/Makefile
  head/editors/texmacs/pkg-plist

Modified: head/editors/texmacs/Makefile
==============================================================================
--- head/editors/texmacs/Makefile	Thu Aug 28 17:53:39 2014	(r366443)
+++ head/editors/texmacs/Makefile	Thu Aug 28 18:20:28 2014	(r366444)
@@ -3,7 +3,7 @@
 
 PORTNAME=	texmacs
 PORTVERSION=	1.0.7.21
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	editors print
 MASTER_SITES=	ftp://ftp.texmacs.org/TeXmacs/tmftp/source/ \
 		http://www.predatorlabs.net/dl/
@@ -16,8 +16,7 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	libguile.so:${PORTSDIR}/lang/guile
 
-USES=		gmake shared-mime-info desktop-file-utils
-USE_PYTHON=	yes
+USES=		gmake shared-mime-info desktop-file-utils python shebangfix
 USE_TEX=	tex
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
@@ -27,54 +26,34 @@ MAKE_ARGS=	CP="${CP} -R -f"
 ALL_TARGET=	${PORTNAME:tu}
 INSTALL_ICONS=	yes
 
+SHEBANG_FILES=	plugins/asymptote/bin/tm_asy2 \
+		plugins/feynmf/bin/bbox_add.pl \
+		plugins/asymptote/bin/perl-tm_asy
+
 DATADIR=	${PREFIX}/share/TeXmacs
 
 OPTIONS_DEFINE=	FREETYPE GHOSTSCRIPT ICONV IMLIB2 PDF QT4
-OPTIONS_DEFAULT=	FREETYPE GHOSTSCRIPT ICONV IMLIB2 QT4
+OPTIONS_DEFAULT=FREETYPE GHOSTSCRIPT ICONV IMLIB2 QT4
 PDF_DESC=	Experimental PDF renderer
 
-.include <bsd.port.options.mk>
+FREETYPE_LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
+FREETYPE_CONFIGURE_WITH=freetype=linked
+
+GHOSTSCRIPT_USE=	GHOSTSCRIPT=yes
+GHOSTSCRIPT_CONFIGURE_WITH=	gs=yes
+
+ICONV_USES=		iconv
+ICONV_CONFIGURE_WITH=	iconv
+
+IMLIB2_USE=		EFL=imlib2
+IMLIB2_CONFIGURE_ON=	--with-imlib2
+IMLIB2_CONFIGURE_OFF=	--without-imlib
 
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+=	libfreetype.so:${PORTSDIR}/print/freetype2
-CONFIGURE_ARGS+=	--with-freetype=linked
-.else
-CONFIGURE_ARGS+=	--without-freetype
-.endif
-
-.if ${PORT_OPTIONS:MGHOSTSCRIPT}
-USE_GHOSTSCRIPT=	yes
-CONFIGURE_ARGS+=	--with-gs=yes
-.else
-CONFIGURE_ARGS+=	--without-gs
-.endif
-
-.if ${PORT_OPTIONS:MICONV}
-USES+=			iconv
-CONFIGURE_ARGS+=	--with-iconv
-.else
-CONFIGURE_ARGS+=	--without-iconv
-.endif
-
-.if ${PORT_OPTIONS:MIMLIB2}
-USE_EFL=	imlib2
-CONFIGURE_ARGS+=	--with-imlib2
-.else
-CONFIGURE_ARGS+=	--without-imlib
-.endif
-
-.if ${PORT_OPTIONS:MPDF}
-CONFIGURE_ARGS+=	--enable-pdf-renderer
-.endif
-
-.if ${PORT_OPTIONS:MQT4}
-USE_QT4=	gui moc_build qmake_build rcc uic_build
-CONFIGURE_ARGS+=	--with-qt --enable-qtpipes
-.else
-CONFIGURE_ARGS+=	--disable-qt
-.endif
+PDF_CONFIGURE_ON=	--enable-pdf-renderer
 
-.include <bsd.port.pre.mk>
+QT4_USE=		QT4=gui,moc_build,qmake_build,rcc,uic_build
+QT4_CONFIGURE_ON=	--with-qt --enable-qtpipes
+QT4_CONFIGURE_OFF=	--disable-qt
 
 post-patch:
 	@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
@@ -87,4 +66,4 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|qdrawutil.h|qt4/Qt/qdrawutil.h|' \
 		${WRKSRC}/src/Plugins/Qt/QTMStyle.cpp
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/editors/texmacs/files/patch-src__Kernel__Types__tree.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/texmacs/files/patch-src__Kernel__Types__tree.cpp	Thu Aug 28 18:20:28 2014	(r366444)
@@ -0,0 +1,11 @@
+--- ./src/Kernel/Types/tree.cpp.orig	2014-08-28 13:09:45.011154991 -0400
++++ ./src/Kernel/Types/tree.cpp	2014-08-28 13:10:18.050663990 -0400
+@@ -195,7 +195,7 @@
+ }
+ 
+ void
+-print_tree (tree t, int tab) {
++print_tree (tree t, int tab=0) {
+   int i;
+   for (i=0; i<tab; i++) cout << " ";
+   if (is_atomic (t)) cout << t->label << "\n";

Added: head/editors/texmacs/files/patch-src__Kernel__Types__tree.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/texmacs/files/patch-src__Kernel__Types__tree.hpp	Thu Aug 28 18:20:28 2014	(r366444)
@@ -0,0 +1,11 @@
+--- ./src/Kernel/Types/tree.hpp.orig	2014-08-28 13:09:50.435479991 -0400
++++ ./src/Kernel/Types/tree.hpp	2014-08-28 13:10:38.328730991 -0400
+@@ -84,7 +84,7 @@
+   friend tree& operator << (tree& t, array<tree> a);
+   friend tm_ostream& operator << (tm_ostream& out, tree t);
+   friend tree operator * (tree t1, tree t2);
+-  friend void print_tree (tree t, int tab=0);
++  friend void print_tree (tree t, int tab);
+   friend list<tree> as_trees (list<pointer> l);
+   friend class tree_pointer_rep;
+   friend class tree_position_rep;

Added: head/editors/texmacs/files/patch-src__Typeset__Boxes__Basic__boxes.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/texmacs/files/patch-src__Typeset__Boxes__Basic__boxes.cpp	Thu Aug 28 18:20:28 2014	(r366444)
@@ -0,0 +1,11 @@
+--- ./src/Typeset/Boxes/Basic/boxes.cpp.orig	2014-08-28 13:13:07.420709990 -0400
++++ ./src/Typeset/Boxes/Basic/boxes.cpp	2014-08-28 13:13:15.171566990 -0400
+@@ -850,7 +850,7 @@
+ ******************************************************************************/
+ 
+ void
+-make_eps (url name, box b, int dpi) {
++make_eps (url name, box b, int dpi=600) {
+   double inch= ((double) dpi * PIXEL);
+   double cm  = inch / 2.54;
+   SI w= b->x4 - b->x3;

Added: head/editors/texmacs/files/patch-src__Typeset__boxes.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/texmacs/files/patch-src__Typeset__boxes.hpp	Thu Aug 28 18:20:28 2014	(r366444)
@@ -0,0 +1,11 @@
+--- ./src/Typeset/boxes.hpp.orig	2014-08-28 13:13:20.617755990 -0400
++++ ./src/Typeset/boxes.hpp	2014-08-28 13:13:35.051223990 -0400
+@@ -255,7 +255,7 @@
+   friend class  phrase_box_rep;
+   friend class  remember_box_rep;
+   friend class  effect_box_rep;
+-  friend void make_eps (url dest, box b, int dpi= 600);
++  friend void make_eps (url dest, box b, int dpi);
+ };
+ ABSTRACT_NULL_CODE(box);
+ 

Modified: head/editors/texmacs/pkg-plist
==============================================================================
--- head/editors/texmacs/pkg-plist	Thu Aug 28 17:53:39 2014	(r366443)
+++ head/editors/texmacs/pkg-plist	Thu Aug 28 18:20:28 2014	(r366444)
@@ -4150,16 +4150,14 @@ share/icons/gnome/scalable/mimetypes/tex
 share/mime-info/texmacs.keys
 share/mime-info/texmacs.mime
 share/mime/packages/texmacs.xml
+share/mime/text/x-texmacs.xml
 share/pixmaps/TeXmacs.xpm
 @dirrmtry share/mime/text
-@dirrmtry share/mime/packages
 @dirrmtry share/mime-info
-@dirrmtry share/mime
 @dirrmtry share/icons/gnome/scalable/mimetypes
 @dirrmtry share/icons/gnome/scalable/apps
 @dirrmtry share/icons/gnome/scalable
 @dirrmtry share/icons/gnome
-@dirrmtry share/icons
 @dirrmtry share/application-registry
 @dirrm %%DATADIR%%/texts/test
 @dirrm %%DATADIR%%/texts



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