aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordbn <dbn@FreeBSD.org>2018-01-11 02:39:31 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:22:10 +0800
commit39e596d6fb101c67607b5c86f0e6bdeb991ca58f (patch)
tree7055fc7055292a13fafb6236e54327567fb8c481 /devel
parentec40045bb918c434aa0061714fa51dc486263264 (diff)
downloadfreebsd-ports-gnome-39e596d6fb101c67607b5c86f0e6bdeb991ca58f.tar.gz
freebsd-ports-gnome-39e596d6fb101c67607b5c86f0e6bdeb991ca58f.tar.zst
freebsd-ports-gnome-39e596d6fb101c67607b5c86f0e6bdeb991ca58f.zip
devel/eric6: update to 17.11.1, add FLAVORS
- add FLAVORS for the following combinations [1]: - python: 2.7 and 3.6 - qt: 4 and 5 - simplify Makefiles: - all common macros between eric6 and the language packages are in devel/eric6/bsd.eric6.mk - devel/eric6/Makefile.inc only includes language package specific macros - eric6 specific macros are now moved into devel/eric6/Makefile - spelling error fixed in Makefile.inc - dependency on eric6 (for language packages) removed as the addition of flavors removes the ability to depend on a single port origin - install language files directly, since setup.py fails without eric6 installed Approved by: portmgr (mat) [1] Differential Revision: https://reviews.freebsd.org/D13448
Diffstat (limited to 'devel')
-rw-r--r--devel/cs-eric6/Makefile1
-rw-r--r--devel/cs-eric6/distinfo6
-rw-r--r--devel/eric6/Makefile45
-rw-r--r--devel/eric6/Makefile.inc48
-rw-r--r--devel/eric6/bsd.eric6.mk22
-rw-r--r--devel/eric6/distinfo6
-rw-r--r--devel/eric6/files/extra-patch-install-i18n.py49
-rw-r--r--devel/es-eric6/Makefile1
-rw-r--r--devel/es-eric6/distinfo6
-rw-r--r--devel/it-eric6/Makefile1
-rw-r--r--devel/it-eric6/distinfo6
-rw-r--r--devel/tr-eric6/Makefile1
-rw-r--r--devel/tr-eric6/distinfo6
13 files changed, 76 insertions, 122 deletions
diff --git a/devel/cs-eric6/Makefile b/devel/cs-eric6/Makefile
index 04bbb761e73a..df66f1786dfc 100644
--- a/devel/cs-eric6/Makefile
+++ b/devel/cs-eric6/Makefile
@@ -3,6 +3,5 @@
CATEGORIES= devel python
I18N_LANG= cs
-PKGNAMEPREFIX= ${I18N_LANG}-
.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
diff --git a/devel/cs-eric6/distinfo b/devel/cs-eric6/distinfo
index 0a19ca14bcec..e7c8c039f9b9 100644
--- a/devel/cs-eric6/distinfo
+++ b/devel/cs-eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051541
-SHA256 (eric6-i18n-cs-17.10.tar.gz) = 13e6e3bea8f87b77d093bde57bc6204f18d40becbfb16b8b67dc257e8a0d2c15
-SIZE (eric6-i18n-cs-17.10.tar.gz) = 605270
+TIMESTAMP = 1512941911
+SHA256 (eric6-i18n-cs-17.11.1.tar.gz) = 38a1be9635a0dcb2ad6a22fa2f55c9387db3429608f134d489a7d0d0c91d9e58
+SIZE (eric6-i18n-cs-17.11.1.tar.gz) = 606237
diff --git a/devel/eric6/Makefile b/devel/eric6/Makefile
index c0384383a283..77826c2fe5ec 100644
--- a/devel/eric6/Makefile
+++ b/devel/eric6/Makefile
@@ -1,9 +1,8 @@
# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$
-PORTREVISION= 1
+PKGNAMESUFFIX= -${FLAVOR:U:S/_/-/}
CATEGORIES= devel python
-DISTNAME= ${PORTNAME}-${PORTVERSION}
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt${PYQTVER}/QtGui.so:x11-toolkits/py-qt${PYQTVER}-gui@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/PyQt${PYQTVER}/Qsci.so:devel/py-qt${PYQTVER}-qscintilla2@${PY_FLAVOR}
@@ -15,27 +14,35 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
${PYTHON_SITELIBDIR}/PyQt${PYQTVER}/QtHelp.so:devel/py-qt${PYQTVER}-help@${PY_FLAVOR} \
${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:databases/py-sqlite3@${PY_FLAVOR}
-USES= desktop-file-utils
+CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:C/^/${PKGNAMEPREFIX}${PORTNAME}-/:C/$/-[0-9]*/}
+
+USES= desktop-file-utils python:${FLAVOR:C/.*_py([0-9])/\1./}
INSTALL_CMD= install.py -c -f eric6config.freebsd -i ${STAGEDIR} --pyqt=${PYQTVER}
-PLIST_FILES=
SUB_FILES= eric6.desktop
-OPTIONS_DEFINE= DOCS EXAMPLES
-OPTIONS_DEFAULT=PYQT4
-OPTIONS_SINGLE= PYQT
-OPTIONS_SINGLE_PYQT= PYQT4 PYQT5
-PYQT_DESC= PyQt Version
-PYQT4_DESC= Python bindings for Qt4
-PYQT4_VARS= PYQTVER=4
-PYQT5_DESC= Python bindings for Qt5
-PYQT5_VARS= PYQTVER=5
-PYQT5_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt5/QtWebKitWidgets.so:www/py-qt5-webkitwidgets@${PY_FLAVOR}
-EXTRA_PATCHES=
-MASTERPORT=
+PYQTVER= ${FLAVOR:C/qt([45])_py[0-9]+/\1/}
+MASTERPORT= yes
PORTDATA= *
PORTDOCS= *
PORTEXAMPLES= *
+.include "${.CURDIR}/bsd.eric6.mk"
+.include <bsd.port.options.mk>
+
+PY_FLAVORS= py${PYTHON_DEFAULT:S/.//} py${PYTHON2_DEFAULT:S/.//} py${PYTHON3_DEFAULT:S/.//}
+.for flavor in ${PY_FLAVORS}
+. if empty(FLAVORS:Mqt4_${flavor})
+FLAVORS:= ${FLAVORS} qt4_${flavor} qt5_${flavor}
+. endif
+.endfor
+.if empty(FLAVOR)
+FLAVOR= ${FLAVORS:[1]}
+.endif
+
+.if ${PYQTVER} == 5
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/PyQt5/QtWebKitWidgets.so:www/py-qt5-webkitwidgets@${PY_FLAVOR}
+.endif
+
post-patch:
${RM} ${WRKSRC}/eric/i18n/*.qm ${WRKSRC}/eric/i18n/*.ts
@@ -48,10 +55,14 @@ do-configure:
-e 's,EXAMPLESDIR,${EXAMPLESDIR},' \
< ${FILESDIR}/config > ${WRKSRC}/eric6config.freebsd
+do-install:
+ @(cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_CMD})
+
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
-.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
+.include <bsd.port.mk>
diff --git a/devel/eric6/Makefile.inc b/devel/eric6/Makefile.inc
index 2435999b4c04..4c33b5585461 100644
--- a/devel/eric6/Makefile.inc
+++ b/devel/eric6/Makefile.inc
@@ -1,48 +1,22 @@
# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$
#
-# This is a set of Makefile macros which allow to build the core and
+# This is a set of Makefile macros which allow to build the
# localized language packages for devel/eric6:
-# french/eric6, german/eric6, russian/eric6
+# chinese/eric6, french/eric6, german/eric6, portuguese/eric6, russian/eric6
+# devel/cs-eric6, devel/es-eric6, devel/it-eric6, devel/tr-eric6
-PORTNAME= eric6
-PORTVERSION= 17.10
-MASTER_SITES= SF/eric-ide/${PORTNAME}/stable/${PORTVERSION}
-DISTNAME?= ${PORTNAME}-i18n-${I18N_LANG}-${PORTVERSION}
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+.include "${.CURDIR}/../../devel/eric6/bsd.eric6.mk"
-MAINTAINER?= dbn@FreeBSD.org
-COMMENT= Full featured Python and Ruby editor and IDE based on Qt
+PKGNAMEPREFIX= ${I18N_LANG}-
+DISTNAME= ${PORTNAME}-i18n-${I18N_LANG}-${PORTVERSION}
-LICENSE= GPLv3
-
-RUN_DEPENDS?= ${LOCALBASE}/bin/eric6:devel/eric6
-
-I18N_LANG?= ru
-INSTALL_CMD?= install-i18n.py -p ${STAGEDIR}
-MAKE_ENV+= "HOME=${WRKDIR}"
-
-USES+= python:2.7
-NO_BUILD= yes
-PLIST_FILES?= %%DATADIR%%/i18n/${PORTNAME}_${I18N_LANG}.qm
-EXTRA_PATCHES?= ${.CURDIR}/../../devel/eric6/files/extra-patch-install-i18n.py
-
-.if ! defined(MASTERPORT)
+INSTALL_CMD= install-i18n.py -p ${STAGEDIR}
NO_ARCH= yes
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_VER} <= 2.7
-PLIST_SUB+= PYTHON2=
-.else
-PLIST_SUB+= PYTHON2="@comment "
-.endif
+PLIST_FILES= ${DATADIR}/i18n/${PORTNAME}_${I18N_LANG}.qm
do-install:
- @(cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_CMD})
-
-DESCR= ${.CURDIR}/../../devel/eric6/pkg-descr
+ ${MKDIR} ${STAGEDIR}${DATADIR}/i18n
+ ${INSTALL_DATA} ${WRKSRC}/eric/i18n/${PORTNAME}_${I18N_LANG}.qm ${STAGEDIR}${DATADIR}/i18n/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/eric6/bsd.eric6.mk b/devel/eric6/bsd.eric6.mk
new file mode 100644
index 000000000000..6e7c5c2e946e
--- /dev/null
+++ b/devel/eric6/bsd.eric6.mk
@@ -0,0 +1,22 @@
+# Created by: Boris Samorodov <bsam@FreeBSD.org>
+# $FreeBSD$
+#
+# This is a set of Makefile macros that are common between devel/eric6 and
+# localized language packages for devel/eric6:
+# chinese/eric6, french/eric6, german/eric6, portuguese/eric6, russian/eric6
+# devel/cs-eric6, devel/es-eric6, devel/it-eric6, devel/tr-eric6
+
+PORTNAME= eric6
+PORTVERSION= 17.11.1
+MASTER_SITES= SF/eric-ide/${PORTNAME}/stable/${PORTVERSION}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= dbn@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_BUILD= yes
diff --git a/devel/eric6/distinfo b/devel/eric6/distinfo
index 5fb6fbd57154..8f772b5796db 100644
--- a/devel/eric6/distinfo
+++ b/devel/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509047590
-SHA256 (eric6-17.10.tar.gz) = 2fdcde6d6a9c2b23b0ce488ef7e80c74b85900d24b4ced1760b761f543af35ce
-SIZE (eric6-17.10.tar.gz) = 18938811
+TIMESTAMP = 1512941764
+SHA256 (eric6-17.11.1.tar.gz) = 2a7eb6392ce5782ac514c96574587d40240b75e2a9fd970d859db842faeaa89c
+SIZE (eric6-17.11.1.tar.gz) = 18986262
diff --git a/devel/eric6/files/extra-patch-install-i18n.py b/devel/eric6/files/extra-patch-install-i18n.py
deleted file mode 100644
index fa0b56e8aa53..000000000000
--- a/devel/eric6/files/extra-patch-install-i18n.py
+++ /dev/null
@@ -1,49 +0,0 @@
---- 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 python
- # -*- coding: utf-8 -*-
-
- # Copyright (c) 2004 - 2015 Detlev Offenbach <detlev@die-offenbachs.de>
-@@ -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, 493) # 0o755
- 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()
-
diff --git a/devel/es-eric6/Makefile b/devel/es-eric6/Makefile
index 6c26b8f65e44..3eae50b12fab 100644
--- a/devel/es-eric6/Makefile
+++ b/devel/es-eric6/Makefile
@@ -3,6 +3,5 @@
CATEGORIES= devel python
I18N_LANG= es
-PKGNAMEPREFIX= ${I18N_LANG}-
.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
diff --git a/devel/es-eric6/distinfo b/devel/es-eric6/distinfo
index ecaa8ebb0fc0..c4b94f0353bc 100644
--- a/devel/es-eric6/distinfo
+++ b/devel/es-eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051586
-SHA256 (eric6-i18n-es-17.10.tar.gz) = b420e35e4d79319a5323dbf0650c083eea970424235fac5fbd32287267b592cd
-SIZE (eric6-i18n-es-17.10.tar.gz) = 897187
+TIMESTAMP = 1512941964
+SHA256 (eric6-i18n-es-17.11.1.tar.gz) = c960618db95ac6be2b9f46972ac925520fa02bdfa523fe9346a773f354dc0c3f
+SIZE (eric6-i18n-es-17.11.1.tar.gz) = 901638
diff --git a/devel/it-eric6/Makefile b/devel/it-eric6/Makefile
index 561b3b2ac42d..4004be0715c4 100644
--- a/devel/it-eric6/Makefile
+++ b/devel/it-eric6/Makefile
@@ -3,6 +3,5 @@
CATEGORIES= devel python
I18N_LANG= it
-PKGNAMEPREFIX= ${I18N_LANG}-
.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
diff --git a/devel/it-eric6/distinfo b/devel/it-eric6/distinfo
index aa1f6b1c1f25..eb6bc3abc054 100644
--- a/devel/it-eric6/distinfo
+++ b/devel/it-eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051631
-SHA256 (eric6-i18n-it-17.10.tar.gz) = 9c96dccf586e0d8f1772f8e5d7ab83014b6d9d0ad5c34b09fc5641d3cb9d7069
-SIZE (eric6-i18n-it-17.10.tar.gz) = 696894
+TIMESTAMP = 1512942017
+SHA256 (eric6-i18n-it-17.11.1.tar.gz) = 73ef8c70e4339e74aa55bbdbd1b6a191be3d2b5c043546a99ab5c7376f1abc26
+SIZE (eric6-i18n-it-17.11.1.tar.gz) = 681546
diff --git a/devel/tr-eric6/Makefile b/devel/tr-eric6/Makefile
index 71bfb33ba14c..0533109ad22c 100644
--- a/devel/tr-eric6/Makefile
+++ b/devel/tr-eric6/Makefile
@@ -3,6 +3,5 @@
CATEGORIES= devel python
I18N_LANG= tr
-PKGNAMEPREFIX= ${I18N_LANG}-
.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
diff --git a/devel/tr-eric6/distinfo b/devel/tr-eric6/distinfo
index e1da5a85fcb4..168c164730cb 100644
--- a/devel/tr-eric6/distinfo
+++ b/devel/tr-eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051675
-SHA256 (eric6-i18n-tr-17.10.tar.gz) = c1b848f935aa69efcb486cdc06b2442743aaf4a3a6dad4d1c33d5198e7529af9
-SIZE (eric6-i18n-tr-17.10.tar.gz) = 541728
+TIMESTAMP = 1512942072
+SHA256 (eric6-i18n-tr-17.11.1.tar.gz) = ab0031d9ff24cd5f5a69b767185c9d2b854246ef3eba659bdad56ef7bf86eae1
+SIZE (eric6-i18n-tr-17.11.1.tar.gz) = 542590