2005-07-29 17:27:25 +02:00
|
|
|
PORTNAME= asymptote
|
2022-07-27 20:31:37 +02:00
|
|
|
PORTVERSION= 2.81
|
2022-08-12 16:46:53 +02:00
|
|
|
PORTREVISION= 1
|
2005-07-29 17:27:25 +02:00
|
|
|
CATEGORIES= math
|
2015-05-11 20:34:57 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
|
2008-01-30 11:47:16 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2022-07-27 20:31:37 +02:00
|
|
|
PATCH_SITES= https://github.com/vectorgraphics/asymptote/commit/
|
|
|
|
PATCHFILES+= fa28442195bd99b9bac87e3ff752953ac57ee172.patch:-p1 # backport fix for https://github.com/vectorgraphics/asymptote/issues/328
|
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2014-05-29 01:32:55 +02:00
|
|
|
COMMENT= Powerful script-based vector graphics language
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://asymptote.sourceforge.io/
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2012-07-08 11:24:57 +02:00
|
|
|
LICENSE= GPLv3 LGPL3
|
|
|
|
LICENSE_COMB= dual
|
2012-04-25 16:08:42 +02:00
|
|
|
|
2018-06-15 13:03:29 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
2022-08-05 07:37:42 +02:00
|
|
|
BROKEN_FreeBSD_12_i386= ./base/plain_filldraw.asy: 21.5: runtime: gmake[2]: *** [Makefile:42: makepen.pdf] Floating point exception (core dumped)
|
2018-06-15 13:03:29 +02:00
|
|
|
|
2022-05-06 21:18:43 +02:00
|
|
|
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
|
|
|
|
libcurl.so:ftp/curl \
|
2020-09-27 15:54:24 +02:00
|
|
|
libsigsegv.so:devel/libsigsegv
|
2020-11-09 18:08:12 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cson>=0.8:devel/py-cson@${PY_FLAVOR} \
|
2020-03-24 20:54:57 +01:00
|
|
|
${PY_PILLOW}
|
2014-05-29 01:32:55 +02:00
|
|
|
|
2020-11-09 18:08:12 +01:00
|
|
|
USES= compiler:c++14-lang gettext-runtime ghostscript gl gmake gnome ncurses perl5 python:3.6+ \
|
Update Qt/PySide2 to 5.15.2 / PyQt to 5.15.1 / SIP to 5.4.0
This commit combines several updates.
- Update Qt to 5.12.2
- Update PyQt to 5.15.1
- Since PySide 5.15.1 is broken with Qt 5.15.2, so PySide and Shiboken are also updated to 5.15.2.
- Update sip to 5.4.0
SIP is a collection of tools to create Python bindings for C and C++ libraries and used by PyQt and wxPython. There are some changes with sip5 [1]:
- python 3.5+ is required
- sip drops support of old deprecated methods as sipdistutils & cie.
- this version breaks also PyQt5 extension ABI. SIP files will be installed in ${PYTHON_SITELIBDIR}/PyQt${_PYQT_VERSION}/bindings
- some ports will use the new pyqtbuilder package with the pyproject.toml setup. Instead if the project have a setup.py, you should use sip-build to build it.
- if a port needs sip, it should also needs pysip. BTW, py-qt5-core requires pysip, so that should be enough for PyQt packages.
List of ports impacted by this change. Most of the patches have been integrated or are in the process of being integrated upstream:
- devel/libsavitar
- graphics/py-python-poppler-qt5
- net-im/scudcloud
- net/libarcus
- print/py-frescobaldi
- science/py-veusz
- graphics/qgis and graphics/qgis-ltr
- deskutils/calibre
A special note regarding calibre. New versions require sip>=5, we update it to the latest version (thanks to madpilot@)
science/scidavis will remove the PyQt binding soon and there is no patch planned, so we remove the python option (ok makc@)
While here, convert some ports to USE_PYQT (cad/cura, cad/uranium, devel/eric6, ...)
Thanks to tcberner and adridg!
[1] https://www.riverbankcomputing.com/static/Docs/sip/
PR: 250853
Exp-run by: antoine
2020-12-08 21:03:07 +01:00
|
|
|
pyqt:5 shebangfix tar:tgz
|
2018-06-15 13:03:29 +02:00
|
|
|
SHEBANG_FILES= GUI/*.py
|
|
|
|
USE_GL= gl glu glut
|
2020-11-09 18:08:12 +01:00
|
|
|
USE_GNOME= librsvg2:run
|
2018-06-15 13:03:29 +02:00
|
|
|
USE_PERL5= build
|
|
|
|
USE_TEX= dvipsk formats
|
PyQt: Update sip to 6.5.0, reintroduce sip4 and simplify PyQt framework.
SIP:
As mentioned in the update from sip to sip5, this is a transitional version
to remove what is deprecated in sip4.
Sip6 completely removes the deprecated parts.
Unfortunately, some ports — mostly cura things — can not use sip6, so we
reintroduce sip4.
PyQt:
At the same time, we took the opportunity to simplify PyQT and propose only one
package as for devel/pyside2. */py-qt5-* have been merged — excepted chart,
networkauth and webengine — into devel/py-qt5-pyqt.
This allows us to be in adequacy with the packages that the author of these
libraries proposes, namely:
PyQt - devel/py-qt5-pyqt
PyQt-Charts - x11-toolkits/py-qt5-chart
PyQt-NetworkAuth – net/py-qt5-networkauth
PyQt-WebEngine – www/py-qt5-webengine
SIP – devel/py-sip
py-sip - devel/py-qt5-sip
PyQt-builder - devel/py-qtbuilder
Qscintilla - devel/py-qt5-qscintilla2
Reviewed by: diizzy, kde
Tested by: kai, rhurlin, arrowd, madpilot
Approved by: makc, tcberner, kde
Differential Revision: https://reviews.freebsd.org/D33237
Exp-run by: antoine
2021-10-24 20:51:36 +02:00
|
|
|
USE_PYQT= pyqt5_run
|
2014-05-29 01:32:55 +02:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2018-06-15 13:03:29 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2022-07-27 20:31:37 +02:00
|
|
|
CONFIGURE_ARGS= --disable-lsp # disable the module with Boost-related errors
|
2018-06-15 13:03:29 +02:00
|
|
|
|
|
|
|
MAKE_ENV= ASYMPTOTE_HOME=${WRKDIR} HOME=${WRKDIR}
|
2022-07-27 20:31:37 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes # see https://github.com/vectorgraphics/asymptote/issues/331
|
2018-06-15 13:03:29 +02:00
|
|
|
|
|
|
|
ALL_TARGET= asy asy-keywords.el
|
|
|
|
INSTALL_TARGET= install-asy
|
|
|
|
|
2018-06-29 20:09:14 +02:00
|
|
|
SUB_FILES= pkg-message
|
2018-06-15 13:03:29 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= FFTW GSL MANPAGES READLINE
|
|
|
|
OPTIONS_DEFINE= BDWGC DOCS EXAMPLES FFTW GSL MANPAGES OFFSCREEN READLINE
|
|
|
|
|
|
|
|
BDWGC_LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded
|
|
|
|
BDWGC_DESC= Enable Boehm-Demers-Weiser garbage collector
|
|
|
|
BDWGC_CONFIGURE_ENABLE= gc=${LOCALBASE}
|
2014-05-29 01:32:55 +02:00
|
|
|
|
2017-07-25 13:55:14 +02:00
|
|
|
DOCS_ALL_TARGET= html
|
2016-04-01 16:16:16 +02:00
|
|
|
DOCS_BUILD_DEPENDS= texi2dvi:print/texinfo
|
2014-05-29 01:32:55 +02:00
|
|
|
DOCS_CONFIGURE_WITH= docdir=${DOCSDIR}
|
2017-07-25 13:55:14 +02:00
|
|
|
DOCS_INSTALL_TARGET= install-html
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2014-05-29 01:32:55 +02:00
|
|
|
FFTW_CONFIGURE_ENABLE= fftw
|
|
|
|
FFTW_DESC= Use FFTW to compute the Discrete Fourier Transform
|
2016-04-01 16:16:16 +02:00
|
|
|
FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2014-05-29 01:32:55 +02:00
|
|
|
GSL_CONFIGURE_ENABLE= gsl
|
|
|
|
GSL_DESC= Enable GNU Scientific library
|
2016-04-01 16:16:16 +02:00
|
|
|
GSL_LIB_DEPENDS= libgsl.so:math/gsl
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2017-07-25 13:55:14 +02:00
|
|
|
MANPAGES_ALL_TARGET= man
|
2016-04-01 16:16:16 +02:00
|
|
|
MANPAGES_BUILD_DEPENDS= texi2dvi:print/texinfo
|
2017-07-25 13:55:14 +02:00
|
|
|
MANPAGES_INFO= asy-faq
|
2012-07-08 11:24:57 +02:00
|
|
|
|
2014-05-29 01:32:55 +02:00
|
|
|
OFFSCREEN_CONFIGURE_ENABLE= offscreen
|
|
|
|
OFFSCREEN_DESC= Enable offscreen rendering using OSMesa library
|
2016-04-01 16:16:16 +02:00
|
|
|
OFFSCREEN_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa
|
2014-05-29 01:32:55 +02:00
|
|
|
|
|
|
|
READLINE_CONFIGURE_ENABLE= readline
|
2021-05-15 08:50:22 +02:00
|
|
|
READLINE_USES= readline
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2020-09-27 15:54:24 +02:00
|
|
|
TEST_TARGET= test
|
|
|
|
TEST_WRKSRC= ${WRKSRC}/tests
|
|
|
|
|
2022-07-27 20:31:37 +02:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2014-05-29 01:32:55 +02:00
|
|
|
post-patch:
|
2016-03-24 16:47:50 +01:00
|
|
|
@${REINPLACE_CMD} 's/-lgc/-lgc-threaded/' ${WRKSRC}/configure
|
2018-06-15 13:03:29 +02:00
|
|
|
@${REINPLACE_CMD} 's,makeinfo,${LOCALBASE}/bin/makeinfo,' \
|
|
|
|
${WRKSRC}/doc/png/Makefile.in
|
|
|
|
|
2017-05-04 07:20:31 +02:00
|
|
|
# Fix the python interpreter in the generated file share/asymptote/GUI/xasyVersion.py:
|
2020-09-27 15:54:24 +02:00
|
|
|
@${REINPLACE_CMD} 's,/usr/bin/env python3,${PYTHON_CMD},' ${WRKSRC}/Makefile.in
|
2012-07-08 11:24:57 +02:00
|
|
|
|
2014-05-29 01:32:55 +02:00
|
|
|
post-install:
|
2018-06-15 13:03:29 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/asy
|
2006-05-28 23:42:30 +02:00
|
|
|
|
2020-03-24 20:54:57 +01:00
|
|
|
.include <bsd.port.mk>
|