diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-13 02:19:46 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-13 02:19:46 +0300 |
commit | cf706d39841782f43b083222315cfafc3faccfc2 (patch) | |
tree | 45986b217979edd7dd18886652145379d20f8b43 | |
parent | ca80b4a4aef296a0972f3ef02c28730dfd42f413 (diff) |
nomacs: changed as requested by exherbo developers
looks like opencv become hard dependency in versions tagged as 3.10+, edited deps to reflect this and build properly.
-rw-r--r-- | packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0 | 7 | ||||
-rw-r--r-- | packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 | 1 | ||||
-rw-r--r-- | packages/media-gfx/nomacs/nomacs-scm.exheres-0 | 7 | ||||
-rw-r--r-- | packages/media-gfx/nomacs/nomacs.exlib | 103 |
4 files changed, 82 insertions, 36 deletions
diff --git a/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0 b/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0 new file mode 100644 index 0000000..ad895b0 --- /dev/null +++ b/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0 @@ -0,0 +1,7 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require nomacs +PLATFORMS="~amd64 ~x86" + + diff --git a/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 b/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 index a7f1a68..ad895b0 100644 --- a/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 +++ b/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 @@ -1,4 +1,5 @@ # Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> require nomacs PLATFORMS="~amd64 ~x86" diff --git a/packages/media-gfx/nomacs/nomacs-scm.exheres-0 b/packages/media-gfx/nomacs/nomacs-scm.exheres-0 index 17b985d..1d1cff6 100644 --- a/packages/media-gfx/nomacs/nomacs-scm.exheres-0 +++ b/packages/media-gfx/nomacs/nomacs-scm.exheres-0 @@ -1,10 +1,13 @@ # Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> require nomacs PLATFORMS="~amd64 ~x86" +CMAKE_SOURCE=${WORKBASE}/${PNV}/ImageLounge + #for some reason github in scm mode + cmake exlibs causing problems, this workaround is necessary pkg_setup() { - edo mkdir "${WORKBASE}"/build - edo chmod 777 "${WORKBASE}"/build + edo mkdir "${WORKBASE}/build" + edo chmod o+rwx "${WORKBASE}/build" } diff --git a/packages/media-gfx/nomacs/nomacs.exlib b/packages/media-gfx/nomacs/nomacs.exlib index 24ed87e..ebccf59 100644 --- a/packages/media-gfx/nomacs/nomacs.exlib +++ b/packages/media-gfx/nomacs/nomacs.exlib @@ -1,51 +1,86 @@ # Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> -WORK="${WORK}"/ImageLounge require cmake [ api=2 ] -require github +require github [ user=nomacs ] + -export_exlib_phases src_configure SUMMARY="Qt-based image viewer" HOMEPAGE="https://nomacs.org/" LICENCES="GPL-3+" SLOT="0" MYOPTIONS=" - jpeg - opencv - ( - raw - tiff - ) - [[ *requires = opencv ]] - zip + zip [[ description = [ Build support for zip archives ] ]] " +if ! ever at_least 3.10; then + MYOPTIONS+=" + opencv [[ description = [ Build support for media-libs/opencv ] ]] + ( + raw [[ description = [ Add support for raw image formats ] ]] + tiff + ) + [[ *requires = opencv ]] + " +else + MYOPTIONS+=" + raw [[ description = [ Add support for raw image formats ] ]] + tiff + " +fi + + DEPENDENCIES=" - build+run: - x11-libs/qtbase:5[gui] - x11-libs/qtsvg:5 - graphics/exiv2 - opencv? ( media-libs/opencv[qt5] ) - raw? ( media-libs/libraw ) - tiff? ( - x11-libs/qtimageformats[tiff] - media-libs/tiff - ) - zip? ( app-arch/quazip ) + build+run: + graphics/exiv2 + x11-libs/qtbase:5[gui] + x11-libs/qtsvg:5 + raw? ( media-libs/libraw ) + tiff? ( + x11-libs/qtimageformats[tiff] + media-libs/tiff + ) + zip? ( app-arch/quazip ) " -nomacs_src_configure() { - local cmakeparams=() - cmakeparams+=( - $(cmake_enable opencv OPENCV) - $(cmake_enable raw RAW) - $(cmake_enable tiff TIFF) - $(cmake_enable zip QUAZIP) - -DUSE_SYSTEM_QUAZIP=ON - -DENABLE_TRANSLATIONS=ON - ) - ecmake "${cmakeparams[@]}" -} +if ! ever at_least 3.10; then + DEPENDENCIES+=" + opencv? ( media-libs/opencv[qt5] ) + " +else + DEPENDENCIES+=" + media-libs/opencv[qt5] + " +fi + + + +CMAKE_SOURCE="${WORK}"/ImageLounge + +CMAKE_SRC_CONFIGURE_PARAMS+=( + -DUSE_SYSTEM_QUAZIP=ON + -DENABLE_TRANSLATIONS=ON +) + +if ever at_least 3.10; then + CMAKE_SRC_CONFIGURE_PARAMS+=( + -DENABLE_OPENCV=TRUE + ) +fi + + +CMAKE_SRC_CONFIGURE_OPTION_ENABLES=( + "raw RAW" + "tiff TIFF" + "zip QUAZIP" +) + +if ! ever at_least 3.10; then + CMAKE_SRC_CONFIGURE_OPTION_ENABLES+=( + "opencv OPENCV" + ) +fi + |