View | Details | Raw Unified | Return to bug 228605 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-13 / +6 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	grass
4
PORTNAME=	grass
5
PORTVERSION=	7.4.0
5
PORTVERSION=	7.4.0
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	databases geography
7
CATEGORIES=	databases geography
8
MASTER_SITES=	http://grass.osgeo.org/%SUBDIR%/ \
8
MASTER_SITES=	http://grass.osgeo.org/%SUBDIR%/ \
9
		http://grass.cict.fr/%SUBDIR%/ \
9
		http://grass.cict.fr/%SUBDIR%/ \
Lines 25-31 Link Here
25
LICENSE=	GPLv2+
25
LICENSE=	GPLv2+
26
LICENSE_FILE=	${WRKSRC}/GPL.TXT
26
LICENSE_FILE=	${WRKSRC}/GPL.TXT
27
27
28
BROKEN=		fails to package
28
BROKEN_sparc64=         Does not configure on sparc64
29
29
30
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy@${PY_FLAVOR}
30
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy@${PY_FLAVOR}
31
LIB_DEPENDS=	libgdal.so:graphics/gdal \
31
LIB_DEPENDS=	libgdal.so:graphics/gdal \
Lines 38-44 Link Here
38
		libgeos.so:graphics/geos
38
		libgeos.so:graphics/geos
39
RUN_DEPENDS=	bash:shells/bash
39
RUN_DEPENDS=	bash:shells/bash
40
40
41
USES=		fortran gettext gmake iconv jpeg perl5 pkgconfig python:2.7 \
41
USES=		compiler:openmp fortran gettext gmake iconv jpeg perl5 pkgconfig python:2.7 \
42
		readline shebangfix tk
42
		readline shebangfix tk
43
SHEBANG_LANG=	nviz
43
SHEBANG_LANG=	nviz
44
nviz_OLD_CMD=	nviz
44
nviz_OLD_CMD=	nviz
Lines 78-85 Link Here
78
		VERSION="${PORTVERSION}" \
78
		VERSION="${PORTVERSION}" \
79
		VER="${PORTVERSION:R:C/\.//}"
79
		VER="${PORTVERSION:R:C/\.//}"
80
80
81
BROKEN_sparc64=		Does not configure on sparc64
82
83
OPTIONS_DEFINE=		ATLAS LAS MOTIF NETCDF PDAL
81
OPTIONS_DEFINE=		ATLAS LAS MOTIF NETCDF PDAL
84
OPTIONS_MULTI=		DB
82
OPTIONS_MULTI=		DB
85
OPTIONS_MULTI_DB=	MYSQL ODBC PGSQL SQLITE
83
OPTIONS_MULTI_DB=	MYSQL ODBC PGSQL SQLITE
Lines 147-158 Link Here
147
	@${REINPLACE_CMD} \
145
	@${REINPLACE_CMD} \
148
		's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make
146
		's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make
149
# Replace hardcoded python interpreter to PYTHON_CMD
147
# Replace hardcoded python interpreter to PYTHON_CMD
150
	@${REINPLACE_CMD} -e 's|env python|env ${PYTHON_CMD}|g' \
151
		${WRKSRC}/lib/gis/parser_script.c \
152
		${WRKSRC}/general/g.parser/g.parser.html \
153
		${WRKSRC}/lib/python/docs/src/script_intro.rst \
154
		${WRKSRC}/lib/init/grass7.html \
155
		${WRKSRC}/raster/r.solute.transport/r.solute.transport.html
156
	@${REINPLACE_CMD} "s|'GRASS_PYTHON', 'python'|'GRASS_PYTHON', \'${PYTHON_CMD}\'|g" \
148
	@${REINPLACE_CMD} "s|'GRASS_PYTHON', 'python'|'GRASS_PYTHON', \'${PYTHON_CMD}\'|g" \
157
		${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py
149
		${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py
158
	@${REINPLACE_CMD} 's|GRASS_PYTHON=python|GRASS_PYTHON=${PYTHON_CMD}|g' \
150
	@${REINPLACE_CMD} 's|GRASS_PYTHON=python|GRASS_PYTHON=${PYTHON_CMD}|g' \
Lines 160-170 Link Here
160
	@${REINPLACE_CMD} \
152
	@${REINPLACE_CMD} \
161
		"s|environ\['GRASS_PYTHON'\] = "'"python"'"|environ['GRASS_PYTHON'] = "'"${PYTHON_CMD}"'"|g" \
153
		"s|environ\['GRASS_PYTHON'\] = "'"python"'"|environ['GRASS_PYTHON'] = "'"${PYTHON_CMD}"'"|g" \
162
		${WRKSRC}/lib/python/script/setup.py
154
		${WRKSRC}/lib/python/script/setup.py
163
	@${FIND} ${WRKSRC} -type f -name "*.py" | ${XARGS} ${REINPLACE_CMD} \
155
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
164
		's|env python|env ${PYTHON_CMD}|g'
156
		's|#!/usr/bin/env python|#!/usr/bin/env ${PYTHON_CMD}|'
165
157
166
post-install:
158
post-install:
167
	@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/
159
	@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/
160
	@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/docs/html/colortables/*bak.png
168
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/*
161
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/*
169
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/*
162
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/*
170
.for i in clean_temp current_time_s_ms echo i.find lock run r.watershed/seg r.watershed/ram
163
.for i in clean_temp current_time_s_ms echo i.find lock run r.watershed/seg r.watershed/ram

Return to bug 228605