diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-24 19:58:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-24 19:58:07 +0000 |
commit | 99abbc5e5a6ecd3fc981b45646fd8cb5d320377b (patch) | |
tree | da76713365257a445f3ae3b95470917f59d46728 /sci-geosciences/qgis | |
parent | 4935506e9a5cbfabd37c64093eac5f36c2ff0017 (diff) |
gentoo resync : 24.02.2018
Diffstat (limited to 'sci-geosciences/qgis')
-rw-r--r-- | sci-geosciences/qgis/Manifest | 8 | ||||
-rw-r--r-- | sci-geosciences/qgis/qgis-2.18.14.ebuild | 2 | ||||
-rw-r--r-- | sci-geosciences/qgis/qgis-2.18.16.ebuild | 207 | ||||
-rw-r--r-- | sci-geosciences/qgis/qgis-3.0.0.ebuild | 211 | ||||
-rw-r--r-- | sci-geosciences/qgis/qgis-9999.ebuild | 2 |
5 files changed, 424 insertions, 6 deletions
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest index 2c6e0163dd6f..89deb17fe209 100644 --- a/sci-geosciences/qgis/Manifest +++ b/sci-geosciences/qgis/Manifest @@ -3,9 +3,13 @@ AUX qgis-2.18.12-sip.patch 4471 BLAKE2B c4bbdbfe43f6b9c2a4f8aec25109a40967fd93ca AUX qgis-2.18.6-featuresummary.patch 1009 BLAKE2B bca5de34bc4eccc10aee3b4320be0259c342d45ea538fd92d6229243fc6b0c6ab90dcc8f24fd9bc10119cac6ab87c1a64f47528269f07865e3e8bf1ca16e4f1f SHA512 4f271d7fb5b39b49bd06cb6308e82b44088978e2fcc17e453dcdc71655000b91be06e08ce05a373ed45d25472422a7b317c12b19a3a41620df07ea723766b44e DIST qgis-2.18.12.tar.bz2 84936155 BLAKE2B 0d47094ae8dac3101888140b5773a8e7b52d2562517bb30983592043267adc28d878ad644162ad04d84440497c567d075225db3db5a215440dee7258a8faade3 SHA512 e34dd98d0d0aa5fdf1f980dbc1376c25a9a7ffaa59b1a2eba8423e7f44bc039b547f3f65368178a8c485fa34526dd9fece2e09d9372fed3b9a758f7286b690ea DIST qgis-2.18.14.tar.bz2 84935301 BLAKE2B 37468062894235608f6efd0b58311e019f57ec0b3e6db63d8fef92ae93ac95ed13fe51290ebd063d31f1ea2318a23d7bdabb0774b451a2305064162addb4da29 SHA512 da738ae25f1207441a52091af9a3e70fd17f95704a23e27f72ee4c7ba213fd9ccf2d6685d91c34f94c555ca2dce420d6a07840b1fa682d6b960abdf3ba177036 +DIST qgis-2.18.16.tar.bz2 84976777 BLAKE2B ad68ce63698266bc081db7be0529ef50f66ee9c048b2e2a743cfc24d1ddb161c86c71283c09740a22c45476f863516f8855c69a5ccf074e9676d1ed5a09563a1 SHA512 1fe060c1d392f304eea10a211815e14081299a865e34114625f3a5f2a1b365f571bb30878a21cbf25bc32285ffc689d37cb7dbcab129ce5f03ccd6fa0781876d +DIST qgis-3.0.0.tar.bz2 94186303 BLAKE2B 2b2623c218a86af22ee13e1271e66244fc6191732db6bc694860015824525188308609c8758062910ba7065ca6790d4091beb15ff324d1a8410e65525cf785b0 SHA512 91201c5d48f9450734a6268f70cba830e363db15a979266af1a7f2ef73857ca11e89145d027f394d052d0536e54b4f62523b1ad49bbe698743fec882ceecfabe DIST qgis_sample_data-2.8.14.tar.gz 22119181 BLAKE2B 2d0565e91ec8119382bc9ab8e262dc04227fe8289146794891759ff5a32012245270614ba1119a6329fc45cf56852830c2079589309aa3467873f71f5c608eac SHA512 6b2653d5b57ffc2c2317639dac212429840984ac917ca3e452b39aabb99ea106d1a77c1c1dd967244ef16ede9deae751b170affdf08b72239eafed5b8977da3d DIST qgis_sample_data.tar.gz 13601736 BLAKE2B 92acadbd009b181e74516120b3a700c96c7c1a732240434439bbe51afa441dee6521dac7bf6629fb5d7489b63fd0e0a45b1871df099820e8cd594920fa1499b7 SHA512 5847d7b32e5f75e771adf6b959847024f55b2360c307bd80e5628595fc53f5aaca18adf6cb00fa027a7e7b326c7f72bab58df16674daf20b77c676e163d93f78 EBUILD qgis-2.18.12.ebuild 5238 BLAKE2B 71ce0aa312a0dabb8ef91b0f256dd65253617e3e5b37da7c8b2ece291a977c824247860c315ec2e113a1b77468120728b16aef0b876abdd3bdd6f4c60477f920 SHA512 6ed6eea3577c8b33773cf2d998458ee4c6a9ed5fa47c4912e8b8f15657a4c8cfa8ff8b054614c65cf664924d4a0070b2025e5b897c51fd66b1fcbbcddd6db2e3 -EBUILD qgis-2.18.14.ebuild 5290 BLAKE2B ccc7da92432f441b9bd56aa3e3e9bc87d29d8ef0874114cce02a716c67ec188815997ff4f558f7ca9bd39984ea49c239bf8077039af05fb49d0292b849061415 SHA512 791c4c68cf8d25eba4d0a7b23fd9f79f7964346abb99050ab1336289e86bc3383515bbff9c01eb3a2004574c4723a46ac51d964539f5059cab900870de611f07 -EBUILD qgis-9999.ebuild 5930 BLAKE2B ac86c3182edffc326943b76ef3f0cad724bd22b95337ef0cdb1f356b1ef7f37fded0822520575681d87e7e429bccbf5e1bd59c1946ca6ddfd04b0ea65ddf6571 SHA512 479c145b8883921aaf6b6889c2f6978fabdc58ac293df06fd5d40f4cc50e9db5ee74cf50a7abd29384a4f097bbdaa7055728421e9548fdfa4e368452750013b8 +EBUILD qgis-2.18.14.ebuild 5230 BLAKE2B 0ab87ecfaa25d53ad9253d51e776d1b12e2e0bdfdb14d20d86ea8177e77fbc9b5d607523a6cd66345c66383965f06459df3569b8cb00e774919492e43de85024 SHA512 4bcbf4eeb9c73d99646d0ddc2ca78ebb15fcb8d5e29895990c316b2495d6aaad413cfaf390641128562fbe46fafe07c4070f304f7d3a24ace3551e19b0f1971e +EBUILD qgis-2.18.16.ebuild 5227 BLAKE2B cdc3794d934707153185ff5bb25c99d55bcd277995862bdd32714e0d51c488fa205aca16317421b495242ebde4e4a7017a6009b5b27d06e66d59d402dc1026b4 SHA512 c32036b5fce7c205bf4ae40b9e2cb7e55d7a98b5287e13316a68cc3cab8bf0e770c4a4f3085749b1a8cf44f865605c2e808c7d4b5bc29ed9e1eab197776ca105 +EBUILD qgis-3.0.0.ebuild 5870 BLAKE2B 467b893047e2f56a80ae7508b8d386988fd11e9aba76050ddf171b79cf9615b7895114b2e75b55658705f8fb203e6b8d191118e7579ac1a5b71c1ec452a7e4fe SHA512 0d612a0f76f0da06bdd651f63b6088eb8d5850e987946f17b5ed1529d955bae3a4dfec7278db3a9da21bb5f4076569126b40334a17c754a9a5db76f79ad9a49a +EBUILD qgis-9999.ebuild 5870 BLAKE2B 467b893047e2f56a80ae7508b8d386988fd11e9aba76050ddf171b79cf9615b7895114b2e75b55658705f8fb203e6b8d191118e7579ac1a5b71c1ec452a7e4fe SHA512 0d612a0f76f0da06bdd651f63b6088eb8d5850e987946f17b5ed1529d955bae3a4dfec7278db3a9da21bb5f4076569126b40334a17c754a9a5db76f79ad9a49a MISC metadata.xml 1121 BLAKE2B c81c6538e2b0a0094f7566fc72e2c4249d5ff21d999355502b0eaf89cb77b0be305d0df0aa366144bf4ced98e5b07969b33a4f6ee2efb3438cdf098788850571 SHA512 bdd356ee78300f01de7169ab2c8915c369e8e2d5a7cce85df21ba4c4835b65164cc28d7258e7ac0efba4b826cce2d90d179c9247b3f53c06ba73d6b2ac175d06 diff --git a/sci-geosciences/qgis/qgis-2.18.14.ebuild b/sci-geosciences/qgis/qgis-2.18.14.ebuild index eb148f3d4fee..6a6e8c383ad8 100644 --- a/sci-geosciences/qgis/qgis-2.18.14.ebuild +++ b/sci-geosciences/qgis/qgis-2.18.14.ebuild @@ -81,8 +81,6 @@ RESTRICT="test" PATCHES=( # TODO upstream "${FILESDIR}/${PN}-2.18.6-featuresummary.patch" - # Taken from redhat - "${FILESDIR}/${PN}-2.18.12-sip.patch" # git master "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" ) diff --git a/sci-geosciences/qgis/qgis-2.18.16.ebuild b/sci-geosciences/qgis/qgis-2.18.16.ebuild new file mode 100644 index 000000000000..1471c7e45cf7 --- /dev/null +++ b/sci-geosciences/qgis/qgis-2.18.16.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit cmake-utils eutils gnome2-utils python-single-r1 qmake-utils xdg-utils + +DESCRIPTION="User friendly Geographic Information System" +HOMEPAGE="https://www.qgis.org/" +SRC_URI=" + https://qgis.org/downloads/qgis-${PV}.tar.bz2 + examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" + +LICENSE="GPL-2+ GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples georeferencer grass mapserver oracle postgres python" + +REQUIRED_USE=" + mapserver? ( python ) + python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + app-crypt/qca:2[qt4,ssl] + >=dev-db/spatialite-4.1.0 + dev-db/sqlite:3 + dev-libs/expat + dev-libs/qjson + dev-qt/designer:4 + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtscript:4 + dev-qt/qtsvg:4 + dev-qt/qtsql:4 + sci-libs/gdal:=[geos,python?,${PYTHON_USEDEP}] + sci-libs/geos + sci-libs/libspatialindex:= + sci-libs/proj + x11-libs/qscintilla:=[qt4(-)] + >=x11-libs/qwt-6.1.2:6=[svg,qt4(-)] + >=x11-libs/qwtpolar-1[qt4(-)] + georeferencer? ( sci-libs/gsl:= ) + grass? ( >=sci-geosciences/grass-7.0.0:= ) + mapserver? ( dev-libs/fcgi ) + oracle? ( + dev-db/oracle-instantclient:= + sci-libs/gdal:=[oracle] + ) + postgres? ( dev-db/postgresql:= ) + python? ( ${PYTHON_DEPS} + dev-python/future[${PYTHON_USEDEP}] + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/PyQt4[X,sql,svg,${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/qscintilla-python[qt4,${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/sip:=[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) + ) +" +DEPEND="${COMMON_DEPEND} + sys-devel/bison + sys-devel/flex +" +RDEPEND="${COMMON_DEPEND} + sci-geosciences/gpsbabel +" + +# Disabling test suite because upstream disallow running from install path +RESTRICT="test" + +PATCHES=( + # TODO upstream + "${FILESDIR}/${PN}-2.18.6-featuresummary.patch" + # git master + "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" +) + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + + sed -i -e "s:\${QT_BINARY_DIR}:$(qt4_get_bindir):" \ + CMakeLists.txt || die "Failed to fix lrelease path" + + cd src/plugins || die + use georeferencer || cmake_comment_add_subdirectory georeferencer +} + +src_configure() { + local mycmakeargs=( + -DQGIS_MANUAL_SUBDIR=/share/man/ + -DBUILD_SHARED_LIBS=ON + -DQGIS_LIB_SUBDIR=$(get_libdir) + -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis + -DQWT_INCLUDE_DIR=/usr/include/qwt6 + -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt4.so + -DWITH_INTERNAL_QWTPOLAR=OFF + -DPEDANTIC=OFF + -DWITH_APIDOC=OFF + -DWITH_QSPATIALITE=ON + -DENABLE_TESTS=OFF + -DWITH_GRASS=$(usex grass) + -DWITH_SERVER=$(usex mapserver) + -DWITH_ORACLE=$(usex oracle) + -DWITH_POSTGRESQL=$(usex postgres) + -DWITH_BINDINGS=$(usex python) + -DWITH_QTWEBKIT=OFF + ) + + if has_version '<x11-libs/qscintilla-2.10'; then + mycmakeargs+=( + -DQSCINTILLA_LIBRARY=/usr/$(get_libdir)/qt4/libqscintilla2.so + ) + fi + + if use grass; then + mycmakeargs+=( + -DWITH_GRASS7=ON + -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 + ) + fi + + if use python; then + mycmakeargs+=( + -DBINDINGS_GLOBAL_INSTALL=ON + -DWITH_PYSPATIALITE=ON + -DWITH_INTERNAL_DATEUTIL=OFF + -DWITH_INTERNAL_FUTURE=OFF + -DWITH_INTERNAL_MARKUPSAFE=OFF + -DWITH_INTERNAL_PYTZ=OFF + -DWITH_INTERNAL_SIX=OFF + -DWITH_INTERNAL_YAML=OFF + ) + fi + + # bug 612956 + addpredict /dev/dri/renderD128 + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + domenu debian/qgis.desktop + + local size type + for size in 16 22 24 32 48 64 96 128 256; do + newicon -s ${size} debian/${PN}-icon${size}x${size}.png ${PN}.png + newicon -c mimetypes -s ${size} debian/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png + for type in qgs qml qlr qpt; do + newicon -c mimetypes -s ${size} debian/${PN}-${type}${size}x${size}.png ${PN}-${type}.png + done + done + newicon -s scalable images/icons/qgis_icon.svg qgis.svg + + insinto /usr/share/mime/packages + doins debian/qgis.xml + + if use examples; then + docinto examples + dodoc -r "${WORKDIR}"/qgis_sample_data/. + docompress -x /usr/share/doc/${PF}/examples + fi + + python_optimize "${ED%/}"/usr/share/qgis/python + + if use grass; then + python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts + fi +} + +pkg_postinst() { + if use postgres; then + elog "If you don't intend to use an external PostGIS server" + elog "you should install:" + elog " dev-db/postgis" + elif use python; then + elog "Support of PostgreSQL is disabled." + elog "But some installed python-plugins import the psycopg2 module." + elog "If you do not need these plugins just disable them" + elog "in the Plugins menu, else you need to set USE=\"postgres\"" + fi + + gnome2_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} diff --git a/sci-geosciences/qgis/qgis-3.0.0.ebuild b/sci-geosciences/qgis/qgis-3.0.0.ebuild new file mode 100644 index 000000000000..b4e04b7ffbcd --- /dev/null +++ b/sci-geosciences/qgis/qgis-3.0.0.ebuild @@ -0,0 +1,211 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_5 ) +PYTHON_REQ_USE="sqlite" +QT_MIN_VER="5.9.1" + +if [[ ${PV} != *9999 ]]; then + SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 + examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" + KEYWORDS="~amd64 ~x86" +else + GIT_ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" +fi +inherit cmake-utils eutils ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils +unset GIT_ECLASS + +DESCRIPTION="User friendly Geographic Information System" +HOMEPAGE="https://www.qgis.org/" + +LICENSE="GPL-2+ GPL-3+" +SLOT="0" +IUSE="designer examples georeferencer grass mapserver oracle polar postgres python webkit" + +REQUIRED_USE=" + mapserver? ( python ) + python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + app-crypt/qca:2[qt5(+),ssl] + >=dev-db/spatialite-4.2.0 + dev-db/sqlite:3 + dev-libs/expat + dev-libs/libzip:= + dev-libs/qtkeychain[qt5(+)] + >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 + >=dev-qt/qtcore-${QT_MIN_VER}:5 + >=dev-qt/qtgui-${QT_MIN_VER}:5 + >=dev-qt/qtnetwork-${QT_MIN_VER}:5 + >=dev-qt/qtpositioning-${QT_MIN_VER}:5 + >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 + >=dev-qt/qtsvg-${QT_MIN_VER}:5 + >=dev-qt/qtsql-${QT_MIN_VER}:5 + >=dev-qt/qtwidgets-${QT_MIN_VER}:5 + >=dev-qt/qtxml-${QT_MIN_VER}:5 + >=sci-libs/gdal-2.2.3:=[geos,python?,${PYTHON_USEDEP}] + sci-libs/geos + sci-libs/libspatialindex:= + sci-libs/proj + >=x11-libs/qscintilla-2.10.1:=[qt5(+)] + >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] + designer? ( >=dev-qt/designer-${QT_MIN_VER}:5 ) + georeferencer? ( sci-libs/gsl:= ) + grass? ( >=sci-geosciences/grass-7.0.0:= ) + mapserver? ( dev-libs/fcgi ) + oracle? ( + dev-db/oracle-instantclient:= + sci-libs/gdal:=[oracle] + ) + polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) + postgres? ( dev-db/postgresql:= ) + python? ( ${PYTHON_DEPS} + dev-python/future[${PYTHON_USEDEP}] + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/owslib[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/PyQt5[sql,svg,webkit?,${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/sip:=[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) + ) + webkit? ( >=dev-qt/qtwebkit-${QT_MIN_VER}:5 ) +" +DEPEND="${COMMON_DEPEND} + >=dev-qt/linguist-tools-${QT_MIN_VER}:5 + >=dev-qt/qttest-${QT_MIN_VER}:5 + >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 + sys-devel/bison + sys-devel/flex +" +RDEPEND="${COMMON_DEPEND} + sci-geosciences/gpsbabel +" + +# Disabling test suite because upstream disallow running from install path +RESTRICT="test" + +PATCHES=( + # git master + "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" +) + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + + sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \ + -i CMakeLists.txt || die "Failed to fix lrelease path" + + sed -e "/QT_LRELEASE_EXECUTABLE/d" \ + -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \ + -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \ + -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake" + + cd src/plugins || die +} + +src_configure() { + local mycmakeargs=( + -DQGIS_MANUAL_SUBDIR=/share/man/ + -DBUILD_SHARED_LIBS=ON + -DQGIS_LIB_SUBDIR=$(get_libdir) + -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis + -DQWT_INCLUDE_DIR=/usr/include/qwt6 + -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so + -DPEDANTIC=OFF + -DWITH_APIDOC=OFF + -DWITH_QSPATIALITE=ON + -DENABLE_TESTS=OFF + -DWITH_CUSTOM_WIDGETS=$(usex designer) + -DWITH_GEOREFERENCER=$(usex georeferencer) + -DWITH_GRASS=$(usex grass) + -DWITH_SERVER=$(usex mapserver) + -DWITH_ORACLE=$(usex oracle) + -DWITH_QWTPOLAR=$(usex polar) + -DWITH_POSTGRESQL=$(usex postgres) + -DWITH_BINDINGS=$(usex python) + -DWITH_QTWEBKIT=$(usex webkit) + ) + + if use grass; then + mycmakeargs+=( + -DWITH_GRASS7=ON + -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 + ) + fi + + use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) + + # bug 612956 + addpredict /dev/dri/renderD128 + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + domenu debian/qgis.desktop + + local size type + for size in 16 22 24 32 48 64 96 128 256; do + newicon -s ${size} debian/icons/${PN}-icon${size}x${size}.png ${PN}.png + newicon -c mimetypes -s ${size} debian/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png + for type in qgs qml qlr qpt; do + newicon -c mimetypes -s ${size} debian/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png + done + done + newicon -s scalable images/icons/qgis_icon.svg qgis.svg + + insinto /usr/share/mime/packages + doins debian/qgis.xml + + if use examples; then + docinto examples + dodoc -r "${WORKDIR}"/qgis_sample_data/. + docompress -x /usr/share/doc/${PF}/examples + fi + + python_optimize "${ED%/}"/usr/share/qgis/python + + if use grass; then + python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts + fi +} + +pkg_postinst() { + if use postgres; then + elog "If you don't intend to use an external PostGIS server" + elog "you should install:" + elog " dev-db/postgis" + elif use python; then + elog "Support of PostgreSQL is disabled." + elog "But some installed python-plugins import the psycopg2 module." + elog "If you do not need these plugins just disable them" + elog "in the Plugins menu, else you need to set USE=\"postgres\"" + fi + + gnome2_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} diff --git a/sci-geosciences/qgis/qgis-9999.ebuild b/sci-geosciences/qgis/qgis-9999.ebuild index 13ed091c52e0..b4e04b7ffbcd 100644 --- a/sci-geosciences/qgis/qgis-9999.ebuild +++ b/sci-geosciences/qgis/qgis-9999.ebuild @@ -96,8 +96,6 @@ RDEPEND="${COMMON_DEPEND} RESTRICT="test" PATCHES=( - # Taken from redhat - "${FILESDIR}/${PN}-2.18.12-sip.patch" # git master "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" ) |