Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2015 10:32:29 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380762 - in head/devel: . eric6 eric6/files
Message-ID:  <201503081032.t28AWTI6051102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sun Mar  8 10:32:29 2015
New Revision: 380762
URL: https://svnweb.freebsd.org/changeset/ports/380762
QAT: https://qat.redports.org/buildarchive/r380762/

Log:
  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 Qt4).
  
  WWW: http://eric-ide.python-projects.org/index.html

Added:
  head/devel/eric6/
  head/devel/eric6/Makefile   (contents, props changed)
  head/devel/eric6/Makefile.inc   (contents, props changed)
  head/devel/eric6/distinfo   (contents, props changed)
  head/devel/eric6/files/
  head/devel/eric6/files/config   (contents, props changed)
  head/devel/eric6/files/eric6.desktop.in   (contents, props changed)
  head/devel/eric6/files/extra-patch-install-i18n.py   (contents, props changed)
  head/devel/eric6/pkg-descr   (contents, props changed)
  head/devel/eric6/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Mar  8 10:32:04 2015	(r380761)
+++ head/devel/Makefile	Sun Mar  8 10:32:29 2015	(r380762)
@@ -404,6 +404,7 @@
     SUBDIR += epm
     SUBDIR += epydoc
     SUBDIR += eric4
+    SUBDIR += eric6
     SUBDIR += eris
     SUBDIR += esdl
     SUBDIR += etcd

Added: head/devel/eric6/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/Makefile	Sun Mar  8 10:32:29 2015	(r380762)
@@ -0,0 +1,42 @@
+# Created by: Boris Samorodov <bsam@FreeBSD.org>
+# $FreeBSD$
+
+CATEGORIES=	devel python
+DISTNAME=	${PORTNAME}-${PORTVERSION}
+
+BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
+		${PYTHON_SITELIBDIR}/PyQt4/Qsci.so:${PORTSDIR}/devel/py-qt4-qscintilla2
+RUN_DEPENDS:=	${BUILD_DEPENDS} \
+		${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network \
+		${PYTHON_SITELIBDIR}/PyQt4/QtSvg.so:${PORTSDIR}/graphics/py-qt4-svg \
+		${PYTHON_SITELIBDIR}/PyQt4/QtSql.so:${PORTSDIR}/databases/py-qt4-sql \
+		${PYTHON_SITELIBDIR}/PyQt4/QtWebKit.so:${PORTSDIR}/www/py-qt4-webkit \
+		${PYTHON_SITELIBDIR}/PyQt4/QtHelp.so:${PORTSDIR}/devel/py-qt4-help \
+		${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
+
+USES=		desktop-file-utils
+INSTALL_CMD=	install.py -c -f eric6config.freebsd -i ${STAGEDIR}
+PLIST_FILES=
+SUB_FILES=	eric6.desktop
+OPTIONS_DEFINE=	DOCS EXAMPLES
+EXTRA_PATCHES=
+
+PORTDATA=	*
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+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
+
+post-install:
+	${INSTALL_DATA} ${WRKDIR}/eric6.desktop ${STAGEDIR}${PREFIX}/share/applications/
+	${LN} -sf ${DATADIR}/icons/default/eric.png ${STAGEDIR}${PREFIX}/share/pixmaps/eric6.png
+	@${MKDIR} ${STAGEDIR}${DATADIR}/i18n
+
+.include "${.CURDIR}/../../devel/eric6/Makefile.inc"

Added: head/devel/eric6/Makefile.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/Makefile.inc	Sun Mar  8 10:32:29 2015	(r380762)
@@ -0,0 +1,36 @@
+# Created by: Boris Samorodov <bsam@FreeBSD.org>
+# $FreeBSD$
+#
+# This is a set of Makefile macros which allow to build the core and
+# localized language packages for devel/eric6:
+# french/eric6, german/eric6, russian/eric6
+
+PORTNAME=	eric6
+PORTVERSION=	6.0.3
+MASTER_SITES=	SF/eric-ide/${PORTNAME}/stable/${PORTVERSION}
+DISTNAME?=	${PORTNAME}-i18n-${I18N_LANG}-${PORTVERSION}
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER?=	bsam@FreeBSD.org
+COMMENT=	Full featured Python and Ruby editor and IDE based on Qt4
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS?=	${PREFIX}/bin/eric6:${PORTSDIR}/devel/eric6
+
+I18N_LANG?=	ru
+INSTALL_CMD?=	install-i18n.py -p ${STAGEDIR}
+MAKE_ENV+=	"HOME=${WRKDIR}"
+
+USES+=		python:2
+NO_BUILD=	yes
+PLIST_FILES?=	%%DATADIR%%/i18n/${PORTNAME}_${I18N_LANG}.qm
+EXTRA_PATCHES?=	${.CURDIR}/../../devel/eric6/files/extra-patch-install-i18n.py
+
+do-install:
+	@(cd ${WRKSRC}; \
+	${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_CMD})
+
+DESCR=		${.CURDIR}/../../devel/eric6/pkg-descr
+
+.include <bsd.port.mk>

Added: head/devel/eric6/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/distinfo	Sun Mar  8 10:32:29 2015	(r380762)
@@ -0,0 +1,2 @@
+SHA256 (eric6-6.0.3.tar.gz) = 72a70e03be3d3f2e28ffd0336486504c969761597b293188eaf45cccdcc4adc1
+SIZE (eric6-6.0.3.tar.gz) = 10618406

Added: head/devel/eric6/files/config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/files/config	Sun Mar  8 10:32:29 2015	(r380762)
@@ -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/qt4/qsci/api',
+}

Added: head/devel/eric6/files/eric6.desktop.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/files/eric6.desktop.in	Sun Mar  8 10:32:29 2015	(r380762)
@@ -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

Added: head/devel/eric6/files/extra-patch-install-i18n.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/files/extra-patch-install-i18n.py	Sun Mar  8 10:32:29 2015	(r380762)
@@ -0,0 +1,58 @@
+--- install-i18n.py.orig	2013-08-19 13:16:47.862300000 +0400
++++ install-i18n.py	2013-10-05 17:55:20.162267518 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python3
++#!/usr/bin/env python2
+ # -*- coding: utf-8 -*-
+ 
+ # Copyright (c) 2004 - 2015 Detlev Offenbach <detlev@die-offenbachs.de>
+@@ -16,7 +16,7 @@
+ import shutil
+ import glob
+ 
+-from PyQt5.QtCore import QDir
++from PyQt4.QtCore import QDir
+ 
+ try:
+     from eric6config import getConfig
+@@ -45,6 +45,7 @@
+ # Define the globals.
+ progName = None
+ configDir = getConfigDir()
++distDir = None
+ privateInstall = False
+ 
+ def usage(rcode = 2):
+@@ -71,7 +72,9 @@
+     global privateInstall, configDir
+     
+     if privateInstall:
+-        targetDir = configDir
++        targetDir = distDir + getConfig('ericTranslationsDir')
++        if not os.path.exists(targetDir):
++            os.makedirs(targetDir, 0755)
+     else:
+         targetDir = getConfig('ericTranslationsDir')
+     
+@@ -97,11 +100,12 @@
+     progName = os.path.basename(argv[0])
+ 
+     try:
+-        optlist, args = getopt.getopt(argv[1:], "hp")
++        optlist, args = getopt.getopt(argv[1:],"hp:")
+     except getopt.GetoptError:
+         usage()
+ 
+     global platBinDir
++    global distDir
+     
+     depChecks = 1
+ 
+@@ -110,6 +114,7 @@
+             usage(0)
+         elif opt == "-p":
+             privateInstall = 1
++            distDir = os.path.normpath(arg)
+         
+     installTranslations()
+ 

Added: head/devel/eric6/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/pkg-descr	Sun Mar  8 10:32:29 2015	(r380762)
@@ -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 Qt4).
+
+WWW: http://eric-ide.python-projects.org/index.html

Added: head/devel/eric6/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/eric6/pkg-plist	Sun Mar  8 10:32:29 2015	(r380762)
@@ -0,0 +1,31 @@
+bin/eric6
+bin/eric6_api
+bin/eric6_compare
+bin/eric6_configure
+bin/eric6_diff
+bin/eric6_doc
+bin/eric6_editor
+bin/eric6_iconeditor
+bin/eric6_plugininstall
+bin/eric6_pluginrepository
+bin/eric6_pluginuninstall
+bin/eric6_qregexp
+bin/eric6_re
+bin/eric6_sqlbrowser
+bin/eric6_tray
+bin/eric6_trpreviewer
+bin/eric6_uipreviewer
+bin/eric6_unittest
+bin/eric6_webbrowser
+@comment lib/python2.7/site-packages/eric6.pth
+lib/python2.7/site-packages/eric6config.py
+lib/python2.7/site-packages/eric6config.pyc
+lib/python2.7/site-packages/eric6plugins/__init__.py
+share/applications/eric6.desktop
+share/pixmaps/eric6.png
+share/qt4/qsci/api/python/eric6.api
+share/qt4/qsci/api/python/zope-2.10.7.api
+share/qt4/qsci/api/python/zope-2.11.2.api
+share/qt4/qsci/api/python/zope-3.3.1.api
+share/qt4/qsci/api/ruby/Ruby-1.8.7.api
+share/qt4/qsci/api/ruby/eric6.api



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