Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/vigra/
Date: Sun, 12 Jan 2020 15:29:17
Message-Id: 1578842933.d3d25c632f1f3b5e7ab3c26e8e476de352c52738.asturm@gentoo
1 commit: d3d25c632f1f3b5e7ab3c26e8e476de352c52738
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 12 15:24:34 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 12 15:28:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d25c63
7
8 media-libs/vigra: Drop 1.11.1-r2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-libs/vigra/vigra-1.11.1-r2.ebuild | 169 --------------------------------
14 1 file changed, 169 deletions(-)
15
16 diff --git a/media-libs/vigra/vigra-1.11.1-r2.ebuild b/media-libs/vigra/vigra-1.11.1-r2.ebuild
17 deleted file mode 100644
18 index 757fe839d19..00000000000
19 --- a/media-libs/vigra/vigra-1.11.1-r2.ebuild
20 +++ /dev/null
21 @@ -1,169 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -MY_P="${P}-src"
28 -MY_V="${PV//\./-}"
29 -PYTHON_COMPAT=( python2_7 )
30 -PYTHON_REQ_USE="threads,xml"
31 -inherit cmake-utils python-r1
32 -
33 -DESCRIPTION="C++ computer vision library emphasizing customizable algorithms and structures"
34 -HOMEPAGE="https://ukoethe.github.io/vigra/"
35 -
36 -if [[ ${PV} == *9999 ]] ; then
37 - EGIT_REPO_URI="https://github.com/ukoethe/${PN}.git"
38 - inherit git-r3
39 -else
40 - SRC_URI="https://github.com/ukoethe/${PN}/releases/download/Version-${MY_V}/${MY_P}.tar.gz"
41 - KEYWORDS="amd64 arm64 ~sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
42 -fi
43 -
44 -LICENSE="MIT"
45 -SLOT="0"
46 -IUSE="doc +fftw +hdf5 +jpeg mpi openexr +png +python test +tiff valgrind +zlib"
47 -
48 -REQUIRED_USE="
49 - doc? ( hdf5 fftw ${PYTHON_REQUIRED_USE} )
50 - python? ( hdf5 ${PYTHON_REQUIRED_USE} )
51 - test? ( hdf5 python fftw )"
52 -
53 -BDEPEND="
54 - doc? (
55 - app-doc/doxygen
56 - >=dev-python/sphinx-1.1.3-r5
57 - )
58 - test? (
59 - >=dev-python/nose-1.1.2-r1[${PYTHON_USEDEP}]
60 - valgrind? ( dev-util/valgrind )
61 - )
62 -"
63 -# runtime dependency on python:2.7 is required by the vigra-config script
64 -DEPEND="
65 - dev-lang/python:2.7
66 - fftw? ( sci-libs/fftw:3.0 )
67 - hdf5? ( >=sci-libs/hdf5-1.8.0:=[mpi=] )
68 - jpeg? ( virtual/jpeg:0 )
69 - openexr? (
70 - media-libs/openexr:=
71 - media-libs/ilmbase:=
72 - )
73 - png? ( media-libs/libpng:0= )
74 - python? (
75 - dev-libs/boost:=[python?,${PYTHON_USEDEP}]
76 - dev-python/numpy[${PYTHON_USEDEP}]
77 - ${PYTHON_DEPS}
78 - )
79 - tiff? ( media-libs/tiff:0= )
80 - zlib? ( sys-libs/zlib )
81 -"
82 -RDEPEND="${DEPEND}"
83 -
84 -# Severely broken, also disabled in Fedora, bugs #390447, #653442
85 -RESTRICT="test"
86 -
87 -PATCHES=(
88 - # git master
89 - "${FILESDIR}/${P}-fix-incorrect-template-parameter-type.patch"
90 - "${FILESDIR}/${P}-boost-python.patch"
91 - # TODO: upstream
92 - "${FILESDIR}/${P}-lib_suffix.patch"
93 - "${FILESDIR}/${P}-sphinx.ext.pngmath.patch" # thanks to Debian; bug 678308
94 -)
95 -
96 -pkg_setup() {
97 - if use python || use doc; then
98 - python_setup
99 - fi
100 -}
101 -
102 -src_prepare() {
103 - vigra_disable() {
104 - if ! use ${1}; then
105 - sed -e "/^VIGRA_FIND_PACKAGE.*${2:-$1}/Is/^/#disabled by USE=${1}: /" \
106 - -i CMakeLists.txt || die "failed to disable ${1}"
107 - fi
108 - }
109 -
110 - cmake-utils_src_prepare
111 -
112 - if [[ ${PV} != *9999 ]]; then
113 - rm -r doc || die "failed to remove shipped docs"
114 - fi
115 -
116 - vigra_disable fftw fftw3
117 - vigra_disable fftw fftw3f
118 - vigra_disable jpeg
119 - vigra_disable png
120 - vigra_disable tiff
121 - vigra_disable zlib
122 -
123 - # Don't use python_fix_shebang because we can't put this behind USE="python"
124 - sed -i -e '/env/s:python:python2:' config/vigra-config.in || die
125 -
126 - use test || cmake_comment_add_subdirectory test
127 -}
128 -
129 -src_configure() {
130 - vigra_configure() {
131 - local mycmakeargs=(
132 - -DAUTOEXEC_TESTS=OFF
133 - -DDOCDIR="${BUILD_DIR}/doc"
134 - -DDOCINSTALL="share/doc/${PF}"
135 - -DWITH_HDF5=$(usex hdf5)
136 - -DWITH_OPENEXR=$(usex openexr)
137 - -DWITH_VALGRIND=$(usex valgrind)
138 - -DWITH_VIGRANUMPY=$(usex python)
139 - )
140 - cmake-utils_src_configure
141 - }
142 -
143 - if use python; then
144 - python_foreach_impl vigra_configure
145 - else
146 - # required for docdir
147 - _cmake_check_build_dir init
148 - vigra_configure
149 - fi
150 -}
151 -
152 -src_compile() {
153 - local VIGRA_BUILD_DIR
154 - vigra_compile() {
155 - cmake-utils_src_compile
156 - VIGRA_BUILD_DIR="${BUILD_DIR}"
157 - }
158 - if use python; then
159 - python_foreach_impl vigra_compile
160 - else
161 - vigra_compile
162 - fi
163 -
164 - if use doc; then
165 - einfo "Generating Documentation"
166 - # use build dir from last compile command
167 - VARTEXFONTS="${T}/fonts" BUILD_DIR="${VIGRA_BUILD_DIR}" cmake-utils_src_make doc
168 - fi
169 -}
170 -
171 -src_install() {
172 - if use python; then
173 - python_foreach_impl cmake-utils_src_install
174 - python_optimize
175 - else
176 - cmake-utils_src_install
177 - fi
178 -}
179 -
180 -src_test() {
181 - # perhaps disable tests (see #390447)
182 - vigra_test() {
183 - PYTHONPATH="${BUILD_DIR}/vigranumpy/vigra" cmake-utils_src_test
184 - }
185 - if use python; then
186 - python_foreach_impl vigra_test
187 - else
188 - vigra_test
189 - fi
190 -}