Skip to content

Commit

Permalink
graphics/qgis*: Use GRASS8
Browse files Browse the repository at this point in the history
Approved by:	rhurlin (via mail)
  • Loading branch information
lbartoletti committed Mar 15, 2024
1 parent 4d6dff2 commit dcf7214
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 73 deletions.
22 changes: 6 additions & 16 deletions graphics/qgis-ltr/Makefile
@@ -1,5 +1,6 @@
PORTNAME= qgis
DISTVERSION= 3.34.4
PORTREVISION= 1
CATEGORIES= graphics geography
MASTER_SITES= https://qgis.org/downloads/
PKGNAMESUFFIX= -ltr
Expand Down Expand Up @@ -149,22 +150,17 @@ CMAKE_ARGS+= -Wno-dev
CMAKE_OFF+= SUPPRESS_QT_WARNINGS
.endif

OPTIONS_DEFINE= SERVER
OPTIONS_DEFAULT= SERVER GRASS8
OPTIONS_RADIO= GRASS
OPTIONS_RADIO_GRASS= GRASS7 GRASS8
OPTIONS_DEFINE= SERVER GRASS
OPTIONS_DEFAULT= SERVER GRASS
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes

GRASS_DESC= Add GRASS GIS to processing tools
SERVER_DESC= Enable QGIS server

GRASS7_BUILD_DEPENDS= grass7:databases/grass7
GRASS7_RUN_DEPENDS= ${GRASS7_BUILD_DEPENDS}
GRASS7_CMAKE_BOOL= WITH_GRASS7
GRASS8_BUILD_DEPENDS= grass8:databases/grass8
GRASS8_RUN_DEPENDS= ${GRASS8_BUILD_DEPENDS}
GRASS8_CMAKE_BOOL= WITH_GRASS8
GRASS_BUILD_DEPENDS= grass8:databases/grass8
GRASS_RUN_DEPENDS= ${GRASS_BUILD_DEPENDS}
GRASS_CMAKE_BOOL= WITH_GRASS8
SERVER_LIB_DEPENDS= libfcgi.so:www/fcgi
SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE

Expand All @@ -187,12 +183,6 @@ post-patch:

pre-configure:
${MKDIR} ${CONFIGURE_WRKSRC}/bin && ${LN} -s ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/bin/python3
.if ${PORT_OPTIONS:MGRASS7} || ${PORT_OPTIONS:MGRASS8}
PLIST_SUB+= GRASS="" NO_GRASS="@comment "
.else
PLIST_SUB+= GRASS="@comment " NO_GRASS=""
.endif


post-install:
@${RM} ${STAGEDIR}${DATADIR}/python/pytz/tzfile.py.bak
Expand Down
30 changes: 10 additions & 20 deletions graphics/qgis-ltr/pkg-plist
Expand Up @@ -2365,24 +2365,17 @@ lib/libqgis_native.so
lib/libqgis_native.so.%%DISTVERSION%%
%%SERVER%%lib/libqgis_server.so
%%SERVER%%lib/libqgis_server.so.%%DISTVERSION%%
%%GRASS7%%lib/libqgisgrass7.so
%%GRASS8%%lib/libqgisgrass8.so
%%GRASS7%%lib/libqgisgrass7.so.%%DISTVERSION%%
%%GRASS8%%lib/libqgisgrass8.so.%%DISTVERSION%%
%%GRASS%%lib/libqgisgrass8.so
%%GRASS%%lib/libqgisgrass8.so.%%DISTVERSION%%
lib/libqgispython.so
lib/libqgispython.so.%%DISTVERSION%%
%%PYTHON_SITELIBDIR%%/PyQt5/uic/widget-plugins/qgis_customwidgets.py
lib/qgis/crssync
%%GRASS7%%lib/qgis/grass/bin/qgis.g.browser7
%%GRASS8%%lib/qgis/grass/bin/qgis.g.browser8
%%GRASS7%%lib/qgis/grass/modules/qgis.d.rast7
%%GRASS8%%lib/qgis/grass/modules/qgis.d.rast8
%%GRASS7%%lib/qgis/grass/modules/qgis.g.info7
%%GRASS8%%lib/qgis/grass/modules/qgis.g.info8
%%GRASS7%%lib/qgis/grass/modules/qgis.r.in7
%%GRASS8%%lib/qgis/grass/modules/qgis.r.in8
%%GRASS7%%lib/qgis/grass/modules/qgis.v.in7
%%GRASS8%%lib/qgis/grass/modules/qgis.v.in8
%%GRASS%%lib/qgis/grass/bin/qgis.g.browser8
%%GRASS%%lib/qgis/grass/modules/qgis.d.rast8
%%GRASS%%lib/qgis/grass/modules/qgis.g.info8
%%GRASS%%lib/qgis/grass/modules/qgis.r.in8
%%GRASS%%lib/qgis/grass/modules/qgis.v.in8
lib/qgis/pdal_wrench
lib/qgis/plugins/libauthmethod_apiheader.so
lib/qgis/plugins/libauthmethod_awss3.so
Expand All @@ -2394,18 +2387,15 @@ lib/qgis/plugins/libauthmethod_oauth2.so
lib/qgis/plugins/libauthmethod_pkcs12.so
lib/qgis/plugins/libauthmethod_pkipaths.so
lib/qgis/plugins/libplugin_geometrychecker.so
%%GRASS7%%lib/qgis/plugins/libplugin_grass7.so
%%GRASS8%%lib/qgis/plugins/libplugin_grass8.so
%%GRASS%%lib/qgis/plugins/libplugin_grass8.so
lib/qgis/plugins/libplugin_offlineediting.so
lib/qgis/plugins/libplugin_topology.so
lib/qgis/plugins/libprovider_arcgisfeatureserver.so
lib/qgis/plugins/libprovider_arcgismapserver.so
lib/qgis/plugins/libprovider_delimitedtext.so
lib/qgis/plugins/libprovider_gpx.so
%%GRASS7%%lib/qgis/plugins/libprovider_grass7.so
%%GRASS8%%lib/qgis/plugins/libprovider_grass8.so
%%GRASS7%%lib/qgis/plugins/libprovider_grassraster7.so
%%GRASS8%%lib/qgis/plugins/libprovider_grassraster8.so
%%GRASS%%lib/qgis/plugins/libprovider_grass8.so
%%GRASS%%lib/qgis/plugins/libprovider_grassraster8.so
lib/qgis/plugins/libprovider_mdal.so
lib/qgis/plugins/libprovider_mssql.so
lib/qgis/plugins/libprovider_pdal.so
Expand Down
23 changes: 6 additions & 17 deletions graphics/qgis/Makefile
@@ -1,6 +1,6 @@
PORTNAME= qgis
DISTVERSION= 3.36.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics geography
MASTER_SITES= https://qgis.org/downloads/

Expand Down Expand Up @@ -146,22 +146,17 @@ CMAKE_ARGS+= -Wno-dev
CMAKE_OFF+= SUPPRESS_QT_WARNINGS
.endif

OPTIONS_DEFINE= SERVER
OPTIONS_DEFAULT= SERVER GRASS8
OPTIONS_RADIO= GRASS
OPTIONS_RADIO_GRASS= GRASS7 GRASS8
OPTIONS_DEFINE= SERVER GRASS
OPTIONS_DEFAULT= SERVER GRASS
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes

GRASS_DESC= Add GRASS GIS to processing tools
SERVER_DESC= Enable QGIS server

GRASS7_BUILD_DEPENDS= grass7:databases/grass7
GRASS7_RUN_DEPENDS= ${GRASS7_BUILD_DEPENDS}
GRASS7_CMAKE_BOOL= WITH_GRASS7
GRASS8_BUILD_DEPENDS= grass8:databases/grass8
GRASS8_RUN_DEPENDS= ${GRASS8_BUILD_DEPENDS}
GRASS8_CMAKE_BOOL= WITH_GRASS8
GRASS_BUILD_DEPENDS= grass8:databases/grass8
GRASS_RUN_DEPENDS= ${GRASS_BUILD_DEPENDS}
GRASS_CMAKE_BOOL= WITH_GRASS8
SERVER_LIB_DEPENDS= libfcgi.so:www/fcgi
SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE

Expand All @@ -184,12 +179,6 @@ post-patch:

pre-configure:
${MKDIR} ${CONFIGURE_WRKSRC}/bin && ${LN} -s ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/bin/python3
.if ${PORT_OPTIONS:MGRASS7} || ${PORT_OPTIONS:MGRASS8}
PLIST_SUB+= GRASS="" NO_GRASS="@comment "
.else
PLIST_SUB+= GRASS="@comment " NO_GRASS=""
.endif


post-install:
@${RM} ${STAGEDIR}${DATADIR}/python/pytz/tzfile.py.bak
Expand Down
30 changes: 10 additions & 20 deletions graphics/qgis/pkg-plist
Expand Up @@ -2400,24 +2400,17 @@ lib/libqgis_native.so
lib/libqgis_native.so.%%DISTVERSION%%
%%SERVER%%lib/libqgis_server.so
%%SERVER%%lib/libqgis_server.so.%%DISTVERSION%%
%%GRASS7%%lib/libqgisgrass7.so
%%GRASS8%%lib/libqgisgrass8.so
%%GRASS7%%lib/libqgisgrass7.so.%%DISTVERSION%%
%%GRASS8%%lib/libqgisgrass8.so.%%DISTVERSION%%
%%GRASS%%lib/libqgisgrass8.so
%%GRASS%%lib/libqgisgrass8.so.%%DISTVERSION%%
lib/libqgispython.so
lib/libqgispython.so.%%DISTVERSION%%
%%PYTHON_SITELIBDIR%%/PyQt5/uic/widget-plugins/qgis_customwidgets.py
lib/qgis/crssync
%%GRASS7%%lib/qgis/grass/bin/qgis.g.browser7
%%GRASS8%%lib/qgis/grass/bin/qgis.g.browser8
%%GRASS7%%lib/qgis/grass/modules/qgis.d.rast7
%%GRASS8%%lib/qgis/grass/modules/qgis.d.rast8
%%GRASS7%%lib/qgis/grass/modules/qgis.g.info7
%%GRASS8%%lib/qgis/grass/modules/qgis.g.info8
%%GRASS7%%lib/qgis/grass/modules/qgis.r.in7
%%GRASS8%%lib/qgis/grass/modules/qgis.r.in8
%%GRASS7%%lib/qgis/grass/modules/qgis.v.in7
%%GRASS8%%lib/qgis/grass/modules/qgis.v.in8
%%GRASS%%lib/qgis/grass/bin/qgis.g.browser8
%%GRASS%%lib/qgis/grass/modules/qgis.d.rast8
%%GRASS%%lib/qgis/grass/modules/qgis.g.info8
%%GRASS%%lib/qgis/grass/modules/qgis.r.in8
%%GRASS%%lib/qgis/grass/modules/qgis.v.in8
lib/qgis/pdal_wrench
lib/qgis/plugins/libauthmethod_apiheader.so
lib/qgis/plugins/libauthmethod_awss3.so
Expand All @@ -2429,18 +2422,15 @@ lib/qgis/plugins/libauthmethod_oauth2.so
lib/qgis/plugins/libauthmethod_pkcs12.so
lib/qgis/plugins/libauthmethod_pkipaths.so
lib/qgis/plugins/libplugin_geometrychecker.so
%%GRASS7%%lib/qgis/plugins/libplugin_grass7.so
%%GRASS8%%lib/qgis/plugins/libplugin_grass8.so
%%GRASS%%lib/qgis/plugins/libplugin_grass8.so
lib/qgis/plugins/libplugin_offlineediting.so
lib/qgis/plugins/libplugin_topology.so
lib/qgis/plugins/libprovider_arcgisfeatureserver.so
lib/qgis/plugins/libprovider_arcgismapserver.so
lib/qgis/plugins/libprovider_delimitedtext.so
lib/qgis/plugins/libprovider_gpx.so
%%GRASS7%%lib/qgis/plugins/libprovider_grass7.so
%%GRASS8%%lib/qgis/plugins/libprovider_grass8.so
%%GRASS7%%lib/qgis/plugins/libprovider_grassraster7.so
%%GRASS8%%lib/qgis/plugins/libprovider_grassraster8.so
%%GRASS%%lib/qgis/plugins/libprovider_grass8.so
%%GRASS%%lib/qgis/plugins/libprovider_grassraster8.so
lib/qgis/plugins/libprovider_mdal.so
lib/qgis/plugins/libprovider_mssql.so
lib/qgis/plugins/libprovider_pdal.so
Expand Down

0 comments on commit dcf7214

Please sign in to comment.