From e2b444d89aa72f2d914995363aece00012b470ed Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Sat, 1 Jan 2022 14:04:44 +0100 Subject: eric6: Revert removal. This reverts commits * e6fa82f13214be6efb40b6cca698607fe15adfc0 * fb41f4077d321912b1e1c1c586cc90e9df5ce9d8 * 75b955057c8e0c7cf9f47d4070802312e8427d34 (eric6 part) Requested by: fluffy, tcberner --- devel/eric6/Makefile | 80 ++++++++++++++++++++++++++++++++++++++ devel/eric6/Makefile.inc | 22 +++++++++++ devel/eric6/bsd.eric6.mk | 22 +++++++++++ devel/eric6/distinfo | 3 ++ devel/eric6/files/config | 22 +++++++++++ devel/eric6/files/eric6.desktop.in | 10 +++++ devel/eric6/pkg-descr | 11 ++++++ devel/eric6/pkg-message | 10 +++++ devel/eric6/pkg-plist | 44 +++++++++++++++++++++ 9 files changed, 224 insertions(+) create mode 100644 devel/eric6/Makefile create mode 100644 devel/eric6/Makefile.inc create mode 100644 devel/eric6/bsd.eric6.mk create mode 100644 devel/eric6/distinfo create mode 100644 devel/eric6/files/config create mode 100644 devel/eric6/files/eric6.desktop.in create mode 100644 devel/eric6/pkg-descr create mode 100644 devel/eric6/pkg-message create mode 100644 devel/eric6/pkg-plist (limited to 'devel/eric6') diff --git a/devel/eric6/Makefile b/devel/eric6/Makefile new file mode 100644 index 000000000000..7f975775b5c1 --- /dev/null +++ b/devel/eric6/Makefile @@ -0,0 +1,80 @@ +# Created by: Boris Samorodov + +.include "${.CURDIR}/../../devel/eric6/bsd.eric6.mk" + +PKGNAMESUFFIX= -qt5-${FLAVOR:U:S/_/-/} +DISTNAME= ${PORTNAME}-nolang-${DISTVERSION} +PORTREVISION= 0 +CATEGORIES= devel python + +DEPRECATED= Uses EOL Python 2.7 via www/py-qt5-webengine +EXPIRATION_DATE=2021-12-31 + +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}virtualenv>=15.2:devel/py-virtualenv@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docutils>=0.14:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}editorconfig>=0.12.0:editors/py-editorconfig@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}send2trash>=1.5:deskutils/py-send2trash@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}asttokens>=1.1:devel/py-asttokens@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown>=2.3.1:textproc/py-markdown@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} + +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}virtualenv>=15.2:devel/py-virtualenv@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docutils>=0.14:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}editorconfig>=0.12.0:editors/py-editorconfig@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}send2trash>=1.5:deskutils/py-send2trash@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}asttokens>=1.1:devel/py-asttokens@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown>=2.3.1:textproc/py-markdown@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} + +CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:C/^/${PORTNAME}-qt5-/} + +USES+= desktop-file-utils python:3.5+ pyqt:5 shebangfix +USE_PYTHON= flavors +USE_PYQT= chart core gui qscintilla2 webengine \ + help_run network_run svg_run sql_run +INSTALL_PY= install.py -c -f eric6config.freebsd -i ${STAGEDIR} +SHEBANG_FILES= *.py eric/eric6/*.py eric/scripts/*.py +SUB_FILES= eric6.desktop +MASTERPORT= yes + +PORTDATA= * +PORTDOCS= * +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES + +.include + +post-patch: + ${RM} ${WRKSRC}/eric/i18n/*.qm ${WRKSRC}/eric/i18n/*.ts + +do-configure: + ${SED} -e 's,PYTHON_SITELIBDIR,${PYTHON_SITELIBDIR},' \ + -e 's,PREFIX,${PREFIX},' \ + -e 's,DATADIR,${DATADIR},' \ + -e 's,LOCALBASE,${LOCALBASE},' \ + -e 's,DOCSDIR,${DOCSDIR},' \ + -e 's,EXAMPLESDIR,${EXAMPLESDIR},' \ + < ${FILESDIR}/config > ${WRKSRC}/eric6config.freebsd + +do-install: + @(cd ${WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_PY}) + +post-install: + ${INSTALL_DATA} ${WRKDIR}/eric6.desktop ${STAGEDIR}${PREFIX}/share/applications/ + ${LN} -sf ${DATADIR:C|${PREFIX}(/share(/pixmaps)?)?||:C|/[^/]+|../|g}eric6/icons/default/eric.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/eric6.png + @${MKDIR} ${STAGEDIR}${DATADIR}/i18n + ${REINPLACE_CMD} -e 's|${STAGEDIR}|${DATADIR}|g' \ + -e 's|${WRKSRC}|${DATADIR}|g' \ + ${STAGEDIR}/${DATADIR}/eric6install.json + @${RM} ${STAGEDIR}/${DATADIR}/eric6install.json.bak + +.include diff --git a/devel/eric6/Makefile.inc b/devel/eric6/Makefile.inc new file mode 100644 index 000000000000..3c6ab023316d --- /dev/null +++ b/devel/eric6/Makefile.inc @@ -0,0 +1,22 @@ +# Created by: Boris Samorodov +# +# This is a set of Makefile macros which allow to build the +# localized language packages for devel/eric6: +# german/eric6, russian/eric6, devel/es-eric6 + +.include "${.CURDIR}/../../devel/eric6/bsd.eric6.mk" + +PKGNAMEPREFIX= ${I18N_LANG}- +DISTNAME= ${PORTNAME}-i18n-${I18N_LANG}-${PORTVERSION} + +COMMENT= ${I18N_LANG} i18n package for Eric6 IDE + +NO_ARCH= yes +NO_BUILD= yes +PLIST_FILES= ${DATADIR}/i18n/${PORTNAME}_${I18N_LANG}.qm + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/i18n + ${INSTALL_DATA} ${WRKSRC}/eric/eric6/i18n/${PORTNAME}_${I18N_LANG}.qm ${STAGEDIR}${DATADIR}/i18n/ + +.include diff --git a/devel/eric6/bsd.eric6.mk b/devel/eric6/bsd.eric6.mk new file mode 100644 index 000000000000..6f6afc6b8257 --- /dev/null +++ b/devel/eric6/bsd.eric6.mk @@ -0,0 +1,22 @@ +# Created by: Boris Samorodov +# +# This is a set of Makefile macros that are common between devel/eric6 and +# localized language packages for devel/eric6: +# german/eric6, russian/eric6, devel/es-eric6 + +PORTNAME= eric6 +PORTVERSION= 21.11 +PORTREVISION?= 0 +MASTER_SITES= SF/eric-ide/${PORTNAME}/stable/${PORTVERSION} +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +MAINTAINER= fluffy@FreeBSD.org +COMMENT= Full featured Python and Ruby editor and IDE based on Qt + +LICENSE= GPLv3 + +DESCR= ${.CURDIR}/../../devel/eric6/pkg-descr +MAKE_ENV+= "HOME=${WRKDIR}" + +NO_ARCH= yes +NO_BUILD= yes diff --git a/devel/eric6/distinfo b/devel/eric6/distinfo new file mode 100644 index 000000000000..68d4504b0814 --- /dev/null +++ b/devel/eric6/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1636374251 +SHA256 (eric6-nolang-21.11.tar.gz) = 769e85fbf06650069e41b7587b13ae5c07c68ef49ea1cf9d38f19ea8655bb0e1 +SIZE (eric6-nolang-21.11.tar.gz) = 12945495 diff --git a/devel/eric6/files/config b/devel/eric6/files/config new file mode 100644 index 000000000000..e93b28228f01 --- /dev/null +++ b/devel/eric6/files/config @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# +# This module contains the configuration of the individual eric6 installation +# + +cfg = { + 'ericDir' : 'DATADIR', + 'ericPixDir' : 'DATADIR/pixmaps', + 'ericIconDir' : 'DATADIR/icons', + 'ericDTDDir' : 'DATADIR/DTDs', + 'ericCSSDir' : 'DATADIR/CSSs', + 'ericStylesDir' : 'DATADIR/Styles', + 'ericDocDir' : 'DOCSDIR', + 'ericExamplesDir' : 'EXAMPLESDIR', + 'ericTranslationsDir' : 'DATADIR/i18n', + 'ericTemplatesDir' : 'DATADIR/DesignerTemplates', + 'ericCodeTemplatesDir' : 'DATADIR/CodeTemplates', + 'ericOthersDir' : 'DATADIR/Others', + 'bindir' : 'PREFIX/bin', + 'mdir' : 'PYTHON_SITELIBDIR', + 'apidir' : 'LOCALBASE/share/qt5/qsci/api', +} diff --git a/devel/eric6/files/eric6.desktop.in b/devel/eric6/files/eric6.desktop.in new file mode 100644 index 000000000000..bdcfcabfaea2 --- /dev/null +++ b/devel/eric6/files/eric6.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Eric IDE +GenericName=Python and Ruby IDE +Comment=Full featured Python and Ruby editor and IDE based on Qt4 +Type=Application +Exec=eric6 +Icon=eric6 +MimeType=application/x-python;application/x-eric; +Categories=Development;TextEditor;Qt;Application; +Terminal=false diff --git a/devel/eric6/pkg-descr b/devel/eric6/pkg-descr new file mode 100644 index 000000000000..f5830555dd10 --- /dev/null +++ b/devel/eric6/pkg-descr @@ -0,0 +1,11 @@ +Eric is a full featured Python and Ruby editor and IDE, written in python. + +It is based on the cross platform Qt gui toolkit, integrating the highly +flexible Scintilla editor control. It is designed to be usable as everyday's +quick and dirty editor as well as being usable as a professional project +management tool integrating many advanced features Python offers +the professional coder. + +This is a port of eric6 (based on Qt5). + +WWW: https://eric-ide.python-projects.org/index.html diff --git a/devel/eric6/pkg-message b/devel/eric6/pkg-message new file mode 100644 index 000000000000..9cf10be76e1d --- /dev/null +++ b/devel/eric6/pkg-message @@ -0,0 +1,10 @@ +[ +{ type: install + message: <