mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
. support staging;
. remove well-known license file (GPLv3).
This commit is contained in:
parent
29e0aadcd5
commit
2bd232e060
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329493
@ -4,8 +4,6 @@
|
||||
CATEGORIES= devel python
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.GPL3
|
||||
|
||||
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} \
|
||||
@ -16,11 +14,12 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
||||
${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
||||
|
||||
USES= desktop-file-utils shared-mime-info
|
||||
INSTALL_CMD= install.py -c -f eric4config.freebsd
|
||||
INSTALL_CMD= install.py -c -f eric4config.freebsd -i ${STAGEDIR}
|
||||
PLIST_FILES=
|
||||
SUB_FILES= eric4.desktop
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
EXTRA_PATCHES=
|
||||
|
||||
NO_STAGE= yes
|
||||
do-configure:
|
||||
${SED} -e 's,PYTHON_SITELIBDIR,${PYTHON_SITELIBDIR},' \
|
||||
-e 's,PREFIX,${PREFIX},' \
|
||||
@ -31,9 +30,9 @@ do-configure:
|
||||
< ${FILESDIR}/config > ${WRKSRC}/eric4config.freebsd
|
||||
|
||||
post-install:
|
||||
${INSTALL} -d ${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKDIR}/eric4.desktop ${PREFIX}/share/applications/
|
||||
${LN} -sf ${DATADIR}/icons/default/eric.png ${PREFIX}/share/pixmaps/
|
||||
@${MKDIR} ${DATADIR}/i18n
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKDIR}/eric4.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
||||
${LN} -sf ${DATADIR}/icons/default/eric.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/i18n
|
||||
|
||||
.include "${.CURDIR}/../../devel/eric4/Makefile.inc"
|
||||
|
@ -19,11 +19,12 @@ LICENSE= GPLv3
|
||||
RUN_DEPENDS?= ${PREFIX}/bin/eric4:${PORTSDIR}/devel/eric4
|
||||
|
||||
I18N_LANG?= ru
|
||||
INSTALL_CMD?= install-i18n.py
|
||||
INSTALL_CMD?= install-i18n.py -p ${STAGEDIR}
|
||||
|
||||
USE_PYTHON= 2.5+
|
||||
NO_BUILD= yes
|
||||
PLIST_FILES?= %%DATADIR%%/i18n/${PORTNAME}_${I18N_LANG}.qm
|
||||
EXTRA_PATCHES?= ${.CURDIR}/../../devel/eric4/files/extra-patch-install-i18n.py
|
||||
|
||||
do-install:
|
||||
@(cd ${WRKSRC}; \
|
||||
|
@ -17,6 +17,6 @@ cfg = {
|
||||
'ericCodeTemplatesDir' : 'DATADIR/CodeTemplates',
|
||||
'ericOthersDir' : 'DATADIR/Others',
|
||||
'bindir' : 'PREFIX/bin',
|
||||
'mdir' : 'DATADIR',
|
||||
'mdir' : 'PYTHON_SITELIBDIR',
|
||||
'apidir' : 'LOCALBASE/share/qt4/qsci/api',
|
||||
}
|
||||
|
43
devel/eric4/files/extra-patch-install-i18n.py
Normal file
43
devel/eric4/files/extra-patch-install-i18n.py
Normal file
@ -0,0 +1,43 @@
|
||||
--- install-i18n.py.orig 2013-08-19 13:16:47.862300000 +0400
|
||||
+++ install-i18n.py 2013-10-05 17:55:20.162267518 +0400
|
||||
@@ -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()
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -5,5 +5,4 @@ CATEGORIES= french devel python
|
||||
|
||||
I18N_LANG= fr
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${.CURDIR}/../../devel/eric4/Makefile.inc"
|
||||
|
@ -5,5 +5,4 @@ CATEGORIES= german devel python
|
||||
|
||||
I18N_LANG= de
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${.CURDIR}/../../devel/eric4/Makefile.inc"
|
||||
|
@ -3,5 +3,4 @@
|
||||
|
||||
CATEGORIES= russian devel python
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${.CURDIR}/../../devel/eric4/Makefile.inc"
|
||||
|
Loading…
Reference in New Issue
Block a user