aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Naylor <dbn@FreeBSD.org>2018-01-10 18:39:31 +0000
committerDavid Naylor <dbn@FreeBSD.org>2018-01-10 18:39:31 +0000
commit95a1554a33537b2f88e152ab4b7ea8696c366252 (patch)
tree26c7daccd16baa58153466e787fb687a904854d6
parent78830c95d97c6f38171c3141bc7db23e5cdba8a0 (diff)
downloadports-95a1554a33537b2f88e152ab4b7ea8696c366252.tar.gz
ports-95a1554a33537b2f88e152ab4b7ea8696c366252.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
Notes
Notes: svn path=/head/; revision=458671
-rw-r--r--chinese/eric6/distinfo6
-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
-rw-r--r--french/eric6/distinfo6
-rw-r--r--german/eric6/distinfo6
-rw-r--r--portuguese/eric6/distinfo6
-rw-r--r--russian/eric6/Makefile1
-rw-r--r--russian/eric6/distinfo6
19 files changed, 92 insertions, 137 deletions
diff --git a/chinese/eric6/distinfo b/chinese/eric6/distinfo
index e4974f63fb4a..e1fddf45e9cb 100644
--- a/chinese/eric6/distinfo
+++ b/chinese/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051439
-SHA256 (eric6-i18n-zh_CN-17.10.tar.gz) = 23dc3d8ab877330ca63402edb7d1f051a7d3b1903e7cef3c629e17f35884e1ec
-SIZE (eric6-i18n-zh_CN-17.10.tar.gz) = 595047
+TIMESTAMP = 1512941853
+SHA256 (eric6-i18n-zh_CN-17.11.1.tar.gz) = 50446df66d835331ad8bd5217ce30770872c7228b319aff9b0b787c0a6a5a9a1
+SIZE (eric6-i18n-zh_CN-17.11.1.tar.gz) = 595829
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
diff --git a/french/eric6/distinfo b/french/eric6/distinfo
index 4fafc5a8da34..e6c3303f912b 100644
--- a/french/eric6/distinfo
+++ b/french/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051719
-SHA256 (eric6-i18n-fr-17.10.tar.gz) = b02c117c3847116e4358ceadee71d05d4345adf11635cb8c75c429c993c906c3
-SIZE (eric6-i18n-fr-17.10.tar.gz) = 549936
+TIMESTAMP = 1512942125
+SHA256 (eric6-i18n-fr-17.11.1.tar.gz) = b9b3d42b896ea6bd23e34abdc2245d1fcc9e65a0787b9116e19a04a94f9ec298
+SIZE (eric6-i18n-fr-17.11.1.tar.gz) = 550428
diff --git a/german/eric6/distinfo b/german/eric6/distinfo
index 4a930f043106..8c77bfce3b19 100644
--- a/german/eric6/distinfo
+++ b/german/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051764
-SHA256 (eric6-i18n-de-17.10.tar.gz) = 9586ca5d968f26ccfcac43abb15c2ca7c665ad5226a1660bb3d3915de6ce961b
-SIZE (eric6-i18n-de-17.10.tar.gz) = 895479
+TIMESTAMP = 1512942181
+SHA256 (eric6-i18n-de-17.11.1.tar.gz) = e5ea6ef07f6b35265670b71c0d014edb1a77847d3c5207a673e74cc411223e14
+SIZE (eric6-i18n-de-17.11.1.tar.gz) = 898485
diff --git a/portuguese/eric6/distinfo b/portuguese/eric6/distinfo
index 94ee3a06f33b..addcaec5662d 100644
--- a/portuguese/eric6/distinfo
+++ b/portuguese/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051809
-SHA256 (eric6-i18n-pt-17.10.tar.gz) = fa2e4a7103f940222e2a51e7e9f015fcdd140ab278968cc79a63e8bafc06f594
-SIZE (eric6-i18n-pt-17.10.tar.gz) = 621317
+TIMESTAMP = 1512942234
+SHA256 (eric6-i18n-pt-17.11.1.tar.gz) = 8eb5cf2e8c1c83540c992fcca225e870222b15a5d400a1dd4beca4f8485777ae
+SIZE (eric6-i18n-pt-17.11.1.tar.gz) = 622235
diff --git a/russian/eric6/Makefile b/russian/eric6/Makefile
index 041e9920d7ec..42bcc04b7b1d 100644
--- a/russian/eric6/Makefile
+++ b/russian/eric6/Makefile
@@ -2,5 +2,6 @@
# $FreeBSD$
CATEGORIES= russian devel python
+I18N_LANG= ru
.include "${.CURDIR}/../../devel/eric6/Makefile.inc"
diff --git a/russian/eric6/distinfo b/russian/eric6/distinfo
index b102b9fc2113..485d995c7c64 100644
--- a/russian/eric6/distinfo
+++ b/russian/eric6/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509051853
-SHA256 (eric6-i18n-ru-17.10.tar.gz) = 1f11fff894aa8f40d1a7ccdef8aaa77fbce52185cfef06b42cbd5833269f4f7e
-SIZE (eric6-i18n-ru-17.10.tar.gz) = 939464
+TIMESTAMP = 1512942289
+SHA256 (eric6-i18n-ru-17.11.1.tar.gz) = 1297aa73b80ff795bcd13898c63af2d71a61348f48816a64bbc88fd8dc4a7799
+SIZE (eric6-i18n-ru-17.11.1.tar.gz) = 943045